/* 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; }


/* --- RESET E BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Centralização Vertical Total */
.viewport-wrapper {
    position: relative;
    min-height: 150vh;
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    padding: 60px 20px;
    overflow-x: hidden;
}

/* --- BACKGROUND --- */
.bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('seu-fundo.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -2;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgb(238, 238, 238); /* Película para leitura */
    z-index: -1;
}

/* --- CONTEÚDO --- */
.main-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* --- TÍTULOS --- */
.header-integridade {
    margin-bottom: 70px;
}

.titulo-foco {
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #0a1a2a;
    letter-spacing: 12px;
    line-height: 1;
}

.titulo-sub {
    font-weight: 300;
    font-size: clamp(2rem, 6vw, 4.2rem);
    color: #1a4a7c;
    letter-spacing: 15px;
    margin-top: 5px;
}

.glow-divider {
    width: 100px;
    height: 5px;
    background: #00d4ff;
    margin: 30px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* --- BOX DE TEXTO --- */
.intro-glass {
    background: rgba(255, 255, 255, 0.596);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    margin-bottom: 60px;
    border: 1px solid rgba(255,255,255,0.8);
}

.intro-glass p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #000000;
    max-width: 900px;
    margin: 0 auto;
}

/* --- GRID E CARDS COM EFEITO DE LUZ --- */
.grid-opcoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card-opcao {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    border: 1px solid transparent;
    position: relative;
}

/* O Efeito de Luz ao redor */
.card-opcao:hover {
    transform: translateY(-15px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.25);
}

.icon-wrap {
    font-size: 2.5rem;
    color: #1a4a7c;
    margin-bottom: 25px;
}

.card-opcao h3 {
    font-weight: 700;
    font-size: 1rem;
    color: #0a1a2a;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.card-opcao p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-link {
    text-decoration: none;
    color: #1a4a7c;
    font-weight: 700;
    font-size: 0.8rem;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 5px;
}

/* --- CANAL DE OUVIDORIA PREMIUM --- */
.card-ouvidoria-premium {
    background: #0a1a2a; /* Azul Profundo I9 */
    color: #ffffff;
    border-radius: 40px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

/* Efeito de Luz / Aura no Hover */
.card-ouvidoria-premium:hover {
    transform: translateY(-15px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.35);
}

.header-ouvidoria {
    margin-bottom: 25px;
    width: 100%;
}

.tag-protecao {
    font-size: 0.65rem;
    font-weight: 900;
    color: #00d4ff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.icon-principal {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.card-ouvidoria-premium h3 {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 20px;
}

.card-ouvidoria-premium p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 35px;
    flex-grow: 1;
}

.card-ouvidoria-premium p strong {
    color: #00d4ff;
}

/* Botão de Ação Estilo Boutique */
.btn-ouvidoria-lux {
    background: #00d4ff;
    color: #0a1a2a;
    padding: 20px 40px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-ouvidoria-lux:hover {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-ouvidoria-lux i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.btn-ouvidoria-lux:hover i {
    transform: translateX(5px);
}

/* RESPONSIVIDADE */
@media (max-width: 800px) {
    .viewport-wrapper { padding-top: 100px; }
    .titulo-foco { font-size: 2.5rem; }
    .titulo-sub { font-size: 2.2rem; }
}

/* 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: 20px 0; position: relative; }
    .navbar-container { flex-direction: column; gap: 20px; padding: 0 5%; }
    .brand-group { text-align: center; justify-content: center; }
    .nav-menu { width: 100%; }
    .nav-menu ul { flex-direction: column; gap: 15px; width: 100%; }
    .navbar-spacer { display: none; }
    .hero-section { margin-top: 0; }
    .form-grid { grid-template-columns: 1fr; }
}






@media (max-width: 600px) {
    /* 1. MANTÉM SUA BARRA HOME (SEM MEXER EM NADA) */
    .navbar { height: auto !important; padding: 10px 0 !important; position: relative !important;background-color: #b6b6b67c !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: 0 !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;
    }
}
