/* ==========================================================================
   01. VARIÁVEIS (DESIGN SYSTEM)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');

:root {
  /* Paleta de Cores Principais */
  --cor-verde: #084222;
  --cor-vermelho: #8f2317;
  --cor-amarelo: #e99931;
  --cor-azul: #072530;
  
  /* Cores Neutras e Texto */
  --cor-branco: #ffffff;
  --cor-preto: #000000;
  --cor-texto: #000000;
  --cor-texto-claro: #ffffff;
  --cor-texto-muted: rgba(255, 255, 255, 0.7);
  --cor-fundo-escuro: #111111;

  /* Cores de Destaque e Links */
  --cor-destaque: #ffd9a8;
  --cor-link: #6ec1ff;
  --cor-link-hover: #9fd7ff;
  --cor-link-alt: #00BFFF;

  /* Tipografia */
  --font-principal: 'Inter', sans-serif;
  --font-titulos: 'Rye', serif;

  /* Sombras e Efeitos */
  --sombra-texto: 0px 4px 8px rgba(0, 0, 0, 0.4);
  --sombra-card: 0 10px 25px rgba(0, 0, 0, 0.15);
  --sombra-forte: 0 25px 50px rgba(0, 0, 0, 0.35);
  --sombra-slide: 0 30px 60px rgba(0, 0, 0, 0.45);
  
  /* Transições */
  --transition-speed: 0.3s;
}

/* ==========================================================================
   02. RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-principal);
  font-size: 14px;
  color: var(--cor-texto);
  background: var(--cor-branco);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   03. LAYOUT GLOBAL E SEÇÕES (DRY)
   ========================================================================== */
/* Agrupamento de Paddings para todas as seções (Evita repetição e !important) */
.section-amarelo,
.section-verde,
.section-vermelho,
.section-azul {
  padding: 80px 20px 200px;
}

.section-amarelo { 
  background-color: var(--cor-amarelo); 
  color: var(--cor-texto); 
}

.section-verde { 
  background-color: var(--cor-verde); 
  color: var(--cor-texto-claro); 
}

.section-vermelho { 
  background-color: var(--cor-vermelho); 
  color: var(--cor-texto-claro); 
}

.section-azul { 
  background-color: var(--cor-azul); 
  color: var(--cor-texto-claro); 
  text-align: center; 
}

.conteudo-limitado {
  max-width: 1100px;
  margin: 0 auto;
}

/* ==========================================================================
   04. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: #000;
}

/* VÍDEO */
.hero video,
.hero-img {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 101%;
  height: 101%;

  min-width: 100%;
  min-height: 100%;

  object-fit: cover;
  object-position: center center;

  transform: translate(-50%, -50%);

  z-index: 1;

  display: block;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;

  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: flex-end;

  padding: 0 20px 60px;

  /*background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.1)
  );*/
}

/* CONTEÚDO HERO */
.conteudo-hero,
.conteudo-hero-pandeiros {
  position: relative;
  z-index: 3;
}

/* TÍTULOS */
.conteudo-hero h1,
.conteudo-hero-pandeiros h1 {
  font-family: var(--font-titulos);
  font-size: 72px;
  font-weight: 400;
  color: var(--cor-branco);

  text-transform: uppercase;
  text-align: center;

  line-height: 1.1;
  letter-spacing: 1px;

  text-shadow: var(--sombra-texto);
}

.conteudo-hero h1 {
  margin-bottom: 50px;
}

.conteudo-hero-pandeiros h1 {
  margin-bottom: 40px;
}

/* CONTROLES DE VÍDEO */
.video-controls {
  position: absolute;

  bottom: 100px;
  left: 14px;

  z-index: 20;

  display: flex;
  align-items: center;
  gap: 10px;

  background: rgba(0, 0, 0, 0.45);

  padding: 5px 10px;

  border-radius: 20px;

  backdrop-filter: blur(5px);
}

.video-btn {
  background: none;
  border: none;

  cursor: pointer;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.video-btn img {
  width: 25px;
  height: 25px;

  filter: invert(1);

  display: block;

  transform: translateY(2px);
}

/* SLIDER DE VOLUME */
#volume-slider {
  -webkit-appearance: none;
  width: 80px;
  background: transparent;
}

#volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;

  background: rgba(255, 255, 255, 0.5);

  border-radius: 2px;

  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;

  height: 12px;
  width: 12px;

  border-radius: 50%;

  background: var(--cor-branco);

  cursor: pointer;

  margin-top: -4px;
}

/* COPYRIGHT */
.copyright-tag,
.copyright-tag---hero,
.copyright-tag-gruta,
.hero-credit {
  position: absolute;

  z-index: 6;

  color: var(--cor-texto-muted);

  font-size: 11px;
  font-weight: 500;

  letter-spacing: 1px;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);

  pointer-events: none;
}

.copyright-tag {
  bottom: 15px;
  right: 15px;
}

.copyright-tag---hero {
  bottom: 85px;
  right: 15px;
}

