/* =========================================
   ESTILOS BASE E TIPOGRAFIA
   ========================================= */
body {
    font-family: 'Open Sans', Tahoma, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

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

/* =========================================
   CABEÇALHO COM FOTO DA FAMÍLIA
   ========================================= */
.header-aventura {
    background-image: linear-gradient(rgba(44, 62, 80, 0.72), rgba(44, 62, 80, 0.72)), url('imagens/foto-familia.jpg'); 
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    border-bottom: 4px solid #e67e22; 
    padding: 60px 0 40px 0; 
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.logo-site {
    max-width: 160px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 3px solid #fff;
    transition: transform 0.3s ease;
}

.logo-site:hover {
    transform: scale(1.05);
}

.header-aventura h1 {
    margin: 0;
    font-size: 3em;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8); 
}

.header-aventura p {
    font-size: 1.2em;
    color: #f39c12; 
    margin-top: 5px;
    font-weight: 600;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

/* =========================================
   NAVEGAÇÃO PRINCIPAL
   ========================================= */
.nav-principal {
    margin-top: 25px;
}

.menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; 
}

.menu-link {
    color: #ffffff; 
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05em;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.menu-link:hover {
    color: #e67e22;
}

.btn-dropdown-estilo {
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
}

.seta {
    font-size: 0.8em; 
    transition: transform 0.3s ease;
}

.btn-dark {
    color: #ffffff;
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 1.3em; 
    transition: transform 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.btn-dark:hover {
    transform: scale(1.15);
}

/* =========================================
   GAVETA DE ROTEIROS (DROPDOWN)
   ========================================= */
.dropdown-viagens {
    position: relative; 
    display: inline-block;
}

.gaveta-roteiros {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-top: 15px;
}

.item-roteiro {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: #2c3e50; 
    border-bottom: 1px solid #f1f1f1;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.item-roteiro:hover {
    background-color: #fdf8f5;
    color: #e67e22;
    padding-left: 24px;
}

/* =========================================
   MOBILE & TABLETS
   ========================================= */
.menu-mobile-btn {
    display: none; 
    background: #e67e22; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header-aventura { padding: 40px 0 20px 0; }
    .header-aventura h1 { font-size: 1.8em; }
    .logo-site { max-width: 120px; }

    .menu-mobile-btn {
        display: block;
    }
    
    .menu-links {
        display: none; 
        flex-direction: column; 
        background: #ffffff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 20px;
        border-radius: 8px;
        margin-top: 15px;
        gap: 20px;
    }
    
    .menu-links.aberto {
        display: flex; 
    }

    .menu-link, .btn-dark {
        color: #2c3e50; 
        text-shadow: none; 
    }

    .gaveta-roteiros {
        position: relative;
        top: auto; left: auto;
        transform: none;
        box-shadow: none; border: none;
        background-color: #f8f9fa;
        margin-top: 10px; width: 100%;
    }

    .item-roteiro {
        text-align: left;
        padding-left: 25px;
    }
}

/* =========================================
   SCROLLBAR DA GALERIA
   ========================================= */
.galeria-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.galeria-scrollbar::-webkit-scrollbar-track {
    background: #edf2f7;
    border-radius: 4px;
}

.galeria-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 4px;
}

.galeria-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #e67e22;
}

/* =========================================
   ESTRUTURA DA LINHA DE TEMPO DO ROTEIRO
   ========================================= */
.n2-timeline { 
    position: relative; 
    max-width: 900px; 
    margin: 50px auto; 
    padding: 20px; 
}

.n2-timeline::after { 
    content: ''; 
    position: absolute; 
    width: 6px; 
    background-color: #e67e22; 
    top: 0; 
    bottom: 0; 
    left: 50%; 
    margin-left: -3px; 
    border-radius: 3px; 
}

.n2-etapa { 
    padding: 10px 40px; 
    position: relative; 
    background-color: inherit; 
    width: 50%; 
    box-sizing: border-box; 
}

.n2-etapa.esquerda { left: 0; }
.n2-etapa.direita { left: 50%; }

.n2-etapa::after { 
    content: '📍'; 
    position: absolute; 
    width: 40px; 
    height: 40px; 
    right: -20px; 
    background-color: white; 
    border: 4px solid #2c3e50; 
    top: 15px; 
    border-radius: 50%; 
    z-index: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

.n2-etapa.direita::after { left: -20px; }

.n2-conteudo { 
    padding: 25px; 
    background-color: #ffffff; 
    position: relative; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    border-top: 5px solid #2980b9; 
    transition: transform 0.3s ease; 
}

.n2-conteudo:hover { transform: translateY(-5px); }
.n2-conteudo h3 { margin-top: 0; color: #d35400; font-size: 1.3rem; font-weight: bold; margin-bottom: 10px; }
.n2-btn { 
    display: inline-block; 
    padding: 10px 20px; 
    background-color: #2c3e50; 
    color: white !important; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: bold; 
    transition: background 0.3s ease; 
    margin-top: 15px;
}
.n2-btn:hover { background-color: #e67e22; }

@media screen and (max-width: 768px) {
    .n2-timeline::after { left: 31px; }
    .n2-etapa { width: 100%; padding-left: 70px; padding-right: 25px; }
    .n2-etapa.esquerda, .n2-etapa.direita { left: 0; }
    .n2-etapa.esquerda::after, .n2-etapa.direita::after { left: 11px; }
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox { 
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.92); 
    backdrop-filter: blur(5px); 
}

.lightbox-conteudo { 
    margin: auto; 
    display: block; 
    max-width: 90%; 
    max-height: 90vh; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    border-radius: 6px; 
    box-shadow: 0 0 25px rgba(0,0,0,0.8); 
}

.fechar-lightbox { 
    position: absolute; 
    top: 20px; 
    right: 35px; 
    color: #f1f1f1; 
    font-size: 45px; 
    font-weight: bold; 
    cursor: pointer; 
    z-index: 10000; 
    transition: color 0.2s ease;
}

.fechar-lightbox:hover { color: #e67e22; }

/* =========================================
   ESTILOS DO POSTAL DE VIAGEM (AIRMAIL)
   ========================================= */
.borda-postal {
    background: repeating-linear-gradient(
        -45deg,
        #e67e22,
        #e67e22 16px,
        #fdfbf7 16px,
        #fdfbf7 28px,
        #2c3e50 28px,
        #2c3e50 44px,
        #fdfbf7 44px,
        #fdfbf7 56px
    );
}

.selo-postal {
    background-color: #ffffff;
    border: 3px dashed #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ===================================================
   UNIFORMIZAÇÃO DAS AVENTURAS (.artigo-conteudo)
   =================================================== */

/* Títulos Principais (h2 e h3) */
.artigo-conteudo h2,
.artigo-conteudo h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #2c3e50 !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.2rem !important;
    padding-left: 14px !important;
    border-left: 5px solid #e67e22 !important;
    line-height: 1.3 !important;
    display: block !important;
}

.artigo-conteudo h2 { font-size: 1.85rem !important; }
.artigo-conteudo h3 { font-size: 1.5rem !important; }

/* Subtítulos menores (h4, h5) */
.artigo-conteudo h4,
.artigo-conteudo h5 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #e67e22 !important;
    margin-top: 1.8rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
}

/* Parágrafos gerais */
.artigo-conteudo p {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 1.125rem !important;
    line-height: 1.85 !important;
    color: #334155 !important;
    margin-bottom: 1.4rem !important;
}

/* Citações e Caixas de Destaque */
.artigo-conteudo blockquote {
    background-color: #fdf8f5 !important;
    border-left: 4px solid #e67e22 !important;
    padding: 1.2rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 10px 10px 0 !important;
    font-style: italic !important;
    color: #4b5563 !important;
}

/* Imagens no meio da história (Estilo Fotografia Postal / Polaroid) */
.artigo-conteudo img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: cover !important;
    background-color: #ffffff !important;
    padding: 10px 10px 24px 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
    margin: 2.2rem auto !important;
    display: block !important;
    cursor: zoom-in;
    transition: transform 0.25s ease !important;
}

.artigo-conteudo img:hover {
    transform: scale(1.01);
}

/* Listas */
.artigo-conteudo ul, 
.artigo-conteudo ol {
    margin: 1.2rem 0 1.8rem 1.8rem !important;
    color: #374151 !important;
    line-height: 1.7 !important;
}

.artigo-conteudo li {
    margin-bottom: 0.6rem !important;
}

/* =========================================
   MODO ESCURO (DARK MODE) GERAL E POSTAL
   ========================================= */
body.dark-mode { 
    background-color: #1a1a2e; 
    color: #e6e6e6; 
}

/* Fundo do Cartão Postal e Caixas Brancas no Modo Escuro */
body.dark-mode .bg-white,
body.dark-mode .bg-\[\#fdfbf7\] {
    background-color: #16213e !important;
    color: #e6e6e6 !important;
    border-color: #2d3748 !important;
}

/* Moldura da Foto de Capa (figure) e Caixa de Partilha no Postal */
body.dark-mode figure.bg-white,
body.dark-mode .bg-white\/70 {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .bg-gray-50 {
    background-color: #1a2540 !important;
    color: #e6e6e6 !important;
}

/* Faixa Airmail adaptada ao Modo Escuro */
body.dark-mode .borda-postal {
    background: repeating-linear-gradient(
        -45deg,
        #e67e22,
        #e67e22 16px,
        #16213e 16px,
        #16213e 28px,
        #3b82f6 28px,
        #3b82f6 44px,
        #16213e 44px,
        #16213e 56px
    );
}

/* Selo Postal no Modo Escuro */
body.dark-mode .selo-postal {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

/* Cores de Texto e Divisórias Tracejadas do Postal no Modo Escuro */
body.dark-mode .text-marca-azul,
body.dark-mode .text-\[\#2c3e50\] {
    color: #64b5f6 !important;
}

body.dark-mode .text-gray-600,
body.dark-mode .text-gray-500,
body.dark-mode .text-stone-600,
body.dark-mode .text-stone-500 {
    color: #cbd5e1 !important;
}

body.dark-mode .text-stone-400 {
    color: #94a3b8 !important;
}

body.dark-mode .border-stone-300,
body.dark-mode .border-stone-200,
body.dark-mode .border-stone-100 {
    border-color: #334155 !important;
}

/* Menu e Roteiros em Modo Escuro */
body.dark-mode .gaveta-roteiros { 
    background-color: #16213e; 
    border-color: #2d3748; 
}

body.dark-mode .item-roteiro { 
    color: #e2e8f0; 
    border-bottom-color: #233154;
}

body.dark-mode .item-roteiro:hover { 
    background-color: #233154;
    color: #e67e22; 
}

body.dark-mode .n2-conteudo {
    background-color: #16213e;
    color: #e6e6e6;
}

body.dark-mode .n2-conteudo h4 {
    color: #64b5f6 !important;
}

@media (max-width: 768px) {
    body.dark-mode .menu-links { 
        background-color: #16213e; 
    }
    body.dark-mode .menu-link, 
    body.dark-mode .btn-dark {
        color: #e2e8f0;
    }
}

/* ===================================================
   MODO ESCURO (.artigo-conteudo)
   =================================================== */
body.dark-mode .artigo-conteudo h2,
body.dark-mode .artigo-conteudo h3 {
    color: #64b5f6 !important;
    border-left-color: #e67e22 !important;
}

body.dark-mode .artigo-conteudo h4,
body.dark-mode .artigo-conteudo h5 {
    color: #e67e22 !important;
}

body.dark-mode .artigo-conteudo p,
body.dark-mode .artigo-conteudo li {
    color: #e2e8f0 !important;
}

body.dark-mode .artigo-conteudo blockquote {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-left-color: #e67e22 !important;
}

body.dark-mode .artigo-conteudo img {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
