/* ==========================================================================
   1. VARIÁVEIS E BASE (BRANDBOOK MOSAICO PLUS)
   ========================================================================== */
:root {
    --vermelho-mosaico: #E31E27;
    --cinza-titanio: #A1A19F;
    --chumbo: #2C2C2C;
    --preto-institucional: #001f34;
    --branco: #FFFFFF;
    --fundo-claro: #F4F4F4;
    --fonte-titulo: 'Montserrat', sans-serif;
    --fonte-corpo: 'Roboto', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    max-width: 100vw; /* Trava absoluta contra vazamento mobile */
    overflow-x: hidden; /* Configuração mantida estritamente para não criar barra de rolagem horizontal */
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--fonte-corpo);
    color: var(--chumbo);
    line-height: 1.6;
    background-color: var(--fundo-claro);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.container { 
    width: 100%; 
    padding: 0 20px; 
    margin: 0 auto; 
}

section { 
    padding: 80px 0; 
    overflow: hidden; /* Blindagem extra contra vazamento de elementos */
}

/* ==========================================================================
   2. TIPOGRAFIA E CORES
   ========================================================================== */
h1, h2, h3, h4 { 
    font-family: var(--fonte-titulo); 
    color: var(--preto-institucional); 
    line-height: 1.2; 
}

h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; letter-spacing: -0.5px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.text-red { color: var(--vermelho-mosaico); }
.bg-light { background-color: var(--fundo-claro); }
.bg-white { background-color: var(--branco); }
.bg-dark { background-color: var(--preto-institucional) !important; color: var(--branco) !important; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark p, .bg-dark li { color: var(--branco) !important; }

/* ==========================================================================
   2.1. BLINDAGEM DO EFEITO ZEBRA (FUNDO DAS SEÇÕES)
   Aqui forçamos a alternância de cores para resolver o bloco visual repetido
   ========================================================================== */
.hero { background-color: var(--preto-institucional) !important; }
.logos-section { background-color: var(--fundo-claro) !important; }
.technologies-section { background-color: var(--branco) !important; }
.triad-section { background-color: var(--fundo-claro) !important; }
.products-section { background-color: var(--branco) !important; }
.calculator-section { background-color: var(--fundo-claro) !important; } /* Corrigido */
.advantages-section { background-color: var(--branco) !important; } /* Corrigido */
.help-section { background-color: var(--fundo-claro) !important; } /* Corrigido */
.media-section { background-color: var(--preto-institucional) !important; }
.testimonials-section { background-color: var(--branco) !important; } /* Corrigido */
.blog-section { background-color: var(--fundo-claro) !important; } /* Corrigido */
.about-section { background-color: var(--branco) !important; } /* Corrigido */
.contact-section { background-color: var(--fundo-claro) !important; } /* Corrigido */

.kicker { 
    display: block; 
    font-size: 0.85rem; 
    font-weight: 700; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    color: var(--cinza-titanio); 
}

.center { text-align: center; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 30px; }
.mt-5 { margin-top: 50px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 30px; }
.mb-5 { margin-bottom: 50px; }

/* ==========================================================================
   3. BOTÕES E LINKS
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--vermelho-mosaico);
    color: var(--branco);
    padding: 15px 30px;
    font-family: var(--fonte-titulo);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 8px;
    text-align: center;
}

.btn-primary:hover { 
    background-color: #B3151D;
    transform: translateY(-2px);
}

.btn-block { display: block; width: 100%; }

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    color: var(--vermelho-mosaico);
}

.link-arrow:hover { transform: translateX(5px); }

/* ==========================================================================
   4. NAVBAR ILHA FLUTUANTE E DROPDOWN
   ========================================================================== */
.navbar.floating-island {
    background-color: var(--preto-institucional);
    padding: 15px 30px;
    position: fixed;
    top: 25px; 
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: top 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.floating-island.scrolled {
    top: 15px;
    background-color: rgba(0, 31, 52, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand { 
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img, .logo-svg {
    height: 35px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand:hover .logo-img, .brand:hover .logo-svg {
    transform: scale(1.05); 
}

.desktop-only-btn { display: none; }

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--branco);
    border-radius: 3px;
    transition: 0.3s;
}

.hero { padding-top: 160px; }

/* ==========================================================================
   DROPDOWN MENU (CASCATA) COM CORREÇÃO DE ZONA MORTA
   ========================================================================== */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle .arrow-down {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--preto-institucional);
    min-width: 280px;
    border: 1px solid #333;
    border-top: 3px solid var(--vermelho-mosaico);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    z-index: 1001;
    margin-top: 25px; 
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.dropdown-menu a {
    display: block !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #222 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: var(--cinza-titanio) !important;
    transition: padding-left 0.2s ease, color 0.2s ease, background-color 0.2s ease !important;
}

.dropdown-menu a:last-child {
    border-bottom: none !important;
    border-radius: 0 0 10px 10px;
}

.dropdown-menu a:hover {
    background-color: rgba(227, 30, 39, 0.05) !important;
    color: var(--branco) !important;
    padding-left: 30px !important; 
    border-left: 2px solid var(--vermelho-mosaico);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MENU LATERAL (MOBILE)
   ========================================================================== */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--preto-institucional);
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.4s ease;
    z-index: 1001;
    border-left: 2px solid var(--vermelho-mosaico);
    overflow-y: auto;
}

.nav-links.active { right: 0; }

.nav-links > a, .dropdown-toggle {
    color: var(--branco);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    display: block;
}

.nav-links > a:last-child { border-bottom: none; }
.mobile-nav-btn { margin-top: 20px; width: 100%; }

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--branco);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-only-brand {
    position: absolute;
    top: 25px;
    left: 20px;
}

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 31, 52, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 1000;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   5. GRIDS E LAYOUTS 
   ========================================================================== */
.hero-container, .bento-grid, .advantages-grid, .help-grid, .media-container, .testimonials-grid, .contact-container, .footer-grid, .calc-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.section-header { max-width: 700px; margin: 0 auto 40px; position: relative; z-index: 2; }

.bento-item {
    background-color: var(--branco);
    padding: 30px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    word-break: break-word; 
}

.bento-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--vermelho-mosaico);
    transform: translateY(-3px);
}

