/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   ========================================================================== */

/* Define variáveis CSS (Custom Properties) no escopo global */
:root {
    --nav-height: 70px;
    --fnp-dark-blue: #103758;
    --fnp-blue: #2F80ED;
    --fnp-yellow: #EEAF19;
    --fnp-green: #27AE60;
    --fnp-light-gray: #f8f9fa;
    --accent-red: #c62828;   
}

/* Configurações do elemento raiz HTML */
html {
    scroll-behavior: auto !important;
    scroll-padding-top: 140px;
}

/* Definições base do corpo da página */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

/* Reset e padronização de títulos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: #111;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Define altura de linha para legibilidade e cor de texto suave */
p {
    line-height: 1.6;
    color: #444;
}

/* Classe utilitária para largura total */
.full-width { 
    width: 100%; 
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 60, 0.65); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; 
    width: 100%;
    max-width: 1000px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeInUpHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicação da animação no título principal com delay inicial leve */
.hero-content .big-title {
    opacity: 0; 
    animation: fadeInUpHero 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.2s; 
}

/* Aplicação no subtítulo, entrando na sequência */
.hero-content .hero-subtitle {
    opacity: 0;
    animation: fadeInUpHero 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.5s; 
}

/* Aplicação no botão de ação, finalizando a cascata */
.hero-content .scroll-indicator {
    opacity: 0;
    animation: fadeInUpHero 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.8s; 
}

.big-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.04em;
    margin: 0 0 30px 0;
}

.highlight-contramao {
    color: var(--fnp-yellow, #F3A912);
    display: inline-block;
    font-weight: 900;
    transform: skewX(12deg);
    margin: 0 6px;
    text-shadow: 0 4px 15px rgba(243, 169, 18, 0.25);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 50px auto;
    max-width: 640px;
    line-height: 1.5;
}

.scroll-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
}

