/*animations*/

@keyframes reducedLogoSpaceAnimation{
    from{
        width: 20vw;
        float:left;
        max-height: 10vh;
    }
    to{
        width: 17vw;
        float: left;
        max-height: 10vh;
    }
}

@keyframes closeLocationAnimation{
    from{
        width: 40vw;
        min-height: 100vh;
        position: absolute;
        left: 0;
        top: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        padding: 25px;
        padding-top: 25vh;
        padding-bottom: 25vh;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 0 50px rgb(200,200,200);
    }
    to{
        width: 40vw;
        min-height: 100vh;
        position: absolute;
        left: -60vw;
        top: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        padding: 25px;
        padding-top: 25vh;
        padding-bottom: 25vh;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 0 0px rgb(200,200,200);
    }
}
@keyframes closeLocationAnimationMobile{
    from{
        width: 80vw;
        min-height: 100vh;
        position: absolute;
        left: 0;
        top: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        padding: 25px;
        padding-top: 25vh;
        padding-bottom: 25vh;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 0 50px rgb(200,200,200);
    }
    to{
        width: 80vw;
        min-height: 100vh;
        position: absolute;
        left: -100vw;
        top: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        padding: 25px;
        padding-top: 25vh;
        padding-bottom: 25vh;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 0 0px rgb(200,200,200);
    }
}
@keyframes openLocationAnimation{
    from{
        width: 40vw;
        min-height: 100vh;
        position: absolute;
        left: -60vw;
        top: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        padding: 25px;
        padding-top: 25vh;
        padding-bottom: 25vh;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 0 0px rgb(200,200,200);
    }
    to{
        width: 40vw;
        min-height: 100vh;
        position: absolute;
        left: 0;
        top: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        padding: 25px;
        padding-top: 25vh;
        padding-bottom: 25vh;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 0 50px rgb(200,200,200);
    }
}
@keyframes openLocationAnimationMobile{
    from{
        width: 80vw;
        min-height: 100vh;
        position: absolute;
        left: -100vw;
        top: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        padding: 25px;
        padding-top: 25vh;
        padding-bottom: 25vh;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 0 0px rgb(200,200,200);
    }
    to{
        width: 80vw;
        min-height: 100vh;
        position: absolute;
        left: 0;
        top: 0;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(5px);
        padding: 25px;
        padding-top: 25vh;
        padding-bottom: 25vh;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 0 50px rgb(200,200,200);
    }
}
#locationSide{
    left: -60vw;
    z-index: 9999999 !important;
}
.locationContainer{
    position: absolute;
    top: 10vh;
    max-width: 10vw;
    left: 4vw;
    cursor: pointer;
}
.cornerLocationTitle{
    top: 2vh;
}
.contractLocationContainer{
    position: fixed;
    top: 1vh;
    max-width: 10vw;
    left: 4vw;
    cursor: pointer;
    display: none;
}
.locationContainer:hover>.locationTitle{
    padding-left: 7px;
    transition: 0.2s;
}
.locationContainer:hover>.mainLocationIcon{
    transform: scale(1.2);
    transition: 0.2s;
}
.mainLocationIcon{
    float: left;
    font-variation-settings:
    'FILL' 0,
    'wght' 200,
    'GRAD' 0,
    'opsz' 30;
    color: rgb(0,0,0);
    width: 30px;
    height: 30px;
    transition: 0.2s;
    text-align: center;
    line-height: 30px;
}
.locationTitle{
    height: 30px;
    line-height: 30px;
    font-size: 0.9em;
    color: rgb(0,0,0);
    text-align: left;
    padding-left: 0px;
    font-weight: 400;
    text-transform: capitalize;
    transition: 0.2s;
}
/*logo*/
.locationContainerLoc{
    position: absolute;
    top: 10vh;
    max-width: 10vw;
    left: 4vw;
    cursor: pointer;
}
.locationContainerLoc:hover>.locationTitleLoc{
    padding-left: 7px;
    transition: 0.2s;
}
.locationContainerLoc:hover>.mainLocationIconLoc{
    transform: scale(1.2);
    transition: 0.2s;
}
.mainLocationIconLoc{
    float: left;
    font-variation-settings:
    'FILL' 0,
    'wght' 200,
    'GRAD' 0,
    'opsz' 30;
    color: rgb(0,0,0);
    width: 30px;
    height: 30px;
    transition: 0.2s;
    text-align: center;
    line-height: 30px;
}
.locationTitleLoc{
    height: 30px;
    line-height: 30px;
    font-size: 0.9em;
    color: rgb(0,0,0);
    text-align: left;
    padding-left: 0px;
    font-weight: 400;
    text-transform: capitalize;
    transition: 0.2s;
}
img.locationLogo{    
	width: calc(20vw - 50px);
	float:left;
    left: calc(2vw - 25px);
    top: -25vh; 
    margin: 25px;
    cursor: pointer;
}

