/* ============================================== */
/* --- GERAL E VARIÁVEIS --- */
/* ============================================== */
:root {
    --cor-primaria: #000000;
    --cor-secundaria: #FFD700;
    --cor-branca: #FFFFFF;
    --cor-texto-claro: #f0f0f0;
    --cor-texto-escuro: #333;
    --fonte-principal: 'Montserrat', sans-serif;
    --altura-header: 100px;
    --altura-footer: 90px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    margin: 0;
    color: var(--cor-texto-escuro);
    background-color: var(--cor-branca);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ============================================== */
/* --- LAYOUT PRINCIPAL (SCROLL SNAP) --- */
/* ============================================== */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar {
    display: none;
}

section {
    height: 100vh;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding: var(--altura-header) 20px var(--altura-footer);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ============================================== */
/* --- IMAGENS DE FUNDO DAS SECÇÕES --- */
/* ============================================== */
.page-imobiliario #home { background-image: url('imagens/construcao.jpg'); }
.page-imobiliario #sobre { background-image: url('imagens/escritorio.jpg'); }
.page-imobiliario #blog { background-image: url('imagens/casa.jpg'); }
.page-imobiliario #contato { background-image: url('imagens/direito.jpg'); }

.page-migratorio #home { background-image: url('imagens/migratorio_home.jpg'); }
.page-migratorio #sobre { background-image: url('imagens/migratorio-sobre.jpg'); }
.page-migratorio #blog { background-image: url('imagens/migratorio-blog.jpg'); }
.page-migratorio #contato { background-image: url('imagens/migratorio-contato.jpg'); }

/* --- NOVAS IMAGENS PARA A PÁGINA DE CONSUMIDOR --- */
/* Você precisará substituir 'caminho/para/imagem.jpg' pelas suas imagens reais */
.page-consumidor #home { background-image: url('imagens/consumidor-home.jpg'); }
.page-consumidor #sobre { background-image: url('imagens/consumidor-sobre.jpg'); }
.page-consumidor #blog { background-image: url('imagens/consumidor-blog.jpg'); }
.page-consumidor #contato { background-image: url('imagens/consumidor-contato.jpg'); }


@keyframes kenburns {
    0% { background-size: 100%; }
    100% { background-size: 115%; }
}
.fundo-animado-normal { animation: kenburns 30s ease-in-out infinite alternate; }
.fundo-animado-lento { animation: kenburns 60s ease-in-out infinite alternate; }

/* ============================================== */
/* --- CABEÇALHO E NAVEGAÇÃO --- */
/* ============================================== */
header {
    background: var(--cor-primaria);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    height: var(--altura-header);
    display: flex;
    align-items: center;
    transition: height 0.3s ease;
}

header nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
}

header .logo { justify-self: start; }
header .language-switcher { justify-self: center; }
header .menu-dropdown { justify-self: end; }

header .logo img {
    height: 75px;
    display: block;
    transition: height 0.3s ease;
}

.menu-dropdown { position: relative; }
.menu-toggle { background: none; border: none; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; fill: var(--cor-secundaria); transition: fill 0.3s ease; }
.menu-toggle:hover svg { fill: var(--cor-branca); }
.menu-content { display: none; position: absolute; top: 120%; right: 0; background-color: var(--cor-primaria); min-width: 220px; box-shadow: 0px 8px 16px rgba(0,0,0,0.2); z-index: 1; list-style: none; padding: 10px 0; margin: 0; border-radius: 4px; border: 1px solid #444; }
.menu-dropdown.is-active .menu-content { display: block; }
.menu-content li a { color: var(--cor-secundaria); padding: 12px 20px; text-decoration: none; display: block; font-weight: bold; transition: background-color 0.3s, color 0.3s; }
.menu-content li a:hover { background-color: var(--cor-secundaria); color: var(--cor-primaria); }

.lang-toggle-btn { background-color: transparent; color: var(--cor-branca); padding: 8px 15px; font-size: 0.9rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px; cursor: pointer; display: flex;
    align-items: center; gap: 5px; }
.lang-toggle-btn .arrow-down { fill: var(--cor-branca); transition: transform 0.3s ease; }
.language-switcher.is-open .lang-toggle-btn .arrow-down { transform: rotate(180deg); }
.lang-dropdown-content { display: none; position: absolute; top: 120%; left: 50%; transform: translateX(-50%); background-color: var(--cor-primaria); min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4); z-index: 10; border-radius: 8px; overflow: hidden; padding: 5px 0; }
.language-switcher.is-open .lang-dropdown-content { display: block; }
.lang-dropdown-content a { color: var(--cor-branca); padding: 12px 16px; text-decoration: none; display: block; font-size: 0.9rem; transition: background-color 0.3s ease; }
.lang-dropdown-content a:hover { background-color: rgba(255, 255, 255, 0.1); }
.lang-dropdown-content a.active { background-color: var(--cor-secundaria); color: var(--cor-primaria); font-weight: 700; }

/* ============================================== */
/* --- TIPOGRAFIA RESPONSIVA --- */
/* ============================================== */
h1, h2 { 
    color: var(--cor-branca); 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); 
    margin-bottom: 20px; 
    font-size: clamp(1.8rem, 4vw, 2.8rem); 
}
h3 { font-size: clamp(1rem, 2.5vw, 1.4rem); }
p { color: var(--cor-texto-claro); text-shadow: 1px 1px 2px rgba(0,0,0,0.7); max-width: 700px; margin-left: auto; margin-right: auto; font-size: clamp(0.95rem, 2vw, 1.1rem); line-height: 1.6; }

