/*---=========================================================================
   PAGE HERO: NOTÍCIAS (Newsroom Style)
==========================================================================---*/

/* --- NEWS HUB SPECIALIZATION --- */

.hero-badge-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Badge secundário para o contador */
.hero-badge.badge--secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Animação do Ponto "Live" */
.pulse-animation {
    background: #ff4d4d !important; /* Vermelho alerta/news */
    box-shadow: 0 0 0 rgba(255, 77, 77, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* Ajuste de Z-index do Menu (Lembrete do Fix anterior) */
.aiba-internal-hero.bc--news-hub {
    z-index: 1; /* Mantém o menu funcionando perfeitamente */
}

/* Variação de Layout: Split (Texto Esq / Dados Dir) */
.aiba-bc.bc--news-home .bc-head-inner {
    max-width: 100%; /* Libera a largura total */
    display: flex;
    align-items: flex-end; /* Alinha o contador na base do texto */
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 24px; /* Espaço extra antes do breadcrumb */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Linha divisória sutil */
    margin-bottom: 24px;
}

/* Coluna de Texto */
.bc-content-col {
    max-width: 700px;
}

/* Coluna de Meta Dados */
.bc-meta-col {
    flex-shrink: 0; /* Impede quebrar o contador */
    text-align: right;
    padding-bottom: 8px; /* Ajuste fino óptico */
}

/* Wrapper dos Dados */
.bc-meta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* O Pill (Cápsula de Vidro) */
.bc-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

/* Hover Effect no Pill */
.bc-meta-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.count-number {
    color: #FFF;
    font-weight: 700;
}

/* O Label Pequeno ("Atualizado em...") */
.bc-meta-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Animação: Ponto Pulsante (Live Dot) */
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e; /* Verde "Online" vibrante */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* --- RESPONSIVIDADE (Mobile Stack) --- */
@media (max-width: 991px) {
    .aiba-bc.bc--news-home .bc-head-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .bc-meta-col {
        width: 100%;
        text-align: left;
    }

    .bc-meta-wrapper {
        align-items: flex-start;
        flex-direction: row-reverse; /* Coloca o label depois do pill */
        justify-content: flex-end; /* Mantém alinhado à esquerda no container flex */
        gap: 16px;
    }
    
    /* Ajuste para mobile: Label ao lado do pill */
    .bc-meta-wrapper {
        flex-direction: row;
        align-items: center;
    }
}

/* =========================================================
   1. TOP STORIES - EDITORIAL STREAM: PROTOCOLO 1% GLOBAL
   ========================================================= */

.aiba-editorial-stream {
    background-color: var(--color-verde-claro);
    overflow: hidden;
}

.container--wide {
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 1. HEADER & CONTROLES TÉCNICOS */
.stream-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.technical-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-principal);
    display: block;
    margin-bottom: 12px;
}

.stream-headline {
    font-size: var(--font-size-h2);
    font-weight: 850;
    color: var(--color-escuro);
    letter-spacing: -0.04em;
    margin: 0;
}

.stream-navigation-system {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Barra de Progresso de Alta Precisão */
.stream-progress-hub {
    width: 180px;
    padding-bottom: 10px;
}

.stream-progress-track {
    height: 2px;
    background: rgba(0, 23, 25, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.stream-progress-fill {
    height: 100%;
    width: 0;
    background: var(--color-principal);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-controls {
    display: flex;
    gap: 12px;
}

.stream-nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-branco);
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--color-escuro);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: var(--color-principal);
    color: var(--color-branco);
    box-shadow: 0 15px 30px rgba(0, 123, 78, 0.2);
}

.stream-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* 2. THE EDITORIAL MONOLITH (CARDS) */
.stream-track-premium {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 60px;
    scrollbar-width: none;
}

.stream-track-premium::-webkit-scrollbar { display: none; }

.editorial-card-premium {
    flex: 0 0 420px;
    scroll-snap-align: start;
    background: var(--color-branco);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 23, 25, 0.12);
}

.card-media-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.card-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card-premium:hover .card-img-main {
    transform: scale(1.1);
}

/* Badge Glassmorphism High-Contrast */
.card-glass-badge {
    position: absolute;
    top: 24px; left: 24px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-escuro);
}

/* 3. CONTEÚDO EDITORIAL */
.card-body-content {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
}

.card-meta-date {
    font-family: 'Inter', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-nota);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-headline {
    font-size: var(--font-size-h4);
    font-weight: 800;
    color: var(--color-escuro);
    line-height: 1.3;
    margin-bottom: 32px;
    transition: color 0.4s ease;
}

