/* =========================
   RESET E BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Georgia", "Times New Roman", serif;
}

body {
  background: linear-gradient(
    to bottom,
    #1f2d1f,
    #2e3b2e,
    #3b2f1e
  );
  color: #2b1f14;
  min-height: 100vh;
}

/* =========================
   POPUP CAPA – AJUSTE FINAL
========================= */
#popup {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #0c130c 0%, #020402 85%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* =========================
   CONTAINER DA CAPA
========================= */
.popup-capa {
  position: relative;
  width: 100%;
  max-width: 1100px;       /* desktop */
  max-height: 85vh;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.95);
}

/* IMAGEM */
.popup-capa img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* não corta */
  display: block;
}

/* TELAS MUITO GRANDES */
@media (min-width: 1400px) {
  .popup-capa {
    max-width: 1000px;
    max-height: 80vh;
  }
}

/* =========================
   OVERLAY
========================= */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  padding: 28px 22px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* =========================
   TOPO – TÍTULO E SUBTÍTULO
========================= */
.topo h1 {
  font-size: 2.6rem;
  color: #f3e6b8;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
}

.topo h2 {
  font-size: 1.4rem;
  color: #e0cf98;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

/* =========================
   BOTÃO
========================= */
.botao-centro {
  margin-top: 10px;
}

.btn-viajar {
  padding: 12px 44px;
  font-size: 1.05rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(140, 105, 45, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  animation: pulsar 2.5s infinite ease-in-out;
}

/* =========================
   ANIMAÇÃO BOTÃO
========================= */
@keyframes pulsar {
  0% {
    box-shadow: 0 0 15px rgba(185, 145, 65, 0.4);
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 180, 90, 0.9);
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 15px rgba(185, 145, 65, 0.4);
    opacity: 0.75;
    transform: scale(1);
  }
}

/* =========================
   RODAPÉ – AUTOR
========================= */
.rodape {
  margin-top: auto;
}

.rodape p {
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.1rem;
  color: #f1e4b6;
  letter-spacing: 1.5px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
  margin-bottom: 6px;
}

/* =========================
   RESPONSIVO – TABLET
========================= */
@media (max-width: 768px) {
  .popup-capa {
    max-width: 90vw;
    max-height: 90vh;
  }

  .topo h1 {
    font-size: 2rem;
  }

  .topo h2 {
    font-size: 1.2rem;
  }

  .btn-viajar {
    padding: 10px 36px;
  }

  .rodape p {
    font-size: 1rem;
  }
}

/* =========================
   RESPONSIVO – CELULAR
========================= */
@media (max-width: 480px) {
  .overlay {
    padding: 18px 14px;
  }

  .topo h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .topo h2 {
    font-size: 1rem;
  }

  .btn-viajar {
    padding: 10px 30px;
    font-size: 1rem;
  }

  .rodape p {
    font-size: 0.9rem;
  }

  .botao-centro {
    margin-top: 6px;
  }
}


/* =========================
   OVERLAY
========================= */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* CONTEÚDO SOBE */
  text-align: center;
  padding: 28px 22px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* =========================
   TOPO – TÍTULO E SUBTÍTULO
========================= */
.topo h1 {
  font-size: 1.5rem;
  color: #f3e6b8;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.topo h2 {
  font-size: 1rem;
  color: #e0cf98;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* =========================
   BOTÃO – MAIS PRA CIMA
========================= */
.botao-centro {
  margin-top: 6px;               /* BOTÃO SOBE */
}

.btn-viajar {
  padding: 5px 52px;
  font-size: 1.1rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(140, 105, 45, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  animation: pulsar 2.5s infinite ease-in-out;
}

.btn-viajar:hover {
  background: rgba(185, 145, 65, 0.75);
}

/* =========================
   ANIMAÇÃO BOTÃO PISCANDO
========================= */
@keyframes pulsar {
  0% {
    box-shadow: 0 0 15px rgba(185, 145, 65, 0.4);
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 180, 90, 0.9);
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 15px rgba(185, 145, 65, 0.4);
    opacity: 0.75;
    transform: scale(1);
  }
}

/* =========================
   RODAPÉ – AUTOR FIXADO EMBAIXO
========================= */
.rodape {
  margin-top: auto;              /* EMPURRA PARA O FUNDO */
}

.rodape p {
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: 0.8rem;
  color: #f1e4b6;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
  .popup-capa {
    max-width: 95vw;
    max-height: 95vh;
  }

  .topo h1 {
    font-size: 2.2rem;
  }

  .topo h2 {
    font-size: 1.25rem;
  }

  .btn-viajar {
    padding: 12px 40px;
  }

  .rodape p {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .topo h1 {
    font-size: 1.8rem;
  }

  .topo h2 {
    font-size: 1.15rem;
  }

  .botao-centro {
    margin-top: 4px;
  }
}

/* =========================
   HEADER / HAMBURGUER
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 35, 25, 0.95);
  padding: 12px 16px;
}

.hamburger {
  font-size: 28px;
  color: #d9c08b;
  cursor: pointer;
}

/* =========================
   MENU ATUALIZADO
========================= */

#menu {
  position: absolute;
  top: 60px;
  left: 16px;
  width: 320px;
  max-height: 75vh;
  overflow-y: auto;

  display: none; /* começa escondido */

  background: linear-gradient(to bottom, #f4ecd8, #e9dcc1);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  padding: 8px 0;
  z-index: 999;
}

/* Quando o JS adicionar .show */
#menu.show {
  display: block;
}

/* Links organizados verticalmente */
#menu a {
  display: block; /* força empilhamento */
  width: 100%;
  padding: 12px 18px;
  text-decoration: none;
  color: #3b2f1e;
  font-size: 0.95rem;
  border-bottom: 1px solid #d6c6a5;
  box-sizing: border-box;
  transition: all 0.25s ease;
  white-space: normal; /* permite quebra correta */
}

/* Hover elegante */
#menu a:hover {
  background: #e7dcc3;
  padding-left: 24px;
}

