/* --- VARIÁVEIS DE IDENTIDADE VISUAL --- */
:root {
    /* Cores extraídas/aproximadas da Logo */
    --bene-blue: #188EB6;
    --bene-blue-dark: #106a8a;
    --bene-orange: #F06E39;
    --bene-orange-hover: #d65523;
    --bene-yellow: #FFD700;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --card-radius: 16px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(24, 142, 182, 0.15);
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #fafafa;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#main-content,
#conteudo {
    flex: 1 0 auto;
}

/* --- UTILITÁRIOS & COMPONENTES GLOBAIS --- */
.text-primary-custom {
    color: var(--bene-blue);
}

.text-orange-custom {
    color: var(--bene-orange);
}

.bg-primary-custom {
    background-color: var(--bene-blue);
}

.bg-orange-custom {
    background-color: var(--bene-orange);
}

.btn-custom {
    background-color: var(--bene-blue);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-custom:hover {
    background-color: var(--bene-blue-dark);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(24, 142, 182, 0.3);
}

.btn-outline-custom {
    border: 2px solid var(--bene-blue);
    color: var(--bene-blue);
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-custom:hover {
    background-color: var(--bene-blue);
    color: white;
}

/* --- PADRONIZAÇÃO DE TÍTULOS --- */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #2c3e50;
    font-size: 2.5rem;
}

.section-title span {
    color: var(--bene-orange);
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: var(--bene-orange);
    margin-top: 10px;
    border-radius: 4px;
}

.std-header {
    text-align: center;
    margin-bottom: 3rem;
}

.std-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.std-header h2 span {
    color: var(--bene-orange);
}

.std-header p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.std-divider {
    width: 80px;
    height: 4px;
    background-color: var(--bene-orange);
    margin: 0 auto;
    border-radius: 10px;
}

/* --- HEADER & NAV --- */
.top-bar {
    background-color: var(--bene-blue-dark);
    font-size: 0.85rem;
    padding: 5px 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    top: 0;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 55px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 10px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bene-blue);
}

/* --- FOOTER --- */
footer {
    background-color: #004e8c;
    color: white;
    padding-top: 5rem;
    font-size: 0.9rem;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

footer a:hover {
    color: var(--bene-orange);
    text-decoration: none;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social-icon:hover {
    background-color: white;
    color: #004e8c;
    border-color: white;
}

.footer-contact-icon {
    color: var(--bene-orange);
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 10px;
}

.footer-bottom {
    background-color: #00447b;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
}

.footer-bottom a:hover {
    color: white;
}

/* --- FAB (AI ASSISTANT) --- */
.ai-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--bene-blue), #2980b9);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(41, 128, 185, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
    display: none;
}

.ai-fab:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 142, 182, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(24, 142, 182, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(24, 142, 182, 0);
    }
}

/* --- DATA PANEL WIDGET (Top) --- */
.data-panel {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 0.85rem;
    color: #555;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-item i {
    color: var(--bene-orange);
}

/* --- RESPONSIVIDADE SEARCH GLOBAIS --- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-link {
        margin: 0 3px;
        font-size: 0.88rem;
    }

    #site-search {
        width: 0;
        padding: 0;
        border: none !important;
        opacity: 0;
        pointer-events: none;
        transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    #site-search.search-expanded {
        width: 160px;
        padding: 0.375rem 0.75rem 0.375rem 1rem;
        opacity: 1;
        pointer-events: auto;
        border: 1px solid var(--bs-border-color) !important;
    }

    .navbar .input-group .btn {
        border-radius: 50px !important;
        border: 1px solid #adb5bd !important;
    }
}

/* --- ALTO CONTRASTE GLOBAIS --- */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

/* Fundo preto padrão para quase tudo, exceto badges */
body.high-contrast *:not(.badge) {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* LIMPEZA DE HERANÇA: Forçar transparência em TODOS os filhos e netos do carrossel */
/* Isso impede que h1, p, a e containers criem quadros pretos sobre a foto */
body.high-contrast .carousel-item *,
body.high-contrast .carousel-item div,
body.high-contrast .linear-background-manchete,
body.high-contrast .linear-background-manchete * {
    background-color: transparent !important;
}

/* Aplicar o degradê solicitado (de preto para transparente) apenas nos overlays */
body.high-contrast .carousel-overlay {
    background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 100%) !important;
    background-color: transparent !important;
}

body.high-contrast .linear-background-manchete {
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.85) 50%, transparent 100%) !important;
    background-color: transparent !important;
}

/* Manter o selo (badge) com suas cores de destaque originais */
body.high-contrast .badge {
    background-color: inherit !important;
    color: inherit !important;
    border: 1px solid #fff !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ajustes de legibilidade de texto no Alto Contraste */
body.high-contrast .carousel-caption-custom *,
body.high-contrast .titulo_multimidia_destaque * {
    color: #fff !important;
    text-shadow: 2px 2px 4px #000;
}

/* Imagens e Carrossel em tons de cinza com alto contraste visual */
body.high-contrast img,
body.high-contrast .carousel-item {
    filter: grayscale(100%) contrast(130%) !important;
}

body.high-contrast a,
body.high-contrast a *,
body.high-contrast i {
    color: #ffcc00 !important;
}

body.high-contrast .top-bar-acessibilidade {
    background-color: #000 !important;
    border-bottom: 2px solid #fff !important;
}

body.high-contrast .sec-card,
body.high-contrast .news-card,
body.high-contrast .project-card-new,
body.high-contrast .service-card-v2 {
    border: 1px solid #fff !important;
}