.editorial-card-premium:hover .card-headline {
    color: var(--color-principal);
}

/* Ação com Micro-interação */
.card-footer-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-principal);
}

.action-text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.action-icon {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card-premium:hover .action-icon {
    transform: translateX(8px);
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .editorial-card-premium { flex: 0 0 360px; }
}

@media (max-width: 768px) {
    .container--wide { padding: 0 20px; }
    .stream-navigation-system { display: none; }
    .editorial-card-premium { flex: 0 0 88vw; border-radius: 20px; }
}

/* =========================================================
   PAINEL AGRO BAHIA: INSTRUMENTAL HUD (PROTOCOL 1%)
   Física de Movimento: cubic-bezier(0.16, 1, 0.3, 1)
   ========================================================= */

.agro-panel {
    background-color: var(--color-branco);
    position: relative;
    overflow: hidden;
}

/* 1. RESET DE ACESSIBILIDADE E INTERAÇÃO NATIVA */
.hud-tab-btn,
.weather-hud-surface,
.action-link-premium,
.hud-tab-btn:focus,
.hud-tab-btn:active,
.nl-input {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* 2. HEADER EDITORIAL (AUTORIDADE TÉCNICA) */
.technical-label-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.technical-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-principal);
}

.status-indicator.live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 900;
    color: var(--color-principal);
    text-transform: uppercase;
}

.status-indicator.live::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--color-principal);
    border-radius: 50%;
    animation: hudPulse 2s infinite;
}

@keyframes hudPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 78, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(0, 123, 78, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 78, 0); }
}

/* 3. A SUPERFÍCIE HUD (WEATHER & QUOTES) */
.weather-hud-surface,
.quotes-hud-surface {
    background: #FFF;
    border: 1px solid rgba(0, 23, 25, 0.06);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: 
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
        box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.6s ease;
    will-change: transform, box-shadow;
}

.weather-hud-surface:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px rgba(0, 23, 25, 0.08);
    border-color: rgba(0, 123, 78, 0.1);
}

/* 4. CONTROLE SEGMENTADO (TABS) */
.hud-segmented-control {
    background: var(--color-verde-claro);
    padding: 6px;
    border-radius: 16px;
    display: inline-flex;
    gap: 4px;
    margin-bottom: 40px;
}

.hud-tab-btn {
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-nota);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: 
        background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.4s ease,
        transform 0.4s ease;
}

.hud-tab-btn:hover:not(.active) {
    color: var(--color-principal);
    background-color: rgba(255, 255, 255, 0.5);
}

.hud-tab-btn.active {
    background: #FFF;
    color: var(--color-principal);
    box-shadow: 0 4px 12px rgba(0, 23, 25, 0.05);
}

/* 5. DISPLAY DE DADOS (TIPOGRAFIA TABULAR) */
.hud-main-display {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hud-temp-main {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 84px;
    font-weight: 850;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--color-escuro);
    font-variant-numeric: tabular-nums; /* Essencial para dados técnicos */
}

.temp-unit {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-principal);
    margin-top: 10px;
}

/* 6. GRID DE INSTRUMENTOS */
.hud-instrument-grid {
    margin-top: 40px;
    background: var(--color-verde-claro);
    border-radius: 20px;
    display: flex;
    padding: 24px;
    justify-content: space-around;
}

.instrument-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.instrument-item i {
    color: var(--color-principal);
    width: 20px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.inst-val {
    font-family: 'Inter', monospace;
    font-weight: 800;
    font-size: 16px;
    color: var(--color-escuro);
}

.inst-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-nota);
    letter-spacing: 0.05em;
}

.instrument-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.05);
    height: 40px;
    align-self: center;
}

/* 7. PREVISÃO ESTENDIDA (SIDEBAR) */
.hud-forecast-column {
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    padding-left: 40px;
}

.forecast-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-nota);
    margin-bottom: 24px;
    opacity: 0.6;
}

.forecast-row-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.3s ease;
}

.forecast-row-premium:hover {
    background: rgba(0, 123, 78, 0.02);
}

.fc-day-label {
    font-weight: 800;
    font-size: 14px;
    color: var(--color-escuro);
    width: 40px;
}

.fc-temp-range {
    font-family: 'Inter', monospace;
    font-weight: 700;
    font-size: 14px;
}

.fc-temp-range .max { color: var(--color-escuro); margin-right: 8px; }
.fc-temp-range .min { color: rgba(0, 23, 25, 0.3); }

