/* ============================================ */
/* 1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS         */
/* ============================================ */
:root {
    --cor-azul-meia-noite: #0D1B2A;
    --cor-luz-adriatica: #FAFFFF;
    --cor-laranja-amanhecer: #f0c117;
    --cor-dourado-crepusculo: #f0c117;
    --cor-cinza-suave: #f4f7f9;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif; /* Fonte para o corpo do texto */
    color: var(--cor-azul-meia-noite);
    background-color: var(--cor-luz-adriatica);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cor-laranja-amanhecer);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito Sans', sans-serif; /* Fonte para títulos */
    font-weight: 700; /* Peso padrão para títulos (Bold) */
    color: var(--cor-azul-meia-noite);
}

p, span, li {
    font-weight: 400; /* Peso padrão para texto corrido (Normal) */
    line-height: 1.6;
}

.cta-button {
    background-color: var(--cor-azul-meia-noite);
    color: white !important;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #f08b17;
}





/* ============================================ */
/* 4. ESTILOS DA HOMEPAGE                       */
/* ============================================ */
  .arrow-prev,
.arrow-next {
  display: none;
}  
/* --- Títulos de Secção --- */
.section-header {
    margin-bottom: 40px;
    text-align: left;
}
.section-title {
    font-size: 1.8rem;
    margin: 0;
    text-align: left;
    font-weight: 800; /* Títulos de secção mais grossos */
}
.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin: 5px 0 0 0;
    color: #555;
}

/* --- Secção de Pesquisa --- */
.search-hero-section { padding: 140px 0 60px 0; text-align: center; }
.search-hero-section h1 { font-size: 3.2rem; margin-bottom: 30px; font-weight: 800;}
.search-tabs { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; list-style: none; padding: 0; }
.search-tabs a {
  color: var(--cor-azul-meia-noite); font-weight: 600; padding: 10px 5px;
  display: flex; align-items: center; gap: 8px; border-bottom: 3px solid transparent;
}
.search-tabs a.active, .search-tabs a:hover { border-bottom-color: var(--cor-azul-meia-noite); }
.search-bar-container {
  max-width: 700px; margin: 0 auto; position: relative; display: flex;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1); border-radius: 50px;
}
.search-bar-container .search-icon { position: absolute; left: 25px; top: 50%; transform: translateY(-50%); color: #888; }
.search-bar-container input {
  width: 100%; padding: 20px 25px 20px 55px; border: none;
  border-radius: 50px 0 0 50px; font-size: 1rem; background-color: white;
}
.search-bar-container input:focus { outline: 2px solid var(--cor-dourado-crepusculo); outline-offset: -2px; }
.search-bar-container .cta-button { border-radius: 0 50px 50px 0; padding: 0 40px; font-size: 1rem; flex-shrink: 0; }

/* Adiciona position:relative para ancorar a lista de resultados */
.search-bar-container {
  position: relative;
}

/* Estilos para a nova lista de resultados */
.search-results-list {
  display: none; /* Escondido por padrão */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
  margin-top: 5px;
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  text-align: left;
}

.search-results-list .result-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin: 10px 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.search-results-list .result-item {
  display: block;
  padding: 10px 15px;
  color: var(--cor-azul-meia-noite);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

.search-results-list .result-item:hover {
  background-color: var(--cor-cinza-suave);
}

.search-results-list .no-results {
  color: #888;
  text-align: center;
}

/* --- Secção CTA Dourada --- */
.cta-hero-section { padding: 0 0 80px 0; }
.cta-hero-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 40px;
  background-color: var(--cor-dourado-crepusculo);
  border-radius: 20px;
  padding: 30px;
  color: var(--cor-azul-meia-noite);
}
.cta-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 40px;
  border-right: 3px solid rgba(13, 27, 42, 0.8); 
}
.cta-image-slideshow {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}
.cta-image-slideshow .slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s ease-in-out;
  border-radius: 12px;
}
.cta-image-slideshow .slide.active { opacity: 1; }
.cta-text-content h1 {
  font-size: 3.5rem;
  line-height: 1;
  margin: 0 0 15px 0;
  font-weight: 800;
}
.cta-text-content p { font-size: 1rem; line-height: 1.6; margin: 0 0 25px 0; }