/* ================================================================= */
/* --- ESTILO DA "FAIXA" DE CONTEÚDO --- */
/* ================================================================= */

section:not(#home) .container {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 2.5rem clamp(2.5rem, 5vw, 4rem);
    border-radius: 10px;
    max-width: 1100px;
    width: 90%; 
    box-sizing: border-box;
}

section:not(#home) .container h2,
section:not(#home) .container p,
section:not(#home) .container h3,
section:not(#home) .container a {
    color: var(--cor-texto-escuro);
    text-shadow: none;
}

/* Ajuste de tamanho para os títulos das seções internas */
section:not(#home) .container h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 30px;
}

#contato form { width: 100%; margin-top: 20px; max-width: 650px; margin-left: auto;margin-right: auto; }
#contato form label { display: block; text-align: left; margin-bottom: 8px; font-weight: bold; }
#contato form input, #contato form textarea { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-family: var(--fonte-principal); font-size: 1rem; }
#contato form textarea { min-height: 120px; resize: vertical; }
#contato form button { width: 100%; padding: 15px; font-size: 1.1rem; }
.contact-intro { color: var(--cor-texto-claro); text-shadow: 1px 1px 2px rgba(0,0,0,0.7); max-width: 700px; margin-left: auto; margin-right: auto; margin-bottom: 25px; }
.contact-intro a { color: var(--cor-secundaria); font-weight: bold; text-decoration: none; transition: opacity 0.3s ease; }
.contact-intro a:hover { opacity: 0.8; text-decoration: underline; }

/* ============================================== */
/* --- RODAPÉ --- */
/* ============================================== */
footer {
    background: #000000;
    color: #FFD700;
    text-align: center;
    font-size: 0.9rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1001; 
    height: var(--altura-footer);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: height 0.3s ease;
}

footer p { color: #FFD700; text-shadow: none; margin: 0; }
#home h1 { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
#home h1.visible { opacity: 1; transform: translateY(0); }
footer .social-icons { margin-bottom: 15px; }
footer .social-icons a { display: inline-block; margin: 0 10px; transition: transform 0.3s ease; }
footer .social-icons a:hover { transform: scale(1.1); }
footer .social-icons img { height: 40px; width: auto; }

/* --- Estilos da Lista de Artigos --- */
#blog .container h2 { margin-bottom: 40px; }
.article-list-item { display: flex; align-items: center; gap: 20px; text-decoration: none; color: inherit; padding: 20px; border-radius: 8px; margin-bottom: 20px; background-color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.article-list-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.article-list-item:last-child { margin-bottom: 0; }
.article-list-image { width: 130px; height: 90px; flex-shrink: 0; overflow: hidden; border-radius: 4px; }
.article-list-image img { width: 100%; height: 100%; object-fit: cover; transition: all 0.4s ease; filter: grayscale(100%); }
.article-list-item:hover .article-list-image img { filter: grayscale(0%); transform: scale(1.05); }

/* MOBILE - Apenas colorido */
@media (max-width: 768px) {
    .article-list-image img {
        filter: grayscale(0%) !important; /* Força colorido no mobile */
    }
    
    .article-list-item:hover .article-list-image img {
        filter: grayscale(0%) !important;
    }
}

.article-list-content { text-align: left; }
.article-list-content h3 { margin: 0 0 8px 0; font-size: 1.2rem; line-height: 1.4; font-weight: 700; color: var(--cor-texto-escuro); transition: color 0.3s ease; }
.article-list-item:hover .article-list-content h3 { color: var(--cor-secundaria); }
.article-list-content .article-date { margin: 0; font-size: 0.9rem; color: #888; text-align: left; }

/* --- ESTILOS ORIGINAIS DA SEÇÃO SOBRE NÓS (PILARES) --- */
#sobre h2 { text-align: center; margin-bottom: 40px; }
.sobre-container { position: relative; width: 100%; }
.pilar { background-color: rgba(255, 255, 255, 0.05); padding: 30px; border-radius: 10px; border-top: 3px solid var(--cor-secundaria); transition: background-color 0.4s ease, transform 0.4s ease, border-top-color 0.4s ease; display: flex; flex-direction: column; }
@media (hover: hover) { .pilar:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-5px); border-top-color: var(--cor-branca); } }
.pilar h3 { font-size: 1.4rem; color: var(--cor-branca); text-shadow: none; margin-top: 0; margin-bottom: 20px; transition: color 0.4s ease; min-height: 3em; }
.pilar p { -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; word-break: break-word; text-align: left; color: var(--cor-texto-claro); text-shadow: none; line-height: 1.6; font-size: 1rem; transition: color 0.4s ease; flex-grow: 1; }

/* ============================================== */
/* --- AJUSTES RESPONSIVOS (BREAKPOINTS) --- */
/* ============================================== */
@media (min-width: 1025px) {
    #sobre .pilares-carousel-track { display: flex; gap: 40px;  }
    #sobre .pilar { flex: 1 1 0; min-width: 0; }
    #sobre .carousel-button, #sobre .carousel-dots { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #sobre .pilares-carousel-track { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    #sobre .pilar { flex: none; }
    #sobre .carousel-button, #sobre .carousel-dots { display: none; }
}

@media (max-width: 768px) {
    /* [ATUALIZADO] Alturas das variáveis */
    :root {
        --altura-header: 80px;
        --altura-footer: 100px; /* Aumentado para garantir espaço */
    }
    
    /* ... (Suas regras de header e navegação continuam as mesmas) ... */
    header .logo img { height: 60px; }
    header nav { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 20px; box-sizing: border-box; }
    
    .menu-content { display: none; }
    .menu-dropdown.is-active .menu-content { display: flex; flex-direction: column; align-items: center; justify-content: center; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(3, 3, 3, 0.98); border: none; border-radius: 0; padding: 0; margin: 0; }
    .menu-dropdown.is-active .menu-content li { margin: 20px 0; }
    .menu-dropdown.is-active .menu-content li a { font-size: 1.5rem; }

    .article-list-item { flex-direction: column; align-items: flex-start; }
    .article-list-image { width: 100%; height: 150px; }

    .sobre-container { padding: 0 20px; }
    .pilares-carousel-container { overflow: hidden; }
    .pilares-carousel-track { display: flex; transition: transform 0.5s ease; }
    .pilar { min-width: 100%; box-sizing: border-box; }
    .pilar h3, .pilar p { text-align: center; -webkit-hyphens: none; -ms-hyphens: none; hyphens: none; }
    #sobre .carousel-button { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--cor-branca); font-size: 2.5rem; cursor: pointer; z-index: 5; }
    #sobre .prev-button { left: -10px; }
    #sobre .next-button { right: -10px; }
    #sobre .carousel-dots { text-align: center; padding-top: 20px; }
    .pilar h3, .pilar p { text-align: center; } /* Mantido o alinhamento central */

    /* ============================================== */
    /* --- CORREÇÃO DO RODAPÉ (FOOTER FIX) --- */
    /* ============================================== */
    footer {
        height: auto !important; /* Permite que o footer cresça */
        flex-direction: column; /* Empilha o texto e os ícones */
        padding: 10px 0; /* Respiro interno */
        width: 100%;
        box-sizing: border-box;
    }

    footer p {
        order: 2; /* Texto embaixo */
        margin: 5px 0 0 0 !important; /* Remove margens conflitantes */
        padding: 0 10px; /* Padding lateral */
    }

    footer .social-icons {
        order: 1; /* Ícones em cima */
        margin: 0 auto 5px auto !important; /* Centraliza e adiciona respiro */
        width: 100%;
        text-align: center;
        padding-top: 5px; /* Respiro do topo do footer */
    }

    /* Regras de fim do bloco @media (max-width: 768px) original */
    #sobre .carousel-dots .carousel-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); margin: 0 5px; cursor: pointer; }
    #sobre .carousel-dots .carousel-dot.active { background-color: var(--cor-branca); }
}

/* ============================================== */
/* --- AJUSTES FINAIS DE ALINHAMENTO POR SEÇÃO --- */
/* ============================================== */
#sobre .container,
#blog .container,
#contato .container {
    max-height: calc(100vh - var(--altura-header) - var(--altura-footer) - 20px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#sobre .container::-webkit-scrollbar,
#blog .container::-webkit-scrollbar,
#contato .container::-webkit-scrollbar {
    display: none;
}
#contato .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50vh;
}

/* ============================================== */
/* --- ESTILOS DO POP-UP (MODAL) DE "OBRIGADO" --- */
/* ============================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
.modal-overlay.is-visible { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.modal-box { background: #fff; padding: 30px 40px; border-radius: 10px; text-align: center; max-width: 450px; width: 90%; box-shadow: 0 5px 20px rgba(0,0,0,0.3); transform: scale(0.9); transition: transform 0.4s ease; }
.modal-overlay.is-visible .modal-box { transform: scale(1); }
.modal-box h2 { color: var(--cor-texto-escuro); text-shadow: none; margin-top: 0; font-size: 1.8rem; }
.modal-box p { color: #555; text-shadow: none; font-size: 1rem; line-height: 1.6; }
.modal-box .btn { margin-top: 25px; width: 100%; padding: 12px; }

/* ============================================== */
/* --- CORREÇÃO: SUAVIZAR TRANSIÇÃO DE FUNDO NO MOBILE --- */
/* ============================================== */

/* 1. Define a animação de fade-in */
@keyframes fadeInSection {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 2. Aplica a animação APENAS nas seções na versão mobile */
@media (max-width: 768px) {
    section {
        /* Duração de 0.6s para a animação de aparecimento suave */
        animation: fadeInSection 0.6s ease-in-out;
    }
}

/* =============== ESTILOS DO POP-UP =============== */

/* O fundo escuro (overlay) */
#popup-overlay {
    display: none; /* Começa escondido por padrão */
    position: fixed; /* Fica fixo na tela, mesmo com rolagem */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Cor preta com 70% de opacidade */
    z-index: 1000; /* Garante que o pop-up fique na frente de tudo */
    justify-content: center; /* Centraliza o conteúdo horizontalmente */
    align-items: center; /* Centraliza o conteúdo verticalmente */
    display: flex; /* Adicionado para garantir a centralização */
}

/* A caixa de diálogo do pop-up */
.popup-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px; /* Largura máxima para a caixa */
    text-align: center;
    position: relative; /* Necessário para posicionar o botão de fechar */
}

/* O botão de fechar (X) */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close-btn:hover {
    color: #000;
}

/* Título e parágrafo do pop-up */
.popup-content h2 {
    margin-top: 0;
    color: #333;
}

.popup-content p {
    margin: 15px 0 25px;
    color: #666;
    line-height: 1.6;
}

/* Remove a sombra de texto herdada do título e parágrafo do pop-up */
.popup-content h2,
.popup-content p {
    text-shadow: none;
}

/* Botão de Call to Action (CTA) - Cor do WhatsApp */
.popup-cta-btn {
    display: inline-block;
    background-color: #25D366; /* Verde oficial do WhatsApp */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.popup-cta-btn:hover {
    background-color: #1EBE57; /* Verde um pouco mais escuro para o efeito hover */
}

/* ============================================== */
/* --- ESTILOS ESPECÍFICOS: DIREITO CIVIL (FINAL) --- */
/* ============================================== */

/* --- 1. Imagens de Fundo INDIVIDUAIS por Seção --- */

/* Seção Home */
.page-civil #home.fundo-animado-lento {
    background-image: url('imagens/fundo-civil-home.jpg');
}

/* Seção Sobre (4 Pilares) */
.page-civil #sobre.fundo-animado-normal {
    background-image: url('imagens/fundo-civil-sobre.jpg');
}

