.has-submenu {
    position: relative;

    hr {
        margin: 0;
    }

    /* seta */
    .arrow {
        color: var(--font);
        font-size: 1.5rem;
        margin-left: 0.3rem;
        transition: all 0.3s ease;
    }

    .mb_sb {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.has-submenu:hover {
    .submenu {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}












#navbar {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--padding_page);
    z-index: 10;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    top: 0;
    transition: all 0.7s ease;

    a {
        transition: all 0.7s ease;
        font-weight: normal;
        color: var(--branco);
    }

    svg {
        height: 4rem;
        filter: brightness(0) invert(1);
        transition: all .35s ease;
    }

    .menu-toggle span {
        background: var(--branco);
    }

    .arrow {
        color: var(--branco);
    }
}

/* Classe adicionada quando o header deve ficar fixo */
.sticky {
    position: fixed !important;
    z-index: 100 !important;
    padding: 1rem 4rem !important;
    box-shadow: 0 2px 10px rgb(0 0 0 / 67%) !important;
    width: 85% !important;
    margin: 15px auto;
    background: var(--branco);
    border-radius: 10px;

    a {
        color: var(--font) !important;
    }

    svg {
        height: 3.5rem !important;
        filter: none !important;
    }

    .menu-toggle span {
        background: var(--font) !important;
    }

    .arrow {
        color: var(--font) !important;
    }
}

.logo svg {
    height: 3.5rem;
    width: auto;
}

.menu-desktop ul {
    display: flex;
    list-style: none;
    gap: 3rem;

    .has-submenu:hover .arrow {
        color: var(--laranja) !important;
        transform: rotate(180deg);
    }

    li .submenu {
        pointer-events: none;
        opacity: 0;
        gap: 0;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--branco);
        border-radius: 5px;
        box-shadow: 0px 4px 10px #00000030;
        list-style: none;
        min-width: 200px;
        z-index: 1000;
        padding: 1rem 0;
        transform: translateY(10px);
        transition: all 0.5s ease;

        li {
            display: block;
            padding: 0.7rem 1rem;
            border-left: 2px solid var(--branco);
            transition: 0.3s ease;
        }
    }

    .submenu li a {
        color: var(--font) !important;
        position: relative;
    }

    .submenu li a::after {
        display: none;
    }

    .submenu li::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 2px;
        height: 0;
        background: var(--laranja);
    }

    .submenu li:hover {
        transition: 0.3s ease;
        background: var(--fundo);
        border-color: var(--laranja);

        >a {
            color: var(--laranja) !important;
        }
    }
}

.menu-desktop a {
    text-decoration: none;
    position: relative;
}

.menu-desktop a::after,
#submenu_footer a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    transition: 0.3s ease;
    background: var(--laranja);
    margin-top: 5px;
}

.menu-desktop a:hover::after,
#submenu_footer a:hover::after {
    background: var(--amarelo);
}

.menu-desktop a.active,
.menu-desktop a:focus,
#submenu_footer a.active,
#submenu_footer a:focus {
    font-weight: bold !important;
}

.menu-desktop a:hover::after,
.menu-desktop a:focus::after,
.menu-desktop a.active::after,
#submenu_footer a:hover::after,
#submenu_footer a:focus::after,
#submenu_footer a.active::after {
    width: 100%;
}







/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    border-radius: 2px;
}

.menu-toggle:hover span {
    background: var(--laranja);
}

.menu-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100dvh;
    background: white;
    padding: 2rem;
    transition: left 0.3s ease-in-out;
    z-index: 250;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;

    .redes_mb {
        margin-top: 5rem;
        margin-bottom: 1rem;
        padding-bottom: 0 !important;
    }

    #menu_mobile_cont {
        display: flex;
        flex-direction: column;
        gap: 2rem;

        ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;

            a {
                font-weight: normal;
                text-decoration: none;
                font-size: 1.2rem;
                color: var(--font);
            }

            a.active {
                color: var(--laranja);
                font-weight: bold;
            }

            .arrow.rotate {
                color: var(--laranja) !important;
                transform: rotate(180deg);
            }

            .submenu {
                height: 0;
                overflow: hidden;
                transition: all 0.3s ease;
                gap: 0 !important;

                li {
                    padding: 1rem 0 1rem 1.5rem;

                    a {
                        font-weight: normal !important;
                        color: var(--cinza);
                    }
                }
            }

            .submenu.open {
                height: fit-content;
            }
        }
    }
}

.menu-mobile.open {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsivo */
@media (max-width: 1200px) {
    .menu-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .sticky {
        width: 93% !important;
    }
}

@media (max-width: 768px) {
    #navbar g#logomarca {
        display: none;
    }

    #navbar svg {
        height: 3rem;
    }

    .sticky {
        padding: 1rem 2rem !important;
    }
}