/* --- Espaçamento Vertical Entre Secções --- */
.page-section, .interests-section, .featured-section, .spotlight-section, .articles-section, .newsletter-section {
  margin-top: 10px;
}

/* --- Grids de Conteúdo --- */
.grid-4-col, .grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-3x2-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-vertical-cards {  display: grid;  grid-template-columns: repeat(4, 1fr); gap: 40px; }


/* --- Secção Spotlight --- */
.spotlight-section { padding: 0; }
.spotlight-container {
  height: 400px; width: 100%; position: relative; display: flex;
  align-items: center; justify-content: center; text-align: center; color: white;
  border-radius: 20px; overflow: hidden;
}
.spotlight-container::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(13, 27, 42, 0.5); }
.spotlight-image-fundo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.spotlight-content { z-index: 2; }
.spotlight-content h2 { color: white; font-size: 3rem; margin-bottom: 20px; font-weight: 800; }

/* --- Secção Newsletter --- */
.newsletter-section {
  padding: 80px 0;
  background-color: var(--cor-cinza-suave); 
  color: var(--cor-azul-meia-noite);
}
.newsletter-content { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter-content i { font-size: 3rem; color: var(--cor-dourado-crepusculo); margin-bottom: 20px; }
.newsletter-content h2 { color: var(--cor-azul-meia-noite); font-size: 2.5rem; margin-bottom: 15px; font-weight: 800;}
.newsletter-content p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1px; }
.newsletter-form {
  display: flex;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  overflow: hidden;
}
.newsletter-form input {
  width: 100%; border: none; padding: 20px 25px; font-size: 1rem;
  color: var(--cor-azul-meia-noite);
}
.newsletter-form input::placeholder { color: #888; }
.newsletter-form input:focus { outline: none; }
.newsletter-form .cta-button {
  background-color: var(--cor-dourado-crepusculo);
  color: var(--cor-azul-meia-noite) !important;
  border-radius: 0;
  flex-shrink: 0;
}

/* ============================================ */
/* 5. ESTILOS DOS COMPONENTES DE CARD (VERSÃO FINAL REFINADA) */
/* ============================================ */

/* --- Base para Todos os Cards --- */
.card-base {
  background-color: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 12px 12px !important;
}

/* --- Regra Global para TODAS as Imagens de Card --- */
.card-produto-quadrado .card-imagem,
.card-produto-horizontal .card-imagem,
.card-produto-vertical .card-imagem,
.card-categoria .card-imagem-fundo,
.card-materia .card-materia-imagem {
  border-radius: 12px 12px 12px 12px !important; overflow: hidden;
}

/* Overlays também devem ter cantos arredondados */
.card-categoria::after,
.card-produto-vertical .card-imagem::after,
.card-materia .card-materia-imagem::after {
  border-radius: 12px 12px 12px 12px !important; overflow: hidden;
}

/* --- Imagem Placeholder --- */
.card-imagem-placeholder {
  aspect-ratio: 1 / 1;
  background-color: var(--cor-cinza-suave);
  border-radius: 12px; overflow: hidden;
}

/* --- Conteúdo Abaixo das Imagens --- */
.card-produto-quadrado .card-conteudo,
.card-produto-horizontal .card-conteudo,
.card-materia .card-materia-conteudo {
  padding: 15px 0;
  background-color: transparent;
}

/* --- Card de Produto: Quadrado --- */
.card-produto-quadrado .card-imagem {
  width: 100%; aspect-ratio: 1 / 1;
  background-size: cover; background-position: center; overflow: hidden;
}
.card-produto-quadrado .card-titulo { font-size: 1.1rem; margin: 0 0 5px 0; font-weight: 600; }
.card-produto-quadrado .card-descricao { font-size: 0.9rem; margin: 0; font-weight: 400;}

/* --- Card de Produto: Horizontal (Novo Design) --- */
.card-produto-horizontal .card-imagem {
  width: 100%; aspect-ratio: 16 / 9;
  background-size: cover; background-position: center; overflow: hidden;
}
.card-produto-horizontal .card-titulo { font-size: 1.1rem; margin: 0 0 5px 0; font-weight: 600; }
.card-produto-horizontal .card-descricao { font-size: 0.9rem; margin: 0; font-weight: 400;}



/* --- Card de Categoria --- */
.card-categoria {
  aspect-ratio: 1 / 1; position: relative; display: flex;
  align-items: center; justify-content: center; text-align: center;
  padding: 15px;
}
.card-categoria .card-imagem-fundo {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; z-index: 1; overflow: hidden;
}
.card-categoria::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.7) 0%, transparent 70%);
  z-index: 2;
}
.card-categoria .card-titulo-interno { font-size: 1.8rem; z-index: 3; color: white; font-weight: 600; overflow-wrap: break-word; }