/* Seção Blog */
.page-civil #blog.fundo-animado-normal {
    background-image: url('imagens/fundo-civil-blog.jpg');
}

/* Seção Contato */
.page-civil #contato.fundo-animado-lento {
    background-image: url('imagens/fundo-civil-contato.jpg');
}


/* --- 2. Comportamento DESKTOP (Grid Fixo e Compacto) --- */
@media (min-width: 769px) {
    /* Força o container a ser GRID e ignora o Flex do Javascript */
    .page-civil .pilares-carousel-track {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
        transform: none !important; 
        width: 100% !important;
    }

    /* O item de Introdução ocupa a linha inteira de cima */
    .page-civil .pilar-intro {
        grid-column: 1 / -1;
        background: transparent !important;
        border: none !important;
        padding: 0 0 15px 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Estilo do texto de introdução no Desktop (Menor) */
    .civil-intro-text {
        font-size: 0.95rem;
        text-align: center;
        max-width: 900px;
        margin: 0 auto;
        line-height: 1.5;
        color: var(--cor-texto-escuro); 
        text-shadow: none;
    }

    /* Força os pilares a terem tamanho automático e Padding Reduzido */
    .page-civil .pilar {
        width: auto !important;
        flex: none !important;
        padding: 15px !important;
    }

    /* Títulos dos Pilares (Menores) */
    .page-civil .pilar h3 {
        font-size: 1rem !important;
        margin-bottom: 10px;
    }

    /* Texto dos Pilares (Menor e mais compacto) */
    .page-civil .pilar p {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
        color: var(--cor-texto-claro); 
        text-align: left;
    }
}

/* --- Comportamento MOBILE (Correção de Alinhamento e Simetria) --- */
@media (max-width: 768px) {

    /* 1. CAIXA BRANCA (Container Principal) */
    .page-civil #sobre .container {
        padding: 0 !important;
        width: 90% !important;
        margin: 0 auto !important;
    }

    /* 2. REMOVER O CULPADO (Padding do container intermediário) */
    /* No teu CSS original, isto tinha 20px de padding, o que encoolhia o conteúdo */
    .page-civil .sobre-container {
        padding: 0 !important; 
        width: 100% !important;
    }
    
    /* Ajuste do container do carrossel para não ter margens extras */
    .page-civil .pilares-carousel-container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 3. O ITEM (Pilar) - Onde definimos o espaço real */
    .page-civil .pilar {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        
        /* Espaçamento interno simétrico e generoso */
        padding: 30px 20px !important; 
        
        /* Linha amarela */
        border-top: 4px solid var(--cor-secundaria) !important;
        background: transparent !important;
        margin: 0 !important;
        
        display: flex !important;
        flex-direction: column;
        align-items: center; /* Garante que tudo dentro fica no meio */
    }

    /* 4. Título e Texto */
    .page-civil .pilar h3,
    .page-civil .pilar p {
        text-align: center !important; /* Força o texto a centrar */
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .page-civil .pilar h3 {
        margin-top: 15px;
        color: #000;
    }
    
    .page-civil .pilar p {
        color: #444;
        line-height: 1.6;
    }
}

/* ============================================== */
/* --- ESTILOS ESPECÍFICOS: DIREITO CONSUMIDOR --- */
/* ============================================== */

/* --- 1. Imagens de Fundo (Você precisará criar estas imagens) --- */
.page-consumidor #home.fundo-animado-lento { background-image: url('imagens/fundo-consumidor-home.jpg'); }
.page-consumidor #sobre.fundo-animado-normal { background-image: url('imagens/fundo-consumidor-meio.jpg'); }
.page-consumidor #blog.fundo-animado-normal { background-image: url('imagens/fundo-consumidor-blog.jpg'); }
.page-consumidor #contato.fundo-animado-lento { background-image: url('imagens/fundo-consumidor-contato.jpg'); }

/* --- 2. Layout Desktop (Grid de 3 Colunas) --- */
@media (min-width: 769px) {
    /* Força Grid de 3 colunas */
    .page-consumidor .pilares-carousel-track {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 Colunas */
        gap: 30px !important;
        width: 100% !important;
        transform: none !important;
    }

    /* Estilo dos Cards (Pilares) */
    .page-consumidor .pilar {
        width: auto !important;
        flex: none !important;
        padding: 20px !important;
        border-top: 3px solid var(--cor-secundaria);
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    /* Ajuste da Lista no Pilar 3 */
    .page-consumidor .pilar ul {
        text-align: left;
        padding-left: 20px;
        margin-top: 10px;
    }
    .page-consumidor .pilar li {
        margin-bottom: 8px;
        color: var(--cor-texto-claro);
        font-size: 0.9rem;
    }
}

/* --- 3. Layout Mobile (Alinhamento Centralizado e Espaçamento Corrigido) --- */
@media (max-width: 768px) {
    /* [NOVO] Garante que a seta do carrossel tenha espaço para não invadir o pilar */
    .page-consumidor .sobre-container {
        padding: 0 40px !important; /* Adiciona respiro para as setas do carrossel */
        width: 100% !important;
    }

    /* O ITEM (Pilar) - Foco na centralização do texto */
    .page-consumidor .pilar {
        background: transparent !important;
        border: none !important;
        border-top: 4px solid var(--cor-secundaria) !important;
        box-shadow: none !important;
        
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        
        /* [AJUSTE] Espaçamento interno mais generoso */
        padding: 30px 20px !important; 
        
        display: flex !important;
        flex-direction: column;
        align-items: center; /* CENTRALIZA TODO O CONTEÚDO (h3, p, ul) */
        justify-content: center;
    }
    
    /* Títulos - Centralizados */
    .page-consumidor .pilar h3 {
        text-align: center !important;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 15px auto !important; /* Centraliza e ajusta margem */
    }

    /* Parágrafos - Centralizados */
    .page-consumidor .pilar p {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        max-width: 400px;
    }

    /* [CORREÇÃO CRÍTICA] Lista (ul/li) - Centralizar o Bloco, Manter Texto à Esquerda */
    .page-consumidor .pilar ul {
        text-align: left !important; /* Mantém os itens alinhados à esquerda (legibilidade) */
        padding-left: 20px !important; /* Recuo para os bullet points */
        color: #444;
        width: 100% !important;
        
        /* Centraliza o BLOCO da lista, garantindo que ela tenha respiro */
        max-width: 400px;
        margin: 15px auto 0 auto !important; 
    }
    
    .page-consumidor .pilar li {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    /* [CORREÇÃO ADICIONAL] Ajusta a posição dos botões de navegação */
    #sobre .carousel-button {
        top: 45% !important;
    }
    #sobre .prev-button { 
        left: 5px !important; /* Mais perto da borda da tela */
    }
    #sobre .next-button { 
        right: 5px !important; /* Mais perto da borda da tela */
    }
}

