/* Padrão visual do Águas Prev, alinhado à home e às notícias. */
:root {
    --ap-azul: #0A5AA8;
    --ap-azul-claro: #1A9BE0;
    --ap-titulo: #14375f;
    --ap-texto: #243446;
    --ap-fundo: #f3f8fc;
    --ap-borda: #e4eef6;
    --ap-raio: 18px;
    --ap-sombra: 0 10px 28px rgba(16, 42, 67, 0.06);
}

body.site-interna {
    background: linear-gradient(180deg, var(--ap-fundo) 0%, #ffffff 480px);
    color: var(--ap-texto);
}

body:not(.contrast) .page-title.bg-1 {
    margin-bottom: 0;
    padding: 32px 0 22px;
    background: linear-gradient(100deg, #0A5AA8 0%, #1278c4 58%, #1A9BE0 100%);
}

body:not(.contrast) .page-title .block h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

body:not(.contrast) .page-title .breadcumb-nav,
body:not(.contrast) .page-title .breadcumb-nav a,
body:not(.contrast) .page-title .breadcumb-nav span {
    color: #fff;
}

body:not(.contrast) section.bg0 {
    background-color: transparent;
}

body:not(.contrast) section.home_conteudo > .container,
body:not(.contrast) section.bg0 > .container {
    margin-top: 1.75rem;
    margin-bottom: 2.5rem;
}

body:not(.contrast) section.home_conteudo > .container {
    padding: 1.6rem 1.5rem 1.3rem;
    border: 1px solid var(--ap-borda);
    border-radius: var(--ap-raio);
    background: #fff;
    box-shadow: var(--ap-sombra);
}

body:not(.contrast) .pagina-cms,
body:not(.contrast) section.home_conteudo {
    color: var(--ap-texto);
    font-size: 1.05rem;
    line-height: 1.75;
}

body:not(.contrast) .pagina-cms a,
body:not(.contrast) section.home_conteudo a:not(.btn) {
    color: var(--ap-azul);
    font-weight: 600;
}

body:not(.contrast) .pagina-cms img,
body:not(.contrast) section.home_conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

body:not(.contrast) section.container > h2 {
    margin-bottom: 1.25rem;
    color: var(--ap-titulo);
    font-weight: 700;
}

body:not(.contrast) section.container > h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ap-azul), var(--ap-azul-claro));
}

body:not(.contrast) .card {
    border: 1px solid var(--ap-borda);
    border-radius: var(--ap-raio);
    background: #fff;
    box-shadow: var(--ap-sombra);
    overflow: hidden;
}

body:not(.contrast) .card.bg-light,
body:not(.contrast) .card .bg-light {
    background-color: #fff !important;
}

body:not(.contrast) .card h4,
body:not(.contrast) .card h5 {
    color: var(--ap-titulo);
    font-weight: 700;
}

body:not(.contrast) .card-header,
body:not(.contrast) .card-header.bg-info {
    border-bottom: 1px solid var(--ap-borda);
    background: transparent !important;
    color: var(--ap-azul-claro) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body:not(.contrast) .list-group-item {
    border-color: #eef3f8;
    color: var(--ap-texto);
}

body:not(.contrast) #filters {
    border: 1px solid var(--ap-borda) !important;
    border-radius: var(--ap-raio) !important;
    background: #fff;
    box-shadow: var(--ap-sombra);
}

body:not(.contrast) .form-control,
body:not(.contrast) .custom-select {
    border: 1px solid #d7e6f2;
    border-radius: 12px;
    color: var(--ap-texto);
}

body:not(.contrast) .form-control:focus,
body:not(.contrast) .custom-select:focus {
    border-color: var(--ap-azul-claro);
    box-shadow: 0 0 0 0.15rem rgba(26, 155, 224, 0.22);
}

body:not(.contrast) .btn {
    border-radius: 999px;
    font-weight: 700;
}