/* --- Card de Matéria (Journal) --- */
.card-materia .card-materia-imagem {
  height: 200px;
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end;
  padding: 15px;
  overflow: hidden;
}
.card-materia .card-materia-imagem::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.8) 0%, transparent 80%);
}
.card-materia .card-titulo-interno { font-size: 1.1rem; z-index: 2; margin: 0; color: white; font-weight: 600;}
.card-materia .card-materia-conteudo {
  padding: 15px 0;
  background-color: transparent;
}



/* ============================================ */
/* 6. ESTILOS DE PÁGINAS ESPECÍFICAS            */
/* ============================================ */

.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.guide-card {
    display: flex; align-items: center; background-color: white; padding: 25px; border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.guide-icon { font-size: 2rem; color: var(--cor-laranja-amanhecer); margin-right: 20px; flex-shrink: 0; }
.guide-text h4 { margin: 0 0 5px 0; font-size: 1.2rem; }
.guide-text p { margin: 0; line-height: 1.5; font-weight: 400; }

#map {
    height: 500px; width: 100%; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.featured-post-section {
    padding-top: 70px; background-size: cover; background-position: center;
    position: relative; color: white;
}
.featured-post-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(13, 27, 42, 0.9) 0%, rgba(13, 27, 42, 0.1) 100%);
}
.featured-post-content { position: relative; z-index: 2; padding: 80px 0; max-width: 50%; }
.featured-post-content h1 { color: white; font-size: 3rem; font-weight: 800;}
.modern-post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.post-card {
    display: block; border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); background: white;
}
.post-card--large { grid-column: span 2; grid-row: span 2; }
.post-card img { width: 100%; height: 250px; object-fit: cover; }
.post-card--large img { height: 530px; }
.post-card-content { padding: 20px; }
.post-card-content h5 { color: var(--cor-laranja-amanhecer); margin: 0 0 10px 0; font-weight: 600;}
.post-card-content h3 { margin: 0; font-size: 1.3rem; line-height: 1.4; font-weight: 600;}


