/* ==========================================================
   CP CONT — HEADER E MENU | MODELO 2.0
   Substitui o menu antigo baseado em floats e imagens.
   Mantém os destinos de navegação existentes.
   ========================================================== */

.cp-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e6ebef;
    box-shadow: 0 3px 14px rgba(0, 35, 65, .07);
}
.cp-header__inner {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.cp-header__brand {
    display: inline-flex;
    flex: 0 0 235px;
    max-width: 235px;
    align-items: center;
    text-decoration: none;
}
.cp-header__brand img {
    display: block;
    width: 100%;
    max-width: 235px;
    height: auto;
}
.cp-navigation {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
}
.cp-main-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cp-main-menu > li {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
}
.cp-main-menu > li > a {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    color: #263746;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}
.cp-main-menu > li > a:after {
    position: absolute;
    right: 13px;
    bottom: 5px;
    left: 13px;
    height: 2px;
    background: #1f5989;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.cp-main-menu > li > a:hover,
.cp-main-menu > li > a:focus {
    color: #1f5989;
    background: #f3f7fa;
    text-decoration: none;
}
.cp-main-menu > li > a:hover:after,
.cp-main-menu > li > a:focus:after {
    transform: scaleX(1);
}
.cp-main-menu > li.cp-menu-social > a {
    width: 39px;
    min-height: 39px;
    padding: 8px;
    color: #1f5989;
    font-size: 20px;
}
.cp-main-menu > li.cp-menu-social > a:after {
    display: none;
}
.cp-main-menu > li.cp-menu-social > a:hover {
    color: #fff;
    background: #1f5989;
}
.cp-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    background: #1f5989;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.cp-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.cp-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}
.cp-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.cp-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}
.cp-menu-toggle:focus-visible,
.cp-main-menu a:focus-visible {
    outline: 2px solid #78a8cb;
    outline-offset: 3px;
}

/* ==========================================================
   POP-UP MODAL — ESTILOS PRONTOS, DESATIVADOS POR PADRÃO
   Para ativar, descomentar HTML e JS no header.php e este bloco.
   ========================================================== */
/*
body.cp-modal-open { overflow: hidden; }
.cp-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.cp-modal.is-visible { display: flex; }
.cp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 25, 40, .68);
    backdrop-filter: blur(3px);
}
.cp-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    padding: 42px;
    background: #fff;
    border-top: 4px solid #1f5989;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .25);
    animation: cpModalIn .25s ease both;
}
.cp-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    color: #52616d;
    background: #f0f4f7;
    border: 0;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.cp-modal__eyebrow {
    color: #1f5989;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}
.cp-modal__content h2 {
    margin: 12px 0;
    color: #003663;
    font-size: 27px;
}
.cp-modal__content p {
    color: #586875;
    font-size: 14px;
    line-height: 1.7;
}
.cp-modal__action {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;
    color: #fff;
    background: #1f5989;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
@keyframes cpModalIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
*/

@media (max-width: 991px) and (min-width: 856px) {
    .cp-header__inner { gap: 14px; }
    .cp-header__brand { flex-basis: 190px; max-width: 190px; }
    .cp-main-menu { gap: 0; }
    .cp-main-menu > li > a { padding-right: 9px; padding-left: 9px; font-size: 12px; }
}
@media (max-width: 855px) {
    .cp-header__inner {
        min-height: 78px;
        gap: 15px;
    }
    .cp-header__brand {
        flex-basis: 205px;
        max-width: min(65%, 205px);
    }
    .cp-menu-toggle { display: flex; }
    .cp-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        width: 100%;
        padding: 10px 15px 16px;
        background: #fff;
        border-top: 1px solid #e8edf1;
        box-shadow: 0 12px 20px rgba(0, 35, 65, .12);
    }
    .cp-navigation.is-open { display: block; }
    .cp-main-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }
    .cp-main-menu > li > a {
        min-height: 45px;
        justify-content: flex-start;
        padding: 12px 14px;
        color: #174b75;
        background: #f5f8fa;
        border: 1px solid #e7edf2;
        border-radius: 4px;
        font-size: 13px;
    }
    .cp-main-menu > li > a:after { display: none; }
    .cp-main-menu > li.cp-menu-social {
        display: inline-block;
        width: 48%;
    }
    .cp-main-menu > li.cp-menu-social > a {
        width: 100%;
        justify-content: center;
        color: #1f5989;
        background: #edf3f8;
        font-size: 20px;
    }
    body.cp-menu-open { overflow: hidden; }
}
@media (max-width: 480px) {
    .cp-header__inner { min-height: 70px; }
    .cp-header__brand { flex-basis: 175px; max-width: 68%; }
    .cp-menu-toggle { width: 41px; height: 41px; flex-basis: 41px; }
}
/* Respeita a preferência de movimento reduzido do usuário. */
@media (prefers-reduced-motion: reduce) {
    .cp-main-menu > li > a,
    .cp-main-menu > li > a:after,
    .cp-menu-toggle span {
        transition: none !important;
    }
}

/* Não interferir no banner/slider existente do tema. */
.bx-wrapper,
.bx-wrapper *,
.bxslider,
.bxslider * {
    box-sizing: content-box;
}
.bx-wrapper {
    max-width: 100%;
}
.bx-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}