/**********************/
/**********************/
/*                    */
/* gestione locations */
/*                    */
/**********************/
/**********************/
.locationsContainer{
    width: 40vw;
    min-height: 100vh;
    max-height: 100vh;
    position: absolute;
    left: 0; /*impostato in negativo al fine che sia nascosto dalla schermata principale*/
    top: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    padding: 25px;
    padding-top: 25vh;
    padding-bottom: 25vh;
    box-sizing: border-box;
    z-index: 9999;
    box-shadow: 0 0 50px rgb(200,200,200);
}
ul.locationList{
    width: calc(40vw - 25px);
    height: auto; /*rimozione del padding superiore del container (vedi sopra)*/
    box-sizing: border-box;
    list-style: none;
}
li.locationItem{
    width: calc(100% - 200px);
    height: calc(50vh / 4);
    box-sizing: border-box;
    text-transform: uppercase;
    text-align: left;
    font-size: 6em;
    line-height: calc(50vh / 4);
    font-weight: 100;
    color: rgb(120,120,120);
    transition: 0.2s;
    letter-spacing: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

li.locationItem:hover{
    transition: 0.2s;
    letter-spacing: 15px;
    font-weight: 400;
}

.selectedLocation{
    font-weight: 400 !important;
    color: rgb(30,30,30);
}

.closingLocationButton{
    font-size: 3em;
    font-weight: 100;
    color: rgb(200,200,200);
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1em;
    padding-right: 50px;
    cursor: pointer;
    transition: 0.2s;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    align-content: center;
}
.closingLocationButton:hover{
    padding-right: 65px;
    transition: 0.2s;
}

.openLocationClass{
    animation: openLocationAnimation;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.closeLocationClass{
    animation: closeLocationAnimation;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

/* gestione query per le varie versioni DESKTOP */
@media (min-width: 1024px) and (max-width: 1279px){
    @keyframes openLocationAnimation{
        from{
            width: 40vw;
            min-height: 100vh;
            position: absolute;
            left: -60vw;
            top: 0;
            background: rgba(255,255,255,0.8);
            backdrop-filter: blur(5px);
            padding: 25px;
            padding-top: 25vh;
            padding-bottom: 25vh;
            box-sizing: border-box;
            z-index: 999;
            box-shadow: 0 0 0px rgb(200,200,200);
        }
        to{
            width: 30vw !important;
            min-height: 100vh;
            position: absolute;
            left: 0;
            top: 0;
            background: rgba(255,255,255,0.8);
            backdrop-filter: blur(5px);
            padding: 25px;
            padding-top: 25vh;
            padding-bottom: 25vh;
            box-sizing: border-box;
            z-index: 999;
            box-shadow: 0 0 50px rgb(200,200,200);
        }
    }
    .locationTitle {
        font-size: 0.8em;
    }
    .mainLocationIcon {
        width: 20px;
        height: 20px;
        font-size: 0.9em;
    }
    .locationTitleLoc {
        font-size: 0.5em;
    }
    .mainLocationIconLoc {
        width: 20px;
        height: 20px;
        font-size: 0.9em;
    }
    li.locationItem {
        height: calc(30vh / 4);
        font-size: 3em;
        line-height: calc(30vh / 4);
        letter-spacing: 2.5px;
    }
}
@media (min-width: 1280px) and (max-width: 1679px){
    @keyframes openLocationAnimation{
        from{
            width: 40vw;
            min-height: 100vh;
            position: absolute;
            left: -60vw;
            top: 0;
            background: rgba(255,255,255,0.8);
            backdrop-filter: blur(5px);
            padding: 25px;
            padding-top: 25vh;
            padding-bottom: 25vh;
            box-sizing: border-box;
            z-index: 999;
            box-shadow: 0 0 0px rgb(200,200,200);
        }
        to{
            width: 30vw !important;
            min-height: 100vh;
            position: absolute;
            left: 0;
            top: 0;
            background: rgba(255,255,255,0.8);
            backdrop-filter: blur(5px);
            padding: 25px;
            padding-top: 25vh;
            padding-bottom: 25vh;
            box-sizing: border-box;
            z-index: 999;
            box-shadow: 0 0 50px rgb(200,200,200);
        }
    }
    .locationTitle {
        font-size: 0.7em;
    }
    .mainLocationIcon {
        width: 20px;
        height: 20px;
        font-size: 1em;
    }
    .locationTitleLoc {
        font-size: 0.6em;
    }
    .mainLocationIconLoc {
        width: 20px;
        height: 20px;
        font-size: 1em;
    }
    li.locationItem {
        height: calc(30vh / 4);
        font-size: 3em;
        line-height: calc(30vh / 4);
        letter-spacing: 2.5px;
    }
}
/* mobile */
@media (min-width: 279px) and (max-width: 823px) {
    .locationsContainer {
        width: 100vw; /*prima 80vw*/
        min-height: 100vh;
        padding-right: 30vw; /*prima 25px*/
        padding-left: 10vw; /*prima 25px*/
        background: rgb(255,255,255);
    }
    .closingLocationButton {
        font-size: 3em;
        font-weight: 100;
        color: rgb(180,180,180);
        position: absolute;
        top: 0;
        right: 0;
        line-height: 1em;
        padding-right: 0;
        cursor: pointer;
        transition: 0.2s;
        height: 10vh;
        min-height: 10vh;
        max-height: 10vh;
        width: 10vh;
        min-width: 10vh;
        max-width: 10vh;
    }
    img.locationLogo {
        width: 40vw;
        margin-left: 2vw;
        margin-top: 2vw;
        margin: 7px;
    }
    .locationContainer {
        position: absolute;
        top: 10vh;
        max-width: 10vw;
        left: 4vw;
        cursor: pointer;
    }
    .locationTitle {
        height: 30px;
        line-height: 30px;
        font-size: 0.9em;
        color: rgb(0,0,0);
        text-align: left;
        padding-left: 0px;
        font-weight: 400;
        text-transform: capitalize;
        transition: 0.2s;
    }
    ul.locationList {
        width: 40vw;
        height: 100vh;
    }
    li.locationItem {
        width: calc(100% - 25px);
        height: calc(50vh / 4);
        font-size: 3em;
        line-height: calc(50vh / 4);
        color: rgb(120,120,120);
        letter-spacing: 5px;
    }
    #locationSide {
        left: -100vw;
        z-index: 9999999;
    }
    .closeLocationClass{
        animation: closeLocationAnimationMobile;
        animation-duration: 0.5s;
        animation-fill-mode: forwards;
    }
    .openLocationClass{
        animation: openLocationAnimationMobile;
        animation-duration: 0.5s;
        animation-fill-mode: forwards;
    }
}
