:root {
    --verde-scuro: #009638;
    --verde-elettrico: #23e06a;
    --verde-chiaro: #9cffc2;
    --verde-trasparente: #00963775;
    --white: #ffffff;
    --white-trasparent: #fffffff8;
    --black: #111010;
}

@font-face {
    font-family: quadrille;
    src: url(../font/quadrillescriptssk.ttf);
}

body {
    background-color: var(--grigio);
    font-family: "Bricolage Grotesque", sans-serif;
}

.quadrille {
    font-family: quadrille;
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    margin:0;
}
h3{
    padding-left: 0;
    font-size:2.5rem;
    font-weight: 500;
}

.title {


    
    color: var(--white);
    font-size: calc(63px + (100 - 63) * ((100vw - 300px) / (2560 - 300)));
    
}

.title-page {

    
    letter-spacing: 0.3rem;
    font-size: calc(38px + (43 - 38) * ((100vw - 300px) / (2560 - 300)));
   
    color: var(--white);
}
.subtitle-box {

    font-size: calc(30px + (35 - 30) * ((100vw - 300px) / (2560 - 300)));
    color: var(--white);
}
.list-button{
    padding-top:1em;
    gap:1.5rem;
    padding-left:0;
    display: inline-flex;
    list-style: none;
}
.subtitle {

    
    font-size: 4.7rem;
}

.subtitle-box {
    position: absolute;
    bottom: 3vh;
}

.animated {
    animation-duration: 2s;
}



#body-storia {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.head-prodotti,
.row-prodotti {
    height: 65dvh;

}

.shadow {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.verde {
    color: var(--verde-scuro);
}
.head-certificazioni{
    background-image: url("../img/header-certificazioni.jpg");
    background-size: cover;
    background-position: 100%;
}
.head-prodotti {
    background-image: url("../img/head-prodotti.jpg");
    background-size: cover;
    background-position: 100%;
}
.head-servizi,
.row-servizi {
    height: 65dvh;

}
.head-servizi {
    background-image: url("../img/head-servizi.jpg");
    background-size: cover;
    background-position: 100%;
}
#video-back {
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 75vh;
    object-fit: cover;
}
.row-story {
    align-items: center;
}
.content,
#video-back {
    height: 85vh;
}
.col-footer {
    text-align: center;
}
.back-timeline {
    background-image: url("../img/back-timeline.svg");
    background-size: cover;
    background-position: 50% 100%;
}
.back-green-trasparent {
    background-color: var(--verde-trasparente);
}

.navbar {
    border-radius: 20px;
    margin: 0.8rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.strong-verde {
   
    color: var(--verde-scuro);
}

.strong-verde-chiaro {
    
    color: var(--verde-chiaro);
}

.carousel-caption {
    background-color: var(--white-trasparent);
}

.caption-title {

    color: var(--black);
    font-size: calc(18px + (18 - 16) * ((100vw - 300px) / (2560 - 300)));
}

.caption-text {
    color: var(--black);
    font-size: calc(16px + (16 - 14) * ((100vw - 300px) / (2560 - 300)));
}

.letter {
    color: var(--verde-scuro);
}

.back-white {
    background-color: var(--white);
}

.back-verde-chiaro {
    background-color: var(--verde-chiaro);
}

.back-black {
    background-color: var(--black);
}

.back-white-trasparent {
    background-color: var(--white-trasparent);
}

.back-time {
    background-image: url(../img/back-time.svg);
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
}

.back-servizi-1 {
    background-image: url("../img/servizi/back-servizi-1.jpg");
    background-size: cover;
    background-position: center;
    aspect-ratio: 16/9;
}

.back-servizi-2 {
    background-image: url("../img/servizi/back-servizi-2.jpg");
    background-size: cover;
    background-position: center;
    aspect-ratio: 16/9;

}

.back-storia-macchina {
    background-image: url("../img/storia/macchina-antica.jpg");
    background-size: cover;
    aspect-ratio: 16/9;
    background-position: center;
}

.back-storia {
    background-image: url("../img/storia/back-storia.jpg");
    background-size: cover;
    min-height: 65vh;
    background-position: center;
}

.row-cert {
    justify-content: center;
}

.payof {
    line-height: 1rem;
    font-style: italic;
    font-size: calc(12px + (20 - 12) * ((100vw - 300px) / (2560 - 300)));
}

.map-container {
    position: relative;
}


#map {
    height: 24vw;
    width: auto;
    position:relative;
    top: 50%;
    transform: translate(0%, -50%);
}

.verde-scuro {
    color: var(--verde-scuro);
}

.back-verde-scuro {
    background-color: var(--verde-scuro);
}

.back-verde-elettrico {
    background-color: var(--verde-elettrico);
}

