@-webkit-keyframes animazione {
    from {
        opacity: 0;
        -webkit-transform: translatex(-200px);
                transform: translatex(-200px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}

@keyframes animazione {
    from {
        opacity: 0;
        -webkit-transform: translatex(-200px);
                transform: translatex(-200px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}

@-webkit-keyframes animazione-reverse {
    from {
        opacity: 0;
        -webkit-transform: translatex(200px);
                transform: translatex(200px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}

@keyframes animazione-reverse {
    from {
        opacity: 0;
        -webkit-transform: translatex(200px);
                transform: translatex(200px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}


@-webkit-keyframes animazione-dal_basso {
    from {
        opacity: 0;
        -webkit-transform: translateY(40px); 
                transform: translateY(40px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}


@keyframes animazione-dal_basso {
    from {
        opacity: 0;
        -webkit-transform: translatey(350px);
                transform: translatey(350px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}


html, body {
    overflow-x: clip;
}

/*-----------INIZIO HERO ----------------*/

.hero{
    position: relative;
    height: 100vh;
    width: 100%;
    padding: 100px;
    margin: 0px 0px 50px 0px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background-color: aliceblue;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.hero::after{
    left: 0px;
    top: 0px;
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.356);
}

.hero .hero-dati{
    height: 90%;
    width: 100%;
    padding: 25px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 48px;
    z-index: 1;
}

.hero .hero-dati .hero-titolo{
    width: 100%;
    font-size: 4.5rem;
    font-weight: 700;
    text-align: center;
    color: rgb(255, 255, 255);
}

.hero .hero-dati .hero-sottotitolo{
    width: 100%;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    color: rgb(255, 255, 255);
}

.hero .hero-dati .hero-ctas{
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 24px;
}

.hero .hero-dati .hero-ctas .hero-cta_pulsante{
    width: 40%;
    text-align: center;
    padding: 12px 24px;
    color: rgb(0, 0, 0);
    font-size: 1.2rem;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.945);
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    border-radius: 24px;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.hero .hero-dati .hero-ctas .hero-cta_pulsante:hover{    
    width: 42%;
    -webkit-box-shadow: 0px 0px 2px white;
            box-shadow: 0px 0px 2px white;
    font-weight: 700;
}
/*-----------FINE HERO ----------------*/

/*-----------INIZIO CARTE----------------*/
.reverse{
    -webkit-animation: animazione-reverse linear ;
            animation: animazione-reverse linear ;
    animation-timeline:view();
    animation-range: entry 0% cover 30%;
}

.animazione{   
    -webkit-animation: animazione linear ;   
            animation: animazione linear ;
    animation-timeline:view();
    animation-range: entry 0% cover 30%;
}

.carte{
    width: 100%;
    padding: 24px 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 48px;
}

.carte .carta-box{
    height: 60vh;
    width: 100%;
    margin: 0px 0px 80px 0px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.carte .carta-box .carta-box_foto{
    width: 50%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 12px;
    -webkit-box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.301);
            box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.301);
}


.carte .carta-box .carta{
    width: 50%;
    padding: 48px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: space-evenly;
        -ms-flex-pack: space-evenly;
            justify-content: space-evenly;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.carte .carta-box .carta .carta_titolo{
    color: white;
    font-size: 3rem;
}

.carte .carta-box .carta .carta_paragrafo{
    color: white;
    font-family: "Rouge Script", cursive;
    font-weight: 400;
    font-size: 2.8rem;
}

.carte .carta-box .carta .carta_titolo, .carta_paragrafo{
    text-align: center;
}
/*-----------FINE CARTE----------------*/

/*-----------INIZIO RIVOLTO----------------*/

.rivolto{
    margin:50px 0px 120px 0px;
    padding:0px 24px 0px 24px;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 24px;
    -webkit-animation: animazione-dal_basso linear ;
            animation: animazione-dal_basso linear ;
    animation-timeline:view();
    animation-range: entry 0% cover 30%;
}

.rivolto .destra,.sinistra{
    height: 300%;
    width: 33%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.rivolto  .centrale{
    height: 100%;
    width: 33%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 48px;
}

.rivolto .rivolto-sezione .rivolto-sezione_titolo{
    font-size: 3rem;
    color: white;
    text-align: center;
}

.rivolto .rivolto-sezione .rivolto-sezione_paragrafo{
    font-family: "Rouge Script", cursive;
    font-size: 2.8rem;
    font-weight: 400;
    color: white;
    text-align: center;
}


.rivolto .rivolto-sezione .rivolto-sezione_foto{
    width: 100%;
    border-radius: 12px;
    -webkit-box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.301);
            box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.301);
}

/*-----------FINE RIVOLTO----------------*/

/*-----------INIZIO FINALE----------------*/

.finale{
    margin: 0px 0px 100px 0px;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 12px;
    -webkit-animation: animazione-dal_basso linear ;
            animation: animazione-dal_basso linear ;
    animation-timeline:view();
    animation-range: entry 0% cover 30%;
}

.finale .finale-titolo{
    font-size: 3rem;
    color: white;
    text-align: center;   
}

.finale .finale-paragrafo{
    font-family: "Rouge Script", cursive;
    font-size: 2.8rem;
    font-weight: 400;
    color: white;
    text-align: center;
}

.finale .finale-cta{
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 24px;
}

.finale .finale-cta .finale-cta_pulsante{
    width: 40%;
    text-align: center;
    padding: 12px 24px;
    color: rgb(0, 0, 0);
    font-size: 1.2rem;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.945);
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    border-radius: 24px;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.finale .finale-cta .finale-cta_pulsante:hover{
    width: 42%;
    -webkit-box-shadow: 0px 0px 2px white;
            box-shadow: 0px 0px 2px white;
    font-weight: 700;
}
/*-----------FINE FINALE----------------*/



/*--------------------------------------------------------------
MEDIA QUERY - TABLET (max 1024px)
--------------------------------------------------------------*/
@media (max-width: 1024px) {
    .hero{background-attachment: scroll;}
    .hero .hero-dati .hero-titolo {
        font-size: 3rem;
    }

    .hero .hero-dati .hero-ctas .hero-cta_pulsante,
    .finale .finale-cta .finale-cta_pulsante {
        width: 45%;
    }

    .finale .finale-cta .finale-cta_pulsante:hover{ width: 87%;}
    .hero .hero-dati .hero-ctas .hero-cta_pulsante:hover{ width: 87%;}

    .carte{ gap: 24px;}
    .carte .carta-box { width: 100%;}
    .carte .carta-box .carta .carta_titolo{ font-size: 2rem;}
     .carte .carta-box .carta .carta_paragrafo { font-size: 1.8rem;}

    .rivolto {
        margin: 48px 0px 48px 0px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }

    .rivolto .rivolto-sezione{
        width: 100%;
    }

    .rivolto .rivolto-sezione .rivolto-sezione_titolo{
        font-size: 2rem;
    }

    .rivolto .rivolto-sezione .rivolto-sezione_paragrafo{
        font-size: 1.8rem;
    }
}

/*--------------------------------------------------------------
MEDIA QUERY - SMARTPHONE (max 768px)
--------------------------------------------------------------*/
@media (max-width: 768px) {
    
    .hero {
        padding: 40px 20px;
        height: auto; 
        min-height: 100vh;
    }

    .hero .hero-dati .hero-titolo {
        font-size: 2.2rem;
    }

    .hero .hero-dati .hero-sottotitolo {
        font-size: 1.2rem;
    }

    .hero .hero-dati .hero-ctas {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column; 
        gap: 15px;
    }

    .hero .hero-dati .hero-ctas .hero-cta_pulsante,
    .finale .finale-cta .finale-cta_pulsante {
        width: 90%; 
    }

    .carte .carta-box {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        height: auto;
        margin-bottom: 40px;
    }

    .carte .reverse{
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
    }

    .carte .carta-box .carta-box_foto, 
    .carte .carta-box .carta {
        width: 100%;
        height: 300px;
    }

    .carte .carta-box .carta {
        padding: 30px 10px;
        height: auto;
    }

    .carte .carta-box .carta .carta_titolo,
    .carte .carta-box .carta .carta_paragrafo {
        font-size: 1.8rem;
    }

    .rivolto {
        padding: 24px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 40px;
    }

    .rivolto .destra, .rivolto .sinistra, .rivolto .centrale {
        width: 100%;
        height: auto;
    }

    .rivolto .rivolto-sezione .rivolto-sezione_titolo {
        font-size: 2rem;
    }

    .rivolto .rivolto-sezione .rivolto-sezione_paragrafo {
        font-size: 1.8rem;
    }
    .finale{
        padding: 24px;
    }
    .finale .finale-titolo, .finale .finale-paragrafo {
        font-size: 1.9rem;
    }
    
    .finale .finale-cta {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .animazione, .reverse, .rivolto, .finale {
        animation-range: entry 0% cover 20%;
    }

}