/* ============================================================
   1. CABEÇALHO (HEADER) - ESTRUTURA E AZUL SÓLIDO
   ============================================================ */
#site-header, .site-header, [data-elementor-id="145"] {
    background: linear-gradient(90deg, #49709D 0%, #283D56 100%) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    min-height: 90px !important;
    display: flex !important;
    align-items: center !important;
    border: none !important;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3) !important;
}

/* Limpeza interna total */
.header-inner, .site-branding, .site-header-main, .site-navigation {
    background-color: transparent !important;
    background-image: none !important;
}

/* LOGOTIPO */
.site-branding { padding-left: 5% !important; }
.site-branding img { filter: brightness(0) invert(1) !important; max-width: 150px !important; }

/* ============================================================
   2. MENU PC (DESKTOP)
   ============================================================ */
@media (min-width: 1025px) {
    .site-navigation { display: flex !important; flex-grow: 1 !important; justify-content: center !important; }
}

#site-header a, .menu-item a {
    color: #ffffff !important;
    font-size: 24px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}

#site-header a:hover { color: #D32F2F !important; }

/* ============================================================
   3. MENU TELEMÓVEL (FIX DO FUNDO AZUL)
   ============================================================ */
@media (max-width: 1024px) {
    /* Forçar o azul em todas as camadas da lista suspensa */
    .site-navigation-dropdown, 
    .site-navigation-dropdown ul, 
    .site-navigation-dropdown li,
    .site-navigation-dropdown a {
        background-color: #283D56 !important; /* Azul sólido */
        background: #283D56 !important;
    }

    .site-navigation-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        padding: 20px 0 !important;
        border-bottom: 4px solid #D32F2F !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Estilo dos itens no telemóvel */
    .site-navigation-dropdown a {
        color: #ffffff !important;
        text-align: center !important;
        padding: 15px !important;
        display: block !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }

    /* Destaque a Vermelho no telemóvel */
    .site-navigation-dropdown a:active, 
    .site-navigation-dropdown a:hover {
        color: #D32F2F !important;
    }

    /* Ícone hambúrguer branco */
    .site-navigation-toggle, .menu-toggle { color: #ffffff !important; font-size: 30px !important; }
}

/* ============================================================
   4. TÍTULO H1 MOBILE (AJUSTE DE TAMANHO E PADDING)
   ============================================================ */
@media (max-width: 767px) {
    h1.elementor-heading-title, 
    .elementor-element-populated h1 {
        font-size: 32px !important; 
        line-height: 1.2em !important;
        text-align: center !important;
        /* Padding ajustado para não ficar muito colado ou muito longe */
        padding-top: 40px !important; 
        padding-bottom: 30px !important;
    }
}

/* ============================================================
   5. LAYOUT GERAL, MARCAS E RODAPÉ (VERSÃO FINAL)
   ============================================================ */

/* A. LAYOUT PRODUTOS: LADO A LADO NO PC */
@media (min-width: 1025px) {
    .layout-produtos-pai { 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: flex-start !important;
    }
    .coluna-conteudo { width: 75% !important; flex: 0 0 75% !important; }
    .coluna-marcas { 
        width: 25% !important; 
        flex: 0 0 25% !important;
        padding-top: 40px !important; /* Alinha os logos com os produtos */
    }
}

/* B. MARCAS PARCEIRAS: TAMANHO PARA BARRA LATERAL */
.coluna-marcas img {
    width: 100% !important; 
    max-width: 220px !important; /* TAMANHO IDEAL: Já não é 550px */
    height: auto !important;
    display: block !important;
    margin: 0 auto 40px auto !important;
    
    /* Efeito e Animação */
    filter: grayscale(100%) opacity(0.6) !important;
    animation: flutuarMarcas 4s ease-in-out infinite !important;
    transition: all 0.4s ease !important;
}

.coluna-marcas img:hover { 
    filter: grayscale(0%) opacity(1) !important; 
    transform: scale(1.1) !important; 
}

@keyframes flutuarMarcas {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* C. RODAPÉ E LIMPEZAS */
.site-footer, #colophon, #tmpl-contact { display: none !important; }

#rodape-copy {
    background-color: #111b26 !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    padding: 15px 0 !important;
    text-align: center !important;
}
#rodape-copy p { color: #a0aab5 !important; font-size: 13px !important; margin: 0 !important; }

/* D. AJUSTES FINAIS DE CORPO */
body { padding-top: 80px !important; }
.admin-bar #site-header { top: 32px !important; }