/* ============================================ */
/* 7. RESPONSIVIDADE (MOBILE)                   */
/* ============================================ */
@media (max-width: 768px) {
    /* --- Navegação Mobile --- */
/* Por padrão (desktop), as setas estão escondidas */

.search-tabs {
        /* Distribui os links por toda a largura, usando o espaço disponível */
        justify-content: space-between; 
        
        /* Reduz o espaço mínimo entre os links */
        gap: 8px; 
    }

    .search-tabs a {
        /* Diminui o tamanho da fonte do texto e do ícone */
         font-size: clamp(0.8rem, 0.5rem + 0.4vw, 1rem);
        
        /* Reduz o espaçamento interno nas laterais de cada link */
        padding-left: 2px;
        padding-right: 2px;
    }

    /* 2. Transforma o divisor vertical em horizontal na secção CTA */
    .cta-text-content {
        border-right: none;      /* Remove a borda vertical da direita */
        padding-right: 0;        /* Remove o espaçamento que a borda tinha */
        border-bottom: 1px solid rgba(13, 27, 42, 0.8); /* Adiciona uma borda horizontal em baixo */
        padding-bottom: 30px;    /* Adiciona um espaçamento para a nova borda */
    }

    

    /* --- Ajustes Gerais Mobile --- */
    .cta-hero-container { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
    .cta-image-slideshow { height: 300px; }
    .cta-text-content h2, .cta-text-content h1 { font-size: 2.2rem; }
    .section-header { text-align: center; }
    .section-title { font-size: 1.8rem; text-align: center; }
    .search-hero-section h1 { font-size: 2.5rem; }


    /* --- EFEITO CARROSSEL HORIZONTAL PARA GRIDS (CORRIGIDO) --- */
    .grid-4-col,
.grid-3-col,
.grid-3x2-col,
.grid-vertical-cards,
.modern-post-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;

    /* --- CORREÇÃO APLICADA AQUI --- */
    margin: 0 -10px; /* Margem negativa para "sangrar" para fora do .container */
    padding: 10px 20px; /* Adiciona padding de volta para alinhar o primeiro e o último item */
}

    /* Regra para os cards dentro do carrossel */
    .grid-4-col > *,
    .grid-3-col > *,
    .grid-3x2-col > *,
    .grid-vertical-cards > *,
     .modern-post-grid >  * {
        width: 80%; /* Cada card ocupa 80% da largura da viewport */
        flex-shrink: 0; /* Impede que os cards encolham */
        scroll-snap-align: start; /* Alinha o início do card ao "parar" */
    }

    /* Ajuste específico para o card vertical, se precisar de menos largura */
    .grid-vertical-cards > * {
        width: 80%; padding: 15px;
    }
    
    /* Esconde a barra de rolagem horizontal (Opcional, mas recomendado para o visual) */
    .grid-4-col::-webkit-scrollbar,
    .grid-3-col::-webkit-scrollbar,
    .grid-3x2-col::-webkit-scrollbar,
    .grid-vertical-cards::-webkit-scrollbar {
        display: none;
    }
    .grid-4-col, .grid-3-col, .grid-3x2-col, .grid-vertical-cards {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .horizontal-carousel-container {
      position: relative; /* Essencial para posicionar a seta */
    }
    /* --- ESTILOS PARA AS SETAS DO CARROSSEL --- */



/* Dentro do @media, nós as tornamos visíveis e as estilizamos */


    /* ... suas outras regras mobile ... */

    .horizontal-carousel-container {
      position: relative;
    }
    
   /* Adicione ou substitua as regras das setas por estas */
.arrow-prev,
.arrow-next {
  display: flex; /* <-- Esta linha faz as setas aparecerem no mobile */
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: white;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, opacity 0.3s ease;
  opacity: 1;
}

.arrow-next {
  right: -10px; /* Posição à direita */
}

.arrow-prev {
  left: -10px; /* Posição à esquerda */
}

.arrow-prev.hidden,
.arrow-next.hidden {
  opacity: 0;
  pointer-events: none; /* Desativa o clique quando escondido */
}
}

/* --- ESTILOS PARA A PÁGINA DE CONTATO --- */

.contact-hero {
  padding: 140px 0 60px 0;
  text-align: center;
  background-color: var(--cor-azul-meia-noite); /* Um fundo mais suave para diferenciar */
}

.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--cor-luz-adriatica);
}

.contact-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem auto;
  opacity: 0.9;
  color: var(--cor-luz-adriatica);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-container {
    background-color: var(--cor-cinza-suave);
    padding: 30px;
    border-radius: 12px;
}

.form-header { text-align: center; margin-bottom: 30px; }
.form-header i { font-size: 2.5rem; color: var(--cor-laranja-amanhecer); margin-bottom: 15px; }
.form-header h2 { margin: 0 0 10px 0; font-weight: 700; }
.form-header p { margin: 0; color: #555; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    box-sizing: border-box;
}
.form-group textarea { resize: vertical; }
.form-container button[type="submit"] { width: 100%; padding: 15px; font-size: 1.1rem; }

