    /* --- CONFIGURAÇÕES DO HEADER --- */
        .header {
            background-color: #004983; /* Cor azul padrão - altere se necessário */
            width: 100%;
            z-index: 1000;
        }





    @view-transition {
    navigation: auto;
    }

    /* Opcional: Ajusta a velocidade do esmaecimento para todas as páginas */
    ::view-transition-old(root),
    ::view-transition-new(root) {
    animation-duration: 0.4s; /* Deixa o fade ligeiramente mais visível */
    animation-timing-function: ease;
    }



    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        padding: 0 20px;
        position: relative;
        max-width: 1400px;
        margin: 0 auto;
    }

    .logo-img {
    height: 45px;
    transition: transform .2s;
    display: block;
    }




    /* ==========================================================================
    CONTAINER DO BANNER (DESKTOP)
    ========================================================================== */
    .hero-slanted-container {
        position: relative;
        width: 100vw;
        max-width: 100%;
        height: 65vh; 
        overflow: hidden;
        background: rgba(244, 244, 244, 1);
        margin: 0;
        padding: 0;
    }

    .hero-gradient-bottom {
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(to bottom, rgba(244, 244, 244, 0) 0%, rgba(244, 244, 244, 1) 100%);
        z-index: 20;
        pointer-events: none;
    }

    .slanted-panels {
        display: flex;
        width: 112vw; 
        margin-left: -6vw; 
        height: 100%;
    }

    /* Configuração de cada painel */
    .panel {
        flex: 1;
        position: relative;
        transform: skewX(-18deg); 
        overflow: hidden;
        border-right: 5px solid rgba(244, 244, 244, 1);
        transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        opacity: 0;
    }

    .panel:last-child {
        border-right: none;
    }

    /* Imagem de fundo */
    .panel-picture {
        display: block;
        position: absolute;
        top: 0;
        left: -35%; 
        width: 170%; 
        height: 100%;
        transform: skewX(18deg); 
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        filter: blur(0px);
    }

    .panel-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* 🌟 NOVO: CAMADA AZULADA OPACA (OVERLAY) */
    .panel-overlay {
        position: absolute;
        top: 0;
        left: -50%;
        width: 200%;
        height: 100%;
        background: rgba(16, 37, 76, 0.55); /* Tom azul escuro/médio com 55% de opacidade */
        z-index: 2;
        transition: background 0.6s ease;
    }

    /* Ao passar o mouse, a camada azul fica um pouco mais clara para destacar a foto */
    .panel:hover .panel-overlay {
        background: rgba(12, 30, 64, 0.35); 
    }

    /* 🌟 NOVO: TEXTO EM CIMA DA IMAGEM */
    .panel-text-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3;
        transform: skewX(18deg); /* ESSENCIAL: Anula os -18deg do painel para o texto ficar RETO no monitor */
        pointer-events: none; /* Permite que o clique passe direto para o link do painel */
        padding: 0 20px;
        box-sizing: border-box;
    }

    .panel-title {
        color: #ffffff;
        font-size: 2rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 3px;
        text-align: center;
        margin: 0;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); /* Sombra preta no texto para destacar no fundo */
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* EFEITOS HOVER (DESKTOP) */
    .panel:hover {
        flex: 1.8;
        z-index: 10;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    }

    .panel:hover .panel-picture {
        transform: skewX(18deg) scale(1.04); /* Leve zoom na imagem */
    }

    .panel:hover .panel-title {
        transform: scale(1.1); /* O texto cresce levemente ao interagir */
    }

    /* Desfoca suavemente as imagens dos outros painéis */
    .slanted-panels:hover .panel:not(:hover) .panel-picture {
        filter: blur(3px);
    }


    /* ==========================================================================
    MODULO 100% RESPONSIVO (CELULAR / MOBILE)
    ========================================================================== */
    @media (max-width: 768px) {
        .hero-slanted-container {
            height: 60vh; /* Altura ideal para telas em pé */
        }

        .slanted-panels {
            flex-direction: column; /* Vira uma sanfona vertical */
            width: 100%;            
            margin-left: 0;         /* Elimina barra de rolagem lateral */
        }

        .panel {
            transform: none; /* Remove a inclinação para se ajustar perfeitamente à tela */
            border-right: none;
            border-bottom: 4px solid rgba(244, 244, 244, 1); 
        }

        .panel:last-child {
            border-bottom: none;
        }

        .panel-picture {
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            transform: none;
        }

        /* Ajuste do Overlay no celular */
        .panel-overlay {
            left: 0;
            width: 100%;
            background: rgba(16, 37, 76, 0.6); /* Um pouco mais escurinho no mobile para garantir leitura */
        }

        /* Ajuste do Texto no celular */
        .panel-text-container {
            transform: none; /* Remove a compensação de inclinação já que o painel está reto */
        }

        .panel-title {
            font-size: 1.6rem; /* Tamanho confortável para dedões e telas menores */
            letter-spacing: 2px;
        }

        /* Interação ao tocar na tela do celular */
        .panel:hover {
            flex: 2.2; /* Expandido na vertical */
            z-index: 10;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
        }

        .panel:hover .panel-picture {
            transform: scale(1.03);
        }

        .slanted-panels:hover .panel:not(:hover) .panel-picture {
            filter: blur(2px);
        }

        @keyframes slideSlantedPanel {
            0% { opacity: 0; transform: translateY(-30px); }
            100% { opacity: 1; transform: translateY(0); }
        }
    }

    /* ==========================================================================
    ANIMAÇÕES DE ENTRADA
    ========================================================================== */
    .slide-to-right {
        animation: slideSlantedPanel 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideSlantedPanel {
        0% { opacity: 0; transform: skewX(-18deg) translateX(-60px); }
        100% { opacity: 1; transform: skewX(-18deg) translateX(0); }
    }

    .delay-0 { animation-delay: 0s; }
    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.2s; }





















    /* ==========================================================================
    ESTILIZAÇÃO DO RODAPÉ (FOOTER) - PADRÃO AZUL E BRANCO
    ========================================================================== */
    .main-footer {
        background-color: #004983; /* Azul escuro corporativo profundo */
        color: #ffffff;
        padding: 60px 20px 25px 20px;
        margin-top: 60px;
        font-family: 'Roboto', sans-serif;
        border-top: 4px solid #3b82f6; /* Linha de destaque azul vivo no topo */
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 40px;
    }

    .footer-column {
        flex: 1;
        min-width: 280px;
    }

    /* Seção de Logotipos do Projeto */
    .footer-logos .logo-box {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-logo-img {
        max-height: 55px;
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    .footer-logo-img.gpem-logo {
        max-height: 48px; /* Ajuste milimétrico para balancear o tamanho visual */
    }

    .footer-description {
        color: #cbd5e1; /* Branco levemente opaco/cinzento para excelente leitura */
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }

    /* Títulos das Seções */
    .footer-title {
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0 0 25px 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        padding-bottom: 10px;
    }

    /* Linha decorativa abaixo dos títulos */
    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 35px;
        height: 3px;
        background-color: #3b82f6; 
    }

    /* Área de Patrocinadores (Sponsors) */
    .sponsors-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .sponsor-card {
        background: rgba(255, 255, 255, 0.06); /* Caixa sutil translúcida */
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        text-decoration: none;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
    }

    .sponsor-card:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.12);
        border-color: #3b82f6; /* Brilha em azul ao passar o mouse */
    }

    .sponsor-logo {
        max-height: 38px;
        width: auto;
        object-fit: contain;
    }

    .sponsor-name {
        font-size: 1rem;
        font-weight: 500;
        color: #ffffff;
        letter-spacing: 0.5px;
    }

    /* Links Rápidos do Menu Inferior */
    .footer-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #cbd5e1;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.2s ease, padding-left 0.2s ease;
        display: inline-block;
    }

    .footer-links a i {
        font-size: 0.8rem;
        margin-right: 5px;
        color: #3b82f6;
    }

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

    /* Faixa de Base (Copyright) */
    .footer-bottom {
        max-width: 1200px;
        margin: 50px auto 0 auto;
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
    }

    .footer-bottom p {
        color: #94a3b8;
        font-size: 0.85rem;
        margin: 0;
    }


    /* ==========================================================================
    COMPATIBILIDADE RESPONSIVA (MOBILE)
    ========================================================================== */
    @media (max-width: 768px) {
        .main-footer {
            padding: 45px 15px 25px 15px;
        }
        
        .footer-content {
            flex-direction: column;
            gap: 35px;
            text-align: center;
        }

        .footer-column {
            min-width: 100%;
        }

        .footer-logos .logo-box {
            justify-content: center;
        }

        .footer-title::after {
            left: 50%;
            transform: translateX(-50%); /* Centraliza a barrinha azul decorativa no celular */
        }

        .sponsors-grid {
            justify-content: center;
        }
    }




















    @media (max-width: 768px) {
        /* 1. Remove a margem excessiva e ajusta a largura da logo */
        .header-left {
            margin-left: 0; /* Remove os 50px que empurravam a logo para a direita */
            flex: 0 0 auto; /* Permite que o container ocupe apenas o espaço necessário, em vez de 200px fixos */
            transition: margin 0.3s ease;
        }

        /* 2. Reduz a logo para caber melhor ao lado dos ícones */
        .logo-img {
            height: 32px !important; 
            width: auto;
        }

        /* 3. Ajusta o espaçamento do header para dar mais respiro aos elementos */
        .header-content {
            padding: 0 15px;
            gap: 10px;
        }

        /* 4. Aproxima os ícones da direita para ganhar espaço */
        .header-right {
            gap: 8px; /* Reduz o espaço entre lupa, perfil e hambúrguer */
        }
    }

    /* --- BARRA DE PESQUISA DESKTOP --- */
    .header-center-search {
        flex: 1;
        max-width: 450px;
        margin: 0 20px;
        position: relative;
    }

    .search-container {
        display: flex;
        align-items: center;
        background: white;
        border-radius: 20px;
        padding: 0 15px;
        height: 40px;
    }

    .search-container input {
        border: none;
        outline: none;
        width: 100%;
        height: 100%;
        font-size: 14px;
        background: transparent;
    }

    .search-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        padding: 0 5px;
    }

    /* HISTÓRICO FLUTUANTE PC */
    .historico-desk {
        position: absolute;
        top: 45px;
        left: 0;
        width: 100%;
        background: white;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        display: none;
        z-index: 1100;
    }

    .header-center-search:focus-within .historico-desk {
        display: block;
    }

    /* --- BOTÕES SOCIAIS E DIREITA --- */
    .header-right {
        flex: 0 0 auto; /* Ocupa apenas o espaço necessário */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 15px; /* Espaço entre os elementos */
    }

    .social-buttons {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    /* Correção do tamanho dos ícones sociais */
    .social-btn img {
        width: 28px !important; 
        height: 28px !important;
        object-fit: contain;
        transition: transform 0.2s;
    }

    .social-btn:hover img {
        transform: scale(1.1);
    }

    .hamburger {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }

    /* --- POPUP DE BUSCA MOBILE --- */
    .search-popup-mobile {
        position: fixed;
        top: -120%;
        left: 0;
        width: 100%;
        background: white;
        z-index: 10001;
        transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        padding-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .search-popup-mobile.active {
        top: 0;
    }

    .search-box-mobile {
        display: flex;
        padding: 15px;
        gap: 10px;
        border-bottom: 1px solid #eee;
    }

    .search-box-mobile input {
        flex: 1;
        height: 45px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 0 15px;
        font-size: 16px;
    }

    /* ESTILOS DE ITENS DO HISTÓRICO */
    .historico-header { padding: 12px 15px 5px; font-size: 11px; color: #aaa; font-weight: bold; }
    .historico-item {
        padding: 12px 15px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        font-size: 15px;
        color: #333;
    }
    .historico-item:hover { background: #f1f1f1; }

    @media (max-width: 768px) {
        .header-center-search, .social-buttons { display: none; }
        .search-mobile-trigger { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }
    }





    :root{
    --prim:#0f1f3d;
    --sec:#244b88;
    --text:#0f172a;
    --bg:#ffffff;
    --light:#e0e7ff;
    --muted:#6b7280;
    }

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

    body{
    font-family:"Poppins",Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    transition:background .25s,color .25s;
    overflow-x:hidden;
    }

    /* HEADER */
    .header{
    width:100%;
    background-color: rgb(0, 73, 131);
    box-shadow:0 2px 10px rgba(0,0,0,.25);
    position:sticky;
    top:0;
    z-index:1000;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Divide o espaço em 3 partes: esquerda, centro, direita */
        width: 100%;
        max-width: 1400px; /* Ou o limite que você já usa */
        margin: 0 auto;
        padding: 0 20px;
        height: 70px; /* Ajuste para a altura do seu header */
        position: relative;
    }

    .header-left {
        flex: 0 0 200px; /* Largura fixa para o logo não ser empurrado */
        display: flex;
        align-items: center;
    }

    .logo-img:hover {
    transform: scale(1.05);
    }

    .header-center{
    display:flex;
    gap:25px;
    flex:1;
    justify-content:center;
    flex-wrap:wrap;
    }
    .header-center a{color:#fff;text-decoration:none;font-weight:600;transition:color .2s}
    .header-center a:hover,.header-center a.active{color:#cde1ff}

    .header-right{display:flex;align-items:center;gap:12px}

    /* search icon */
    .search-icon{background:none;border:none;cursor:pointer;padding:6px;display:flex;align-items:center;justify-content:center}
    .icon-svg{width:22px;height:22px;fill:#fff}

    /* theme btn */
    .theme-btn{background:none;border:none;color:#fff;font-size:20px;cursor:pointer}

    /* login/logout */
    .logout-btn,.login-link{background:none;border:1px solid #fff;border-radius:8px;color:#fff;font-weight:600;padding:5px 10px;text-decoration:none;transition:background .2s}
    .logout-btn:hover,.login-link:hover{background:#ffffff22}

    /* footer */
    .footer{background-color: rgb(0, 73, 131);padding:14px;text-align:center;margin-top:40px;font-size:14px}

    /* buttons */
    .btn{background-color: rgb(0, 73, 131);color:#fff;padding:10px 16px;border-radius:8px;border:none;cursor:pointer;font-weight:600;transition:background .25s,transform .15s}

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

    /* responsive */
    @media(max-width:850px){
    .header-content{flex-wrap:wrap;justify-content:center;gap:10px}
    .header-center{order:3;gap:15px}
    .logo-img{height:50px}
    }

    .social-buttons {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; /* fundo transparente */
    border: none;           /* sem borda */
    padding: 4px;           /* espaçamento ao redor da imagem */
    border-radius: 6px;
    transition: transform 0.2s, opacity 0.2s;
    }

    .social-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;           /* leve efeito ao passar o mouse */
    }

    .social-btn img {
        width: 24px;
        height: 24px;
    }

    .social-btn .Instragram img {
    display: block;
    width: 30px;
    height: 40px;
    }

    .social-btn .Youtube img {
    display: block;
    width: 30px;
    height: 40px;
    }

    .b2 {
    display: flex;
    gap: 8px;
    }

    .b1 img {
    display: block;
    width: 30px;
    height: 30px;
    }

    .b1{
    padding-top: 6px;
    }

    .carousel-btn {
    position: absolute !important;
    }





    .header-center a {
    border-radius: 6px;

    }

    /* Zoom no hover */
    .header-center a:hover {
    transform: scale(1.15);
    }

    /* Botão AO VIVO com destaque */

    .header-center a.live:hover {
    background: #8897ecaf;
    transform: scale(1.18);
    }


    .titulo{
    color: #0b152b;
    }

    .titulo{
    color: #0b152b;
    }

    .subtitle{
    color: #0f172a;
    }





    .menu-hamburguer,
    .hamburger,
    .menu-toggle {
        display: block !important;
    }

    .menu-desktop,
    .nav-desktop,
    .menu-normal {
        display: none !important;
    }





    html, body {
    margin: 0;
    padding: 0;
    background-color: rgba(242, 242, 242); /* cor do fundo */
    }








    #popupLateral {
    position: fixed;
    right: 15px;
    top: 180px;
    width: 220px;
    z-index: 9999;
    display: none;
    }

    #popupImg {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,.4);
    }

    #fecharPopup {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 18px;
    }

    @media (max-width: 600px) {
    #popupLateral {
        width: 120px;   /* bem menor no celular */
        top: 120px;
        right: 8px;
    }

    #fecharPopup {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    }




    #popupLateral1, #popupLateral2 {
    position: fixed;
    right: 15px;
    top: 180px;
    width: 220px;
    z-index: 9999;
    display: none;
    }

    #popupLateral2 {
    top: 420px; /* segundo fica mais embaixo */
    }

    .popupImg {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,.4);
    }


    #fecharPopup2 {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 18px;
    }


    @media (max-width: 600px) {
    #popupLateral2 {
        width: 120px;   /* bem menor no celular */
        top: 120px;
        right: 8px;
    }

    #fecharPopup2 {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    }





    #popupLateral3 {
    position: fixed;
    right: 15px;
    top: 180px;
    width: 220px;
    z-index: 9999;
    display: none;
    }

    #popupLateral3 {
    top: 420px; /* segundo fica mais embaixo */
    }

    .popupImg {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,.4);
    }


    #fecharPopup3 {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 18px;
    }


    @media (max-width: 600px) {
    #popupLateral3 {
        width: 120px;   /* bem menor no celular */
        top: 120px;
        right: 8px;
    }

    #fecharPopup3 {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    }






    .footer {
    background: rgba(0, 73, 131);
    color: #ddd;
    padding: 60px 40px 20px;
    font-family: Arial, sans-serif;
    }

    .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: auto;
    }

    .footer-brand img {
    width: 160px;
    margin-bottom: 10px;
    }

    .footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    color: #bbb;
    }

    .footer-social img {
    width: 26px;
    margin-right: 10px;
    opacity: 0.8;
    transition: 0.3s;
    }

    .footer-social img:hover {
    opacity: 1;
    transform: translateY(-3px);
    }

    .footer-col h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 15px;
    }

    .footer-col a {
    display: block;
    color: #bbb;
    font-size: 14px;
    margin-bottom: 6px;
    text-decoration: none;
    }

    .footer-col a:hover {
    color: #fff;
    }

    .footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #aaa;
    }



    /* Esconder redes sociais em telas de celular (menores que 768px) */
    @media (max-width: 768px) {
    .social-buttons {
        display: none !important;
    }
    }



    /* ============================================================
    RESPONSIVIDADE (MOBILE)
    ============================================================ */




    @media (max-width: 768px) {
        .header-left {
            /* Empurra o container da logo para a direita */
            margin-left: 50px; 
            transition: margin 0.3s ease;
        }

        .logo-img {
            /* Reduz o tamanho da logo no celular */
            height: 32px !important; 
            width: auto;
        }
    }



    .header-bottom {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        padding: 0 15px;
        transition: all 0.4s ease;
        cursor: pointer;
        overflow: hidden;
        
        /* ADICIONE ESTAS LINHAS PARA REMOVER O ARREDONDAMENTO */
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100%;
    }

    .alert-content {
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap; /* Impede quebra de linha */
    }

    /* Badge do Nível (Bem compacto) */
    .alert-badge {
        font-size: 10px;
        font-weight: 900;
        padding: 2px 6px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .alert-location {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .alert-desc {
        font-size: 12px;
        font-weight: 400;
        opacity: 0.9;
    }

    /* CORES MELHORADAS */
    .alert-n1 { background-color: #cbce15 !important; color: #fff; } /* Verde escuro */
    .alert-n2 { background-color: #d8b02e !important; color: #000; } /* Amarelo */
    .alert-n3 { background-color: #e25858 !important; color: #fff; } /* Laranja */
    .alert-n4 { background-color: #e258cb !important; color: #fff; } /* Vermelho */

    /* Nível 0 - Azul Marinho Profundo */
    .alert-n0 { 
        background-color: #123468 !important; /* Azul escuro estilo radar */
        color: #ffffff !important; 
    }

    /* Pulso sutil para os níveis 3 e 4 */
    .alert-pulse-slim {
        animation: pulse-slim 2s infinite;
    }

    @keyframes pulse-slim {
        0% { opacity: 1; }
        50% { opacity: 0.7; }
        100% { opacity: 1; }
    }

    @media (max-width: 600px) {
        .alert-desc { display: none; } /* Esconde descrição no celular para caber o nível */
        .header-bottom { height: 35px; }
    }








    .header-search-container {
        flex: 1; /* Ocupa todo o espaço central disponível */
        display: flex;
        justify-content: center; /* Mantém a busca centralizada */
        max-width: 500px; /* Limita o tamanho da barra para não ficar gigante */
    }

    /* Esconde elementos exclusivos de telemóvel no PC */
    .mobile-search-trigger, 
    .close-search-btn, 
    .search-overlay-bg {
        display: none;
    }

    /* O "Wrapper" no PC apenas mantém a barra no lugar */
    .search-wrapper {
        display: flex;
        width: 100%;
        align-items: center;
    }

    /* Visual da Pílula Unificada [cite: 3] */
    .search-bar-unified {
        display: flex;
        align-items: center; /* [cite: 3] */
        width: 100%;
        background: #f1f5f9; /* [cite: 3] */
        border-radius: 30px; /* [cite: 3] */
        padding: 2px 12px; /* [cite: 4] */
        border: 1px solid transparent; /* [cite: 4] */
        transition: all 0.3s ease; /* [cite: 5] */
        box-sizing: border-box;
    }

    .search-bar-unified:focus-within {
        background: #ffffff; /* [cite: 6] */
        border-color: #3498db; /* [cite: 6] */
        box-shadow: 0 0 8px rgba(52, 152, 219, 0.2); /* [cite: 6] */
    }

    /* Input de Texto [cite: 8] */
    .search-bar-unified input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 6px 8px; /* [cite: 8] */
        font-size: 16px; /* Evita zoom no iPhone [cite: 9] */
        color: #333; /* [cite: 9] */
        outline: none; /* [cite: 10] */
    }

    .search-bar-unified input::placeholder {
        color: #94a3b8; /* [cite: 11] */
    }

    /* Ícones da Barra [cite: 12] */
    .search-bar-unified .icon-btn {
        background: transparent;
        border: none;
        color: #64748b; /* [cite: 12] */
        font-size: 16px;
        cursor: pointer; /* [cite: 12] */
        padding: 6px; /* [cite: 12] */
        border-radius: 50%;
        display: flex; /* [cite: 13] */
        align-items: center;
        justify-content: center;
        transition: 0.2s ease;
    }

    /* Hovers dos Ícones [cite: 14, 15] */
    .search-bar-unified .btn-search:hover { color: #3498db; background: rgba(52, 152, 219, 0.1); }
    .search-bar-unified .btn-gps:hover { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }

    /* ============================================================
    RESPONSIVIDADE (TELEMÓVEL / MOBILE)
    ============================================================ */

    @media (max-width: 768px) {
        /* No telemóvel, o container não ocupa espaço fixo no header */
        .header-search-container {
            max-width: none;
            flex: 0;
            padding: 0;
            margin-top: 0;
        }

        /* Lupa branca que aparece no cabeçalho azul */
        .mobile-search-trigger {
            display: flex;
            background: transparent;
            border: none;
            color: #ffffff;
            font-size: 22px;
            padding: 10px;
            cursor: pointer;
        }

        /* O Pop-up (Escondido por padrão) */
        .search-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 25px;
            
            /* Animação de Entrada */
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        /* Quando a classe .active é adicionada via JS */
        .search-wrapper.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        /* Fundo com Blur que cobre tudo, inclusive o topo */
        .search-overlay-bg {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 1;
        }

        /* Barra de Pesquisa dentro do Pop-up com animação de deslize */
        .search-bar-unified {
            position: relative;
            z-index: 2;
            width: 90%;
            max-width: 450px;
            background: #ffffff;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            transform: translateY(-20px);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .search-wrapper.active .search-bar-unified {
            transform: translateY(0);
        }

        /* Botão de Fechar (X) - Visível apenas no Mobile */
        .close-search-btn {
            display: flex;
            color: #e74c3c;
            border-left: 1px solid #e2e8f0;
            margin-left: 5px;
            padding-left: 10px;
            border-radius: 0;
        }

        /* Ajuste do input no mobile [cite: 18] */
        .search-bar-unified input {
            padding: 8px; /* [cite: 18] */
        }
    }

    .header-search {
    flex: 1;
    display: flex;
    justify-content: center;
    }

    .search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1); /* Fundo sutil */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    padding: 4px 15px;
    transition: all 0.3s ease;
    }

    /* Letras brancas antes de clicar */
    .search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 15px;
    color: var(--white); 
    }

    /* Cor da frase de ajuda */
    .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    }

    /* Botão de busca (sem fundo branco bugado) */
    .search-box button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .search-icon-svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: fill 0.3s;
    }

    /* ESTADO AO CLICAR (FOCO) */
    .search-box:focus-within {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .search-box:focus-within input {
    color: var(--text); /* Letra escura no fundo branco */
    }

    .search-box:focus-within input::placeholder {
    color: #94a3b8;
    }

    .search-box:focus-within .search-icon-svg {
    fill: var(--prim); /* Ícone azul no fundo branco */
    }

            .icon-responsive {
                margin-right: 8px;
                font-size: 1.1em; /* Escala junto com o texto ao redor */
                vertical-align: middle;
            }
            
            /* Ajuste do ícone de seta do menu */
            .submenu-toggle {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }
            
            /* Ajuste específico para o ícone de tempo na previsão (Agpra) */
            #iconeAtual i {
                /* clamp: valor min, valor ideal (baseado na tela), valor max */
                font-size: clamp(2.5rem, 6vw, 4rem); 
                color: #fbc02d; /* Cor amarela padrão, pode ser sobrescrita pelo seu JS */
                transition: font-size 0.3s ease;
            }

            @media (min-width: 1024px) {
                .header-left {
                    margin-left: 40px; /* Aumenta o espaçamento do lado esquerdo */
                }
            }


            /* Estilo para o ícone de Live piscando (opcional) */
            @keyframes pulseLive {
                0% { opacity: 1; }
                50% { opacity: 0.5; }
                100% { opacity: 1; }
            }
            .live-icon {
                color: #ff0000;
                animation: pulseLive 1.5s infinite;
            }

            @media (min-width: 772px) and (max-width: 1024px) {
        .header-content {
            padding: 0 10% !important; /* Deixa um espaço em branco equivalente a 6% da tela nas duas pontas */
        }
    }