body:not(.contrast) .btn-primary,
body:not(.contrast) .btn-success,
body:not(.contrast) .btn-info,
body:not(.contrast) .btn-danger,
body:not(.contrast) #filtro_tipo_botoes .btn.active,
body:not(.contrast) #filtro_tipo_botoes .btn:hover {
    background-color: var(--ap-azul);
    border-color: var(--ap-azul);
    color: #fff;
    box-shadow: none;
}

body:not(.contrast) .btn-primary:hover,
body:not(.contrast) .btn-success:hover,
body:not(.contrast) .btn-info:hover,
body:not(.contrast) .btn-danger:hover,
body:not(.contrast) .btn-primary:focus,
body:not(.contrast) .btn-success:focus,
body:not(.contrast) .btn-info:focus,
body:not(.contrast) .btn-danger:focus {
    background-color: var(--ap-azul-claro);
    border-color: var(--ap-azul-claro);
    color: #fff;
    box-shadow: none;
}

body:not(.contrast) .btn-outline-primary,
body:not(.contrast) .btn-outline-success,
body:not(.contrast) .btn-outline-info,
body:not(.contrast) .btn-outline-danger,
body:not(.contrast) #filtro_tipo_botoes .btn {
    background: #fff;
    border-color: var(--ap-azul);
    border-radius: 999px;
    color: var(--ap-azul);
}

body:not(.contrast) .btn-outline-primary:hover,
body:not(.contrast) .btn-outline-success:hover,
body:not(.contrast) .btn-outline-info:hover,
body:not(.contrast) .btn-outline-danger:hover {
    background: var(--ap-azul);
    border-color: var(--ap-azul);
    color: #fff;
}

body:not(.contrast) .badge-primary,
body:not(.contrast) .badge-info,
body:not(.contrast) .badge-secondary {
    border-radius: 999px;
    background: #e8f4fc;
    color: var(--ap-azul);
    font-weight: 700;
}

body:not(.contrast) .alert {
    border-radius: 14px;
}

body:not(.contrast) .alert-info {
    border-color: #d7e6f2;
    background: #e8f4fc;
    color: var(--ap-titulo);
}

body:not(.contrast) .text-primary,
body:not(.contrast) .text-info {
    color: var(--ap-azul) !important;
}

body:not(.contrast) .table {
    overflow: hidden;
    border-radius: 14px;
}

body:not(.contrast) .table thead th {
    border-color: var(--ap-azul);
    background: var(--ap-azul);
    color: #fff;
}

body:not(.contrast) .table td,
body:not(.contrast) .table th {
    border-color: #e6eef6;
}

body:not(.contrast) .pagination .page-link {
    border-color: #d7e6f2;
    color: var(--ap-azul);
}

body:not(.contrast) .pagination .page-item.active .page-link,
body:not(.contrast) .pagination .page-link:hover {
    border-color: var(--ap-azul);
    background: var(--ap-azul);
    color: #fff;
}

body:not(.contrast) .custom-btn {
    border: 1px solid var(--ap-borda);
    border-bottom: 4px solid var(--ap-azul-claro);
    border-radius: var(--ap-raio);
    background: #fff;
    box-shadow: var(--ap-sombra);
    color: var(--ap-azul);
}

body:not(.contrast) .custom-btn h1,
body:not(.contrast) .custom-btn h3 {
    color: var(--ap-azul);
    font-weight: 700;
}

