.menu#menu-menu_portable {
    display: none;
}

.fondu>nav {
    opacity: 0.90;
}

.fondu>main {
    padding-top: 0;
}

nav {
    position: fixed;
    width: 100%;
    height: 60px;
    background-color: var(--grey);
    z-index: 10000;
    transition: opacity 200ms ease;
}

.menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 30px;
    padding: 0 70px 0 0;
    margin: 0;
    list-style-type: none;
    align-items: flex-start;
}

.sub-menu {
    display: none;
    list-style-type: none;
}

.sub-menu>li>a {
    color: var(--grey);
    text-decoration: none;
    padding-bottom: 10px;
    transition: font-weight 200ms ease;
    font-weight: normal;
}

.sub-menu>li>a:hover {
    font-weight: bold;
}

.menu>li:hover .sub-menu {
    display: flex;
    position: absolute;
    list-style-type: none;
    margin-top: 60px;
    padding-top: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 15px;
    border-end-end-radius: 10px;
    border-end-start-radius: 10px;
    flex-direction: column;
    align-content: flex-end;
    align-items: center;
    background-color: var(--white);
    -webkit-box-shadow: 0px 8px 10px 8px rgba(15, 14, 0, 0.27);
    box-shadow: 0px 8px 10px 8px rgba(15, 14, 0, 0.27);
}

.menu>li:has(.sub-menu:hover) {
    font-weight: bold;
}

.menu>li:has(.sub-menu:hover) i:nth-child(2) {
    transform: rotate(-180deg);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.menu>li>a {
    text-decoration: none;
    color: var(--white);
    padding: 20px 0;
    transition: font-weight 200ms ease;
    font-size: 1rem;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-items: center;
}

.menu>li>a:hover {
    font-weight: bold;
}

.menu>li>a i:nth-child(2) {
    transition: all 200ms ease;
}

.menu>li>a:hover i:nth-child(2) {
    transform: rotate(-180deg);
}

.current_page_item {
    font-weight: bold;
}

.custom-logo {
    width: 220px;
    object-fit: contain;
    position: absolute;
    top: 1rem;
    left: 1.8rem;
    height: fit-content;
}

.burger-button {
    display: none;
}

@media only screen and (max-width: 1200px) {
    .menu>li>a {
        font-size: 13px;
        padding: 22px 0;
    }
}

@media only screen and (max-width: 1000px) {
    .menu>li>a {
        font-size: 11px;
        padding: 23px 0;
    }
}

@media only screen and (max-width: 900px) {
    .menu-item.active i:nth-child(2) {
        transform: rotate(-180deg) !important;
    }

    .menu#menu-menu {
        display: none;
        transition: all 200ms ease;
    }

    .menu>li:hover .sub-menu {
        display: none;
        position: initial;
        list-style-type: none;
        margin-top: 0;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        border-end-end-radius: 0;
        border-end-start-radius: 0;
        background-color: initial;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .menu#menu-menu_portable {
        position: absolute;
        flex-direction: column;
        top: 3.7rem;
        left: 0%;
        /* transform: translate(-50%, -50%); */
        padding: 0;
        align-items: center;
        background-color: var(--black-grey);
        width: 100%;
        padding-top: 4rem;
        z-index: -1000;
        padding-bottom: 3rem;
        overflow-y: scroll;
    }

    .menu#menu-menu_portable .sub-menu {
        display: none;
        list-style-type: none;
        flex-direction: column;
        align-content: flex-end;
        align-items: center;
        padding: 0;
    }

    .sub-menu.sub-menu>li>a {
        color: var(--white);
    }

    .menu>li>a {
        font-size: 20px;
        padding: 10px 0;
    }

    .custom-logo {
        top: 3rem;
        left: 50%;
        position: absolute;
        transform: translate(-50%, -50%);
    }

    .burger-button {
        display: block;
        font-size: 40px;
        color: var(--white);
        padding: 5px 20px;
    }

    nav {
        display: flex;
        justify-content: flex-end;
    }
}