.scroll-indicator:hover {
    background-color: #ffffff;
    color: var(--fnp-blue, #1D437A);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
/* ==========================================================================
   3. BARRA DE NAVEGAÇÃO (TRAVADA E CENTRALIZADA)
   ========================================================================== */

/* Container principal (Barra Branca) */
.story-nav {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    height: var(--nav-height);
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    z-index: 900;
    
    display: flex; 
    flex-direction: column;
    transform: none !important;
}

/* Estado visível */
.story-nav.visible { 
    opacity: 1; 
    pointer-events: all; 
}

/* TRILHO PRINCIPAL */
.story-track {
    
    /* Sem 'relative', os logos (absolute) ignoram este container e usam .story-nav como referência, alinhando na borda da tela. */
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    
    /* Dimensões do menu central */
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    
    /* Bloqueios de animação (MANTENHA ISSO) */
    margin: 0 auto !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
}

/* LOGOS (FIXOS NAS PONTAS) */
.nav-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
    height: 100%;
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo img {
    height: 40px; 
    width: auto;
}

/* Posicionamento exato (30px das bordas) */
.logo-left { left: 15px; }
.logo-right { right: 15px; }

/* Limpeza de margens antigas dos itens do menu */
#nav-problema, #nav-noticias { margin: 0 !important; }


/* ITEM DE NAVEGAÇÃO (Menu Central) */
.story-item {
    display: flex; 
    align-items: center; 
    gap: 14px;
    padding: 6px 18px 6px 8px;
    border-radius: 30px;
    color: #888; 
    text-decoration: none;
    font-size: 0.9rem; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: 'Inter', sans-serif;
}

.story-item:hover, .story-item.active {
    color: var(--fnp-dark-blue, #1D437A); 
    background: rgba(29, 67, 122, 0.05);
}

.story-item.active {
    background: rgba(29, 67, 122, 0.08); 
    border-color: rgba(29, 67, 122, 0.15);
}

/* Wrapper do Ícone */
.story-icon-wrapper {
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 34px; 
    height: 34px; 
    border-radius: 50%;
    background: #f0f2f5;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.story-icon-wrapper img {
    width: 32px;
    height: 32px;
    opacity: 0.6;
    transition: all 0.3s ease;
    transform: scale(1.1);
}

.story-item.active .story-icon-wrapper { 
    background: var(--fnp-dark-blue, #1D437A);
    box-shadow: 0 2px 5px rgba(29, 67, 122, 0.2);
}

.story-item.active .story-icon-wrapper img {
    opacity: 1;
    filter: brightness(0) invert(1);
    transform: scale(1.5);
}

.story-label { white-space: nowrap; }

/* --- RESPONSIVIDADE --- */
.section-header-mobile { display: none; }

@media(max-width: 1100px) {

    .nav-logo { display: none; }
}

@media(max-width: 768px) {
    .story-label { display: none; } 
    .story-item { padding: 6px; border-radius: 50%; }
    
    .section-header-mobile { 
        display: block; 
        padding: 30px 5% 10px; 
        text-align: center; 
    }
    .section-header-mobile h2 { 
        font-size: 1.8rem; 
        color: var(--fnp-dark-blue, #1D437A); 
        font-weight: 800; 
    }
}

/* ==========================================================================
   4. ESTRUTURA GERAL DAS SEÇÕES
   ========================================================================== */

/* Container padrão para seções de conteúdo (Estilo "Livro") */
.book-section {
    position: relative; 
    background: #fff;
    min-height: 100vh; 
    border-bottom: 1px solid #eee;
    padding-bottom: 0 !important; 
    margin-bottom: 0 !important;
    scroll-margin-top: var(--nav-height); 
}

/* Container de conteúdo centralizado e limitado a 1200px */
.section-content {
    padding: 40px 5% 100px;
    display: flex; 
    gap: 50px;
    max-width: 1200px; 
    margin: 0 auto;
    flex-wrap: wrap; 
}

/* Colunas flexíveis para layout de Texto e Visual */
.text-col, .visual-col {
    flex: 1; 
    min-width: 320px;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

/* Estilo tipográfico para textos longos (Editorial) */
.editorial-text {
    text-align: justify; 
    font-size: 1.1rem;
    line-height: 1.8; 
    color: #444;
}

/* Componente de caixa de destaque lateral */
.highlight-box {
    background: rgba(238, 175, 25, 0.1);
    border-left: 4px solid var(--fnp-yellow);
    padding: 20px; 
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   5. SEÇÃO: O PROBLEMA
   ========================================================================== */

/* Componente de Estatística em destaque (Número Grande) */
.big-stat {
    margin: 30px 0; 
    padding-left: 20px;
    border-left: 4px solid var(--accent-red);
}

.big-stat .number {
    display: block; 
    font-size: 4rem; 
    font-weight: 800;
    color: var(--fnp-dark-blue); 
    line-height: 1;
}

/* Caixa de Insight (Conclusão) */
.insight-box {
    margin-top: 30px;
    margin-bottom: 40px;
    background: var(--fnp-dark-blue);
    padding: 30px; 
    border-radius: 12px; 
    color: white;
    box-shadow: 0 10px 30px rgba(25, 70, 133, 0.2);
    -webkit-font-smoothing: antialiased;
}

.insight-box h4 {
    color: var(--fnp-yellow); 
    margin-bottom: 15px;
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-size: 1rem; 
    font-weight: 800;
}

.insight-box p { 
    color: rgba(255,255,255,0.95); 
    margin: 0; 
    font-family: 'Inter', sans-serif !important;
}

/* Restrição de dimensão para ícones na legenda do gráfico */
.pie-legend img, 
.pie-legend svg,
.legend-icon-large {
    width: 32px;
    height: auto;
    margin-bottom: 8px;
    display: block;
}

/* Container flex para o gráfico de pizza e suas legendas */
.pie-chart-container {
    display: flex; 
    flex-wrap: wrap;
    align-items: flex-start; 
    justify-content: center;
    gap: 20px;
    margin-top: 20px; 
    background: #ffffff;
    padding: 20px; 
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Container da coluna de legendas */
.pie-legend { 
    flex: 1; 
    min-width: 250px;
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

/* Item individual da legenda com borda colorida indicativa */
.legend-item { 
    padding-left: 15px; 
    border-left: 4px solid #ddd; 
    display: flex;
    flex-direction: column;
}

/* Variações de tema para a borda da legenda */
.blue-theme { border-color: var(--fnp-dark-blue); }
.yellow-theme { border-color: var(--fnp-yellow); }

.legend-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 4px;
}

/* Tipografia dos rótulos e valores da legenda */
.legend-label { 
    display: block; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    font-weight: 600; 
    color: #666; 
}

.legend-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.legend-value { 
    font-size: 1.8rem; 
    font-weight: 800; 
    line-height: 1;
    color: var(--fnp-dark-blue); 
}

.yellow-theme .legend-value { color: var(--fnp-yellow); }

.legend-label { 
    display: block; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    font-weight: 600; 
    color: #666;
    letter-spacing: 0.5px;
}

/* Ajustes de contexto (lista inferior) */
.chart-context {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.legend-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #444;
}

.legend-details li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Responsividade Mobile */
@media (max-width: 480px) {
    .pie-chart-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    
    .pie-legend {
        width: 100%;
        min-width: unset;
    }

    .svg-wrapper {
        width: 140px;
        height: 140px;
    }
}

/* Wrapper para posicionamento relativo do SVG */
.svg-wrapper { 
    position: relative; 
    width: 160px; 
    height: 160px; 
    flex-shrink: 0; 
}

/* Configuração do SVG de Pizza */
.pie-svg { 
    width: 100%; 
    height: 100%; 
    transform: rotate(-90deg); 
}

.pie-svg circle { 
    fill: none; 
    stroke-width: 40; 
}

/* Círculos de progresso do gráfico */
.circle-base { stroke: var(--fnp-dark-blue); }

.circle-progress {
    stroke: var(--fnp-yellow); 
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
}

/* Texto centralizado no gráfico de Donut */
.chart-center-text {
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700; 
    font-size: 0.9rem;
    color: var(--fnp-dark-blue); 
    text-transform: uppercase;
}

/* Grupo de gráficos de barras laterais (População) */
.pop-chart-group {
    margin-bottom: 30px; 
    background: #fff;
    padding: 20px; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Novo Container do Cabeçalho para separar Título e Unidade */
.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 8px;
}

.chart-header-row h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--fnp-dark-blue);
    font-weight: 700;
}

/* Estilo da unidade (População) acima dos números */
.header-unit {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pop-row { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 12px; 
}

.pop-year { 
    font-weight: 700; 
    color: #888; 
    font-size: 0.9rem; 
    width: 40px; 
}

/* Agrupamento vertical para valor absoluto e porcentagem */
.pop-value-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 60px;
}

/* Estilo base para a etiqueta de variação percentual */
.growth-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    white-space: nowrap;
    display: inline-block;
}

/* Variação de cor para crescimento positivo (Verde) */
.badge-green {
    background: rgba(39, 174, 96, 0.1);
    color: var(--fnp-green);
}

/* Variação de cor para crescimento negativo ou alerta (Vermelho) */
.badge-red {
    background: rgba(198, 40, 40, 0.1);
    color: var(--accent-red);
}

/* Trilha de fundo da barra de progresso */
.pop-track { 
    flex: 1; 
    height: 12px; 
    background: #f0f0f0; 
    border-radius: 6px; 
    overflow: hidden; 
    cursor: pointer; 
}

/* Barra de progresso preenchida com transição de largura */
.pop-bar { 
    height: 100%; 
    width: 0; 
    border-radius: 6px; 
}

/* Variações de cores para as barras */
.pop-bar.red { background: var(--accent-red); }
.pop-bar.red-light { background: var(--accent-red); opacity: 0.3; }
.pop-bar.green { background: var(--fnp-green); }
.pop-bar.green-light { background: var(--fnp-green); opacity: 0.3; }

.pop-value { 
    font-weight: 800; 
    font-size: 0.95rem; 
    width: 60px; 
    text-align: right; 
}

/* Wrapper para agrupar Título + Ícone */
.header-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Componente Tooltip */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

/* Ícone "i" */
.info-icon {
    width: 18px;
    height: 18px;
    color: #9ca3af; 
    transition: color 0.2s ease;
}

.info-tooltip:hover .info-icon {
    color: var(--fnp-blue);
}

/* Caixa de Texto do Tooltip (Hidden por padrão) */
.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 140%; 
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    width: 220px;
    background-color: var(--fnp-dark-blue);
    color: #fff;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; 
}

/* Seta do Tooltip */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--fnp-dark-blue) transparent transparent transparent;
}

/* Estado Hover (Show) */
.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* ==========================================================================
   5.1 CARROSSEL IN-PLACE: O PROBLEMA (PAINEL DESLIZANTE)
   ========================================================================== */

/* Container de Visualização (Máscara) */
.slider-viewport-prob {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Trilho de navegação horizontal comporta os painéis e executa a transição física bidirecional */
.slider-track-prob {
    display: flex;
    width: 200%; 
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(0);
    align-items: flex-start;
}

/* Painel Individual */
.slider-panel-prob {
    width: 50%;
    flex-shrink: 0;
    padding-right: 20px; 
    box-sizing: border-box;
    position: relative; 
    min-height: 720px;  
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
}

/* Container de Scroll Interno (Texto Longo) */
.scrollable-text {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 15px;
    margin-top: 10px;
    margin-bottom: 80px; 
}

/* Customização do Scrollbar Interno (Webkit) */
.scrollable-text::-webkit-scrollbar { 
    width: 4px; 
}
.scrollable-text::-webkit-scrollbar-track { 
    background: #f0f0f0; 
    border-radius: 4px; 
}
.scrollable-text::-webkit-scrollbar-thumb { 
    background: #cccccc; 
    border-radius: 4px; 
}
.scrollable-text::-webkit-scrollbar-thumb:hover { 
    background: var(--fnp-dark-blue, #103758); 
}

/* Controles de Ação (Botões do Slider) */
.slider-actions {
    position: absolute;
    bottom: 20px; 
    left: 0;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.btn-slide-next, 
.btn-scroll-down, 
.btn-slide-prev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Botão de Avanço (Primário) */
.btn-slide-next {
    background: var(--fnp-dark-blue, #103758);
    color: #ffffff;
    border: 1px solid var(--fnp-dark-blue, #103758);
}

.btn-slide-next:hover { 
    background: #0d2d4a; 
    transform: translateY(-2px); 
}

/* Botões Secundários (Voltar e Continuar Scroll) */
.btn-scroll-down, 
.btn-slide-prev {
    border: 1px solid #dddddd;
    color: #555555;
}

.btn-slide-prev { 
    margin-bottom: 5px; 
}

.btn-scroll-down:hover, 
.btn-slide-prev:hover {
    background: #f8f9fa;
    color: var(--fnp-dark-blue, #103758);
    border-color: var(--fnp-dark-blue, #103758);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. SEÇÃO: METODOLOGIA
   ========================================================================== */

/* Estrutura Base e Cards */
.metodologia-infographic {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.metodologia-infographic .step-card,
.card-metodologia-pro {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: visible !important;
    height: auto !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Cabeçalhos e Tipografia */
.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    text-align: center;
}

.step-number {
    background: var(--fnp-dark-blue, #003366);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.step-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #333333;
    margin-bottom: 4px;
}

.step-subtitle {
    font-weight: 600;
    color: #555555;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 12px;
    font-size: 1rem;
    display: block;
    width: 100%;
}

.group-title-pro {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 12px;
    text-align: left;
    width: 100%;
}

/* Card 1: Gráfico de Barras */
.bars-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 80px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eeeeee;
}

.bar {
    width: 7.5%;
    background: #dddddd;
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    position: relative;
}

.b1 { height: 10%; } 
.b2 { height: 18%; } 
.b3 { height: 26%; } 
.b4 { height: 35%; } 
.b5 { height: 45%; } 
.b6 { height: 55%; } 
.b7 { height: 65%; } 
.b8 { height: 75%; } 
.b9 { height: 86%; }
.b10 { height: 100%; background: var(--fnp-dark-blue, #003366); }
.b10:hover {
    background-color: var(--fnp-dark-blue, #002244);
}

.bar:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.bar[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--fnp-dark-blue, #103758);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.bar[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--fnp-dark-blue, #103758);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 20;
    pointer-events: none;
}

.bar:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.bar:hover::before {
    opacity: 1;
    visibility: visible;
}

.flow-arrow {
    color: #cccccc;
    width: 28px;
    height: 28px;
    margin: 8px auto;
    display: block;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Card 2: Quintis e Decis */
.row-quintis-pro {
    display: flex !important;
    width: 100% !important;
    gap: 8px;
    margin-bottom: 24px;
}

.row-decis-pro {
    display: flex !important;
    width: 100% !important;
    gap: 4px;
    margin-top: 10px;
}

.box-q-pro {
    flex: 1;
    height: 70px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.box-d-pro {
    flex: 1;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.box-q-pro .q-val { 
    font-size: 1.1rem; 
    font-weight: 800; 
    line-height: 1; 
}

.box-q-pro .q-label { 
    font-size: 0.55rem; 
    text-transform: uppercase; 
    margin-top: 4px; 
    opacity: 0.95; 
    text-align: center; 
    line-height: 1.2; 
}

/* Interações e Animação CSS Nativa */
.box-q-pro:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); 
}

.box-d-pro:hover { 
    transform: scale(1.15); 
    z-index: 10; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}

.box-q-pro, .box-d-pro {
    animation: fadeInUPBox 0.5s ease forwards;
    opacity: 0;
}

.box-q-pro:nth-child(1) { animation-delay: 0.1s; } 
.box-q-pro:nth-child(2) { animation-delay: 0.2s; }
.box-q-pro:nth-child(3) { animation-delay: 0.3s; } 
.box-q-pro:nth-child(4) { animation-delay: 0.4s; }
.box-q-pro:nth-child(5) { animation-delay: 0.5s; }

.box-d-pro:nth-child(1) { animation-delay: 0.6s; } 
.box-d-pro:nth-child(2) { animation-delay: 0.65s; }
.box-d-pro:nth-child(3) { animation-delay: 0.7s; } 
.box-d-pro:nth-child(4) { animation-delay: 0.75s; }
.box-d-pro:nth-child(5) { animation-delay: 0.8s; } 
.box-d-pro:nth-child(6) { animation-delay: 0.85s; }
.box-d-pro:nth-child(7) { animation-delay: 0.9s; } 
.box-d-pro:nth-child(8) { animation-delay: 0.95s; }
.box-d-pro:nth-child(9) { animation-delay: 1.0s; } 
.box-d-pro:nth-child(10) { animation-delay: 1.05s; }

@keyframes fadeInUPBox {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sistema Unificado de Tooltip (Quintis e Decis) para gerar baloes informativos */
.box-q-pro::after,
.box-d-pro::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--fnp-dark-blue, #103758);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.box-q-pro::before,
.box-d-pro::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--fnp-dark-blue, #103758);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 20;
    pointer-events: none;
}

.box-q-pro:hover::after,
.box-d-pro:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.box-q-pro:hover::before,
.box-d-pro:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Divisor Fino (Aprofundamento) */
.divider-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0 20px 0;
    position: relative;
    width: 100%;
}

.divider-pro::before { 
    content: ""; 
    position: absolute; 
    top: 50%; 
    left: 0; 
    width: 100%; 
    height: 1px; 
    background: #f0f0f0; 
    z-index: 1; 
}

.divider-pro span { 
    background: #ffffff; 
    padding: 0 12px; 
    font-size: 0.7rem; 
    color: #999999; 
    position: relative; 
    z-index: 2; 
}

/* Paleta de Cores FNP */
.q-red { background: #A81C21; } 
.q-orange { background: #E47326; } 
.q-yellow { background: #F4D01D; } 
.q-green-light { background: #6AC074; } 
.q-green { background: #1C9148; }

.d-1 { background: #960E16; } 
.d-2 { background: #CF3026; } 
.d-3 { background: #EB6630; } 
.d-4 { background: #F8A555; } 
.d-5 { background: #FCE182; } 
.d-6 { background: #DDEC88; } 
.d-7 { background: #9DD57D; } 
.d-8 { background: #60BA69; } 
.d-9 { background: #2D964D; } 
.d-10 { background: #076931; }

/* Tópicos da Metodologia (Saiba Mais) */
.methodology-topics {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 10px;
    text-align: left;
}

.topic-item {
    border-left: 3px solid #e0e0e0;
    padding-left: 20px;
    transition: border-color 0.3s ease;
}

.topic-item:hover { 
    border-left-color: var(--fnp-blue, #003366); 
}

.topic-item h4 { 
    margin: 0 0 8px 0; 
    font-size: 1rem; 
    font-weight: 700; 
    color: var(--fnp-dark-blue, #003366); 
    font-family: 'Inter', sans-serif; 
}

.topic-item p { 
    margin: 0; 
    font-size: 0.95rem; 
    line-height: 1.6; 
    color: #555; 
    font-family: 'Inter', sans-serif; 
}

.topic-item strong { 
    color: var(--fnp-dark-blue, #003366); 
    font-weight: 600; 
}

/* Responsividade */
@media (max-width: 480px) {
    .row-quintis-pro { flex-wrap: wrap; }
    .box-q-pro { flex: 1 1 45%; }
    .row-decis-pro { flex-wrap: wrap; }
    .box-d-pro { flex: 1 1 18%; margin-bottom: 4px; }
    
    .box-q-pro:hover::after, 
    .box-q-pro:hover::before,
    .box-d-pro:hover::after, 
    .box-d-pro:hover::before { display: none; }
}

/* ==========================================================================
   7. SEÇÃO: FUNCIONALIDADES (GRID E CARDS) - REVISADO
   ========================================================================== */

/* Expansão de área horizontal nesta seção */
#funcionalidades .section-content {
    max-width: 1400px; 
}

   /* Cores do Tema FNP */
:root {
    --fnp-blue: #003366;
    --fnp-green: #27AE60;
    --fnp-yellow: #F3A912;
}

/* Base do botão CTA Link */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 20px;
    color: white !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

/* 1. Análise Gráfica (Azul) */
.feature-card:nth-child(1) .cta-link {
    background: var(--fnp-blue);
}
.feature-card:nth-child(1):hover .cta-link {
    background: #004a94;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

/* 2. Mapa Interativo (Verde) */
.feature-card:nth-child(2) .cta-link {
    background: var(--fnp-green);
}
.feature-card:nth-child(2):hover .cta-link {
    background: #2ecc71;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* 3. Análise Agregada (Amarelo FNP) */
.feature-card:nth-child(3) .orange-icon {
    background: var(--fnp-yellow) !important;
    color: #000 !important;
}

.feature-card:nth-child(3) .cta-link {
    background: var(--fnp-yellow) !important;
    color: #000 !important; 
}

.feature-card:nth-child(3):hover .cta-link {
    background: #f39c12; 
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

/* Garante que o texto dentro dos cards use Inter */
.feature-card h4, 
.hover-details p, 
.hover-details li {
    font-family: 'Inter', sans-serif !important;
}

.feature-card h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Intro centralizada da seção */
.section-intro { 
    width: 100%; 
    text-align: center; 
    margin-bottom: 15px; 
    font-family: 'Inter', sans-serif;
}
.intro-text { 
    max-width: 600px; 
    margin: 0 auto; 
    color: #666; 
    line-height: 1.6;
}

/* Grid principal */
.features-grid {
    display: grid;
    gap: 30px;
    margin-top: 25px;
    width: 100%;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.section-action-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px; 
    margin-bottom: 10px;
}

/* --- Botão Veja Tutorial --- */
.btn-tutorial {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: white; 
    border: 1px solid #e0e0e0; 
    color: var(--fnp-dark-blue); 
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    /* Removido text-transform uppercase para igualar ao padrão "Saiba mais" */
}
/*Mensagem Em Construção*/
.construction-message {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--fnp-dark-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.construction-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.construction-message p {
    font-size: 1rem;
    color: #666;
}
/* Fundo escuro do modal */
.tutorial-modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    align-items: center;
    justify-content: center;
}

/* Mostra o modal quando ativo */
.tutorial-modal.active {
    display: flex;
}

/* Caixa branca central */
.tutorial-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Botão X de fechar */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

/* Texto do corpo */
.construction-body h3 {
    color: var(--fnp-dark-blue);
    margin-bottom: 10px;
}
/*fim frase construção*/


/* Hover: Ganha destaque com a cor da marca */
.btn-tutorial:hover {
    border-color: var(--fnp-blue);
    color: var(--fnp-blue);
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.1); 
}

/* Garante que o ícone SVG acompanhe a mudança de cor do texto */
.btn-tutorial svg {
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
}

.btn-tutorial:hover svg {
    color: var(--fnp-blue);
}

/* Modal de Vídeo */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: black;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-video-player {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.close-modal-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}

/* Mantém estilos anteriores dos Cards, Hover e demais */
.feature-card {
    background: white; 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative; 
    height: 440px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    font-family: 'Inter', sans-serif;
}

/* Card de funcionalidade (Tag <a>) */
.feature-card {
    background: white; 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative; 
    height: 550px; 
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
    text-decoration: none !important; 
    color: inherit !important; 
    font-family: 'Inter', sans-serif;
}

.feature-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Container de mídia */
.media-container {
    width: 100%; 
    height: 100%;
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 1;
}

.card-video { width: 100%; height: 100%; object-fit: cover; }
.static-media.map-bg { background: #e0f2f1; }
.static-media.chart-bg { background: #fff3e0; }

.video-overlay {
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

/* Painel de informações deslizante */
.card-info {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    padding: 25px; 
    z-index: 2; 
    background: white;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(calc(100% - 90px)); 
    box-sizing: border-box;
}

.feature-card:hover .card-info { 
    transform: translateY(0); 
}

/* Cabeçalho */
.info-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.info-header h4 { 
    margin: 0; 
    font-size: 1.35rem; 
    font-weight: 700;
    color: var(--fnp-dark-blue); 
    letter-spacing: -0.01em;
}

/* Detalhes no hover */
.hover-details {
    opacity: 0; 
    transition: opacity 0.3s ease 0.15s;
    font-size: 0.92rem; 
    color: #444;
    line-height: 1.5;
}

.feature-card:hover .hover-details { 
    opacity: 1; 
}

.hover-details ul { 
    margin: 15px 0; 
    padding-left: 18px; 
}

.hover-details li { 
    margin-bottom: 8px; 
}

/* ESTILO DO BOTÃO "VER ACESSAR" */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--fnp-dark-blue);
    color: white !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.2s ease;
}

.feature-card:hover .cta-link {
    background: #27AE60; 
}

/* Ícones */
.icon-box {
    width: 42px; 
    height: 42px; 
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    flex-shrink: 0;
}

.blue-icon { background: var(--fnp-dark-blue); }
.green-icon { background: #27AE60; }
.orange-icon { background: #E67E22; }

.icon-box svg { width: 22px; height: 22px; }

/* ==========================================================================
   8. UTILITÁRIOS (BOTÃO SAIBA MAIS)
   ========================================================================== */

/* Wrapper para centralização do botão expansível */
.expandable-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Ajuste de margem específico para a seção Problema */
#problema .expandable-wrapper { margin-top: -50px; }

/* Botão de ação para expandir conteúdo */
.btn-read-more {
    background: transparent; 
    border: 1px solid #ddd;
    border-radius: 50px; 
    padding: 10px 24px;
    font-family: 'Inter', sans-serif; 
    font-size: 0.9rem;
    font-weight: 600; 
    color: var(--fnp-dark-blue);
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-read-more:hover { 
    background: var(--fnp-light-gray); 
    border-color: var(--fnp-dark-blue); 
    transform: translateY(-2px); 
}

/* Estado ativo do botão (Conteúdo expandido) */
.btn-read-more.active { 
    background: var(--fnp-dark-blue); 
    color: white; 
    border-color: var(--fnp-dark-blue); 
}

/* Rotação do ícone Chevron quando ativo */
.btn-read-more.active .chevron-icon { transform: rotate(180deg); }
.chevron-icon { width: 16px; height: 16px; transition: transform 0.4s ease; }

/* Container de conteúdo oculto */
.expandable-content {
    max-height: 0; 
    overflow: hidden; 
    width: 100%; 
    max-width: 800px;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.content-inner { padding-top: 30px; padding-bottom: 10px; }

/* ==========================================================================
   SEÇÃO 9: NOTÍCIAS (Carrossel, Cards e Navegação)
   ========================================================================== */

/* Wrapper Principal: Posicionamento relativo para ancorar as setas */
.news-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Container de Scroll: Esconde a barra nativa mas mantém funcionalidade */
.news-container {
    width: 100%;
    padding: 20px 5px; 
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Esconder Scrollbar (Firefox) */
    scrollbar-width: none; 
    /* Esconder Scrollbar (IE/Edge) */
    -ms-overflow-style: none;  
}

/* Esconder Scrollbar (Chrome/Safari/Opera) */
.news-container::-webkit-scrollbar {
    display: none;
}

/* Trilho Flexível */
.news-track {
    display: flex;
    gap: 24px;
    padding: 10px 5px;
}

/* --- ESTILO DO CARD --- */
.news-card-pro {
    position: relative !important;;
    display: block;
    flex: 0 0 320px; 
    height: 450px;   
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background-color: var(--fnp-dark-blue, #003366);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.news-card-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Imagem de Fundo */
.news-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.news-card-pro:hover .news-bg-img {
    transform: scale(1.05);
}

/* Overlay Escuro (Gradiente) */
.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

/* Informações do Card */
.news-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Badge de Data */
.news-date-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Título da Notícia */
.news-title-pro {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 16px 0;
    display: block; 
}

/* Link "Ler mais" */
.news-read-more {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6AC074;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.news-card-pro:hover .news-read-more {
    color: #8CE095;
}

/* --- BOTÕES DE NAVEGAÇÃO (SETAS) --- */
.news-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Estado inicial: invisível até o mouse entrar ou scroll ser necessário */
    opacity: 0; 
    pointer-events: none;
}

.news-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Posicionamento */
.prev-btn { left: -24px; }
.next-btn { right: -24px; }

/* Visibilidade: Só mostra se tiver a classe .visible (controlada via JS) E mouse no wrapper */
.news-wrapper:hover .news-nav-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Em telas touch, mostra sempre se for navegável */
@media (hover: none) {
    .news-nav-btn.visible {
        opacity: 0.9;
        pointer-events: auto;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
}

/* Hover no Botão */
.news-nav-btn:hover {
    background: var(--fnp-dark-blue, #003366);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* --- ANIMAÇÃO PULSE (Convite ao clique) --- */
@keyframes nudgeRight {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(3px); }
}

@keyframes nudgeLeft {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-3px); }
}

/* Aplica animação quando visível mas não hover */
.next-btn.visible:not(:hover) {
    animation: nudgeRight 2s infinite ease-in-out;
}
.prev-btn.visible:not(:hover) {
    animation: nudgeLeft 2s infinite ease-in-out;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    .news-nav-btn {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(2px);
    }
}

/* ==========================================================================
   SEÇÃO 10: RODAPÉ 
   ========================================================================== */

.main-footer {
    background-color: var(--fnp-dark-blue, #003366);
    color: white;
    padding: 50px 20px 20px; 
    font-family: 'Inter', sans-serif;
    margin-top: 0 !important;
    padding-top: 60px;
}

/* Grid Principal (3 Colunas) */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px; 
    align-items: start;
}

/* 1. Coluna da Marca (Esquerda) */
.footer-brand h3 {
    font-size: 2.5rem; 
    font-weight: 800;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    color: white;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
    margin: 0;
}

/* Títulos das Colunas */
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
}

/* 2. Coluna de Navegação (Centro) */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #6AC074; 
    padding-left: 5px; 
}

/* 3. Coluna de Realização (Direita) */
.fnp-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    text-align: right;
}

/* Link da Logo (Novo) */
.logo-link {
    display: inline-block;
    transition: opacity 0.3s;
}
.logo-link:hover {
    opacity: 0.8;
}

/* Logo da FNP */
.footer-logo {
    display: block;
    max-width: 180px; 
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); 
    opacity: 0.9;
}

/* --- Redes Sociais (Novo) --- */
.fnp-social {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: white;
    color: var(--fnp-dark-blue, #003366);
    transform: translateY(-3px);
}

/* Barra de Copyright e Voltar ao Topo */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    font-size: 0.85rem;
    color: #ffffff !important;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0.5;
}

.footer-bottom-bar .copyright {
    color: #ffffff !important;
    opacity: 1;
    margin: 0;
}

/* Botão Voltar ao Topo (Novo) */
.back-to-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #ffffff;
    opacity: 1;

}

.back-to-top svg {
    width: 16px;
    height: 16px;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-brand p { margin: 0 auto; }

    .fnp-box {
        align-items: center; 
        text-align: center;
    }
    
    .footer-links { align-items: center; }

    /* Ajuste mobile do rodapé inferior */
    .footer-bottom-bar {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   SEÇÃO EXTRA: CTA FINAL (Call to Action)
   ========================================================================== */

.cta-section {
    background-color: #f8f9fa; 
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--fnp-dark-blue, #003366);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Botão Principal Grande */
.btn-primary-cta {
    display: inline-block;
    background-color: #6AC074; 
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px; 
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 192, 116, 0.4); 
}

.btn-primary-cta:hover {
    background-color: #58a862;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 192, 116, 0.6);
}

/* ==========================================================================
   SEÇÃO EVOLUÇÃO: TIMELINE WIDGET
   ========================================================================== */

.time-comparison-widget {
    display: flex;
    flex-direction: column;
    margin: 30px 0 40px 0;
    position: relative;
}

.time-comparison-widget::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 40px; 
    left: 6px; 
    width: 2px;
    background: linear-gradient(to bottom, #94a3b8 0%, #ef4444 100%);
    z-index: 1;
}

.time-connector {
    display: none;
}

.time-node {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.time-node.present {
    margin-top: 40px; 
}

.node-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #94a3b8;
    margin-top: 5px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.time-node.present .node-marker.highlight-red {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px #dc2626;
}

.node-content {
    display: flex;
    flex-direction: column;
}

.node-era {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.time-node.present .node-era {
    color: #ef4444;
}

.node-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.node-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   SEÇÃO EVOLUÇÃO: GRÁFICOS DE DADOS
   ========================================================================== */

.chart-spacing-top {
    margin-top: 40px;
}

.chart-header-clean {
    border-bottom: none;
    margin-bottom: 15px;
}

.chart-data-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.chart-row {
    display: grid;
    grid-template-columns: 110px 1fr 1fr;
    align-items: center;
    gap: 8px;
}

.chart-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
    color: #475569; 
}

.chart-divider {
    border-right: 2px solid #e2e8f0;
    height: 100%;
}

.chart-track {
    display: flex;
    align-items: center;
}

.chart-track.negative-track {
    justify-content: flex-end;
    border-right: 2px solid #e2e8f0;
}

.chart-bar {
    height: 24px;
    width: var(--bar-width, 0%);
    /*transition: width 0.5s ease-out;*/
}

.chart-bar.positive {
    border-radius: 0 4px 4px 0;
}

.chart-bar.negative {
    border-radius: 4px 0 0 4px;
}

/*Definição de Cores das Barras e Segmentos (Seção Evolução)*/

.bar-yellow { background-color: #FACC15; --bar-color: #FACC15; }
.val-yellow-dark { color: #ca8a04; }

.bar-orange { background-color: #F97316; --bar-color: #F97316; }
.val-orange-dark { color: #c2410c; }

.bar-red { background-color: #DC2626; --bar-color: #DC2626; }
.val-red-dark { color: #b91c1c; }

.bar-purple { background-color: #7E22CE; --bar-color: #7E22CE; }
.val-purple-dark { color: #6b21a8; }

.bar-dark-blue { background-color: #4338CA; --bar-color: #4338CA; }
.val-dark-blue { color: #4338CA; }

.bar-black { background-color: #000000; --bar-color: #000000; }
.val-black { color: #000000; }

.segment-dark { background-color: var(--fnp-dark-blue, #103758); --bar-color: var(--fnp-dark-blue, #103758); } 
.segment-gold { background-color: var(--fnp-yellow, #EEAF19); color: #000000; --bar-color: var(--fnp-yellow, #EEAF19); }

.chart-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.chart-value.positive-val { margin-left: 8px; }
.chart-value.negative-val { margin-right: 8px; }

/* ==========================================================================
   SEÇÃO EVOLUÇÃO: GRÁFICO CONDENSADO (PARTICIPAÇÃO 100%)
   ========================================================================== */

.stacked-chart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.stacked-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 16px;
}

.stacked-year {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    text-align: right;
}

.stacked-bar-wrapper {
    display: flex;
    height: 32px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.stacked-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    width: var(--segment-width, 50%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease, box-shadow 0.3s ease;
}

.segment-dark { background-color: var(--fnp-dark-blue, #103758); } 
.segment-gold { background-color: var(--fnp-yellow, #EEAF19); color: #000000; } 

.stacked-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* 1. Base estrutural garantida para TODAS as colunas do site */
.text-col, .visual-col {
    flex: 1; 
    min-width: 320px;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

/* 2. Efeito Sticky isolado EXCLUSIVAMENTE para a seção Evolução */
#evolucao .text-col {
    align-self: flex-start;
    justify-content: flex-start;
    position: -webkit-sticky;
    position: sticky;
    top: 120px; 
    padding-bottom: 20px; 
}

.chart-spacing-top {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

/* Linha divisória suave para separar blocos de gráficos */
.graph-separator {
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    margin: 40px 0;
}

/* Modificador para forçar o Tooltip a abrir para baixo */
.info-tooltip.tooltip-down .tooltip-content {
    bottom: auto;
    top: 140%; 
    transform: translateX(-50%) translateY(-5px);
}

/* Estado Hover para o modificador */
.info-tooltip.tooltip-down:hover .tooltip-content {
    transform: translateX(-50%) translateY(0);
}

/* Inverte a setinha para apontar para cima */
.info-tooltip.tooltip-down .tooltip-content::after {
    top: auto;
    bottom: 100%; 
    border-color: transparent transparent var(--fnp-dark-blue) transparent;
}


/* O fundo da linha ganha um destaque mais evidente */
.chart-row {
    transition: background-color 0.3s ease;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}
/* Aplica o efeito tanto no hover direto quanto via classe do JS */
.chart-row:hover, .chart-row.highlight-active {
    background-color: rgba(255, 255, 255, 0.08);
}

/* A barra ganha um efeito de luz e profundidade */
.chart-row:hover .chart-bar, .chart-row.highlight-active .chart-bar {
    box-shadow: 
        0 0 15px var(--bar-color, currentColor), 
        0 0 5px var(--bar-color, currentColor) inset;
    transform: scaleY(1.1) scaleX(1.02);
    z-index: 10;
}

/* O número ganha um brilho intenso */
.chart-row:hover .chart-value, .chart-row.highlight-active .chart-value {
    font-weight: 800;
    text-shadow: 0 0 10px currentColor;
}

.stacked-segment {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.stacked-segment.highlight-active {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.15) contrast(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    border-radius: 4px;
}

/* ======================================================================
 Destaque Cruzado: Texto -> Gráfico
====================================================================== */ 
.text-highlight {
    color: #FACC15;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none; 
    box-shadow: none; 
    border: none;
    transition: opacity 0.2s ease;
}

.text-highlight:hover {
    opacity: 0.8; 
}
/* Destaque para o Gráfico Evolução (ID na .chart-row) */
.chart-row.highlight-active {
    background-color: rgba(255, 255, 255, 0.08);
}
.chart-row.highlight-active .chart-bar {
    box-shadow: 0 0 15px var(--bar-color), 0 0 5px var(--bar-color) inset;
    transform: scaleY(1.1) scaleX(1.02);
    z-index: 10;
}
.chart-row.highlight-active .chart-value {
    font-weight: 800;
    text-shadow: 0 0 10px currentColor;
}

/* Destaque para o Gráfico Stacked (ID direto no .stacked-segment) */
.stacked-segment.highlight-active {
    box-shadow: 0 0 15px var(--bar-color), 0 0 5px var(--bar-color) inset;
    transform: scaleY(1.15) scaleX(1.01); 
    z-index: 10;
    font-weight: 800;
    text-shadow: 0 0 8px #ffffff;
}



/* ==========================================================================
   RESPONSIVIDADE MOBILE: SEÇÃO RAIZ DA DISTORÇÃO
   ========================================================================== */

@media (max-width: 992px) {
    /* Empilhamento vertical das colunas aplicando aos IDs mapeados para a seção de evolução/distorção */
    #evolucao .section-content,
    #raiz-distorcao .section-content {
        flex-direction: column !important;
        gap: 40px;
    }

    /* Desativa o comportamento sticky no mobile para evitar sobreposição */
    #evolucao .text-col,
    #raiz-distorcao .text-col {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        padding-bottom: 0;
    }

    /* Expande o container do gráfico para ocupar a tela inteira */
    #evolucao .visual-col,
    #raiz-distorcao .visual-col {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* ==========================================================================
   WIDGET: BUSCA DE MUNICÍPIO (METODOLOGIA)
   ========================================================================== */

.municipio-search-widget {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fnp-dark-blue, #103758);
    margin-bottom: 16px;
    text-align: center;
}

.search-input-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#muni-search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

#muni-search-input:focus {
    border-color: var(--fnp-dark-blue, #103758);
    box-shadow: 0 0 0 3px rgba(16, 55, 88, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

/* Dropdown Autocomplete */
.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 99;
    max-height: 250px;
    overflow-y: auto;
}

.autocomplete-items div {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #f1f5f9;
}

.autocomplete-items div:hover {
    background-color: #f8fafc;
    color: var(--fnp-dark-blue, #103758);
    font-weight: 600;
}

/* Card de Resultado */
.muni-result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    animation: fadeInUPBox 0.4s ease forwards;
}

.muni-result-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.muni-result-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fnp-dark-blue, #103758);
}

.muni-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.muni-metric-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.muni-metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.muni-metric-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.metric-highlight { color: var(--fnp-dark-blue, #103758); }

.hidden { display: none !important; }

/* Estrutura do card compacto de resultados */
.muni-compact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

.muni-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.muni-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fnp-dark-blue, #103758);
    margin: 0;
}

/* Sistema de tooltip para indicadores de variação */
.muni-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.muni-tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.muni-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.muni-tooltip-wrapper:hover .muni-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Tipografia e layout de valores principais */
.muni-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.muni-main-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.muni-card-footer {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

/* Estilização das etiquetas (badges) de agrupamento */
.muni-badge {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background-color: #f1f5f9; 
    color: #475569;
}

/* Componente de variação percentual */
.muni-percent-tag {
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    flex-direction: row; 
    align-items: center;
    gap: 4px;
    padding: 0;
}

.badge-positive {
    background-color: transparent;
    color: #1C9148; 
}

.badge-negative {
    background-color: transparent;
    color: #A81C21; 
}

/* Tooltip nativo via CSS para o indicador de variacao percentual */
.muni-percent-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    position: relative;
    cursor: help;
}

/* Tipografia do texto explicativo explicito. */
.muni-percent-text {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

 /* ==========================================================================
   SISTEMA DE TOOLTIP ALINHADO A DIREITA 
   ========================================================================== */
.muni-percent-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--fnp-dark-blue, #103758);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: normal;
    width: 220px;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.muni-percent-wrapper::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    right: 20px;
    border: 5px solid transparent;
    border-top-color: var(--fnp-dark-blue, #103758);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 20;
    pointer-events: none;
}

.muni-percent-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}

.muni-percent-wrapper:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   SEÇÃO FAQ: SPLIT LAYOUT ACCORDION
   ========================================================================== */

.split-layout-faq {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding-top: 80px;
}

/* Coluna Esquerda (Sticky) */
.faq-sticky-col {
    flex: 0 0 35%; 
    position: sticky;
    top: 120px; 
    display: flex;
    flex-direction: column;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fnp-dark-blue);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.faq-icon-decoration {
    width: 64px;
    height: 64px;
    color: var(--fnp-blue);
    opacity: 0.15;
}

/* Coluna Direita (Accordion) */
.faq-accordion-col {
    flex: 1; 
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.accordion-item.active {
    border-color: var(--fnp-dark-blue);
    box-shadow: 0 8px 20px rgba(16, 55, 88, 0.08);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #1e293b;
    transition: color 0.3s ease;
}

.accordion-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding-right: 20px;
}

.accordion-item.active .accordion-title {
    color: var(--fnp-dark-blue);
}

/* Ícone de Mais/Menos Animado */
.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #64748b;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
}

/* Barra Horizontal */
.accordion-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
}

/* Barra Vertical */
.accordion-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
    border-radius: 2px;
}

/* Animação para virar um X e fechar (Ativo) */
.accordion-item.active .accordion-icon::before {
    transform: rotate(180deg);
    background-color: var(--fnp-dark-blue);
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
    background-color: var(--fnp-dark-blue);
}

/* Corpo do Accordion */
.accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-item.active .accordion-body {
    grid-template-rows: 1fr;
}

.accordion-inner {
    overflow: hidden;
}

.accordion-inner p {
    padding: 0 24px 24px 24px;
    margin: 0;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}

/* Responsividade FAQ */
@media (max-width: 992px) {
    .split-layout-faq {
        flex-direction: column;
        gap: 30px;
        padding-top: 40px;
    }
    
    .faq-sticky-col {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
    }

    .faq-title { font-size: 2rem; }
    .faq-icon-decoration { display: none; } 
}

/* ==========================================================================
   AJUSTE MOBILE: SUBTÍTULO NA MESMA LINHA
   ========================================================================== */
@media (max-width: 575.98px) {
    .hero-content .hero-subtitle {
        white-space: nowrap; 
        font-size: clamp(0.7rem, 3.8vw, 0.95rem); 
        letter-spacing: -0.01em; 
        padding: 0;
        width: 100%;
    }
}