#sidebarContainer,
#userSidebarContainer {
    /* position: absolute; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100vw;
    height: 100%;
    min-height: 100vh;
    z-index: 1000;
}

#sidebar {
    height: 100%;
    min-height: 100vh;
    width: 300px;
    position: absolute;
    z-index: 1001;
    background: white;
    padding: 1.5rem 2rem 0rem 1.5rem;
    overflow-y: scroll;
}

#userSidebar {
    height: 100%;
    min-height: 100vh;
    width: 300px;
    position: absolute;
    right: 0;
    z-index: 1001;
    background: white;
    padding: 1.5rem 2rem 2rem 1.5rem;
}

.sidebarUnderlay {
    position: absolute;
    z-index: 999;
    height: 100%;
    min-height: 100vh;
    width: 100%;
    min-width: 100vw;
    background-color: var(--main-grey);
}

#closeSidebarButton {
    position: absolute;
    z-index: 1000;
    right: 0;
    top: 0;
    color: white;
    font-size: 60px;
    font-weight: 700;
    line-height: 0.7;
}

#closeUserSidebarButton {
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    color: white;
    font-size: 60px;
    font-weight: 700;
    line-height: 0.7;
}

#hamburgerButton>div {
    width: 35px;
    height: 5px;
    background-color: var(--main-color);
    margin: 6px 0;
}

#userButton {
    color: var(--main-color);
}



#sidebar #iconeSocial {
    margin-bottom: 2rem;
}

#sidebar #navbar {
    display: flex;
    flex-direction: column;
    font-size: var(--text-xxl);
}

#sidebar #navbar a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: none;
    height: 0;
    border-radius: 0;
}

#sidebar #navbar a {
    /*overflow: scroll;*/
    white-space: nowrap;
}



#sidebarLogoImg,
#userSidebarLogoImg {
    margin: auto;
    width: 130px;
    margin-bottom: 0.75rem;
}

#userSidebar #headerBarraVerdeInputContainer {
    flex-direction: column;
    align-items: flex-start !important;
}

#userSidebar #headerBarraHeaderInputContainer>form>* {
    margin-bottom: 0.75rem;
    margin-right: 0 !important;
}

#userSidebar #headerBarraHeaderInputContainer>form input:focus {
    border: 1px solid var(--main-color) !important;
}

#userSidebar #buttonAccedi {
    align-self: center;
    color: white;
    background-color: var(--second_color);
}

#userSidebar #buttonRegistrati {
    align-self: center;
    color: white;
    background-color: #181;
}

#userSidebar #buttonRegistrati:hover,
#userSidebar #buttonRegistrati:active {
    background-color: #2ba12b;
}

#userSidebar #headerBarraVerdeInputContainer input::placeholder {
    color: var(--second_color);
}

#userSidebar #headerBarraVerdeInputContainer input {
    background-color: white;
    color: var(--second_color);
    border: 1px solid var(--second_color) !important;
}

#userSidebar #headerBarraVerdeInputContainer .form-control {
    /* width: calc(100% - 30px) !important; */
    width: 180px !important;

}

#userSidebar #headerBarraVerdeInputContainer .input-group-append {
    background-color: var(--second_color);
    border-radius: 0 7px 7px 0;
    border: 0px solid transparent;

}

#userSidebar #headerBarraVerdeInputContainer button {
    width: 150px;
}

#headerBarraHeaderInputContainer .recuperaPassword span {
    color: white !important;
    background: transparent;
    height: 20px;
    padding-top: 0;
    padding-bottom: 0;
    position: absolute;
}

#userSidebar #headerBarraHeaderInputContainer .recuperaPassword span {
    color: var(--main-color) !important;
    background: transparent;
    height: 20px;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}


/* ANIMAZIONI */

.fromLeft100ToLeft0 {
    animation-name: fromLeft100ToLeft0;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
}


.fromRight100ToRight0 {
    animation-name: fromRight100ToRight0;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
}

@keyframes fromLeft100ToLeft0 {
    from {
        left: -100%;
    }

    to {
        left: 0;
    }
}

@keyframes fromRight100ToRight0 {
    from {
        right: -100%;
    }

    to {
        right: 0
    }
}


/* MEDIA QUERIES */
@media screen and (max-width: 576px) {

    #sidebar,
    #userSidebar {
        width: 280px;
    }

    /* #userSidebar #headerBarraVerdeInputContainer .form-control {
        width: calc(100% - 30px) !important;
    } */

}


@media screen and (min-width: 992px) {
    #headerBarraHeaderInputContainer .recuperaPassword span {
        bottom: 5px;
    }

    #headerBarraHeader {
        padding-bottom: 10px;
    }
}