/* ============================================== */
/* --- [FIX] CORREÇÃO DEFINITIVA DE CONTRASTE DOS PILARES (CONSUMIDOR) --- */
/* ============================================== */

/* 1. Garante que os títulos dos pilares fiquem escuros na página Consumidor */
.page-consumidor #sobre .pilar h3 {
    color: var(--cor-texto-escuro) !important;
    text-shadow: none !important;
}

/* 2. Garante que o texto principal dos pilares fiquem escuros na página Consumidor */
.page-consumidor #sobre .pilar p {
    color: var(--cor-texto-escuro) !important;
    text-shadow: none !important;
}

/* 3. Garante que o texto da lista do pilar 'Áreas de Atuação' também fique escuro */
.page-consumidor #sobre .pilar ul,
.page-consumidor #sobre .pilar li {
    color: var(--cor-texto-escuro) !important;
    text-shadow: none !important;
}

/* ============================================== */
/* --- CORREÇÃO: LAYOUT DE 3 COLUNAS PARA IMOBILIÁRIO E MIGRATÓRIO --- */
/* ============================================== */

/* --- 1. Layout Desktop (Grid de 3 Colunas) --- */
@media (min-width: 769px) {
    /* Para Imobiliário */
    .page-imobiliario .pilares-carousel-track {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
        width: 100% !important;
        transform: none !important;
    }

    /* Para Migratório */
    .page-migratorio .pilares-carousel-track {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
        width: 100% !important;
        transform: none !important;
    }

    /* Estilo dos Cards (Pilares) para ambas */
    .page-imobiliario .pilar,
    .page-migratorio .pilar {
        width: auto !important;
        flex: none !important;
        padding: 20px !important;
        border-top: 3px solid var(--cor-secundaria);
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
}

/* --- 2. Layout Mobile (Alinhamento Centralizado) --- */
@media (max-width: 768px) {
    /* Garante espaço para as setas do carrossel */
    .page-imobiliario .sobre-container,
    .page-migratorio .sobre-container {
        padding: 0 40px !important;
        width: 100% !important;
    }

    /* Estilo dos Pilares no Mobile */
    .page-imobiliario .pilar,
    .page-migratorio .pilar {
        background: transparent !important;
        border: none !important;
        border-top: 4px solid var(--cor-secundaria) !important;
        box-shadow: none !important;
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        padding: 30px 20px !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Centralização de texto */
    .page-imobiliario .pilar h3,
    .page-migratorio .pilar h3,
    .page-imobiliario .pilar p,
    .page-migratorio .pilar p {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 400px;
    }
}

/* --- 3. Correção de Contraste (Texto Escuro) --- */
.page-imobiliario #sobre .pilar h3,
.page-migratorio #sobre .pilar h3,
.page-imobiliario #sobre .pilar p,
.page-migratorio #sobre .pilar p {
    color: var(--cor-texto-escuro) !important;
    text-shadow: none !important;
}

/* ============================================== */
/* --- CORREÇÃO URGENTE: CAIXA BRANCA NO MOBILE --- */
/* ============================================== */
@media (max-width: 768px) {
    /* CORREÇÃO CONTAINER PRINCIPAL - CAIXA MENOR E CENTRALIZADA */
    .page-consumidor #sobre .container,
    .page-imobiliario #sobre .container,
    .page-migratorio #sobre .container,
    .page-civil #sobre .container {
        background-color: rgba(255, 255, 255, 0.95) !important;
        padding: 1.5rem 1rem !important; /* Reduzi o padding */
        border-radius: 8px;
        max-width: 85% !important; /* Diminui a largura máxima */
        width: 85% !important; /* Diminui a largura */
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        max-height: calc(100vh - var(--altura-header) - var(--altura-footer) - 30px) !important;
        overflow-y: auto !important;
        
        /* Adiciona sombra para melhor visualização */
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    /* TEXTO DENTRO DA CAIXA - MAIS COMPACTO */
    .page-consumidor .pilar p,
    .page-imobiliario .pilar p,
    .page-migratorio .pilar p,
    .page-civil .pilar p {
        font-size: 0.9rem !important; /* Texto um pouco menor */
        line-height: 1.4 !important; /* Espaçamento entre linhas menor */
        text-align: justify !important;
        padding: 0 !important; /* Remove padding interno */
        margin: 0 auto 10px auto !important; /* Margens menores */
    }

    /* TÍTULOS MAIS COMPACTOS */
    .page-consumidor .pilar h3,
    .page-imobiliario .pilar h3,
    .page-migratorio .pilar h3,
    .page-civil .pilar h3 {
        font-size: 1.1rem !important;
        margin: 0 auto 15px auto !important;
        line-height: 1.3 !important;
    }

    /* PILARES COM MENOS ESPAÇO INTERNO */
    .page-consumidor .pilar,
    .page-imobiliario .pilar,
    .page-migratorio .pilar,
    .page-civil .pilar {
        padding: 20px 10px !important; /* Reduzi o padding interno */
        margin: 0 !important;
    }

    /* SE PRECISAR AINDA MAIS COMPACTO, USE ESTA VERSÃO ALTERNATIVA: */
    /*
    .page-consumidor #sobre .container,
    .page-imobiliario #sobre .container,
    .page-migratorio #sobre .container,
    .page-civil #sobre .container {
        background-color: rgba(255, 255, 255, 0.95) !important;
        padding: 1rem 0.8rem !important;
        border-radius: 6px;
        max-width: 80% !important;
        width: 80% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        max-height: calc(100vh - var(--altura-header) - var(--altura-footer) - 20px) !important;
        overflow-y: auto !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    */
}

/* ============================================== */
/* --- CORREÇÃO EXTRA: TELAS MUITO PEQUENAS --- */
/* ============================================== */
@media (max-width: 480px) {
    .page-consumidor #sobre .container,
    .page-imobiliario #sobre .container,
    .page-migratorio #sobre .container,
    .page-civil #sobre .container {
        max-width: 90% !important; /* Um pouco maior em telas muito pequenas */
        width: 90% !important;
        padding: 1rem 0.8rem !important;
    }
    
    .page-consumidor .pilar p,
    .page-imobiliario .pilar p,
    .page-migratorio .pilar p,
    .page-civil .pilar p {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
    }
}