/* Scroll bonito (opcional) */
#menu::-webkit-scrollbar {
  width: 6px;
}

#menu::-webkit-scrollbar-thumb {
  background: #cfaF45;
  border-radius: 10px;
}


/* =========================
   CONTEÚDO DO CAPÍTULO
========================= */
.capitulo {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background: #fdf6e3;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.capitulo h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #3b2f1e;
}

.capitulo p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
  text-align: justify;
}

/* =========================
   BRASÃO
========================= */
.brasao {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 160px;
}

/* =========================
   CARROSSEL
========================= */
.carrossel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  gap: 10px;
}

.carrossel button {
  background: #6b4f2c;
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
}

.slide {
  text-align: center;
  max-width: 600px;
}

.slide img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.slide span {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #4a3a26;
  font-style: italic;
}

/* =========================
   BOTÃO PRÓXIMO
========================= */
.proximo {
  display: block;
  margin: 30px auto 0;
  padding: 14px 36px;
  background: linear-gradient(to right, #4f6b3c, #7b9c5a);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
}

.proximo:hover {
  background: linear-gradient(to right, #7b9c5a, #a8c97b);
}

/* =========================
   MAPAS
========================= */
.mapa {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.mapa iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.mapa-img {
  width: 100%;
  margin: 20px 0;
  border-radius: 12px;
}

/* =========================
   TERRITÓRIOS DA MEMÓRIA
========================= */

.lugares-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 40px 0 50px;
}

/* Botões viram cards */
.lugares-lista button {
  background: linear-gradient(135deg, #1b2f3a, #0f1f28);
  color: #f1f1f1;
  border: none;
  padding: 20px 18px;
  font-size: 1rem;
  font-family: "Georgia", serif;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  position: relative;
}

/* Efeito de profundidade */
.lugares-lista button::before {
  content: "📍";
  display: block;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* Hover */
.lugares-lista button:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #25485a, #14313f);
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* Botão ativo (quando selecionado via JS, se quiser depois) */
.lugares-lista button.ativo {
  background: linear-gradient(135deg, #6b4e1e, #8c6a2f);
  color: #fff;
}


/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
  .capitulo {
    padding: 20px;
    margin: 20px;
  }

  .capitulo h1 {
    font-size: 1.8rem;
  }

  .hamburger {
    font-size: 24px;
  }

  .brasao {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .capitulo h1 {
    font-size: 1.5rem;
  }

  .capitulo p {
    font-size: 0.95rem;
  }

  .popup-content img {
    max-width: 300px;
  }
}

.capitulo {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  font-family: "Georgia", serif;
  line-height: 1.8;
  color: #222;
}

.capitulo h1 {
  text-align: center;
  margin-bottom: 40px;
}

.capitulo p {
  text-align: justify;
  margin-bottom: 24px;
}

/* BLOCO DA IMAGEM */
.imagem-texto {
  text-align: center;
  margin: 40px 0;
}

.imagem-texto img {
  max-width: 100%;
  width: 420px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* LEGENDA */
.imagem-texto span {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

.link-musicas {
  text-align: center;
  margin: 50px 0 30px 0;
}

.btn-musicas {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, #CFAF45, #9e7c1f);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 40px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 18px rgba(0,0,0,0.25);
}

.btn-musicas:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

html {
  scroll-behavior: smooth;
}

.contato-botoes {
  margin-top: 30px;
  display: flex;
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-contato {
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  transition: 0.3s ease;
  display: inline-block;
}

/* WhatsApp */
.whatsapp {
  background: #25D366;
}

.whatsapp:hover {
  background: #1ebe5b;
  transform: scale(1.05);
}

/* Email */
.email {
  background: #1D272F;
}

.email:hover {
  background: #000000;
  transform: scale(1.05);
}

/* Animação de pulsar */
@keyframes pulsar {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }
}

.btn-contato {
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  transition: 0.3s ease;
  display: inline-block;

  /* 🔥 Animação aplicada */
  animation: pulsar 2s infinite;
}

/* ===== Container da linha do tempo ===== */

#linha-do-tempo {
  width: 80%;
  margin: 0 auto;
  padding: 50px 0;
  font-family: Arial, sans-serif;
}

#linha-do-tempo h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  color: #ffe100;
}

/* Container da linha do tempo */
.timeline-container {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 80vh; /* altura visível */
}

/* Linha central vertical */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #CFAF45;
}

/* Item da timeline */


.timeline-item {
  position: relative;
  width: 45%;
  padding: 20px;
  margin: 50px 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  left: 55%;
  flex-direction: row-reverse;
}

/* Data */
.timeline-date {
  position: absolute;
  top: 0;
  width: 100px;
  font-weight: bold;
  color: #ffe600;
}

/* Conteúdo */
.timeline-content {
  background: #E1E1E1;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
}

.timeline-content h3 {
  margin-top: 0;
  color: #0026ff;
}

.timeline-content p {
  margin: 5px 0 0 0;
  font-size: 0.9em;
}

/* Imagem */
.timeline-image {
  margin-left: 15px;
}

.timeline-image img {
  max-width: 150px;
  border-radius: 8px;
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .timeline-item {
    width: 90%;
    left: 5% !important;
    flex-direction: column !important;
  }

  .timeline-image {
    margin-left: 0;
    margin-top: 15px;
  }
}

/* ================= BOTÃO ACESSAR ÁRVORE ================= */

.acesso-arvore{
    text-align:center;
    margin:20px 0 35px 0;
}

.acesso-arvore a{
    display:inline-block;
    background: linear-gradient(135deg,#CFAF45,#f4d97a);
    color:#000;
    font-weight:600;
    padding:12px 20px;
    border-radius:30px;
    text-decoration:none;
    font-size:clamp(14px,3.5vw,18px);
    transition:all 0.3s ease;
    box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

.acesso-arvore a:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 18px rgba(0,0,0,0.4);
}

.acesso-arvore a:active{
    transform:scale(0.96);
}

/* ================= BOTÃO FLUTUANTE DO GRUPO ================= */

.btn-grupo-email{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg,#1B3A5B,#CFAF45);
    color: #fff;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
    z-index: 9999;
    font-size: 14px;
}

.btn-grupo-email:hover{
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Responsivo */
@media (max-width:768px){
    .btn-grupo-email{
        padding:12px 16px;
        font-size:13px;
        bottom:15px;
        right:15px;
    }
}