:root {
    --bianco: #fff;
    --grigio: #fcfaf7;
    --verde-chiaro: #00715d;
    --verde-scuro: #283734;
    --giallo: #fbd45a;
    --font-testi: "DM Sans", sans-serif;
    --font-titoli: "Fredoka", sans-serif;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    background-color: var(--bianco);
}
#hero {
    overflow: hidden;
    position: relative;
    height: 200px;
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
#hero .testi {
    width: 1340px;
    margin: 60px auto;
    position: relative;
    z-index: 4;
}
#hero .testi h2 {
    font-family: var(--font-titoli);
    color: var(--grigio);
    font-size: 60px;
    font-weight: 700;
    text-align: center
}
#hero .overlay {
    background-color: rgba(40,55,52,.7);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
}
#hero .triangle {
    height: 391px;
    width: 280px;
    background: linear-gradient(to bottom, var(--verde-chiaro), var(--giallo));
    opacity: .7;
    position: absolute;
    bottom: 0;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    left: 0;
    transition: all 0.6s ease-in-out;
    z-index: 3;
}
#container {
    background-color: var(--grigio);
    padding: 100px 0;
    overflow: hidden;
}
.center {
    width: 1340px;
    margin: auto;
    position: relative;
}
.center .immagini {
    width: 500px;
    float: left;
    position: relative;
}
.center .immagini::after {
    content: '';
    background-image: -webkit-linear-gradient(90deg, rgb(0, 113, 93) 0%, rgb(126, 163, 92) 34%, rgb(251, 212, 90) 100%);
    position: absolute;
    width: 30px;
    height: 115px;
    right: 30px;
    top: 46px;
}
.center .immagini .main {
    position: relative;
    width: 320px;
    height: auto;
    z-index: 1;
}
.center .immagini .secondary {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 245px;
    height: auto;
    z-index: 2;
}
.center .testi {
    float: right;
    width: calc(100% - 600px);

}
.center .testi h2 {
    color: var(--verde-scuro);
    margin-bottom: 20px;
    font-size: 50px;
    font-family: var(--font-titoli);
    font-weight: 700;
}
.center .testi p {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #6e7775;
    font-family: var(--font-testi);
    margin-bottom: 20px;
}
.center .testi p strong {
    color: var(--verde-scuro);
    font-weight: 600;
}
.center .testi ul {
    margin-bottom: 30px;
}
.center .testi ul li {
    font-size: 16px;
    font-weight: 400;
    color: #6e7775;
    font-family: var(--font-testi);
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}
.center .testi ul li::before {
    content: '';
    background-image: url('../img/punto-elenco-presentazione.svg');
    background-repeat: no-repeat;
    background-size: 20px;
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}




@media only screen and (max-width: 1340px) {
    #hero .testi {
        width: 1170px;
    }
    .center {
        width: 1170px;
    }
}
@media only screen and (max-width: 1170px) {
    #hero .testi {
        width: 990px;
    }
    .center {
        width: 990px;
    }
    .center .immagini {
        width: 400px;
    }
    .center .immagini::after {
        height: 200px;
        right: 20px;
        top: 60px;
    }
    .center .immagini .main {
        width: 320px;
    }
    .center .immagini .secondary {
        bottom: -90px;
    }
    .center .testi {
        float: right;
        width: calc(100% - 450px);
    }
}
@media only screen and (max-width: 990px) {
    #hero .testi {
        width: 100%;
        padding: 0 20px;
    }
    #hero .testi h2 {
        text-align: center;
    }
    .center {
        width: 768px;
    }
    .center .immagini {
        display: none;
    }
    .center .testi {
        float: none;
        width: 100%;
    }
}
@media only screen and (max-width: 768px) {
    #hero .testi h2 {
        font-size: 40px;
        padding-top: 17px;
    }
    #container {
        padding: 50px 0;
    }
    .center {
        width: 480px;
    }
}
@media only screen and (max-width: 480px) {
    #hero .testi h2 {
        font-size: 30px;
        padding-top: 17px;
    }
    .center {
        width: 380px;
    }
}
@media only screen and (max-width: 380px) {
    .center {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}