.social-contact-section { text-align: center; margin-top: 60px; }
.social-links { display: flex; justify-content: center; gap: 20px; list-style: none; padding: 0; margin-top: 20px; }
.social-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: 1px solid #ddd;
  border-radius: 50px; font-weight: 600;
}
.social-links a:hover { background-color: var(--cor-cinza-suave); border-color: #ccc; }
.social-links i { font-size: 1.5rem; }

.vizijazora-section {
    padding: 60px 0;
    margin-top: 80px;
    background-color: var(--cor-cinza-suave);
    text-align: center;
}
.vizijazora-logo {
    max-width: 180px; /* Tamanho do logo */
    height: auto;
    margin-bottom: 1px !important; /* Espaçamento entre o logo e o texto */
}
.vizijazora-content { max-width: 700px; margin: 0 auto; }
.vizijazora-content h2 { font-size: 2rem; font-weight: 800; }
.vizijazora-content p { font-size: 1.1rem; margin: 20px 0 30px 0; }

/* --- ESTILOS PARA A PÁGINA DO JOURNAL --- */

/* Secção da Newsletter Discreta */
.journal-newsletter {
  padding: 60px 0;
  background-color: var(--cor-cinza-suave);
  text-align: center;
}
.journal-newsletter h2 { font-weight: 700; }
.journal-newsletter .newsletter-form { max-width: 500px; margin: 30px auto 0 auto; }

/* Barra de Filtros */
.journal-hero {
  /* Propriedades da imagem de fundo */
  background-size: cover;
  background-position: center;
  position: relative;
  
  /* NOVAS PROPRIEDADES PARA O SEU PEDIDO */
  max-width: 1200px;     /* Largura máxima, para criar as margens laterais */
  margin: 100px auto 60px auto; /* Centraliza e adiciona margem em cima e em baixo */
  border-radius: 20px;   /* Bordas arredondadas */
  overflow: hidden;      /* Garante que a imagem respeite as bordas */
  min-height: 450px;     /* Altura mínima para o deixar maior */

  /* Estilos para o conteúdo interno */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: white;
  text-align: center;
}

/* Overlay para garantir a legibilidade do texto */
.journal-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  z-index: 1;
}

/* Ajuste para o contentor do texto, que agora está dentro do .journal-hero */
.journal-hero .featured-post-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.journal-hero .featured-post-content h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: white;
}

.journal-hero .featured-post-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}


.journal-filters {
  padding: 40px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 60px;
}
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-bar button {
  background-color: transparent;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-bar button.active,
.filter-bar button:hover {
  background-color: var(--cor-azul-meia-noite);
  color: white;
  border-color: var(--cor-azul-meia-noite);
}

/* Secção "A Nossa História" */
.our-story-section {
  padding: 80px 0;
  background-color: var(--cor-azul-meia-noite);
  color: white;
  margin-top: 60px;
}
.our-story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 60px;
}
.our-story-image img {
  width: 100%;
  border-radius: 12px;
}
.our-story-content h2 { color: white; font-weight: 800; font-size: 2.5rem; }
.our-story-content p { color: var(--cor-cinza-suave); font-size: 1.1rem; }
.our-story-content .cta-button {
  background-color: var(--cor-dourado-crepusculo);
  color: var(--cor-azul-meia-noite) !important;
  margin-top: 20px;
}
/* ============================================ */
/* 9. ESTILOS DA PÁGINA DE ARTIGO (JOURNAL)     */
/* ============================================ */

.article-header {
  position: relative;
  height: 50vh;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}
.article-header-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.8) 0%, transparent 80%);
}
.article-header-content {
  position: relative;
  z-index: 2;
  text-align: left;
}
.article-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.1;
  max-width: 800px;
}
.article-meta {
  margin: 1rem 0 0 0;
  font-weight: 600;
  opacity: 0.9;
}

.article-content-container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.article-body {
  max-width: 720px; /* Largura ideal para leitura */
  margin: 0 auto;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2.2rem;
  }
  .article-content-container {
    padding-left: 30px;
    padding-right: 30px;
}

/* 2. Justifica o texto dos parágrafos dentro do corpo do artigo */
.article-body p {
    text-align: justify;
}
.journal-hero {
        margin-left: 20px;
        margin-right: 20px;
        /* Opcional: reduzir margem do topo para mobile */
        margin-top: 80px; 
    }

}

/* ============================================ */
/* 8. ESTILOS PÁGINA GUIAS ESSENCIAIS (ATUALIZADO PARA FADE IN) */
/* ============================================ */

/* ADICIONE ESTA NOVA REGRA AQUI */
.hero-title-section {
  padding-top: 100px; /* Adiciona 100px de espaço no topo da seção */
}

.hero-title-section .section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-title-section .section-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #555;
}

/* Ajuste no mobile */
@media (max-width: 768px) {
    /* ADICIONE ESTA NOVA REGRA TAMBÉM */
    .hero-title-section {
      padding-top: 80px; /* Um pouco menos de espaço no mobile */
    }

    .hero-title-section .section-title {
        font-size: 2.5rem;
    }
    .hero-title-section .section-subtitle {
        font-size: 1.1rem;
    }
}

