/* CSS DA PÁGINA DE DETALHES DA EMENDA */

.emenda-detalhes-page {
  padding-top: 80px;
}

/* Hero Section com Título */
.hero-emenda {
  background: var(--branco);
  padding: 60px 0 40px;
}

.hero-emenda h1 {
  color: var(--azul-principal);
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Seção de Informações */
.info-section {
  background: var(--branco);
  padding: 40px 0;
}

.info-table-container {
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cinza-claro);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-table tbody tr {
  border-bottom: 1px solid #ddd;
}

.info-table tbody tr:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--azul-principal);
  font-weight: 600;
  font-size: 15px;
  padding: 18px 25px;
  width: 40%;
  vertical-align: top;
  background: #f5f5f5;
}

.info-value {
  color: var(--texto);
  font-size: 15px;
  padding: 18px 25px;
  line-height: 1.6;
}

/* Seção de Galeria */
.galeria-section {
  background: var(--branco);
  padding: 40px 0;
}

/* Imagem Principal em Destaque */
.imagem-destaque {
  max-width: 850px;
  margin: 0 auto 30px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.imagem-principal {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.imagem-principal:hover {
  transform: scale(1.02);
}

/* Galeria de Miniaturas */
.galeria-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.thumbnail-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 120px;
  height: 90px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
  opacity: 1;
}

.thumbnail-item:not(.active) {
  opacity: 0.7;
}

.thumbnail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

.thumbnail-item:hover .thumbnail-img {
  transform: scale(1.05);
}

/* Modal para imagem ampliada */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  font-size: 16px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



.texto-content {
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.6s forwards;
}


.texto-content p {
  color: var(--texto);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.texto-content p:last-child {
  margin-bottom: 0;
}

/* Seção de Documentos Relacionados */
.documentos-relacionados {
  background: var(--branco);
  padding: 60px 0;
}

.documentos-relacionados h2 {
  color: var(--azul-principal);
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.documentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 1s forwards;
}

.doc-card {
  background: #EAEAEA;
  border-radius: 15px;
  padding: 25px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.doc-card:hover {
  background: var(--amarelo-destaque);
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.doc-icon-wrapper {
  margin-bottom: 15px;
}

.doc-icon {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.doc-card:hover .doc-icon {
  content: url('../images/Transparencia/file_W.png');
}

.doc-name {
  color: var(--texto);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.doc-card:hover .doc-name {
  color: var(--cinza-claro);
}

/* Seção Botão Voltar */
.voltar-section {
  background: var(--branco);
  padding: 40px 0 60px;
  text-align: center;
}

.btn-voltar {
  display: inline-block;
  background: var(--azul-principal);
  color: var(--branco);
  padding: 15px 40px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 1.2s forwards;
}

.btn-voltar:hover {
  background: var(--amarelo-destaque);
  color: var(--texto);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Animação */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-emenda {
    padding: 40px 0 30px;
  }

  .hero-emenda h1 {
    font-size: 28px;
    padding: 0 20px;
  }

  .info-section {
    padding: 30px 0;
  }

  .info-table-container {
    margin: 0 20px;
  }

  .info-table {
    display: block;
  }

  .info-table tbody {
    display: block;
  }

  .info-table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
  }

  .info-label,
  .info-value {
    width: 100%;
    display: block;
    padding: 12px 15px;
  }

  .info-label {
    background: var(--azul-principal);
    color: var(--branco);
    font-size: 14px;
  }

  .info-value {
    background: var(--branco);
    font-size: 14px;
  }

  .galeria-section {
    padding: 30px 0;
  }

  .imagem-destaque {
    margin: 0 20px 20px;
    border-radius: 15px;
  }

  .galeria-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 0 20px;
  }

  .thumbnail-item {
    border-radius: 8px;
    border-width: 2px;
  }

  .modal-close {
    top: 10px;
    right: 20px;
    font-size: 40px;
  }

  .modal-content {
    max-width: 95%;
  }

  .texto-detalhado {
    padding: 40px 0;
  }

  .texto-content {
    padding: 0 20px;
  }

  .texto-content p {
    font-size: 15px;
    text-align: left;
  }

  .documentos-relacionados {
    padding: 40px 0;
  }

  .documentos-relacionados h2 {
    font-size: 26px;
    padding: 0 20px;
  }

  .documentos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .voltar-section {
    padding: 30px 0 40px;
  }

  .btn-voltar {
    padding: 12px 30px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-emenda h1 {
    font-size: 24px;
  }

  .resumo-content p {
    font-size: 15px;
  }

  .texto-content p {
    font-size: 14px;
  }

  .documentos-relacionados h2 {
    font-size: 22px;
  }
}