/* ==========================================================================
   6. COMPONENTES ESPECÍFICOS E TRÍADE
   ========================================================================== */
.hero-text p { font-size: 1.1rem; color: var(--cinza-titanio); margin-bottom: 30px; }
.image-placeholder { background-color: var(--chumbo); height: 250px; width: 100%; border-left: 5px solid var(--vermelho-mosaico); border-radius: 12px; }

.card-icon { 
    height: 45px; 
    margin-bottom: 20px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

.calc-form-box { padding: 30px; border-top: 5px solid var(--vermelho-mosaico); border-radius: 12px; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { margin-bottom: 10px; font-weight: 500; }
.steps-indicator { display: flex; gap: 10px; margin-bottom: 25px; justify-content: center; }
.step { width: 30px; height: 30px; border-radius: 50%; background-color: #333; color: var(--branco); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.9rem; transition: background-color 0.3s; }
.step.active { background-color: var(--vermelho-mosaico); }

.advantage-item, .help-card { text-align: center; padding: 20px; border: 1px solid #E0E0E0; background: var(--branco); border-radius: 12px; }
.adv-icon { width: 50px; height: 50px; background-color: var(--chumbo); margin: 0 auto 20px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%); }
.help-icon { width: 40px; height: 40px; background: var(--fundo-claro); margin: 0 auto 15px; border-bottom: 3px solid var(--vermelho-mosaico); border-radius: 6px; }

.media-logos { display: flex; flex-wrap: wrap; gap: 15px; font-weight: 700; color: var(--cinza-titanio); font-size: 0.9rem; }
.video-placeholder { background-color: var(--preto-institucional); display: flex; align-items: center; justify-content: center; border: none; border-bottom: 5px solid var(--vermelho-mosaico); cursor: pointer; }
.play-btn { font-size: 3rem; color: var(--vermelho-mosaico); }

.testimonial-card { border-left: 4px solid var(--chumbo); }
.testimonial-card p { font-style: italic; margin-bottom: 20px; font-size: 1rem; }
.client-info strong { display: block; font-family: var(--fonte-titulo); color: var(--preto-institucional); }
.client-info span { font-size: 0.85rem; color: var(--cinza-titanio); }

.blog-card { border: 1px solid #E0E0E0; background: var(--branco); border-radius: 12px; overflow: hidden; transition: 0.3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.blog-img { height: 200px; border-left: none; border-bottom: 3px solid var(--vermelho-mosaico); border-radius: 0; }
.blog-content { padding: 25px; }
.blog-date { display: block; margin-top: 15px; font-size: 0.85rem; color: var(--cinza-titanio); }

.contact-form { padding: 30px; border-radius: 12px; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; }
.input-group input, .input-group select { 
    width: 100%; 
    padding: 15px; 
    border: 1px solid var(--chumbo); 
    background-color: rgba(255,255,255,0.05); 
    color: var(--branco); 
    font-family: var(--fonte-corpo);
    font-size: 1rem;
    border-radius: 8px;
}
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--vermelho-mosaico); }
.calc-form-box input { background-color: rgba(255,255,255,0.1); color: var(--branco); border: 1px solid #444; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.checkbox-group label { font-size: 0.85rem; color: var(--cinza-titanio); line-height: 1.4; }

.stats-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.stat-item { padding: 20px; display: flex; align-items: center; gap: 15px; }
.stat-icon { font-size: 2rem; font-weight: bold; }

/* ==========================================================================
   FORMATAÇÃO DO RODAPÉ (ESPAÇAMENTOS CORRIGIDOS)
   ========================================================================== */
.footer { 
    padding: 80px 0 60px 0; 
    background-color: var(--branco) !important;
    border-top: 1px solid #EAEAEA; 
}
.footer-brand p { font-size: 0.85rem; color: var(--cinza-titanio); margin-top: 5px; }
.footer-links h4 { font-size: 1rem; margin-bottom: 25px; text-transform: uppercase; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 16px; } /* Aumenta a distância entre os links do rodapé */
.footer-links a { color: var(--chumbo); text-decoration: none; font-size: 0.9rem; line-height: 1.4; transition: color 0.2s; }
.footer-links a:hover { color: var(--vermelho-mosaico); }

/* Tríade do Seguro Garantia */
.triad-section {
    position: relative;
    overflow: hidden; 
}

.triad-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.triad-card {
    background: linear-gradient(135deg, var(--vermelho-mosaico), #900000);
    padding: 35px 30px;
    border-radius: 12px;
    color: var(--branco);
    box-shadow: 0 15px 30px rgba(227, 30, 39, 0.2);
    transition: transform 0.3s ease;
}

.triad-card:hover {
    transform: translateY(-5px);
}

.triad-card h3 {
    color: var(--branco) !important;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    display: inline-block;
}

.triad-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem;
    line-height: 1.6;
}

.triad-desc {
    max-width: 800px; 
    margin: 0 auto; 
    color: var(--cinza-titanio);
}

.triad-grid-wrapper {
    position: relative; 
    z-index: 1;
}

.triad-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; 
    pointer-events: none;
}

.triad-lines svg {
    width: 100%;
    height: 100%;
    stroke: rgba(227, 30, 39, 0.4); 
    stroke-width: 2px;
    fill: none;
    stroke-dasharray: 10, 10; 
    animation: dataFlow 1.5s linear infinite; 
}

@keyframes dataFlow {
    from { stroke-dashoffset: 20; }
    to { stroke-dashoffset: 0; }
}

.desktop-only-lines { display: none; }
.mobile-only-lines { display: block; }

/* ==========================================================================
   7. CORREÇÃO DO BUG DO SELECT 
   ========================================================================== */
select.dark-select {
    background-color: rgba(255,255,255,0.1) !important;
    color: var(--branco) !important;
    border: 1px solid #444 !important;
    appearance: auto;
}
select.dark-select option { background-color: var(--chumbo) !important; color: var(--branco) !important; }
select.dark-select option:disabled { color: var(--cinza-titanio) !important; }

/* ==========================================================================
   8. WHATSAPP E CARROSSEL DE LOGOS (ESPAÇAMENTOS BLINDADOS)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 2147483647 !important; /* Força sobreposição absoluta em qualquer navegador mobile */
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none !important;
    -webkit-transform: translateZ(0); 
    transform: translateZ(0);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: #FFF;
    display: block;
    z-index: 2; 
}

.whatsapp-float:hover { 
    transform: scale(1.1); 
    background-color: #1EBE53;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-wa-clean 2s infinite;
}

@keyframes pulse-wa-clean {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.logos-title { 
    display: block; 
    text-align: center; 
    font-size: 0.85rem; 
    color: var(--cinza-titanio); 
    margin-bottom: 30px; 
    text-transform: uppercase; 
    font-weight: bold; 
}

.logos-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent, #001f34 15%, #001f34 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #001f34 15%, #001f34 85%, transparent);
}

.logos-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    animation: scroll-logos 30s linear infinite;
}