/* --- Hero com Efeito Fade In --- */
.guias-hero-visual {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 350px;
  overflow: hidden;
  gap: 10px;
  padding-top: 70px ;
  
}


.hero-column {
  position: relative; /* Essencial para empilhar as imagens */
  overflow: hidden;
  border-radius: 12px;
}

/* O 'image-reel' não é mais usado, estilizamos as imagens diretamente */
.hero-column img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Começam invisíveis */
  animation-name: fadeInOut;
  animation-duration: 24s; /* Duração total (4s por imagem x 6 imagens) */
  animation-iteration-count: infinite;
}

/* Nova animação de Fade In e Out */
@keyframes fadeInOut {
  0% { opacity: 0; }
  8% { opacity: 1; }   /* Fade In */
  25% { opacity: 1; }  /* Fica visível */
  33% { opacity: 0; }  /* Fade Out */
  100% { opacity: 0; }
}

/* A mágica acontece aqui: aplicamos um delay diferente para cada imagem */
.hero-column img:nth-child(1) { animation-delay: 0s; }
.hero-column img:nth-child(2) { animation-delay: 4s; }
.hero-column img:nth-child(3) { animation-delay: 8s; }
.hero-column img:nth-child(4) { animation-delay: 12s; }
.hero-column img:nth-child(5) { animation-delay: 16s; }
.hero-column img:nth-child(6) { animation-delay: 20s; }
/* Adicione mais linhas se tiver mais de 6 imagens por coluna */

/* E aplicamos um delay diferente para cada coluna para não ficarem sincronizadas */
.guias-hero-visual .hero-column:nth-child(2) img { animation-delay: calc(4s * (var(--image-index, 1) - 1) + 1s); }
.guias-hero-visual .hero-column:nth-child(3) img { animation-delay: calc(4s * (var(--image-index, 1) - 1) + 2s); }
.guias-hero-visual .hero-column:nth-child(4) img { animation-delay: calc(4s * (var(--image-index, 1) - 1) + 3s); }
.guias-hero-visual .hero-column:nth-child(5) img { animation-delay: calc(4s * (var(--image-index, 1) - 1) + 0.5s); }
.guias-hero-visual .hero-column:nth-child(6) img { animation-delay: calc(4s * (var(--image-index, 1) - 1) + 2.5s); }

/* --- Estilos do Card de Roteiro (sem alteração) --- */
/* --- Estilos do Card de Roteiro --- */
.card-roteiro {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-decoration: none; /* Garante que o card não tenha o sublinhado de link */
  color: inherit; /* Garante que o texto do card não fique azul */
  transition: all 0.3s ease;
}
.card-roteiro:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.card-roteiro .card-imagem-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.card-roteiro .card-imagem {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.card-roteiro .card-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
}
.card-roteiro .badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cor-azul-meia-noite);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}
.card-roteiro .card-conteudo {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-roteiro .card-titulo {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}
.card-roteiro .card-resumo {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}
.card-roteiro .card-link {
  font-weight: 600;
  color: var(--cor-laranja-amanhecer);
  align-self: flex-start;
}
/* ... o resto do seu CSS para .card-roteiro continua igual ... */

/* Responsividade (sem alteração) */
@media (max-width: 768px) {
  .guias-hero-visual {
    grid-template-columns: repeat(3, 1fr);
    height: 300px;
  }
}

/* ============================================ */
/* 9. ESTILOS PÁGINA DE ROTEIRO ESPECÍFICO      */
/* ============================================ */

/* --- Hero da Página de Roteiro --- */
.roteiro-hero {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}
.roteiro-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 27, 42, 0.5); /* Overlay escuro */
  z-index: 1;
}
.roteiro-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.roteiro-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.roteiro-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 1rem 0;
}
.roteiro-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* --- Barra de Informações --- */
.info-bar-roteiro {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  background-color: var(--cor-cinza-suave);
}
.info-bar-roteiro .info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.info-bar-roteiro .info-icon {
  font-size: 2.5rem;
  color: var(--cor-laranja-amanhecer);
}
.info-bar-roteiro .info-text span {
  display: block;
  font-size: 0.9rem;
  color: #555;
}
.info-bar-roteiro .info-text strong {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Layout da Timeline do Itinerário --- */
.itinerario-container {
  position: relative;
  padding: 2rem 0;
}
.itinerario-timeline {
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #e0e6eb;
}
.dia-roteiro {
  position: relative;
  padding: 1.5rem 0 1.5rem 100px;
  margin-bottom: 2rem;
}
.dia-roteiro::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--cor-laranja-amanhecer);
  border: 4px solid var(--cor-luz-adriatica);
  z-index: 1;
}
.dia-roteiro h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.dia-roteiro-descricao {
  margin-bottom: 2rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .roteiro-hero-content h1 { font-size: 2.5rem; }
  .info-bar-roteiro { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .itinerario-timeline { left: 20px; }
  .dia-roteiro { padding-left: 50px; }
  .dia-roteiro::before { left: 6px; }
}

/* --- Finalizador da Timeline --- */
.dia-roteiro:last-child .dia-roteiro-descricao {
  /* Remove a margem inferior extra do último item para um acabamento limpo */
  margin-bottom: 10px; 
}

.dia-roteiro:last-child::before {
  /* Muda a cor do círculo do último dia para indicar o fim */
  background-color: var(--cor-azul-meia-noite); 
}




/* ============================================ */
/* 10. ESTILOS PÁGINA DE ATRAÇÃO (REFATORADO)   */
/* ============================================ */

.atracao-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.atracao-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0;
}
.atracao-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.atracao-actions .action-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem;
  border: 0px solid #ddd; border-radius: 8px; font-weight: 600;
  background-color: white; cursor: pointer; transition: all 0.2s ease;
}
.atracao-actions .action-btn:hover {
  background-color: rgba(255, 255, 255);
  border-color: #ffffff;
}
.atracao-breadcrumb a {
  font-weight: 600;
  color: var(--cor-azul-meia-noite);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  margin-top: 4.5rem ;
}