.copyright-tag-gruta {
  bottom: 200px;
  right: 20px;
}

.hero-credit {
  bottom: 48px;
  right: 14px;

  z-index: 3;
}

/* ==========================================================================
   05. COMPONENTES DE CONTEÚDO (SOBRE, MAPA, INFO EXTRA)
   ========================================================================== */
.sobre-local-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.texto-sobre {
  flex: 1.5;
  max-width: 640px;
}

.titulo-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.titulo-info img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  /* Cor complexa mantida do original */
  filter: brightness(0) saturate(100%) invert(88%) sepia(21%) saturate(457%) hue-rotate(338deg) brightness(101%) contrast(102%);
}

.titulo-info h3 {
  font-size: 30px;
  font-weight: 700;
}

.texto-sobre p {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.2px;
  text-align: justify;
}

.texto-sobre strong,
.info-extra strong {
  color: var(--cor-destaque);
  font-weight: 700;
}

.titulo-passeio {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;    /* Garante um respiro confortável após o texto anterior */
  margin-bottom: 20px; /* Alinhamento sutil antes da lista de contatos */
}

.titulo-passeio h3 {
  font-size: 24px;     /* Um pouco menor que o título principal (30px) por ser um subtítulo */
  font-weight: 700;
  color: var(--cor-destaque); /* Mantém o padrão de destaque, se desejar */
}

.texto-passeio p {
  margin-bottom: 12px; /* Espaçamento menor entre as linhas de contato */
  font-size: 18px;     /* Mesma legibilidade do bloco superior */
  line-height: 1.6;
  text-align: left;    /* Contatos e nomes ficam melhores alinhados à esquerda do que justificados */
}

.info-extra {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.info-extra p {
  font-size: 17px;
  margin-bottom: 12px;
  text-align: left;
}

.text-link {
  color: var(--cor-link-alt);
  font-weight: bold;
}

.info-extra a {
  color: var(--cor-link);
  font-weight: 700;
  text-decoration: underline;
}

.info-extra a:hover {
  color: var(--cor-link-hover);
}

/* Coluna da Direita e Mapa */
.lado-direito-local {
  flex: 1;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mapa-info-coluna {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}

.mapa-box {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-card);
  background: var(--cor-branco);
}

.mapa-box iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ==========================================================================
   06. CARROSSEL 3D
   ========================================================================== */
.carrossel-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.carrossel-container h2,
.video-container h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  color: var(--cor-texto-claro);
}

.carrossel-3d {
  position: relative;
  height: 500px;
  perspective: 1200px;
}

.slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 100%;
  transform: translateX(-50%) scale(0.6);
  transition: all 0.65s cubic-bezier(.22, .61, .36, 1);
  opacity: 0;
  z-index: 0;
}

.slide-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cor-fundo-escuro);
  box-shadow: var(--sombra-slide);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Posições do Slide */
.slide.center {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
}

.slide.left {
  transform: translateX(-120%) scale(0.8);
  opacity: 0.6;
  z-index: 2;
}

.slide.right {
  transform: translateX(20%) scale(0.8);
  opacity: 0.6;
  z-index: 2;
}

.slide.hidden {
  opacity: 0;
  z-index: 1;
}

/* Controles do Slider */
.nav {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: var(--cor-preto);
  color: var(--cor-branco);
  border: none;
  font-size: 22px;
  padding: 12px 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-speed);
  z-index: 10;
}

.prev { left: -60px; }
.next { right: -60px; }

.nav:hover {
  transform: translateY(-50%) scale(1.08);
}

.indicadores {
  margin-top: 25px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition-speed);
  cursor: pointer;
}

.dot.active {
  background: var(--cor-branco);
  transform: scale(1.4);
}

/* ==========================================================================
   07. VÍDEO EMBED (YOUTUBE)
   ========================================================================== */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* Mantém proporção 16:9 nativamente */
  height: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sombra-forte);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   08. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1100px) {
  .prev { left: 10px; }
  .next { right: 10px; }
}

