/* ---------------------------------------------- */
/* PIVOT SYSTEM by Terno Scorrevoli ------------- */
/* ---------------------------------------------- */

html {
    height: 100%;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

#fine {
    font-size: clamp(14px, 2vw, 16px);
    line-height: clamp(18px, 2vw, 20px);
}

#fine h1 {
    font-size: clamp(22px, 4vw, 35px);
    line-height: clamp(27px, 4vw, 40px);
    font-weight: 900;
    color: #000000;
    margin-bottom: clamp(10px, 2vw, 20px);
}

#fine h2 {
    font-size: clamp(18px, 2vw, 24px);
    line-height: clamp(22px, 2vw, 28px);
    color: #707070;
    font-weight: 700;
    margin: clamp(10px, 2vw, 20px) 0;
}

#fine p {
    font-size: clamp(14px, 2vw, 16px);
    line-height: clamp(18px, 2vw, 20px);
}

/* Classi --------------------------------------- */
#fine .scrollDown {
    width: auto;
    position: absolute;
    z-index: 5;
    bottom: 0;
    left: calc(50% - 30px);
    cursor: pointer;
}
#fine .line {
    height: 1px;
    background-color: #D6001C;
    width: 100%;
    margin: clamp(5px, 2vw, 10px) 0;
    padding: 0;
    display: block;
}

#fine .gradientGrey {
    background: -webkit-linear-gradient(bottom, #DADEE3, #414D58);
    background: -moz-linear-gradient(bottom, #DADEE3, #414D58);
    background: -ms-linear-gradient(bottom, #DADEE3, #414D58);
    background: -o-linear-gradient(bottom, #DADEE3, #414D58);
    background: linear-gradient(bottom, #DADEE3, #414D58);
    padding: 0!important;
}

#fine .txt-center {
    text-align: center;
}

#fine .flex-column {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#fine .relative {
    position: relative;
}

#fine .mTop50 {
    margin-top: clamp(5px, 5vw, 50px);
}

/* Grafica -------------------------------------- */


#fine .bg-ambientazione {
    width: 100vw;
    background-position: 0 0;
    background-size: cover;
    background-repeat: no-repeat;
    height: calc(100vh - 100px);
    position: relative;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
}

#fine .logo-claim {
    width: 35vw;
    padding: 0 clamp(20px, 2vw, 3vw);
    text-align: center;
    color: #FFFFFF;
}

#fine .logo-claim p {
    color: #FFFFFF;
}

#fine .logo-claim .logo-fine {
    width: 250px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #FFFFFF;
}

#fine .fascia {
    margin: 0;
    padding: clamp(30px, 7vw, 100px) 0;
}

#fine .fascia .flex div {
    margin: 0;
    padding: 0 clamp(10px, 2vw, 20px);
}

#fine .fascia .flex div.nopadding {
    margin: 0;
    padding: 0;
}

#fine .fascia .fine-intro {
    text-align: center;
}
#fine .fascia .fine-intro p {
    text-align: justify;
    columns: 2 auto;
    column-gap: 50px;
}
#fine .fascia.bgBlack {
    padding: clamp(30px, 7vw, 50px) 0;
}

#fine .fascia.bgBlack h1,
#fine .fascia.bgBlack h2,
#fine .fascia.bgBlack p {
    color: #FFFFFF;
}
#fine .fascia.bgBlack .four {
    padding-right: 5vw;
    padding-left: 0;
}
#fine .fascia.bgBlack .four .line {
    width: calc(100% + 250px);
    z-index: 1;
    position: relative;
}

#fine .fascia.ambientazione .line {
    width: calc(100% + 250px);
    z-index: 1;
    position: relative;
    -webkit-transform: translateX(-250px);
    -moz-transform: translateX(-250px);
    -ms-transform: translateX(-250px);
    -o-transform: translateX(-250px);
    transform: translateX(-250px);
}

#fine .piastre {
    position: relative;
    background-position: 50% 0;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    display: grid;
    grid-template-rows: 50% 50%;
    grid-template-columns: 50% 50%;
    grid-template-areas:
    "titoli ."
    ". testi";
}
#fine .piastre .titoli-piastre {
    padding-left: 10vw;
    grid-area: titoli;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
}

#fine .piastre .titoli-piastre h1,
#fine .piastre .titoli-piastre h2 {
    color: #FFFFFF;
    margin-bottom: 0;

}

#fine .piastre .testi-piastre {
    grid-area: testi;
    color: #FFFFFF;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: flex-end;
    justify-content:  flex-end;
    flex-direction: column;
    padding: 0 5vw 5vw 10vw;
}
#fine .piastre .testi-piastre p {
    color: #FFFFFF;
}
#fine .n-ante {
    width: auto;
    margin: clamp(25px, 7vw, 80px) 0;
}

#fine .logo-mobile {
    display: none;
}