.logos-track.long-track {
    animation-duration: 80s; 
}

.logos-track:hover {
    animation-play-state: paused; 
}

/* --------------------------------------------------
   DIFERENCIAÇÃO DE TAMANHO: TEXTO x IMAGEM DE SEGURADORAS
   -------------------------------------------------- */

/* 1. Primeira esteira (Empresas - Texto) */
.logos-section .logos-marquee {
    height: auto;
    min-height: 80px; 
}
.logos-section .logo-box {
    font-size: 1.5rem;
    opacity: 0.4; /* Textos levemente apagados */
}

/* 2. Segunda esteira (Seguradoras Parceiras - Imagens) */
.testimonials-section .logos-container {
    display: block;
    width: 100%;
    margin-bottom: 80px !important; /* Parede sólida para afastar do título seguinte "CFOs que validam" */
}
.testimonials-section .logos-marquee {
    min-height: 140px; /* Trava altura suficiente para não cortar as imagens grandonas */
}
.testimonials-section .logo-box {
    opacity: 0.6; /* Imagens um pouco mais nítidas por padrão */
}

.logo-box { 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 40px;
    filter: grayscale(100%); 
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    cursor: default;
}

.logo-box:hover {
    opacity: 1;
    transform: scale(1.1); 
    filter: grayscale(0%); 
}