@media (max-width: 991px) {
  .sobre-local-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .texto-sobre,
  .mapa-info-coluna,
  .lado-direito-local {
    max-width: 100%;
    width: 100%;
    min-width: auto;
  }

  .carrossel-3d {
    height: 360px;
  }

  .slide {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .section-amarelo,
  .section-verde,
  .section-vermelho,
  .section-azul {
    padding: 60px 15px 120px; /* Preenchimentos ajustados para mobile */
  }

  .conteudo-hero h1,
  .conteudo-hero-pandeiros h1 {
    font-size: 46px;
  }

  .texto-sobre p,
  .info-extra p {
    font-size: 16px;
  }

  .carrossel-container h2,
  .video-container h2 {
    font-size: 26px;
  }

  .carrossel-3d {
    height: 280px;
  }

  .slide {
    width: 88%;
  }

  .slide.left {
    transform: translateX(-95%) scale(0.78);
    opacity: 0.35;
  }

  .slide.right {
    transform: translateX(-5%) scale(0.78);
    opacity: 0.35;
  }

  .nav {
    font-size: 18px;
    padding: 10px 16px;
  }

  .copyright-tag,
  .copyright-tag---hero,
  .copyright-tag-gruta,
  .hero-credit {
    font-size: 12px;
    padding: 6px 8px;
  }

  /* Ajuste unificado e sem !important para posição das tags em telas menores */
  .copyright-tag { bottom: 10px; }
  .copyright-tag---hero { bottom: 50px; }
  .copyright-tag-gruta { bottom: 100px; }
  .hero-credit { right: 10px; bottom: 40px; }

  /* Ajuste de Posições Específicas de Imagens de Fundo */
  .hero-img-igreja { object-position: 60% center; }
  .hero-img-brejo { object-position: 40% center; }
  .hero-img-praia { object-position: 62% center; }
  .hero-img-tiradentes { object-position: 60% center; }
  .hero-img-rio { object-position: 1% center; }

  /* Ajustes do Controle de Vídeo Mobile */
  .video-controls {
    bottom: 57px; 
    left: 10px;
  }
  
  #volume-slider {
    display: none;
  }
}

@media (max-width: 480px) {
  .conteudo-hero h1,
  .conteudo-hero-pandeiros h1 {
    font-size: 34px;
  }

  .titulo-info h3 {
    font-size: 24px;
  }

  .mapa-box {
    height: 260px;
  }

  .carrossel-3d {
    height: 220px;
  }

  .nav {
    top: 50%;
  }

  .copyright-tag,
  .copyright-tag---hero,
  .copyright-tag-gruta,
  .hero-credit {
    font-size: 11px;
    padding: 5px 7px 30px;
  }
}

/* * {
    outline: 1px solid red;
} */


/* ==========================================================================
   Teste: arrumando a página peruacu.html
   Removendo a necessidade de usar o arquivo de descarte peruacu.css
   ========================================================================== */

/* ==========================================================================
   01. TÍTULOS E CORES ESPECÍFICAS
   ========================================================================== */
.titulo-escuro h3 {
  color: #111;
}

.titulo-escuro img {
  filter: brightness(0) saturate(100%) invert(10%) sepia(8%) saturate(1435%) hue-rotate(355deg) brightness(94%) contrast(90%);
}

.atrativos-peruacu {
  color: #111;
}

/* ==========================================================================
   02. CARDS DE ATRATIVOS
   ========================================================================== */
.cards-atrativos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-atrativo {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card-atrativo:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.3);
}

.card-atrativo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-conteudo {
  padding: 22px;
}

.card-conteudo h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--cor-verde);
}

.card-conteudo p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}

.btn-ler-mais {
  border: none;
  background: var(--cor-vermelho);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-ler-mais:hover {
  background: var(--cor-verde);
  transform: scale(1.04);
}

/* ==========================================================================
   03. MODAL ESTILO POST
   ========================================================================== */
.modal-body-lock {
  overflow: hidden;
}

.modal-atrativo {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-atrativo.modal-aberto {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-post {
  position: relative;
  z-index: 2;
  width: min(1050px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: abrirPost 0.3s ease;
}

@keyframes abrirPost {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-fechar {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 30px;
  line-height: 35px;
  cursor: pointer;
  z-index: 5;
}

.modal-imagem-area {
  background: #111;
  min-height: 560px;
  position: relative;
}

.modal-imagem-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-conteudo-area {
  padding: 38px;
  overflow-y: auto;
}

.modal-conteudo-area h3 {
  font-size: 34px;
  color: var(--cor-verde);
  margin-bottom: 18px;
}

.modal-conteudo-area > p {
  font-size: 17px;
  line-height: 1.75;
  text-align: justify;
  color: #222;
  margin-bottom: 25px;
}

.modal-info-lista {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.modal-info-lista p {
  font-size: 16px;
  margin-bottom: 12px;
  color: #222;
}

.modal-info-lista strong {
  color: var(--cor-vermelho);
}

.modal-copyright {
  right: 14px;
  bottom: 14px;
  z-index: 6;
}

/* ==========================================================================
   04. RESPONSIVIDADE (ESPECÍFICA)
   ========================================================================== */
@media (max-width: 1000px) {
  .cards-atrativos {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-post {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-imagem-area {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .cards-atrativos {
    grid-template-columns: 1fr;
  }

  .card-atrativo img {
    height: 240px;
  }

  .modal-conteudo-area {
    padding: 28px 22px;
  }

  .modal-conteudo-area h3 {
    font-size: 28px;
  }

  .modal-conteudo-area > p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .card-atrativo img {
    height: 210px;
  }

  .modal-atrativo {
    padding: 10px;
  }

  .modal-post {
    border-radius: 18px;
  }

  .modal-imagem-area {
    min-height: 260px;
  }

  .modal-conteudo-area h3 {
    font-size: 24px;
  }
}