/* --- 1. BASE E TIPOGRAFIA --- */
.header-modern-wrapper {
    background-color: #fff;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Forçamos a Roboto em tudo, EXCETO em elementos que usam FontAwesome */
.header-modern-wrapper *:not(.fa):not(.fab):not(.fas):not(.far) {
    font-family: 'Roboto', sans-serif !important;
}

/* Garante que o FontAwesome mantenha sua própria família de fonte */
.fa,
.fab,
.fas,
.far {
    font-family: 'FontAwesome' !important;
}

/* Força a fonte em todos os elementos filhos */
.header-modern-wrapper a,
.header-modern-wrapper span {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: #101010;
}

/* --- 2. EFEITO STICKY (PIN) --- */
.header-pinned {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* --- 4 - ESTILO PARA O TOP_MENU (LOGO, REDES E BUSCA) --- */

.top-main-bar {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.topbar-content-main {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

/* Definição de proporção dos blocos */
.side-block {
    flex: 0 0 30%;
}

.center-block {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- BLOCO ESQUERDA: REDES SOCIAIS --- */
.social-wrapper {
    display: flex;
    gap: 10px;
}

.social-wrapper img {
    width: 25px;
    transition: transform 0.2s ease;
    /* Cores originais mantidas conforme solicitado */
}

.social-wrapper img:hover {
    transform: translateY(-3px);
}

.social-wrapper img,
.selo-link img,
.logo-selo-container a img {
    /* Sombra suave: horizontal 0, vertical 2px, desfoque 5px, cor preta com 10% de opacidade */
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.social-wrapper img:hover,
.selo-link:hover img {
    /* No hover, a sombra aumenta para parecer que o botão "subiu" */
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.2));
    transform: translateY(-2px);
}

/* --- BLOCO CENTRO: LOGO E SELO --- */
.logo-selo-container img#logosite {
    max-height: 75px;
}

.logo-selo-container .selo-link img {
    max-height: 85px;
    /* Selo levemente maior que o logo para destaque */
}

.logo-selo-container {
    display: flex !important;
    flex-direction: row;
    /* Mantém lado a lado */
    align-items: center;
    gap: 20px;
}

.logo-link img {
    max-height: 80px;
}

/* Criamos um "Badge" para o selo */
.selo-link {
    border-left: 1px solid #f0f0f0;
    /* Uma linha tão clara que quase não se vê */
    padding-left: 20px;
}

.selo-link img {
    max-height: 60px;
    /* Faz o selo brilhar levemente no hover, já que é diamante */
    transition: filter 0.5s ease;
}

.selo-link:hover img {
    filter: brightness(1.1) contrast(1.1);
}

/* --- BLOCO DIREITA: ACESSIBILIDADE E BUSCA --- */
.action-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.accessibility-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

/* Grupo de texto e ícone de acessibilidade */
.acc-label-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.acc-icon {
    width: 14px;
    height: auto;
}

.acc-text {
    font-size: 0.75em !important;
    font-weight: 500 !important;
    color: #333;
    letter-spacing: 0.3px;
}

/* Grupo de botões de ação */
.acc-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contrast-img {
    width: 16px;
    height: auto;
    display: block;
}

.accessibility-row button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Estilo A+ e A- */
.font-resizer {
    font-weight: 700 !important;
    font-size: 0.85em !important;
    cursor: pointer;
    color: #333;
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.font-resizer i {
    font-size: 0.55em !important;
    margin-left: 1px;
    vertical-align: super;
}

/* Cursor de lupa para os botões de fonte */
.font-resizer.zoom-in {
    cursor: zoom-in !important;
}

.font-resizer.zoom-out {
    cursor: zoom-out !important;
}

/* Efeito visual simples ao clicar */
.font-resizer:active {
    transform: scale(0.95);
    color: #0088cc;
}

/* Barra de Busca Moderna */
.search-row {
    width: 100%;
    min-width: 220px;
    max-width: 250px;
}

.search-modern {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    height: 34px;
    background: #f9f9f9;
}

.search-modern input {
    border: none !important;
    padding-left: 15px;
    width: 100%;
    font-size: 0.8em !important;
    background: transparent !important;
    outline: none;
    text-transform: none;
}

.search-modern button {
    background: #CCEDF8;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: #333;
    transition: background 0.3s;
}

.search-modern button:hover {
    background: #bde4f1;
}

/* 5 - ESTILO DO MENU PRINCIPAL --- */
.header-modern-wrapper #sticky-header {
    background: #CCEDF8;
    /* Azul claro padrão */
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.header-modern-wrapper .custom-navbar {
    margin-bottom: 0;
    border: none;
    min-height: auto;
}

.header-modern-wrapper .nav.navbar-nav>li {
    position: static;
    /* Necessário para o Mega Menu ocupar a largura total */
}

.header-modern-wrapper .nav.navbar-nav>li>a {
    color: #333 !important;
    font-weight: 700 !important;
    /* Menu principal um pouco mais forte */
    font-size: 1em;
    padding: 20px 25px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.header-modern-wrapper .nav.navbar-nav>li:hover>a {
    background-color: #ffffff !important;
    color: #0088cc !important;
}


/* Adicionar Arrow (Seta) nos itens com submenu */
.header-modern-wrapper .has-submenu>a::after {
    content: "\f107";
    /* Código da seta para baixo no FontAwesome */
    font-family: 'FontAwesome' !important;
    margin-left: 8px;
    font-size: 0.8em;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s;
}

/* Rotacionar seta ao abrir (opcional) */
.header-modern-wrapper .has-submenu:hover>a::after {
    transform: rotate(180deg);
}

/* Manter Fundo Azul quando Pinado */
.header-pinned #sticky-header {
    background: #CCEDF8 !important;
    /* Mantém a cor original */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Ajuste de altura e alinhamento do menu fixado */
.header-pinned .nav.navbar-nav>li>a {
    padding: 15px 25px;
    /* Diminui um pouco a altura ao rolar para economizar tela */
}

/* Garante que o separador não apareça nos submenus */
.header-modern-wrapper .mega-list li::after {
    display: none !important;
}

/* --- MEGA MENU (SUBMENU) --- */
.header-modern-wrapper .submenu-mega {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #0088cc;
    padding: 30px 0;
}

.header-modern-wrapper .nav.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centraliza os itens do menu */
    float: none;
    margin: 0;
}

.header-modern-wrapper li.has-submenu:hover .submenu-mega {
    visibility: visible;
    opacity: 1;
}

.header-modern-wrapper .mega-title {
    display: block;
    font-weight: 700 !important;
    color: #0088cc;
    font-size: 1em !important;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.header-modern-wrapper .mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-modern-wrapper .mega-list li a {
    display: block;
    padding: 8px 0;
    color: #555 !important;
    font-size: 0.9em !important;
    text-decoration: none;
    transition: 0.2s;
    text-transform: none;
}

.header-modern-wrapper .mega-list li a:hover {
    color: #0088cc !important;
    padding-left: 5px;
    /* Efeito de deslize ao hover */
}

.header-modern-wrapper .nav.navbar-nav>li.pipe-menu {
    display: flex !important;
    align-items: center !important;
    /* Centraliza verticalmente o caractere | */
    justify-content: center;
    padding: 0 5px !important;
    color: rgba(0, 0, 0, 0.4);
    font-size: 1em;
    height: 64px;
    /* Altura padrão do menu em repouso */
    transition: all 0.3s ease;
}

.header-pinned .nav.navbar-nav>li.pipe-menu {
    height: 50px;
}

/* --- 6. AJUSTES GERAIS --- */
.clearfix {
    clear: both;
}

.nopadding {
    padding: 0 !important;
}

@media (min-width: 1200px) and (max-width: 1312px) {
    .side-block.social-side {
        padding-left: 80px;
    }

    .side-block.action-side {
        padding-right: 80px;
    }
}


/* ========================================
     BANNER DO TOPO (GLOBAL)
     ======================================== */
.page-title-4 {
    /* O !important aqui garante que, mesmo que o estilo inline 
       seja diferente em alguma página, o comportamento visual 
       será padronizado (centralizado e cobrindo tudo).
    */
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;

    /* Espaçamento Padrão (Desktop) */
    padding: 80px 0px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Mantém o overlay escuro para leitura do texto */
.page-title-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    /* Escurece 10% */
    z-index: 1;
}

/* Ajuste do Título */
.page-title-4 h1 {
    position: relative;
    z-index: 2;
    /* Garante que o texto fique acima do overlay */
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    /* Força branco caso não esteja herdando */
}

/* ========================================
     RESPONSIVIDADE (MEDIA QUERIES)
     ======================================== */

/* Tablets e Laptops menores */
@media (max-width: 991px) {
    .page-title-4 {
        padding: 60px 0 40px;
        /* Reduz altura */
    }

    .page-title-4 h1 {
        font-size: 30px;
    }
}

/* Celulares (Modo paisagem) */
@media (max-width: 767px) {
    .page-title-4 {
        padding: 50px 0 30px;
        /* Reduz mais a altura */
    }

    .page-title-4 h1 {
        font-size: 26px;
    }
}

/* Celulares pequenos (Modo retrato) */
@media (max-width: 576px) {
    .page-title-4 {
        padding: 40px 0 25px;
        /* Banner bem compacto */
    }

    .page-title-4 h1 {
        font-size: 22px;
        padding: 0 10px;
    }
}