.white {
    color: var(--white);
}

.verde-elettrico {
    color: var(--verde-elettrico);
}

.bordered-start {
    border-left: 2px solid var(--verde-scuro)
}

.bordered-start-white {
    border-left: 2px solid var(--verde-scuro)
}

.flex-start {
    display: flex;
    justify-content: start;
}



.header-container {
    position: relative;
    text-align: center;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(0%, -50%);
}


/*animation*/
.animated {
    animation-duration: 2s;
}

.list li {
    font-size: calc(18px + (22 - 18) * ((100vw - 300px) / (2560 - 300)));
}

.back-white {
    background-color: var(--white);
}

.box {
    position: relative;
}

.shadow {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.back-scatole {
    background-image: url("../img/fogli.jpg");
    background-size: cover;
    background-position: center;

}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

#body-storia,
.text {
    font-size: calc(11px + (12 - 11) * ((100vw - 300px) / (2560 - 300)));
}


/*-----------------Storia ---------------------------------------*/


.fattura-1923-1,
.fattura-1923-2,
.img-1930-1,
.img-1930-2,
.img-1930-3 {
    background-size: cover;
}

/*------------------------------------------------------*/
.back-fogli {
    border-radius: 20px;
    background-image: url("../img/servizi/fogli.jpg");
    background-size: cover;
    background-position: center;
    aspect-ratio: 1/1;

}

.back-cartone {
    background-image: url("../img/servizi/cartoni.jpg");
    background-size: cover;
    background-position: center;
    aspect-ratio: 1/1;
    border-radius: 20px;
}

.back-carta {
    background-image: url("../img/servizi/carta.jpg");
    background-size: cover;
    background-position: center;
    aspect-ratio: 1/1;
    border-radius: 20px;
}

/*------------------------------------------------------*/
.subtitle-footer {

    font-size: calc(35px + (35 - 24) * ((100vw - 300px) / (2560 - 300)));
    
}



.title-2 {
    
    line-height: 2rem;
    letter-spacing: 0rem;
    font-size: calc(63px + (100 - 63) * ((100vw - 300px) / (2560 - 300)));
    
    color: var(--secondary);
}

.overlay {
    padding: 1em;
}


.nav-link {
    padding-left: 0.5em;
    color: var(--verde-scuro);
    font-size: calc(16px + (21 - 16) * ((100vw - 300px) / (2560 - 300)));
}

.logo-nav {
    max-width: 200px;
}

.domanda {

    background-color: var(--white);
    color: var(--rosso-scuro);
    
}

.table {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/*------------------- button --------------------------*/

.button,
.button-inverted {
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid;
    border-color: transparent;
    font-size: 16px;
    background-color: inherit;
    border-radius: 100px;
    font-weight: 600;
    color: var(--verde-scuro);
    box-shadow: 0 0 0 2px var(--verde-scuro);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}


.button-inverted {
    color: var(--verde-chiaro);
    box-shadow: 0 0 0 2px var(--verde-chiaro);
}

.button svg,
.button-inverted svg {
    position: absolute;
    width: 24px;
    fill: var(--verde-scuro);
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.button-inverted svg {
    fill: var(--verde-chiaro);
}

.button .arr-1,
.button-inverted .arr-1 {
    right: 16px;
}

.button .arr-2,
.button-inverted .arr-2 {
    left: -25%;
}

.button .circle,
.button-inverted .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--verde-chiaro);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.button .text,
.button-inverted .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.button:hover,
.button-inverted:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 12px;
    background-color: var(--verde-elettrico);
}

.container-torna {
    border-radius: 50%;
    position: fixed;
    width: 6vh;
    bottom: 2vh;
    right: 02vh;
    z-index: 2;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.button:hover .arr-1,
.button-inverted:hover .arr-1 {
    right: -25%;
}

.button:hover .arr-2,
.button-inverted:hover .arr-2 {
    left: 16px;
}

.button:hover .text,
.button-inverted:hover .text {
    transform: translateX(12px);
}

.button:hover svg,
.button-inverted:hover svg {
    fill: #212121;
}

.button:hover .circle,
.button-inverted:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}

/*------------------- button --------------------------*/

.text,
.text-icon,
.text-box {
    font-size: calc(18px + (22 - 18) * ((100vw - 300px) / (2560 - 300)));
}

.link-footer,
.text-footer {
    font-size: calc(14px + (18 - 14) * ((100vw - 300px) / (2560 - 300)));
}

.link-footer {
    color: var(--black);
    text-decoration: none;
    font-size: calc(14px + (18 - 14) * ((100vw - 300px) / (2560 - 300)));
}

.link-footer:hover {
    color: var(--blu-scuro);

}

.dati-aziendali {
    color: var(--white);
}

.dati-aziendali a {
    color: var(--white);
    text-decoration: none;
}

.dati-aziendali a:hover {
    color: var(--blu-scuro);
}

.sotto {
    position: relative;
    z-index: -1;
}

.servizi-testi-icone {
    font-size: 2.5rem!important;
}

.subtitle-home {
    font-size: 2.5rem;
}

@media only screen and (max-width:1920px) {
    .subtitle {
        font-size: calc(28px + (32 - 28) * ((100vw - 300px) / (2560 - 300)));
    }

    .text-box,
    .text {
        font-size: calc(18px + (20 - 18) * ((100vw - 300px) / (2560 - 300)));
    }

}

@media only screen and (max-width:1830px) {

   

    #video-back {
        position: relative;
        right: -12px;
    }

    .payof {
        font-size: calc(13px + (18 - 13) * ((100vw - 300px) / (2560 - 300)));
    }

    #map {
        height: 30vw;
    }

    .subtitle {
        font-size: calc(29px + (32 - 29) * ((100vw - 300px) / (2560 - 300)));
    }

    .subtitle-home {
        font-size: 2.5rem;
    }
}