/* ============================================== */
/* --- CORREÇÃO AGressIVA - ALINHAMENTO PERFEITO --- */
/* ============================================== */
@media (max-width: 768px) {
    /* RESET COMPLETO DO LAYOUT */
    .page-consumidor #sobre .container,
    .page-imobiliario #sobre .container,
    .page-migratorio #sobre .container,
    .page-civil #sobre .container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 1rem !important;
        max-width: 95% !important;
        width: 95% !important;
        margin: 0 auto !important;
    }

    /* CONTAINER DO CARROSSEL - LARGURA 100% */
    .sobre-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* CADA SLIDE DO CARROSSEL */
    .pilar {
        width: 100% !important;
        min-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 15px 10px !important;
    }

    /* FORÇAR CENTRALIZAÇÃO ABSOLUTA */
    .pilar * {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }
}

/* ============================================== */
/* --- CORREÇÃO BOTÕES CARROSSEL HORIZONTAIS --- */
/* ============================================== */
@media (max-width: 768px) {
    /* REMOVER BOTÕES LATERAIS (SETAS) */
    #sobre .carousel-button {
        display: none !important;
    }

    /* CONTAINER DOS DOTS - POSICIONAR EMBAIXO */
    #sobre .carousel-dots {
        position: static !important; /* Tira o posicionamento fixo */
        text-align: center !important;
        padding: 20px 0 10px 0 !important;
        margin-top: 10px !important;
        width: 100% !important;
        order: 3; /* Garante que fique depois do conteúdo */
    }

    /* ESTILO DOS DOTS HORIZONTAIS */
    #sobre .carousel-dots .carousel-dot {
        display: inline-block !important;
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        background-color: rgba(0, 0, 0, 0.3) !important;
        margin: 0 8px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        border: 2px solid transparent !important;
    }

    #sobre .carousel-dots .carousel-dot.active {
        background-color: var(--cor-secundaria) !important;
        transform: scale(1.2) !important;
        border-color: var(--cor-primaria) !important;
    }

    #sobre .carousel-dots .carousel-dot:hover {
        background-color: var(--cor-secundaria) !important;
        transform: scale(1.1) !important;
    }

    /* AJUSTAR O CONTAINER PRINCIPAL PARA INCLUIR OS DOTS */
    .page-consumidor #sobre .container,
    .page-imobiliario #sobre .container,
    .page-migratorio #sobre .container,
    .page-civil #sobre .container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* Distribui espaço */
        min-height: auto !important;
    }

    /* GARANTIR QUE O CONTEÚDO FIQUE NO TOPO */
    .sobre-container {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    /* SE PRECISAR DE MAIS ESPAÇO ENTRE CONTEÚDO E BOTÕES */
    .pilares-carousel-container {
        margin-bottom: 10px !important;
    }
}