body:not(.contrast) .titulo-1:not(.cl0) {
    display: block;
    width: auto;
    margin: 0;
    padding: 0.85rem 0.15rem 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body:not(.contrast) .titulo-1:not(.cl0) h3 {
    display: block;
    height: auto;
    color: var(--ap-azul-claro);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

body:not(.contrast) div:has(> .titulo-1:not(.cl0)) {
    margin-bottom: 1.1rem;
    padding: 0.35rem 1rem 0.9rem;
    border: 1px solid var(--ap-borda);
    border-radius: var(--ap-raio);
    background: #fff;
    box-shadow: var(--ap-sombra);
}

body:not(.contrast) button.titulo-1.cl0,
body:not(.contrast) .titulo-1.cl0 {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 12px;
    background: var(--ap-azul);
    color: #fff;
    font-weight: 700;
    text-align: left;
}

body:not(.contrast) button.titulo-1.cl0:hover,
body:not(.contrast) .titulo-1.cl0:hover {
    background: var(--ap-azul-claro);
    color: #fff;
}

body:not(.contrast) .modal-content {
    border: 0;
    border-radius: var(--ap-raio);
    overflow: hidden;
}

body:not(.contrast) .modal-header {
    border-bottom: 1px solid var(--ap-borda);
    background: var(--ap-fundo);
    color: var(--ap-titulo);
}

body:not(.contrast) .footer-topo {
    border-top: 4px solid var(--ap-azul-claro);
    background: var(--ap-fundo);
}

@media (max-width: 767px) {
    body:not(.contrast) section.home_conteudo > .container {
        padding: 1.1rem 1rem;
    }
}

/* menu mobile */
@media (max-width: 991px) {
    body.menu-mobile-aberto {
        overflow: hidden;
    }

    .wrap-header-mobile {
        position: sticky;
        top: 0;
        z-index: 1001;
        height: 74px;
        padding: 8px 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
    }

    .logo-mobile img {
        position: static;
        width: 168px;
        max-height: 58px;
        object-fit: contain;
    }

    .btn-show-menu-mobile {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 14px;
        background: #0A5AA8;
        color: #fff;
        font-size: 18px;
        transform: none;
    }

    .menu-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(8, 28, 52, 0.48);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .menu-mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .menu-mobile {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1100;
        display: flex !important;
        flex-direction: column;
        width: min(88vw, 380px);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0;
        overflow: auto;
        background: #fff;
        box-shadow: -16px 0 40px rgba(8, 28, 52, 0.18);
        transform: translateX(104%);
        visibility: hidden;
        transition: transform 0.32s ease, visibility 0.32s ease;
    }

    .menu-mobile.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .menu-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px;
        background: linear-gradient(100deg, #0A5AA8 0%, #1A9BE0 100%);
        color: #fff;
    }

    .menu-mobile-head strong {
        font-size: 1.15rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .menu-mobile-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
        font-size: 18px;
    }

    .main-menu-m {
        flex: 1;
        margin: 0;
        padding: 8px 72px 12px 14px;
        list-style: none;
    }

    .main-menu-m > li {
        position: relative;
        background: transparent;
        border-bottom: 1px solid #eef3f8;
    }

    .main-menu-m > li > a {
        display: block;
        padding: 15px 46px 15px 6px;
        color: #14375f;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
    }

    .main-menu-m > li > a:hover {
        color: #0A5AA8;
        text-decoration: none;
    }

    .arrow-main-menu-m {
        top: 8px;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f3f8fc;
    }

    .arrow-main-menu-m i {
        color: #0A5AA8;
        font-size: 16px;
    }

    .turn-arrow-main-menu-m i {
        transform: rotate(180deg);
    }

    .sub-menu-m {
        display: none;
        margin: 0 0 12px;
        padding: 6px;
        border-radius: 14px;
        background: #f4f8fc;
    }

    .sub-menu-m a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: #1c2b3a;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        white-space: normal;
    }

    .sub-menu-m a i {
        color: #1A9BE0;
    }

    .sub-menu-m a:hover {
        background: #fff;
        color: #0A5AA8;
        text-decoration: none;
    }

    .menu-mobile-foot {
        padding: 8px 72px 20px 16px;
        border-top: 1px solid #e4eef6;
        background: #fff;
    }

    .menu-mobile-busca {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 14px;
        padding: 12px 16px;
        border: 0;
        border-radius: 999px;
        background: #0A5AA8;
        color: #fff;
        font-weight: 700;
    }

    .menu-mobile-social {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .menu-mobile-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f3f8fc;
        color: #0A5AA8;
        font-size: 16px;
    }

    .menu-mobile-social a:hover {
        background: #0A5AA8;
        color: #fff;
        text-decoration: none;
    }
}

@media (min-width: 992px) {
    .menu-mobile,
    .menu-mobile-overlay {
        display: none !important;
    }
}
