/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; scroll-behavior: smooth; }
body { background-color: #ffffff; overflow-x: hidden; }

/* NAVBAR */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    height: 100px; display: flex; align-items: center;
    background-color: rgba(209, 209, 209, 0.65); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-container {
    display: flex; width: 100%; max-width: 100%; margin: 0 auto;
    align-items: center; padding: 0 2% 0 3%;
}

.brand-group { 
    display: flex; align-items: center; gap: 15px; 
    flex: 1; 
    justify-content: flex-start;
}
.logo img { height: 55px; }
.brand-title { color: #1a4a7c; font-weight: 800; font-size: 1.4rem; line-height: 1.1; display: block; }
.brand-subtitle { color: #444; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; display: block; }

/* MENU CENTRALIZADO ABSOLUTO */
.nav-menu { 
    flex: 2; 
    display: flex; 
    justify-content: center; 
}
.nav-menu ul { display: flex; list-style: none; gap: 40px; align-items: center; }

.nav-menu ul li a { 
    text-decoration: none; color: #222; font-weight: 700; font-size: 12px; 
    text-transform: uppercase; position: relative; padding: 10px 0; 
}

/* BARRINHA AZUL NO MENU PRINCIPAL */
.nav-menu ul li a::after { 
    content: ""; position: absolute; width: 0; height: 3px; bottom: 0; left: 50%; 
    background-color: #1a4a7c; transition: 0.3s ease-in-out; transform: translateX(-50%);
}
.nav-menu ul li a:hover::after { width: 100%; }

.navbar-spacer { flex: 1; }

/* DROPDOWNS (INSTITUCIONAL E SERVIÇOS) */
.dropdown-container { position: relative; }
.mini-menu-vertical {
    visibility: hidden; opacity: 0; position: absolute; top: 45px; left: 50%;
    transform: translateX(-50%) translateY(10px); width: 220px;
    background-color: rgba(209, 209, 209, 0.95); backdrop-filter: blur(10px);
    border-radius: 4px; box-shadow: 0px 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease; z-index: 1100;
}
.mini-menu-vertical.active { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.linha-azul-topo { width: 100%; height: 3px; background-color: #1a4a7c; }

.sub-items-box { display: flex; flex-direction: column; padding: 10px 0; }
.zoom-item { color: #222 !important; text-decoration: none !important; font-size: 10px !important; font-weight: 700; text-align: center; padding: 12px; transition: transform 0.3s ease; display: block; }
.zoom-item:hover { transform: scale(1.1); }
.zoom-item::after { display: none !important; }


/* OUVIDORIA BASE */
.wrapper-portal { min-height: 100vh; padding: 150px 20px 60px; background: #0a1a2a; position: relative; display: flex; flex-direction: column; align-items: center; }
.overlay-escuro { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 26, 42, 0.85); z-index: 1; }
.container-central { position: relative; z-index: 2; width: 100%; max-width: 900px; }
.portal-header { text-align: center; margin-bottom: 40px; color: #fff; }
.portal-header h1 span { text-align: center; color:  #00d4ff; }

/* GRID DE ICONES */
.grid-caixas-ouvidoria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 650px; margin: 0 auto 40px; }
.caixa-item { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px 20px; border-radius: 12px; text-align: center; color: #fff; cursor: pointer; transition: 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; }
.caixa-icon { font-size: 2.2rem; margin-bottom: 15px; color: #ffffff; transition: 0.3s ease; }
.caixa-item h3 { font-size: 0.9rem; font-weight: 700; line-height: 1.3; text-transform: none; }

/* RESTAURAÇÃO DOS EFEITOS DE COR NOS ICONES */
.effect-red:hover { border-color: #ff3b3b; box-shadow: 0 0 15px rgba(255, 59, 59, 0.3); }
.effect-red:hover .caixa-icon { color: #ff3b3b; }

.effect-yellow:hover { border-color: #ffcc00; box-shadow: 0 0 15px rgba(255, 204, 0, 0.3); }
.effect-yellow:hover .caixa-icon { color: #ffcc00; }

.effect-green:hover { border-color: #28a745; box-shadow: 0 0 15px rgba(40, 167, 69, 0.3); }
.effect-green:hover .caixa-icon { color: #28a745; }

.effect-blue:hover { border-color: #00d4ff; box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); }
.effect-blue:hover .caixa-icon { color: #00d4ff; }

.effect-white:hover { border-color: #ffffff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }
.effect-white:hover .caixa-icon { color: #ffffff; }

.aba-consulta-longa { grid-column: span 2; min-height: 100px; flex-direction: row; gap: 20px; background: rgba(255,255,255,0.1); margin-top: 10px; }

/* FORMULÁRIO */
.form-container-transparente { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; overflow: hidden; margin-top: 20px; width: 100%; }
.faixa-instrucao { background: #1a4a7c; padding: 15px 25px; color: #fff; font-weight: 700; font-size: 1rem; }
.area-campos { padding: 40px; display: flex; flex-direction: column; gap: 30px; }
.label-i9 { color: #00d4ff; font-weight: 700; margin-bottom: 15px; display: block; font-size: 1rem; }

.aviso-especial-dpo { font-size: 0.85rem; color: #ccc; font-style: italic; line-height: 1.5; border-left: 3px solid #00d4ff; padding-left: 15px; margin-bottom: 20px; }

/* OPÇÕES VERTICAIS */
.lista-opcoes-v { display: flex; flex-direction: column; gap: 15px; }
.item-opcao { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: #e0e0e0; font-size: 0.9rem; line-height: 1.4; transition: 0.2s; }
.item-opcao:hover { color: #fff; }
.item-opcao input { margin-top: 4px; min-width: 16px; min-height: 16px; cursor: pointer; }

.input-i9-full { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 15px; color: #fff; font-size: 1rem; resize: vertical; outline: none; }
.upload-box-i9 { background: rgba(0, 212, 255, 0.05); padding: 20px; border-radius: 8px; border: 1px dashed rgba(0, 212, 255, 0.3); }
.item-texto { color: #ccc; font-size: 0.85rem; line-height: 1.6; }

.btn-submit-i9 { background: #1a4a7c; color: #fff; border: none; padding: 18px; font-weight: 800; cursor: pointer; border-radius: 6px; transition: 0.3s; font-size: 1rem; width: 100%; }
.btn-submit-i9:hover { background: #00d4ff; color: #0a1a2a; }

/* BUSCA */
.input-busca-container { display: flex; gap: 15px; }
.input-busca-container input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 15px; border-radius: 6px; outline: none; }
.btn-busca { width: auto; margin: 0; padding: 0 40px; }

/* TIMELINE */
.timeline-i9 { display: flex; justify-content: space-between; align-items: center; position: relative; margin: 40px 0; }
.timeline-i9::before { content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: rgba(255,255,255,0.1); z-index: 0; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 33%; }
.step .circle { width: 40px; height: 40px; background: #0a1a2a; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #666; font-weight: bold; }
.step.active .circle { border-color: #00d4ff; color: #00d4ff; box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
.step-text { margin-top: 12px; font-size: 0.7rem; color: #999; text-transform: uppercase; font-weight: 700; }
.step.active .step-text { color: #fff; }

/* FOOTER */
.main-footer { background-color: #111; color: #fff; padding: 60px 10%; text-align: center; }
.footer-logo { height: 65px; margin-bottom: 25px; }
.footer-social { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }
.social-link { font-size: 2.5rem; color: #fff; text-decoration: none; transition: all 0.3s ease; }
.social-link.insta:hover { color: #E4405F; transform: scale(1.2); }
.social-link.linkedin:hover { color: #0077B5; transform: scale(1.2); }

/* WHATSAPP */
.whatsapp-btn { 
    position: fixed; bottom: 30px; right: 30px; background: #25d366; color: #fff; 
    width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; 
    align-items: center; font-size: 32px; z-index: 2000; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.whatsapp-btn:hover { transform: scale(1.2) rotate(10deg); background-color: #128c7e; }



/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .navbar { height: auto; padding: 15px 0; position: relative; background: #b6b6b6 !important; }
    .navbar-container { flex-direction: column; }
    .nav-menu ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
}
@media (max-width: 768px) {
    .grid-caixas-ouvidoria { grid-template-columns: 1fr; }
    .aba-consulta-longa { grid-column: span 1; flex-direction: column; }
    .input-busca-container { flex-direction: column; }
}


@media (max-width: 600px) {
    /* 1. MANTÉM SUA BARRA HOME (SEM MEXER EM NADA) */
    .navbar { height: auto !important; padding: 15px 0 !important; position: relative !important;background-color: #b6b6b618 !important; overflow: visible !important; }
    .navbar-container { flex-direction: column !important; }
    .nav-menu { width: 100% !important; display: block !important; overflow: visible !important; }
    .nav-menu ul { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 25px !important; width: 100% !important; padding: 15px 10px !important; justify-content: flex-start !important; }
    .nav-menu ul li { flex: 0 0 auto !important; white-space: nowrap !important; }

    /* 2. RESOLVENDO O TEXTO COMENDO (ESTILO APPLE) */
    html, body {
        width: 100% !important;
        margin: 20 !important;
        padding: 0 !important;
        overflow-x: hidden !important; /* ISSO MATA A LINHA BRANCA */
    }

    /* Container Principal - Ele trava a largura e centraliza tudo */
    .wrapper-portal, .container-central, .caixa-item {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important; /* Padding não empurra a largura */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ajuste do Texto para ele "respirar" sem quebrar ou sumir */
    h1, h2, .portal-header h1 {
        font-size: 1.6rem !important; /* Tamanho fixo seguro para iPhone SE/12 */
        line-height: 1.2 !important;
        white-space: normal !important; /* Permite quebrar linha se a palavra for muito grande */
        overflow-wrap: break-word !important; /* Quebra no meio da palavra se precisar */
        text-align: center !important;
    }

    p, span, .zoom-item {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        overflow-wrap: break-word !important;
    }

    /* 3. DROPDOWN (SUBMENUS) - Ajuste de visualização */
    .mini-menu-vertical {
        display: none !important;
        position: fixed !important;
        top: 140px !important;
        left: 5% !important;
        right: 5% !important;
        width: 90% !important; /* Ocupa a largura da tela com margem */
        transform: none !important;
        background-color: rgba(255, 255, 255, 0.959) !important;
        z-index: 99999 !important;
        border-radius: 12px !important;
    }

    .mini-menu-vertical.active { display: block !important; }

    /* 4. RODAPÉ E CONTATOS (FOTO QUE VOCÊ MANDOU) */
    .contato-info, footer {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important; /* Empilha ícone e texto */
        align-items: center !important;
       
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    /* 1. SUA BARRA PRINCIPAL: Mantida exatamente como você montou */
    .navbar { 
        height: auto !important; 
        padding: 10px 0 !important; 
        position: relative !important; 
        background-color: #b6b6b646 !important; /* Corrigido apenas o erro de sintaxe 'color' */
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important; 
    }
    
    .navbar-container { 
        flex-direction: column !important; 
        gap: 10px !important; 
    }

    .nav-menu { 
        width: 100% !important; 
        display: block !important; 
        overflow: visible !important;
    }
    
    .nav-menu ul { 
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; 
        gap: 25px !important; 
        width: 100% !important; 
        padding: 15px 10px !important;
        justify-content: flex-start !important;
        background: transparent !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-menu ul::-webkit-scrollbar { display: none !important; }

    .nav-menu ul li { 
        flex: 0 0 auto !important; 
        white-space: nowrap !important; 
    }

    /* 2. SEUS SUBMENUS: Dropdown Flutuante */
    .mini-menu-vertical {
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important; 
        top: 120px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 250px !important;
        background-color: rgba(255, 255, 255, 0.575) !important;
        border-radius: 8px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
        z-index: 999999 !important;
    }

    .mini-menu-vertical.active {
        display: block !important;
    }

    /* 3. COMPLEMENTO PARA NÃO CORTAR TEXTO E EVITAR LINHA BRANCA NESSA TELA */
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .wrapper-portal {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 120px 20px 50px 20px; /* Padding lateral para o texto não encostar na borda */
        box-sizing: border-box;
    }

    .portal-header h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
        text-align: center;
    }

    /* Grid em 2 colunas para tablet, para o texto ter espaço */
    .grid-caixas-ouvidoria {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
    }

    .aba-consulta-longa {
        grid-column: span 2;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    /* 1. SUA BARRA PRINCIPAL: Mantida fiel ao seu modelo */
    .navbar { 
        height: auto !important; 
        padding: 10px 0 !important; 
        position: relative !important; 
        background-color: #b6b6b646 !important; 
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important; 
    }
    
    .navbar-container { 
        flex-direction: column !important; 
        gap: 10px !important; 
    }

    .nav-menu { 
        width: 100% !important; 
        display: block !important; 
        overflow: visible !important;
    }
    
    .nav-menu ul { 
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; 
        gap: 25px !important; 
        width: 100% !important; 
        padding: 15px 20px !important;
        justify-content: flex-start !important;
        background: transparent !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-menu ul::-webkit-scrollbar { display: none !important; }

    .nav-menu ul li { 
        flex: 0 0 auto !important; 
        white-space: nowrap !important; 
    }

    /* 2. SEUS SUBMENUS: Dropdown Flutuante (Fixed) */
    .mini-menu-vertical {
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important; 
        top: 120px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 280px !important; /* Ligeiramente maior para telas médias */
        background-color: rgba(255, 255, 255, 0.575) !important;
        border-radius: 8px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
        z-index: 999999 !important;
    }

    .mini-menu-vertical.active {
        display: block !important;
    }

    /* 3. AJUSTES DE CONTEÚDO PARA NÃO CORTAR TEXTO */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .wrapper-portal {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 100px 40px 50px 40px; /* Mais respiro lateral */
        box-sizing: border-box;
    }

    .portal-header h1 {
        font-size: 2.2rem; /* Título maior para telas médias */
        max-width: 90%;
        margin: 0 auto 20px;
        text-align: center;
    }

    /* Grid em 3 colunas (Ideal para 769px a 992px) */
    .grid-caixas-ouvidoria {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        width: 100%;
    }

    /* A aba de consulta longa ocupa as 3 colunas embaixo para não esmagar o texto */
    .aba-consulta-longa {
        grid-column: span 3;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .caixa-item {
        padding: 25px;
    }
}