/* ---------------------------------------------------------------------------------------------------- */
/* ANIMAZIONI ----------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------- */
.toAnimate {
    -webkit-transform: translateY(100px);
    -moz-transform: translateY(100px);
    -ms-transform: translateY(100px);
    -o-transform: translateY(100px);
    transform: translateY(100px);
    will-change: transform;
    -webkit-transition: all 0.7s ease 0.2s;
    -moz-transition: all 0.7s ease 0.2s;
    -ms-transition: all 0.7s ease 0.2s;
    -o-transition: all 0.7s ease 0.2s;
    transition: all 0.7s ease 0.2s;
    opacity: 0;
}
.toAnimate.in {
    -webkit-transform: translateY(0px);
    -moz-transform: translateY(0px);
    -ms-transform: translateY(0px);
    -o-transform: translateY(0px);
    transform: translateY(0px);
    will-change: transform;
    opacity: 1;
}

.toAnimateLeft {
    -webkit-transform: translateX(-100px);
    -moz-transform: translateX(-100px);
    -ms-transform: translateX(-100px);
    -o-transform: translateX(-100px);
    transform: translateX(-100px);
    will-change: transform;
    -webkit-transition: all 0.7s ease 0.2s;
    -moz-transition: all 0.7s ease 0.2s;
    -ms-transition: all 0.7s ease 0.2s;
    -o-transition: all 0.7s ease 0.2s;
    transition: all 0.7s ease 0.2s;
    opacity: 0;
}
.toAnimateLeft.in {
    -webkit-transform: translateX(0px);
    -moz-transform: translateX(0px);
    -ms-transform: translateX(0px);
    -o-transform: translateX(0px);
    transform: translateX(0px);
    will-change: transform;
    opacity: 1;
}

.toAnimateRight {
    -webkit-transform: translateX(100px);
    -moz-transform: translateX(100px);
    -ms-transform: translateX(100px);
    -o-transform: translateX(100px);
    transform: translateX(100px);
    will-change: transform;
    -webkit-transition: all 0.7s ease 0.2s;
    -moz-transition: all 0.7s ease 0.2s;
    -ms-transition: all 0.7s ease 0.2s;
    -o-transition: all 0.7s ease 0.2s;
    transition: all 0.7s ease 0.2s;
    opacity: 0;
}
.toAnimateRight.in {
    -webkit-transform: translateX(0px);
    -moz-transform: translateX(0px);
    -ms-transform: translateX(0px);
    -o-transform: translateX(0px);
    transform: translateX(0px);
    will-change: transform;
    opacity: 1;
}


/* Media Query ---------------------------------- */

@media (max-width: 1280px) {

    #fine .logo-claim {
        width: 30vw;
    }

}

@media (max-width: 1279px) {
    #fine .piastre .testi-piastre {
        padding: 0 2vw 2vw 8vw;
    }
    #fine .piastre .titoli-piastre {
        padding-left: 4vw;
        padding-bottom: 10vw;
    }

}

@media (max-width: 1150px) {

    main#fine {
        margin-top: 100px;
    }

}



@media (max-width: 1023px) {

    #fine .logo-mobile {
        display: block;
        text-align: center;
        padding-bottom: 50px;
    }
    #fine .logo-mobile .logo-fine {
        width: auto;
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 1px solid #000000;
    }
    #fine .logo-claim {
        display: none;
    }

    #fine .flex {
        flex-direction: column;
    }

    #fine .bg-ambientazione {
        width: 100vw;
        height: calc(50vh - 100px);
    }

    #fine .fascia.bgBlack .four {
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }

    #fine .fascia.bgBlack .four .line {
        width: 100%;
    }

   #fine .fascia {
        padding-bottom: 0;
    }

    #fine .fascia.download {
        padding-bottom: clamp(30px, 7vw, 100px);
    }

    #fine .fascia .flex div {
        margin: 0;
        padding: 30px 0;
    }

    #fine .piastre {
        grid-template-rows: 50% 50%;
        grid-template-columns: 100%;
        grid-template-areas: "titoli" "testi";
    }
    #fine .piastre .titoli-piastre {
        padding-left: 0;
        padding-bottom: 0;
        align-items: center;
        text-align: center;
    }
    #fine .piastre .testi-piastre {
        padding: 0 5vw 10vw 5vw;
    }

}

@media (max-width: 767px) {

    #fine .piastre .titoli-piastre {
        padding-left: 20px;
        padding-bottom: 20px;
        align-items: center;
        text-align: center;
    }

    #fine .fascia .fine-intro p {
        text-align: center;
        columns: 1 auto;
    }
    #fine .n-ante {
        width: 100%;
    }
    #fine .piastre .testi-piastre {
        padding: 20px;
    }

    #fine .piastre .testi-piastre p {
        background: rgba(0,0,0, .65);
        padding: 20px;
    }

}