@media screen and (max-width: 1400px) { /* Portatile */
    .TestiPresentazione.Dx {
        padding-right: 40px
    }
    .TestiPresentazione.Sx{
        padding-left: 40px;
        padding-right: 40px
    }
    .Presentazione + section{
        margin-top: 20px;
    }

    #TravelsPres .TestiPresentazione label,
    #WritingsPres .TestiPresentazione label{
        font-size: 40px;
    }

    .WrapCardLineari{
        grid-template-columns: 1fr 1fr;
        padding: 0 80px;
    }

    .WrapFoto{
        width: 50vw;
    }
}

/* Portatile Piccolo */
@media screen and (max-width: 1800px) and (max-height: 800px){ 
    #TravelsPres .TestiPresentazione label, #WritingsPres .TestiPresentazione label {
        font-size: 40px;
    }
}

@media screen and (max-width: 1024px) and (max-height: 800px){ 
    #TravelsPres .TestiPresentazione label, #WritingsPres .TestiPresentazione label {
        font-size: 26px;
    }
}


@media screen and (max-height: 900px){ 
    .Foto {
        max-height: calc(100vh - 225px);
    }
    .Miniature > img {
        height: 100px;
    }
}

@media screen and (max-height: 800px){ 
    .Presentazione{
        height: 770px
    }
    .Foto {
        max-height: unset;
        height: 550px;
    }
    .WrapPopup{
        align-items: flex-start;
        overflow: auto;
        padding: 40px 0;
    }
}
/* END */

@media screen and (max-width: 820px) { /* Tablet Grande */
    .Presentazione {
        height: fit-content;
        min-height: 550px;
    }
    .TestiPresentazione {
        padding: 40px;
        padding-top: 70px;
        min-height: 550px;
    }
    .TestiPresentazione label {
        font-size: 26px !important;
    }

    .TestiPresentazione span {
        font-size: 16px;
    }

    #TravelsPres.Presentazione > img{
        object-position: center;
    }

    .WrapTreValori, .WrapInPrimoPiano{
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin: 50px 0;
        gap: 50px;
        padding: 0 50px;
    }
    .Valore {
        width: 280px;
    }
    .Valore > img {
        height: 280px
    }
    .TreValori {
        margin: 30px 0;
    }
    .Presentazione + section {
        margin-top: 0;
    }
    .TitoloSection {
        padding: 0 30px;
    }
    .Vicenda {
        width: 100%;
        gap: 20px;
        flex-direction: column;
    }
    .Vicenda:nth-child(even) {
        flex-direction: column;
    }
    .Vicenda:nth-child(even) .InfoVicenda > span{
        text-align: left 
    }
    .InPrimoPiano .Pulsante {
        margin-top: 20px;
    }
    .InPrimoPiano .RefPulsante {
        margin-left: auto;
    }
    .InfoVicenda > label {
        margin-bottom: 12px;
        font-size: 20px;
    }
    .Vicenda:nth-child(even) .InfoVicenda > label {
        text-align: left;
    }
    .Vicenda > img {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .InfoVicenda > span {
        font-size: 16px;
        text-align: justify;
    }
    .Citazione {
        margin: 30px 0;
    }
    .Citazione > i {
        margin-left: 58px;
    }
    footer {
        margin-top: 80px;
    }
    .VascaPortfolio {
        grid-template-columns: 1fr 1fr;
    }
    .BloccoPortfolio:not(:nth-child(3)) {
       padding-top: 0
    }
    .WrapCardLineari {
        margin-top: -45px;
        padding: 0 40px;
        gap: 40px;
    }
    .Card > label {
        font-size: 18px;
        margin: 10px 0 5px 0;
    }
    .Card > span {
        font-size: 16px;
        text-align: justify;
    }

    .Bio{
        flex-direction: column;
        gap: 30px;
        width: 100%;
        padding: 40px;
        margin-top: 0;
    }
    .Bio > img {
        object-position: center;
        width: 100%;
        height: 450px;
    }
    .Bio .TestiPresentazione{
        padding: 0;
        width: 100%;
    }
    .Bio.Contatto > img {
        object-position: bottom;
    }

    .WrapFoto > i.fa-times {
        right: -10px;
        top: -75px;
    }
    .WrapFoto > i.fa-chevron-right {
        right: 20px;
    }
    .WrapFoto > i.fa-chevron-left {
        left: 20px;
    }
    .WrapFoto {
        width: calc(100vw - 80px);
    }
    .Foto {
        max-height: 65vh;
    }
}