/* 8. FOOTER DO HUD */
.hud-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-source {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-nota);
    opacity: 0.4;
}

/* 9. TRANSIÇÃO DE SEÇÃO (SOLUÇÃO BRANCO-SOBRE-BRANCO) */
.section-transition-spacer {
    padding: 120px 0 0 0; /* Espaçamento massivo para respiro */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.transition-line {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, var(--color-principal), transparent);
}

.transition-marker {
    margin-top: 24px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-nota);
    opacity: 0.4;
}

/* RESPONSIVIDADE */
@media (max-width: 991px) {
    .hud-main-display { grid-template-columns: 1fr; gap: 40px; }
    .hud-forecast-column { border-left: none; border-top: 1px solid rgba(0,0,0,0.05); padding-left: 0; padding-top: 40px; }
    .weather-hud-surface { padding: 30px; }
}

/* =========================================================
   2.2 MINI PAINEL DE COTAÇÕES (Widget Style)
   ========================================================= */

/* Variáveis de Cor das Commodities (Escopo Local ou Global) */
.mini-quotes-wrapper {
    --c-soja:    234, 179, 8;   /* Amarelo/Ouro */
    --c-milho:   249, 115, 22;  /* Laranja */
    --c-algodao: 14, 165, 233;  /* Azul Claro */
    --c-cafe:    180, 83, 9;    /* Marrom */
    --c-feijao:  120, 53, 15;   /* Marrom Escuro */
    --c-arroz:   20, 184, 166;  /* Teal */
    --c-sorgo:   168, 85, 247;  /* Roxo */
    --c-padrao:  100, 116, 139; /* Slate (Fallback) */
    
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Container da Lista (Permite scroll se exceder a altura do Weather) */
.mini-quotes-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px; /* Altura máxima controlada */
    overflow-y: auto;
    padding-right: 8px; /* Espaço para scrollbar */
    padding-bottom: 4px;
}

/* Scrollbar Elegante */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- O CARD (Versão Mini) --- */
.mini-cot-card {
    /* Lógica de Cores baseada no Slug */
    --theme-rgb: var(--c-padrao);
    
    background: #FFF;
    border: 1px solid var(--border-escura);
    border-radius: 16px;
    padding: 16px; /* Padding reduzido comparado ao full page */
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Mapeamento de Cores (Data Attribute) */
.mini-cot-card[data-slug*="soja"]    { --theme-rgb: var(--c-soja); }
.mini-cot-card[data-slug*="milho"]   { --theme-rgb: var(--c-milho); }
.mini-cot-card[data-slug*="algodao"] { --theme-rgb: var(--c-algodao); }
.mini-cot-card[data-slug*="cafe"]    { --theme-rgb: var(--c-cafe); }
.mini-cot-card[data-slug*="feijao"]  { --theme-rgb: var(--c-feijao); }
.mini-cot-card[data-slug*="arroz"]   { --theme-rgb: var(--c-arroz); }

/* Hover Effects */
.mini-cot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: rgba(var(--theme-rgb), 0.5);
}

/* --- LADO ESQUERDO: Token & Info --- */
.mini-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* O Token (Ícone + Badge) */
.mini-token-icon {
    width: 42px; /* Menor que os 52px da full page */
    height: 42px;
    border-radius: 12px;
    background-color: rgba(var(--theme-rgb), 0.1);
    color: rgb(var(--theme-rgb));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(var(--theme-rgb), 0.1);
}

.mini-token-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
    transform: translateY(-6px); /* Sobe para dar espaço à sigla */
}

/* O Badge com a Sigla (Ex: SOJ) */
.mini-token-icon::after {
    content: var(--ticker);
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    
    background-color: rgb(var(--theme-rgb));
    color: #fff;
    font-size: 7px; /* Micro tipografia */
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1;
    border: 2px solid #FFF; /* Borda branca cria o recorte */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Info de Texto */
.mini-card-info {
    display: flex;
    flex-direction: column;
}

.mini-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-escuro);
    margin: 0;
    line-height: 1.2;
}

.mini-card-unit {
    font-size: 11px;
    color: var(--color-nota);
    font-weight: 500;
}

/* --- LADO DIREITO: Preços --- */
.mini-card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.mini-card-price {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-escuro);
    letter-spacing: -0.02em;
}