/* --- Galeria de Imagens Hero --- */
.hero-gallery {
  display: grid;
  /* 1. Definimos as proporções das colunas: a primeira terá 64% e a segunda 36% */
  grid-template-columns: 64% 1fr; 
  /* 2. Definimos as proporções das linhas: duas linhas de altura igual */
  grid-template-rows: 1fr 1fr;
  /* 3. Desenhamos o "mapa" do nosso layout */
  grid-template-areas:
    "main side-top"
    "main side-bottom";
  gap: 8px; /* Espaçamento pequeno entre as imagens */
  height: 450px; /* Altura total da galeria */
}

/* 4. Atribuímos cada classe à sua área no "mapa" */
.hero-gallery .main-image {
  grid-area: main; border-radius: 12px 0 0 12px;
}
.hero-gallery .side-image-top {
  grid-area: side-top; border-radius: 0 12px 0 0;
}
.hero-gallery .side-image-bottom {
  grid-area: side-bottom; border-radius: 0 0 12px 0;
}

/* 5. Estilos para garantir que as imagens preencham suas áreas */
.hero-gallery .main-image,
.hero-gallery .side-image-top,
.hero-gallery .side-image-bottom {
  
  overflow: hidden;
}
.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* A propriedade mais importante para preencher sem distorcer */
}


