/* Mantém todos os links do menu mobile acessíveis, inclusive em telas baixas. */
.nav-menu-footer {
    display: none;
}

@media (max-width: 1100px) {
    .header {
        z-index: 1000000;
        isolation: auto;
        overflow: visible;
    }

    /* backdrop-filter cria um bloco de contenção para elementos fixed. */
    .header .header-main {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .header .menu-overlay {
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
    }

    .header .nav-menu {
        inset: 0 0 0 auto;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .header .nav-menu .menu {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        padding-bottom: 20px;
        scroll-padding-block: 12px 24px;
        scrollbar-gutter: stable;
    }

    .header .nav-menu .menu > .menu-item.open > .sub-menu {
        max-height: none;
        overflow: visible;
    }

    .header .nav-menu .menu > .menu-item-client-desktop {
        display: none;
    }

    .header .nav-menu .nav-menu-footer {
        display: block;
        flex: 0 0 auto;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background: #102947;
    }

    .header .nav-menu .nav-menu-footer a {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 14px;
        color: #f7f1e8;
        font-weight: 700;
        text-decoration: none;
    }

    .header .nav-menu .nav-menu-footer a:hover,
    .header .nav-menu .nav-menu-footer a:focus-visible {
        border-color: rgba(255, 190, 0, 0.6);
        color: #ffd586;
        background: rgba(255, 190, 0, 0.1);
    }

    .header .nav-menu .nav-menu-footer svg {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }
}