/* Badge de Tendência (Compacto) */
.mini-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Cores de Tendência */
.mini-card-trend.up { background: #dcfce7; color: #166534; }
.mini-card-trend.down { background: #fee2e2; color: #991b1b; }
.mini-card-trend.stable { background: #f1f5f9; color: #64748b; }

/* --- FOOTER DO WIDGET --- */
.mini-quotes-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-escura);
    padding-top: 16px;
}

.btn-link-arrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-principal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.btn-link-arrow:hover {
    gap: 10px;
    text-decoration: underline;
}

.mini-update-date {
    font-size: 11px;
    color: #94a3b8;
}

/* Responsividade Mobile */
@media (max-width: 576px) {
    .mini-quotes-list {
        max-height: 300px; /* Menor no mobile */
    }
}

/* =========================================================
   3. NEWS-LATEST: CHRONOLOGICAL FEED (PROTOCOL 1%)
   ========================================================= */

.news-latest {
    background-color: var(--color-branco);
}

.editorial-head {
    margin-bottom: 80px;
}

.technical-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-principal);
    display: block;
    margin-bottom: 12px;
}

.editorial-title {
    font-size: var(--font-size-h2);
    font-weight: 850;
    color: var(--color-escuro);
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.editorial-sub-lead {
    font-size: var(--font-size-lead);
    color: var(--color-text-lead);
    max-width: 650px;
    line-height: var(--line-height-padrao);
}

/* 1. O FEED (STACK) */
.news-latest-stack {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
}

.news-item-premium {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.5s var(--bezier-premium);
    position: relative;
}

.news-item-premium:last-child { border-bottom: none; padding-bottom: opx;}

.news-item-anchor {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    text-decoration: none;
    align-items: center;
}

/* 2. MEDIA LAYER */
.news-item-media {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--color-verde-claro);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    will-change: transform;
    transition: transform 0.8s var(--bezier-premium);
}

/* Overlay sutil para aumentar a profundidade no hover */
.news-item-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,23,25,0.1), transparent);
    opacity: 0;
    transition: opacity 1s var(--bezier-premium);
}

.news-item-premium:hover .news-item-media::after {
    opacity: 1;
}

.news-item-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
/* Duração estendida para efeito cinematográfico */
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform;
}

.news-item-premium:hover .news-item-media {
    transform: scale(1.02);
}

.news-item-premium:hover .news-item-thumb {
    /* Zoom reduzido para 1.06: mais sofisticação, menos agressão */
    transform: scale(1.06);
}

/* 3. CONTENT LAYER */
.news-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.news-item-cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-principal);
    background: rgba(0, 123, 78, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.news-item-date {
    font-family: 'Inter', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-nota);
}

.news-item-title {
    font-size: var(--font-size-h3);
    font-weight: 800;
    color: var(--color-escuro);
    line-height: 1.2;
    margin-bottom: 16px;
    transition: color 0.4s ease;
}

.news-item-premium:hover .news-item-title {
    color: var(--color-principal);
}

.news-item-excerpt {
    font-size: var(--font-size-p);
    color: var(--color-text-card);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 4. ACTION (READ MORE) */
.action-link-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--color-principal);
    transition: all 0.4s var(--bezier-premium);
}

.action-link-premium svg {
    /* Curva de "mola" sem o bounce: foco na suavidade */
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-item-premium:hover .action-link-premium svg {
    /* Deslocamento reduzido de 10px para 6px: precisão milimétrica */
    transform: translateX(6px); 
}

/* 5. PAGINAÇÃO PREMIUM */
.pagination-premium-wrapper {
    margin-top: 100px;
    display: flex;
    justify-content: center;
}

.pagination-premium-wrapper ul.page-numbers {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.pagination-premium-wrapper .page-numbers a,
.pagination-premium-wrapper .page-numbers span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-escuro);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--bezier-premium);
}

.pagination-premium-wrapper .page-numbers a:hover {
    background: var(--color-principal);
    color: #FFF;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 123, 78, 0.2);
}