/* --- Corpo Principal (2 Colunas) --- */
.atracao-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* Estrutura de grid mais robusta */
  gap: 3rem;
  margin-top: 3rem;
}
.atracao-sidebar .info-card {
  position: sticky;
  top: 90px; /* Header height + 20px de margem */
  border: 0px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  background-color: var(--cor-cinza-suave);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ... (O resto das regras para abas, info-card, etc., continuam iguais e podem ser mantidas) ... */
.atracao-main-content .content-tabs { display: flex; gap: 2rem; border-bottom: 1px solid #ddd; margin-bottom: 2rem; }
.atracao-main-content .tab-btn { padding: 1rem 0.5rem; font-size: 1.1rem; font-weight: 600; border: none; background: transparent; cursor: pointer; border-bottom: 3px solid transparent; }
.atracao-main-content .tab-btn.active { color: var(--cor-azul-meia-noite); border-bottom-color: var(--cor-azul-meia-noite); }
.atracao-main-content .tab-panel { display: none; line-height: 1.7; }
.atracao-main-content .tab-panel.active { display: block; }
.info-card h3 { 
  font-size: 1.5rem; 
  margin-top: 0; 
  margin-bottom: 1.5rem; 
  border-bottom: 1px solid #eee; 
  padding-bottom: 1rem; 
  /* --- CORREÇÃO APLICADA AQUI --- */
  color: var(--cor-azul-meia-noite);
  line-height: 1.2;
}
.info-card .info-group h4 { 
  font-size: 1rem; 
  font-weight: 700; 
  margin: 0 0 0.5rem 0; 
  /* --- CORREÇÃO APLICADA AQUI --- */
  color: var(--cor-azul-meia-noite);
  line-height: 1.3; 
}
.info-card .info-group p, .info-card .info-group ul { margin: 0; padding: 0; list-style: none; color: #333; }


/* --- Responsividade --- */
@media (max-width: 768px) {
  .atracao-container { padding-top: 80px; } /* Ajuste de padding para mobile */
  .atracao-header { flex-direction: column; align-items: stretch; }
  .atracao-title { font-size: 2.2rem; }
   .hero-gallery {
    height: auto;           /* 1. Remove a altura fixa para permitir que encolha */
    aspect-ratio: 1.5 / 1; }
  .hero-gallery .side-images { display: none; }
  .atracao-body { grid-template-columns: 1fr; }
  .atracao-sidebar .info-card { position: static; }
}

/* ============================================ */
/* 11. ESTILOS DO MODAL DE BUSCA                */
/* ============================================ */
/* Adicione ao seu CSS */
/* Adicione ao seu CSS */
.search-result-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #999;
}

.search-result-placeholder i {
    font-size: 20px;
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 12px;
}

.search-result-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #999;
}

.search-result-placeholder i {
    font-size: 20px;
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 12px;
}

.search-result-content {
    flex: 1;
}

.search-result-content span {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-content small {
    color: #666;
    font-size: 0.9em;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

 /* ============================================ */
/* 12. ESTILOS PÁGINA DE DESTINO (NOVO)       */
/* ============================================ */

.destino-topo {
  /* Adiciona um espaçamento no topo para compensar o header fixo de 70px */
  padding-top: 90px; 
}

/* Ajustes no mobile para o topo da página de destino */
@media (max-width: 768px) {
  .destino-topo {
    padding-top: 80px; /* Um pouco menos de espaço no mobile */
  }
  
}

/* ============================================ */
/* 13. ESTILOS PARA O CARD DE RESULTADO DE BUSCA  */
/* ============================================ */

.card-resultado-busca {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease;
}

.card-resultado-busca:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card-resultado-busca .imagem-container {
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.card-resultado-busca .imagem {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-resultado-busca .conteudo {
  padding: 1rem 1.5rem 1rem 0;
  display: flex;
  flex-direction: column;
}

.card-resultado-busca .conteudo-topo {
  flex-grow: 1;
}

.card-resultado-busca .categoria-badge {
  background-color: var(--cor-cinza-suave);
  color: var(--cor-azul-meia-noite);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.card-resultado-busca .titulo {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.card-resultado-busca .localizacao {
  color: #555;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.card-resultado-busca .descricao {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  margin-top: 0.5rem;
}

.card-resultado-busca .conteudo-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-resultado-busca .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-resultado-busca .info-icon {
  color: #888;
  width: 16px;
  text-align: center;
}

.card-resultado-busca .info-text {
  font-size: 0.8rem;
  color: #333;
  text-transform: capitalize;
}

/* Responsividade para o card */
@media (max-width: 768px) {
  .card-resultado-busca {
    grid-template-columns: 1fr;
  }
  .card-resultado-busca .imagem-container {
    height: 200px;
  }
  .card-resultado-busca .conteudo {
    padding: 1rem;
  }
}

/* ============================================ */
/* 14. ESTILOS DO PRELOADER (ANIMAÇÃO DE LOADING) */
/* ============================================ */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* Garante que fica por cima de tudo */
  background-color: var(--cor-luz-adriatica); /* Usa uma cor de fundo do teu site */
  
  /* Centraliza a animação Lottie */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Efeito de transição para desaparecer */
  transition: opacity 0.75s ease, visibility 0.75s ease;
  opacity: 1;
  visibility: visible;
}

/* Estado "escondido" que vamos adicionar com JavaScript */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.horizontal-carousel-container .arrow-prev,
.horizontal-carousel-container .arrow-next {
  display: none !important;}