@media screen and (max-width: 768px) { /* Tablet */
    nav{
        flex-direction: column;
        position: fixed;
        background-color: var(--BiancoAntico);
        height: 100vh;
        width: 160px;
        top: 0;
        left: -300px;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px;
        box-shadow: 0 0 60px 0 rgba(0,0,0,.3);
        will-change: left;
        transition: left 200ms linear;
        z-index: 11111;
        padding-top: 0;
    }
    nav > ol > li > a {
        width: fit-content;
    }
    nav > ol{
        flex-direction: column;
    }
    .NavMobile{
        height: 60px;
        z-index: 11110;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    label[for='Ham']{
        height: 60px;
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: var(--Nero);
    }

    nav label[for='Ham']{
        margin-left: auto;
        margin-right: -30px;
        display: flex;
    }

    #Ham:checked + nav{
        left: 0;
    }

    .Foto {
        max-height: 55vh;
    }

    .PopupCookies{
        bottom: 0;
        left: 0;
        width: 100vw;
    }
}

@media screen and (max-width: 540px) { /* Phone */
    .TitoloFolio {
        font-size: 15px;
    }
    .TestiPresentazione{
        width: 100%;
        min-height: unset;
        padding: 15px 20px !important;
        height: fit-content;
    }
    .Presentazione > i{
        display: none;
    }
    .Presentazione {
        justify-content: flex-end;
        min-height: unset;
        height: 600px;
        top: -60px;
    }

    .Presentazione > img{
        position: static;
    }

    .WrapTreValori, .WrapInPrimoPiano {
        gap: 60px;
        padding: 0 20px;
    }
    .WrapTreValori{
        margin-bottom: 60px;
    }
    .Valore {
        width: 100%;
    }
    .Valore > img {
        width: 100%;
        height: unset;
    }

    .Valore label {
        padding-top: 15px;
    }
    .Valore span {
        margin-top: 10px;
    }
    .TitoloSection {
        padding: 0 20px;
    }
    .Citazione > i {
        margin-left: 24px;
    }

    .VascaPortfolio {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 20px;
        margin-top: 20px;
    }
    .Folio{
        grid-area: unset !important
    }
    .BloccoPortfolio {
        margin: 60px 0;
    }
    .Postit{
        bottom: unset !important;
        top: 4px !important;
        right: 4px !important;
        left: unset !important;
        font-size: 13px;
    }

    #TravelsPres{
        height: 760px;
    }

    .WrapCardLineari{
        margin-top: -40px;
        padding: 0 20px;
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .Bio{
        padding: 0;
        gap: 0;
        top: -60px;
        position: relative;
    }
    .Bio > img {
        height: 300px;
    }

    .Bio + footer{
        margin-top: 0;
    }

    .Bio .TestiPresentazione{
        gap: 12px
    }

    .Miniature > img {
        height: 80px;
    }
    .WrapFoto {
        width: calc(100vw - 40px);
    }
    .Foto {
        max-height: unset;
        height: 65vh;
        background: black;
        border: 4px solid black;
    }
    .Foto > img{
        object-fit: cover;
        object-position: center;
    }
    .Foto.Contain > img{
        object-fit: contain;
    }
    .WrapFoto > i {
        filter: drop-shadow(0 0 10px black);
    }
    .WrapPopup {
        height: 100vh;
        align-items: flex-start;
        padding-top: 80px;
        background-color: rgba(0, 0, 0, .9);
    }
    .Miniature {
        gap: 20px;
        padding: 20px 0;
    }
    .WrapFoto > i.fa-times {
        top: -60px;
    }
    .WrapFoto > i.fa-chevron-right {
        right: 10px;
        top: calc(50% - 70px)
    }
    .WrapFoto > i.fa-chevron-left {
        left: 10px;
        top: calc(50% - 70px)
    }

    #FotoMobileCompress{
        height: 40px;
        width: 40px;
        background-color: var(--BiancoAntico);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--Nero);
        font-size: 18px;
        border-radius: 20px;
        right: 19px;
        bottom: 150px;
    }
}