.pagination-premium-wrapper .page-numbers .current {
    background: var(--color-escuro);
    color: #FFF;
    border-color: var(--color-escuro);
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .news-item-anchor { grid-template-columns: 280px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .news-item-anchor { grid-template-columns: 1fr; gap: 30px; }
    .news-item-premium { padding: 40px 0; }
}

/* =========================================================
   NEWS-TRAILS: CONTENT SHELVES (PROTOCOL 1% GLOBAL)
   ========================================================= */

.news-trails {
    background-color: var(--color-verde-claro);
}

.news-trails-stack {
    display: flex;
    flex-direction: column;
    gap: 120px; 
}

/* 1. SHELF HEADER */
.trail-shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.trail-headline {
    font-size: var(--font-size-h3);
    font-weight: 850;
    color: var(--color-escuro);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.trail-description {
    font-size: var(--font-size-p);
    color: var(--color-text-card);
    max-width: 550px;
    line-height: 1.5;
}

/* 2. GRID SYSTEM */
.trail-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* 3. TRAIL CARD & PHYSICS */
.news-card-trail-premium {
    position: relative;
    transition: all 0.6s var(--bezier-premium);
}

.trail-card-media {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--color-verde-claro);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.trail-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    /* Zoom Cinematográfico Ultra Suave: 2.5s */
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.news-card-trail-premium:hover .trail-thumb {
    transform: scale(1.06); /* Escala reduzida para sofisticação */
}

/* Typography & Metadata */
.trail-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.trail-badge-mono {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-principal);
    opacity: 0.6;
}

.trail-card-date {
    font-family: 'Inter', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-nota);
}

.trail-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-escuro);
    line-height: 1.3;
    margin-bottom: 12px;
    transition: color 0.4s ease;
}

.news-card-trail-premium:hover .trail-card-title {
    color: var(--color-principal);
}

/* 4. ACTION LINK PHYSICS */
.action-link-premium svg {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-link-premium:hover svg {
    transform: translateX(6px); /* Movimento controlado sem brusquidão */
}

/* RESPONSIVIDADE (APP-LIKE) */
@media (max-width: 1024px) {
    .trail-grid-premium { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .trail-grid-premium {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 30px;
        margin: 0 -20px;
        padding-left: 20px;
        scrollbar-width: none;
    }
    .trail-grid-premium::-webkit-scrollbar { display: none; }
    .news-card-trail-premium {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

/* =========================================================
   NEWS-SEARCH-FOOTER: FLOATING HUD (PROTOCOL 1% GLOBAL)
   Física de Movimento: Cubic-Bezier (0.16, 1, 0.3, 1)
   ========================================================= */

.news-search-footer {
    background-color: var(--color-verde-claro);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: var(--spacing-section) 0;
}

/* Ponte visual de transição para quebrar a sequência cromática */
.nsf-gradient-bridge {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.nsf-hud-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* 1. GLASS SURFACE (A Lente de Busca) */
.nsf-glass-surface {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 23, 25, 0.05);
    
    /* Física de Elevação Suave */
    transition: 
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
        box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
}

.nsf-glass-surface:hover {
    /* Elevação milimétrica para evitar brusquidão */
    transform: translateY(-6px);
    box-shadow: 0 50px 100px rgba(0, 23, 25, 0.1);
}

/* 2. FORMULÁRIO DE PRECISÃO (Sem borda nativa) */
.nsf-field-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-branco);
    border: 1px solid rgba(0, 123, 78, 0.08);
    border-radius: 20px;
    padding: 8px 8px 8px 24px;
    outline: none; /* Remoção definitiva da borda nativa */
    
    transition: 
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s ease;
}

.nsf-field-group:focus-within {
    outline: none;
    border-color: var(--color-principal);
    transform: scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 123, 78, 0.1);
}

.nsf-ico-search {
    color: var(--color-principal);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.nsf-field-group:focus-within .nsf-ico-search {
    opacity: 1;
}

.nsf-input-premium {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-escuro);
    box-shadow: none !important;
}

.nsf-input-premium::placeholder { color: #A5BDB6; }

/* Botão de Ação Primária */
.nsf-submit-premium {
    background: var(--color-principal);
    color: var(--color-branco);
    border: none;
    padding: 0 32px;
    height: 54px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nsf-submit-premium:hover {
    background: var(--color-escuro);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 23, 25, 0.2);
}

/* 3. LIVE RESULTS (Container Dinâmico) */
.nsf-live-results-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 24px 24px;
}

.nsf-live-results-container.has-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 32px;
    padding: 32px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

/* 4. CHIPS DE FILTRO (Tópicos Frequentes) */
.nsf-topics-nav {
    margin-top: 48px;
    text-align: center;
}

.nsf-topics-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-nota);
    display: block;
    margin-bottom: 24px;
    opacity: 0.6;
}

.nsf-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.nsf-chip-premium {
    padding: 12px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 123, 78, 0.06);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-card);
    cursor: pointer;
    /* Suavização de hover nos chips */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nsf-chip-premium:hover {
    background: var(--color-branco);
    border-color: var(--color-principal);
    color: var(--color-principal);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 123, 78, 0.08);
}