/* Aumenta APENAS as logos das Seguradoras */
.seguradora-logo {
    height: 90px; /* Aumento expressivo apenas aqui */
    width: auto;
    object-fit: contain;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   9. MEDIA QUERIES (DESKTOP E RESPONSIVIDADE)
   ========================================================================== */
@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 991px) {
    .navbar.floating-island {
        width: 100%;
        top: 0;
        padding: 15px 20px;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #333;
    }
    .navbar.floating-island.scrolled { top: 0; }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--vermelho-mosaico);
        border-radius: 0;
        margin-left: 15px;
        margin-top: 10px;
        min-width: 100%;
    }
    .dropdown-menu::before { display: none; }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown.active .arrow-down { transform: rotate(180deg); }
    
    .dropdown-toggle {
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .container { max-width: 1200px; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    section { padding: 100px 0; } /* Mais respiro no Desktop */
    
    .hero-container { grid-template-columns: 1fr 1fr; align-items: center; }
    .hero-text p { font-size: 1.2rem; }
    .image-placeholder { height: 450px; border-left: none; border-right: 5px solid var(--vermelho-mosaico); }
    
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-container { grid-template-columns: 1fr 1fr; align-items: center; }
    .media-container { grid-template-columns: 1fr 1fr; align-items: center; }
    .contact-container { grid-template-columns: 1fr 1fr; gap: 50px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 60px; } /* Rodapé Desktop menos imprensado */
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .help-grid { grid-template-columns: repeat(3, 1fr); }
    .advantages-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    
    .contact-form { padding: 50px; }
    .calc-form-box { padding: 50px; }
    
    .triad-grid {
        grid-template-columns: 1fr 1fr;
    }
    .card-segurado {
        grid-column: 1 / -1; 
        width: 60%;
        margin: 0 auto;
    }
    .desktop-only-lines { display: block; }
    .mobile-only-lines { display: none; }
}

@media (min-width: 992px) {
    .menu-toggle, .close-menu, .mobile-only-brand, .mobile-nav-btn { display: none !important; }
    .desktop-only-btn { display: inline-block; }
    .logo-img, .logo-svg { 
        height: 45px; 
    }
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        border: none;
        overflow: visible;
    }
    
    .nav-links > a, .dropdown {
        padding: 0;
        margin: 0 15px;
        border: none;
        font-size: 0.9rem;
        transition: color 0.3s;
    }
    
    .nav-links > a:hover, .dropdown-toggle:hover { color: var(--vermelho-mosaico); }
    .sidebar-overlay { display: none; }
    
    .brand { font-size: 1.8rem; }
    .bento-grid.products-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 70px; }

    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    .dropdown:hover .arrow-down {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   10. ESTILO PARA A IMAGEM REAL DO HERO E FUNDOS ANIMADOS
   ========================================================================== */
.hero-img-real {
    width: 100%;
    height: 250px;
    object-fit: cover; 
    border-left: 5px solid var(--vermelho-mosaico);
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

@media (min-width: 768px) {
    .hero-img-real {
        height: 450px;
        border-left: none;
        border-right: 5px solid var(--vermelho-mosaico); 
    }
}

/* ==========================================================================
   BACKGROUND ANIMADO (TRIÂNGULOS FLUTUANTES E SETAS TECH)
   ========================================================================== */
.technologies-section, .calculator-section {
    position: relative;
}

.calc-container {
    position: relative;
    z-index: 2; 
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none; 
}

.shape {
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23E31E27' opacity='0.06' d='M43.3 10.4c3.2-5.5 10.2-5.5 13.4 0l39.4 68.3c3.2 5.5-0.3 12.3-6.7 12.3H10.6c-6.4 0-9.9-6.8-6.7-12.3L43.3 10.4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: floatRandom infinite linear;
}

.shape-1 { left: 5%; top: 10%; width: 120px; height: 120px; animation-duration: 25s; animation-delay: 0s; }
.shape-2 { left: 85%; top: 20%; width: 80px; height: 80px; animation-duration: 35s; animation-delay: -5s; }
.shape-3 { left: 50%; top: 70%; width: 160px; height: 160px; animation-duration: 28s; animation-delay: -10s; }
.shape-4 { left: 70%; top: 80%; width: 100px; height: 100px; animation-duration: 32s; animation-delay: -2s; }
.shape-5 { left: 15%; top: 60%; width: 90px; height: 90px; animation-duration: 22s; animation-delay: -8s; }
.shape-6 { left: 40%; top: -10%; width: 70px; height: 70px; animation-duration: 40s; animation-delay: -15s; }

@keyframes floatRandom {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(40px, -60px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-30px, 50px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.floating-arrows {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1; 
    pointer-events: none; 
}

.arrow-up {
    position: absolute;
    bottom: -200px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100'%3E%3Cdefs%3E%3ClinearGradient id='fade' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23E31E27' stop-opacity='1'/%3E%3Cstop offset='100%25' stop-color='%23E31E27' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23fade)' d='M5 0l5 10H6v90H4V10H0z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: fastStreamUp infinite ease-in;
}

.arr-1  { left: 10%; width: 6px;  height: 120px; animation-duration: 2.5s; animation-delay: 0.1s; }
.arr-2  { left: 25%; width: 4px;  height: 80px;  animation-duration: 1.8s; animation-delay: 0.5s; }
.arr-3  { left: 45%; width: 8px;  height: 150px; animation-duration: 3.2s; animation-delay: 0.2s; }
.arr-4  { left: 60%; width: 3px;  height: 60px;  animation-duration: 1.5s; animation-delay: 0.8s; }
.arr-5  { left: 75%; width: 10px; height: 200px; animation-duration: 3.8s; animation-delay: 0.3s; }
.arr-6  { left: 88%; width: 5px;  height: 100px; animation-duration: 2.1s; animation-delay: 0.7s; }
.arr-7  { left: 5%;  width: 7px;  height: 140px; animation-duration: 2.8s; animation-delay: 1.2s; }
.arr-8  { left: 80%; width: 4px;  height: 90px;  animation-duration: 1.9s; animation-delay: 0.4s; }
.arr-9  { left: 35%; width: 5px;  height: 110px; animation-duration: 2.3s; animation-delay: 0.9s; }
.arr-10 { left: 55%; width: 9px;  height: 180px; animation-duration: 3.5s; animation-delay: 1.5s; }

@keyframes fastStreamUp {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 0.2; } 
    50% { opacity: 0.5; } 
    85% { opacity: 0; }   
    100% { transform: translateY(-1200px); opacity: 0; }
}

/* ==========================================================================
   FUNDO CHUMBO (SEÇÃO DE CFOs)
   ========================================================================== */
.bg-chumbo {
    background-color: var(--chumbo) !important;
}

/* Deixa o título branco para dar contraste com o fundo escuro */
.bg-chumbo .section-header h2 {
    color: var(--branco) !important;
}

/* Troca a borda do cartão para vermelho para não sumir no fundo chumbo */
.bg-chumbo .testimonial-card {
    border-left: 4px solid var(--vermelho-mosaico);
}

.cfos-section {
    padding-top: 60px;
    padding-bottom: 80px;
}