/*----------- NAV HAMBURGER -----------*/
#nav-hamburger {
    margin: 0;
    width: 2em;
    height: 1.5em;
    position: absolute;
    transform: rotate(0deg);
    transition: .35s cubic-bezier(.175,.685,.32,1.175);
    z-index: 110;
    top:40%;
    right:5%;
    display: none;
}

#nav-hamburger span {
    left: 0;
    width: 100%;
    height: 2px;
    display: block;
    position: absolute;
    background: var(--clr-hmr-dark);
    border-radius: 19px;
    opacity: 1;
    transform: rotate(0deg);
    transition: .35s cubic-bezier(.175,.685,.32,1.175);
}

#nav-hamburger span:nth-child(1) {
    top: 0;
    width: 100%;
}

#nav-hamburger span:nth-child(2),
#nav-hamburger span:nth-child(3) {
    top: 10px;
    width: 35%;
}

#nav-hamburger span:nth-child(4) {
    top: 20px;
    width: 65%;
}
/*----------- OPEN -----------*/
.open #nav-hamburger{
    transform: rotate(180deg);
}

.open #nav-hamburger span:nth-child(1) {
    top: 2em;
    width: 0;
}

.open #nav-hamburger span:nth-child(2) {
    width: 100%;
    transform: rotate(45deg);
}

.open #nav-hamburger span:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg);
}

.open #nav-hamburger span:nth-child(4) {
    top: 18px;
    width: 0;
    left: 50%;
}
/*----------- SMARTPHONE/TABLET -----------*/
@media (max-width: 1120px) {
    .nav-bar{
        position: relative;
        margin: 0;
    }

    .contenitore-menu{
        visibility: hidden;
        display: flex;
        position: absolute;
        flex-direction: column;
        gap: 1rem;
        top: 105px;
        right: 0px;
        margin: 0;
        background-color: var(--clr-body-light);
        z-index: -1;
        height: auto;
        padding-bottom: 20px;
        width: 100%;
        align-items: center;
        transform: translatex(-100%);
        opacity: 0;
        transition: all 1s cubic-bezier(.215, .61, .355, 1);
    }

    .open .contenitore-menu{
        visibility: inherit;
        opacity: 1;
        transform: translatex(0%);
    }

    .nav-bar ul li a{
        color: var(--clr-body-dark);
        font-size: large;
        padding-bottom: 10px;
    }
    
    .nav-bar ul li{
        border-bottom: solid 1px gray;
        width: 100%;
    }

    .nav-bar ul li:nth-child(1){
        border-top: solid 1px gray;
        width: 100%;
        padding-top: 10px;
    }

    .nav-bar ul li:nth-child(1){
        margin-top: 20px;
    }

    .nav-bar ul li:nth-child(7){
        margin-bottom: 20px;
    }

    #nav-hamburger{
        display: inherit;
        cursor: pointer;
    }
}