/*
Theme Name: CustomStack Institutional
Theme URI: https://customstack.com.br
Author: Alcides Mendes
Description: Tema focado em performance e SEO para a CustomStack. Verde Esmeralda (#2EB67D) e Azul Navy (#002E5D).
Version: 3.0
Text Domain: customstack
*/

:root {
    --verde-esmeralda: #2EB67D;
    --azul-navy: #002E5D;
    --branco: #FFFFFF;
    --cinza-claro: #F4F7F6;
    --texto: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--texto);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Menu - CORRIGIDO */
/* Usamos .custom-nav (classe) em vez de header (tag) para não afetar os posts */
.custom-nav { 
    background: var(--branco) !important; 
    border-bottom: 4px solid var(--verde-custom) !important; 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important;
    z-index: 999999 !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important; 
}

/* Garante que o cabeçalho interno dos artigos não fique grudado na tela */
article header, .entry-header {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Mantém o restante igual */
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; text-decoration: none; }
.logo .custom { color: var(--azul-navy); }
.logo .stack { color: var(--verde-custom); }

/* Hero Section */
.hero { background: var(--azul-navy); color: var(--branco); padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.btn-cta { background: var(--verde-custom); color: white; padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 20px; }

/* SEO Friendly Sections */
section { padding: 80px 0; }
h2 { color: var(--azul-navy); font-size: 2.2rem; margin-bottom: 30px; }











/* Ajustes para Tablets e Celulares - SELETOR UNIVERSAL */
@media (max-width: 768px) {
    /* Alvo: Qualquer lista (ul) que esteja dentro da sua classe .custom-nav */
    .custom-nav ul {
        display: block !important; 
        position: absolute !important;
        top: 65px !important; /* Ajuste conforme a altura do seu logo */
        left: 0 !important;
        width: 100% !important;
        background: #FFFFFF !important;
        margin: 0 !important;
        padding: 20px !important;
        list-style: none !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        z-index: 9999 !important;
    }

    .custom-nav ul li {
        display: block !important;
        width: 100% !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .custom-nav ul li a {
        color: #002E5D !important; /* Seu Azul Navy */
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 16px !important;
        display: block !important;
    }

    /* Esconde as bandeiras de idioma dentro da lista se elas estiverem bagunçando */
    .custom-nav ul .lang-item {
        display: inline-block !important;
        margin-right: 10px;
        border-bottom: none !important;
    }
}









<style>
    /* RESET E SEGURANÇA */
    *, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* RESOLVE FAIXA BRANCA */
    html { margin-top: 0 !important; }
    body { 
        margin: 0 !important; 
        padding: 0 !important; 
        padding-top: 0 !important; /* Mudado de 38px para 0 */
        font-family: 'Inter', sans-serif; 
    }

    /* RESOLVE API OBSOLETA (H1UserAgentFontSizeInSection) */
    h1 { 
        font-size: 2.5rem !important; 
        line-height: 1.2; 
    }

    /* ENCAIXE DO CONTEÚDO AZUL ABAIXO DO MENU (70px) */
    body > section:first-of-type, .hero-section { 
        margin-top: 70px !important; 
    }

    /* BANDEIRAS (Impedir que fiquem gigantes no carregamento) */
    .lang-flag img { 
        width: 22px !important; 
        height: 16px !important; 
        display: block;
        object-fit: cover;
    }



</style>