/* ============================================== */
/* --- VERSÃO ALTERNATIVA COM BOTÕES MAIORES --- */
/* ============================================== */
@media (max-width: 768px) {
    /* SE QUISER BOTÕES MAIORES E MAIS VISÍVEIS */
    #sobre .carousel-dots .carousel-dot {
        width: 14px !important;
        height: 14px !important;
        margin: 0 10px !important;
    }

    #sobre .carousel-dots .carousel-dot.active {
        width: 16px !important;
        height: 16px !important;
    }

    /* MAIS ESPAÇO ACIMA DOS BOTÕES */
    #sobre .carousel-dots {
        padding: 25px 0 15px 0 !important;
        margin-top: 15px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important; /* Linha separadora opcional */
    }
}

/* ============================================== */
/* --- CORREÇÃO IMAGENS DE FUNDO RESPONSIVAS --- */
/* ============================================== */

/* IMAGENS DE FUNDO BASE (PARA TODOS OS DISPOSITIVOS) */
section {
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important; /* Garante que cubra toda a área */
    position: relative !important;
}

/* OTIMIZAÇÃO PARA DESKTOP */
@media (min-width: 1025px) {
    section {
        background-attachment: fixed !important; /* Efeito parallax opcional */
    }
}

/* OTIMIZAÇÃO PARA TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    section {
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* OTIMIZAÇÃO PARA MOBILE */
@media (max-width: 768px) {
    section {
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important; /* Remove fixed no mobile */
    }
    
    /* CORREÇÃO ESPECÍFICA PARA ALGUMAS IMAGENS */
    .page-imobiliario #home,
    .page-imobiliario #sobre,
    .page-imobiliario #blog,
    .page-imobiliario #contato,
    .page-migratorio #home,
    .page-migratorio #sobre,
    .page-migratorio #blog,
    .page-migratorio #contato,
    .page-consumidor #home,
    .page-consumidor #sobre,
    .page-consumidor #blog,
    .page-consumidor #contato,
    .page-civil #home,
    .page-civil #sobre,
    .page-civil #blog,
    .page-civil #contato {
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* ============================================== */
/* --- CORREÇÃO ANIMAÇÕES KEN BURNS --- */
/* ============================================== */
@keyframes kenburns-mobile {
    0% { 
        background-size: 100% !important;
        background-position: center center !important;
    }
    100% { 
        background-size: 110% !important; /* Menor zoom no mobile */
        background-position: center center !important;
    }
}

@keyframes kenburns-desktop {
    0% { 
        background-size: 100% !important;
        background-position: center center !important;
    }
    100% { 
        background-size: 115% !important; /* Zoom normal no desktop */
        background-position: center center !important;
    }
}

/* ANIMAÇÃO PARA DESKTOP */
@media (min-width: 769px) {
    .fundo-animado-normal { 
        animation: kenburns-desktop 30s ease-in-out infinite alternate !important;
    }
    .fundo-animado-lento { 
        animation: kenburns-desktop 60s ease-in-out infinite alternate !important;
    }
}

/* ANIMAÇÃO PARA MOBILE */
@media (max-width: 768px) {
    .fundo-animado-normal { 
        animation: kenburns-mobile 25s ease-in-out infinite alternate !important;
    }
    .fundo-animado-lento { 
        animation: kenburns-mobile 50s ease-in-out infinite alternate !important;
    }
}

/* ============================================== */
/* --- CORREÇÃO OVERLAY PARA MELHOR LEGIBILIDADE --- */
/* ============================================== */
section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important; /* Overlay padrão */
    z-index: 1 !important;
}