.nsf-chip-premium.is-active {
    background: var(--color-escuro);
    color: var(--color-branco);
    border-color: var(--color-escuro);
    box-shadow: 0 10px 20px rgba(0, 23, 25, 0.15);
}

/* 5. RESPONSIVIDADE RIGOROSA */
@media (max-width: 768px) {
    .nsf-glass-surface { padding: 40px 24px; border-radius: 32px; }
    .nsf-field-group { padding: 6px 6px 6px 16px; border-radius: 16px; }
    .nsf-input-premium { padding: 12px; font-size: 16px; }
    .nsf-submit-premium { padding: 0 20px; font-size: 13px; height: 48px; border-radius: 10px; }
    .nsf-chips-wrapper { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; margin: 0 -20px; padding-left: 20px; }
    .nsf-chip-premium { white-space: nowrap; }
}

/* =========================================================
   NEWS-NEWSLETTER: HIGH-FIDELITY CONVERSION (PROTOCOL 1%)
   ========================================================= */

.news-newsletter {
    background-color: var(--color-escuro);
    background-image: radial-gradient(circle at 90% 10%, rgba(0, 123, 78, 0.15) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
    color: var(--color-branco);
}

.nl-ambient-glow {
    position: absolute;
    top: -20%; left: -10%;
    width: 60%; height: 140%;
    background: radial-gradient(circle, rgba(0, 123, 78, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.nl-wrapper-premium {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 1. EDITORIAL CONTENT */
.nl-headline {
    font-size: var(--font-size-h1);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(90deg, #FFF 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nl-description {
    font-size: var(--font-size-lead);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--line-height-padrao);
    max-width: 480px;
}

/* 2. FORM SURFACE (GLASS DESIGN) */
.nl-form-surface {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.nl-input-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Campos de entrada com Labels Flutuantes Modernos */
.nl-field {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    /* Transição mais longa para suavizar a entrada de foco */
    transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl-field:focus-within {
    border-color: var(--color-principal);
}

/* =========================================================
   RESET DE FOCO DE ALTA FIDELIDADE
   ========================================================= */

.nl-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-branco);
    
    /* 1. REMOÇÃO DE INTERFERÊNCIA NATIVA */
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent !important; /* Remove o flash azul/amarelo em mobile */
}

/* 2. ATAQUE DIRETO AOS ESTADOS DE FOCO */
.nl-input:focus, 
.nl-input:active, 
.nl-input:focus-visible,
.nl-input:focus-within {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* 3. TRATAMENTO PARA AUTOCOMPLETE (Chrome/Safari) */
.nl-input:-webkit-autofill,
.nl-input:-webkit-autofill:hover, 
.nl-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-branco) !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 4. GARANTIA DE ACESSIBILIDADE (Nosso design é o sinal) */
/* Como removemos a borda nativa, o destaque visual é a nossa borda inferior */
.nl-field {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl-field:focus-within {
    border-color: var(--color-principal) !important;
}

.nl-input::placeholder {
    color: transparent; /* Escondido para o label flutuante */
}

.nl-label {
    position: absolute;
    top: 12px; left: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;

    /* Transição calibrada para subir suavemente */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, font-size, top;
}

/* Lógica de Label Flutuante */
.nl-input:focus + .nl-label,
.nl-input:not(:placeholder-shown) + .nl-label {
    top: -16px; /* Subida levemente maior para respiro */
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-principal);
    opacity: 1;
}

/* 3. SUBMIT BUTTON PHYSICS */
.nl-submit-btn {
    margin-top: 10px;
    background: var(--color-principal);
    color: var(--color-branco);
    border: none;
    height: 64px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;

    /* Física de movimento: 0.8s para uma resposta táctil premium */
    transition: 
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.5s ease,
        box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    will-change: transform, box-shadow;
}

.nl-submit-btn:hover {
background: var(--color-branco);
    color: var(--color-escuro);
    /* Elevação reduzida para 4px: precisão milimétrica */
    transform: translateY(-4px); 
    box-shadow: 0 25px 50px rgba(0, 123, 78, 0.2);
}

.nl-submit-btn svg {
    /* Deslocamento do ícone com "mola" final */
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl-submit-btn:hover svg {
    transform: translateX(8px);
}

.nl-privacy-note {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .nl-wrapper-premium { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .nl-description { margin: 0 auto; }
}

@media (max-width: 768px) {
    .nl-form-surface { padding: 40px 24px; }
}