@media only screen and (max-width:1465px) and (max-height:700px) {
    .title-page {
        font-size: calc(33px + (35 - 33) * ((100vw - 300px) / (2560 - 300)));
    }

    .subtitle {
        font-size: calc(29px + (32 - 29) * ((100vw - 300px) / (2560 - 300)));
    }

    .text-box,
    .text {
        font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (2560 - 300)));
    }
}

@media only screen and (max-width:1442px) {
    .subtitle {
        font-size: calc(22px + (24 - 22) * ((100vw - 300px) / (2560 - 300)));
    }

    .text-box,
    .text {
        font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (2560 - 300)));
    }

    .servizi-testi-icone {
        font-size: 2rem!important;
    }

    .subtitle-home {
        font-size: 2rem;
    }
}

@media only screen and (max-width:940px) {
    .list-button{
        flex-direction: row;
    }
    .back-white-trasparent {
        background-color: #ffffffed;
    }

    .leggi {
        color: var(--white);
        font-style: italic;
        font-size: calc(18px + (20 - 18) * ((100vw - 300px) / (2560 - 300)));
    }

    .navbar-nav {
        text-align: left !important;
    }

    .txt-storia {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .sp-txt-storia {
        margin-top: 2rem;
    }

    .anno {
        width: 90vh;
    }

    .img-anno {
        width: 60%;
    }

    main {
        overflow-x: scroll;
        display: flex;
        position: sticky;
        top: 0;
        margin-top: 2rem;
    }

    .subtitle {
        font-size: calc(22px + (24 - 22) * ((100vw - 300px) / (2560 - 300)));
    }

    .text-box,
    .text,
    .text-icon,
    .list li {
        font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (2560 - 300)));
    }

    .servizi-testi-icone {
        font-size: 1.5rem!important;
    }

}

@media only screen and (max-width:868px) {
    .servizi-testi-icone {
        font-size: 1.2rem!important;
    }
}

@media only screen and (max-width:680px) {
    
    .list-button{
        flex-direction: column;
        padding-left: 0;
    }

    .head-prodotti,
    .head-certificazioni,
    .row-prodotti,
    .head-servizi,
    .row-servizi {
        height: 40dvh;
    }

    .content,
    #video-back {
        height: 35vh
    }

    .text-box,
    .text,
    .text-icon,
    .list li {
        font-size: calc(18px + (20 - 18) * ((100vw - 300px) / (2560 - 300)));
    }

    .logo-nav {
        max-width: 120px;
    }

    .row-cert {
        justify-content: start;
    }

    .col-footer {
        text-align: left;
    }

    .payof {
        font-size: calc(16px + (22 - 16) * ((100vw - 300px) / (2560 - 300)));
    }

    .navbar-nav {
        text-align: left !important;
    }

    #map {
        z-index: 2;
        height: 30vh;
    }

    .title-page {
        line-height: unset;
        font-size: calc(25px + (35 - 25) * ((100vw - 300px) / (2560 - 300)));
       
        color: var(--white);
    }

    .title {
        line-height: 3.6rem;
        padding: 0.2em;
        font-size: calc(43px + (43 - 25) * ((100vw - 300px) / (2560 - 300)));
        
        color: var(--white);
    }

    .text-box,
    .text,
    .text-icon {
        font-size: calc(16px + (20 - 18) * ((100vw - 300px) / (2560 - 300)));
    }

    .subtitle-home {
        font-size: 1.5rem;
    }

}

@media only screen and (max-width:390px) {
    .slides, .row-story {
        height: 70vh;
        padding-bottom:4em;
        padding-top:5em;
    }
}