/* OVERLAY MAIS ESCURO NO MOBILE PARA MELHOR CONTRASTE */
@media (max-width: 768px) {
    section::before {
        background-color: rgba(0, 0, 0, 0.6) !important; /* Mais escuro no mobile */
    }
}

/* ============================================== */
/* --- CORREÇÃO PERFORMANCE NO MOBILE --- */
/* ============================================== */
@media (max-width: 768px) {
    .scroll-container {
        -webkit-overflow-scrolling: touch !important; /* Scroll suave no iOS */
    }
    
    section {
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
}

/* ============================================== */
/* --- CORREÇÃO IMAGENS ESPECÍFICAS PROBLEMÁTICAS --- */
/* ============================================== */

/* SE ALGUMA IMAGEM ESPECÍFICA PRECISAR DE AJUSTES */
@media (max-width: 768px) {
    /* Exemplo para imagens muito verticais ou horizontais */
    .page-imobiliario #home {
        background-position: center 30% !important; /* Ajusta posição vertical */
    }
    
    .page-migratorio #home {
        background-position: center 40% !important;
    }
    
    .page-consumidor #home {
        background-position: center 25% !important;
    }
    
    .page-civil #home {
        background-position: center 35% !important;
    }
}

/* ============================================== */
/* --- FALLBACK PARA IMAGENS QUE NÃO CARREGAM --- */
/* ============================================== */
section {
    background-color: #1a1a1a !important; /* Cor de fallback */
}

/* CORES DE FALLBACK ESPECÍFICAS POR PÁGINA */
.page-imobiliario section { background-color: #2c3e50 !important; }
.page-migratorio section { background-color: #34495e !important; }
.page-consumidor section { background-color: #16a085 !important; }
.page-civil section { background-color: #2980b9 !important; }

/* ============================================== */
/* --- CARROSSEL DE ARTIGOS NO MOBILE --- */
/* ============================================== */
@media (max-width: 768px) {
    /* CONTAINER PRINCIPAL DO CARROSSEL */
    #blog .container {
        overflow: hidden !important;
        padding: 1.5rem 1rem !important;
    }

    /* TRACK DO CARROSSEL */
    .articles-carousel-track {
        display: flex !important;
        transition: transform 0.5s ease-in-out !important;
        gap: 0 !important;
    }

    /* CADA ITEM DE ARTIGO NO CARROSSEL */
    .article-list-item {
        min-width: 100% !important;
        flex-direction: column !important;
        margin-bottom: 0 !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        scroll-snap-align: start !important;
    }

    /* IMAGEM DO ARTIGO NO CARROSSEL */
    .article-list-image {
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 15px !important;
    }

    .article-list-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    /* CONTEÚDO DO ARTIGO */
    .article-list-content {
        text-align: center !important;
        width: 100% !important;
    }

    .article-list-content h3 {
        font-size: 1.1rem !important;
        text-align: center !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    .article-list-content .article-date {
        text-align: center !important;
        font-size: 0.85rem !important;
        color: #666 !important;
    }

    /* CONTROLES DO CARROSSEL */
    .articles-carousel-controls {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        margin-top: 20px !important;
        padding: 15px 0 5px 0 !important;
    }

    /* BOTÕES DE NAVEGAÇÃO */
.articles-carousel-btn {
    background: var(--cor-primaria) !important;
    color: var(--cor-secundaria) !important;
    border: 2px solid var(--cor-secundaria) !important;
    border-radius: 50% !important;
    width: 35px !important;  /* Reduzido de 45px */
    height: 35px !important; /* Reduzido de 45px */
    font-size: 1rem !important; /* Reduzido de 1.2rem */
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
}

    .articles-carousel-btn:hover {
        background: var(--cor-secundaria) !important;
        color: var(--cor-primaria) !important;
        transform: scale(1.1) !important;
    }

    .articles-carousel-btn:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        transform: none !important;
    }

    /* DOTS INDICADORES */
    .articles-carousel-dots {
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 15px !important;
    }

    .articles-carousel-dot {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.3) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        border: 2px solid transparent !important;
    }

    .articles-carousel-dot.active {
        background: var(--cor-secundaria) !important;
        transform: scale(1.2) !important;
        border-color: var(--cor-primaria) !important;
    }

    /* SCROLL SNAP PARA MELHOR EXPERIÊNCIA */
    .articles-carousel-container {
        scroll-snap-type: x mandatory !important;
        overflow-x: auto !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* ESCONDER CONTROLES SE SÓ HOUVER 1 ARTIGO */
    .articles-carousel-single .articles-carousel-controls,
    .articles-carousel-single .articles-carousel-dots {
        display: none !important;
    }
}

/* ANIMAÇÃO DE TRANSIÇÃO */
@keyframes slideIn {
    from {
        opacity: 0.7;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.article-list-item {
    animation: slideIn 0.4s ease-out !important;
}

/* ======================================================= */
/* --- SOLUÇÃO: PAGINAÇÃO VERTICAL NO DESKTOP (>= 769px) --- */
/* ======================================================= */
@media (min-width: 769px) {
    /* 1. CONTAINER: Força o layout vertical (empilhado) */
    .articles-carousel-track {
        display: flex !important; /* Mantém o display flex para que flex-direction funcione */
        flex-direction: column !important; /* ESSENCIAL: Faz os artigos ficarem um abaixo do outro */
        transform: none !important; /* Zera transformações do carrossel */
        transition: none !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* 2. ARTIGOS: Mantém a aparência de linha, mas permite controle de display */
    .article-list-item {
        /* O JavaScript aplica display: flex ou display: none aqui */
        min-width: auto !important;
        flex-direction: row !important; 
        margin-bottom: 20px !important;
        padding: 20px !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* 3. ESCONDER CONTROLES MOBILE */
    .articles-carousel-controls,
    .articles-carousel-dots {
        display: none !important;
    }

    /* 4. ESTILIZAÇÃO DA PAGINAÇÃO DESKTOP (Inserida pelo JS) */
    .articles-desktop-pagination {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        margin-top: 30px !important;
        padding: 20px 0 !important;
        border-top: 1px solid #eee !important;
    }

    .articles-pagination-btn {
        background: var(--cor-primaria) !important;
        color: var(--cor-secundaria) !important;
        border: 2px solid var(--cor-secundaria) !important;
        border-radius: 5px !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        font-weight: 600 !important;
        display: flex !important; /* Garante que o texto fique centralizado no botão */
        align-items: center !important;
        justify-content: center !important;
    }

    .articles-pagination-btn:hover:not(:disabled) {
        background: var(--cor-secundaria) !important;
        color: var(--cor-primaria) !important;
        transform: translateY(-2px) !important;
    }

    .articles-pagination-btn:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        transform: none !important;
        background: #f7f7f7 !important; /* Cor mais clara para desabilitado */
        color: #999 !important;
        border-color: #ccc !important;
    }

    .articles-pagination-info {
        color: var(--cor-texto-escuro) !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        margin: 0 15px !important;
    }
}