: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: 580px;
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
#hero .testi {
    width: 1340px;
    margin: 100px auto;
    position: relative;
    z-index: 4;
}
#hero .testi h3 {
    font-family: var(--font-testi);
    font-weight: 700;
    color: var(--giallo);
    font-size: 20px;
    border-left: solid 2px var(--grigio);
    padding-left: 15px;
    margin-bottom: 20px;
}
#hero .testi h2 {
    font-family: var(--font-titoli);
    color: var(--grigio);
    font-size: 65px;
    font-weight: 700;
    max-width: 70%;
    line-height: 70px;
}
#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;
}
#presentazione {
    width: 1340px;
    margin: auto;
    padding: 100px 0;
    overflow: hidden;
}
#presentazione .immagini {
    width: 500px;
    float: left;
    position: relative;
}
#presentazione .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;
}
#presentazione .immagini .main {
    position: relative;
    width: 400px;
    height: auto;
    z-index: 1;
}
#presentazione .immagini .secondary {
    position: absolute;
    bottom: -70px;
    right: 0;
    width: 245px;
    height: auto;
    z-index: 2;
}
#presentazione .counter {
    background-color: var(--bianco);
    box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.04);
    display: inline-block;
    padding: 15px 21px 15px 21px;
    z-index: 3;
    position: absolute;
    bottom: -140px;
    left: 102px;
    right: 110px;
}
#presentazione .counter .icon {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    background-color: var(--grigio);
    float: left;
}
#presentazione .counter .icon img {
    width: 35px;
    display: block;
    height: auto;
    margin: 12px auto 0;
}
#presentazione .counter .counter-text {
    float: right;
    margin-left: 20px;
    width: calc(100% - 90px);
}
#presentazione .counter .counter-text h2 {
    font-size: 48px;
    color: var(--verde-chiaro);
    line-height: 1;
    margin: 0;
    font-family: var(--font-titoli);
    font-weight: 700;
}
#presentazione .counter .counter-text p {
    font-family: var(--font-testi);
    font-size: 15px;
    color: #6e7775;
    line-height: 30px;
}
#presentazione .testi {
    float: right;
    width: calc(100% - 600px);

}
#presentazione .testi h2 {
    color: var(--verde-scuro);
    margin-bottom: 20px;
    font-size: 50px;
    font-family: var(--font-titoli);
    font-weight: 700;
}
#presentazione .testi p {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #6e7775;
    font-family: var(--font-testi);
    margin-bottom: 20px;
}
#presentazione .testi p strong {
    color: var(--verde-scuro);
    font-weight: 600;
}
#presentazione .testi ul {
    margin-bottom: 30px;
}
#presentazione .testi ul li {
    font-size: 16px;
    font-weight: 400;
    color: #6e7775;
    font-family: var(--font-testi);
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}
#presentazione .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;
}
#presentazione .testi .consulenza {
    background-color: var(--grigio);
    padding: 10px;
    float: right;
    border-bottom: solid 2px var(--verde-chiaro);
    width: 180px;
    margin-left: 20px;
}
#presentazione .testi .consulenza .icon {
    border-radius: 50%;
    background-color: #e52629;
    width: 70px;
    height: 70px;
    padding-top: 13px;
    margin: 0 auto 10px;
}
#presentazione .testi .consulenza .icon img {
    width: 35px;
    margin: auto;
    display: block;
}
#presentazione .testi .consulenza h3 {
    text-align: center;
    font-family: var(--font-testi);
    color: var(--verde-scuro);
    font-size: 15px;
}
#servizi {
    background-image: url('../img/servizi-home.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 50px 0;
}
#servizi .center {
    width: 1340px;
    overflow: hidden;
    margin: auto;
}
#servizi .center h2 {
    text-align: center;
    color: var(--verde-scuro);
    margin-bottom: 50px;
    font-size: 50px;
    font-family: var(--font-titoli);
    font-weight: 700;
}
.servizio-singolo {
    background: var(--verde-scuro);
    position: relative;
    overflow: hidden;
    width: 23%;
    margin: 0 1% 20px 1%;
    float: left;
    transition: all .4s ease-out;
    min-height: 290px;
}
.servizio-singolo:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: "";
    background: var(--verde-chiaro);
    transition: all 500ms ease;
    transform: translate3d(0px, 100%, 0px);
    z-index: 1;
}
.servizio-singolo:hover::before {
    transform: translate3d(0px, 0, 0px);
}
.servizio-singolo .icona {
    position: absolute;
    bottom: 21px;
    right: 25px;
    z-index: 2;
}
.servizio-singolo .icona img {
    width: 50px;
}
.servizio-singolo .servizio-content {
    padding: 38px 30px 50px 30px;
    z-index: 1;
    position: relative;
}
.servizio-singolo .servizio-content::before {
    content: "";
    position: absolute;
    height: 300px;
    width: 300px;
    border-radius: 50%;
    transition: all .5s ease;
    bottom: -100%;
    right: -100%;
    background: linear-gradient(90deg, rgb(251, 212, 90) 0%, #e52629 50%);
    z-index: 1;
}
.servizio-singolo:hover .servizio-content::before {
    bottom: -157px;
    right: -141px;
}
.servizio-singolo .servizio-content::after {
    content: "";
    position: absolute;
    height: 300px;
    width: 300px;
    background: linear-gradient(0deg, #efe018 0%, var(--verde-chiaro) 100%);
    bottom: -157px;
    right: -141px;
    border-radius: 50%;
    transition: all .5s ease;
}
.servizio-singolo .servizio-content h3 {
    font-size: 22px;
    color: var(--giallo);
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
    letter-spacing: 1px;
    font-family: var(--font-titoli);
    position: relative;
    z-index: 3;
}
.servizio-singolo .servizio-content p {
    color: #ced0d0;
    margin-bottom: 20px;
    z-index: 9999;
    position: relative;
    font-family: var(--font-testi);
}
.servizio-singolo .servizio-content .servizio-button a:link,
.servizio-singolo .servizio-content .servizio-button a:visited {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: var(--bianco);
    text-align: center;
    font-family: var(--font-testi);
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: -0.02em;
    transition: 0.3s;
    text-transform: uppercase;
}
.servizio-singolo .servizio-content .servizio-button a:hover {
    color: var(--giallo);
}
#epar {
    width: 990px;
    padding: 100px 0;
    margin: auto;
    font-size: 0;
}
#epar img {
    display: inline-block;
    vertical-align: middle;
    width: 220px;
    margin-right: 60px;
}
#epar p {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    font-family: var(--font-testi);
    color: #6e7775;
    width: calc(100% - 280px);
}
#epar p strong {
    font-weight: 600;
    color: var(--verde-scuro);
}
@media only screen and (max-width: 1340px) {
    #hero .testi {
        width: 1170px;
        margin: 50px auto;
    }
    #presentazione {
        width: 1170px;
    }
    #servizi .center {
        width: 1170px;
    }
}
@media only screen and (max-width: 1170px) {
    #hero .testi {
        width: 990px;
        margin: 90px auto;
    }
    #hero .testi h2 {
        max-width: 100%;
    }
    #presentazione {
        width: 990px;
    }
    #presentazione .immagini {
        width: 400px;
    }
    #presentazione .immagini::after {
        height: 200px;
        right: 20px;
        top: 60px;
    }
    #presentazione .immagini .main {
        width: 320px;
    }
    #presentazione .immagini .secondary {
        bottom: -220px;
    }
    #presentazione .counter {
        bottom: -290px;
        left: 80px;
        right: 80px;
    }
    #presentazione .testi {
        float: right;
        width: calc(100% - 450px);
    }
    #servizi .center {
        width: 990px;
    }
}
@media only screen and (max-width: 990px) {
    #hero {
        height: calc(100vh - 150px);
    }
    #hero .testi {
        width: 100%;
        margin: 100px auto;
        padding: 0 20px;
    }
    #hero .testi h3 {
        border-left: none;
        padding-left: none;
        text-align: center;
    }
    #hero .testi h2 {
        text-align: center;
    }
    #presentazione {
        width: 768px;
    }
    #presentazione .immagini {
        display: none;
    }
    #presentazione .testi {
        float: none;
        width: 100%;
    }
    #servizi .center {
        width: 768px;
    }
    .servizio-singolo {
        width: 48%;
        min-height: 250px;
    }
    #epar {
        width: 768px;
    }
}
@media only screen and (max-width: 768px) {
    #hero .testi {
        margin: 100px auto;
    }
    #hero .testi h2 {
        font-size: 60px;
    }
    #presentazione {
        width: 480px;
    }
    #servizi .center {
        width: 480px;
    }
    .servizio-singolo {
        width: 98%;
        min-height: 200px;
    }
    #epar {
        width: 480px;
    }
}
@media only screen and (max-width: 480px) {
    #hero .testi {
        margin: 100px auto;
    }
    #hero .testi h2 {
        font-size: 40px;
        line-height: 50px;
    }
    #presentazione {
        width: 380px;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    #servizi .center {
        width: 380px;
    }
    #epar {
        width: 380px;
        padding: 50px 0;
    }
    #epar img {
        display: block;
        margin: 0 auto 30px;
    }
    #epar p {
        display: block;
        width: 100%;
        text-align: center;
    }
}
@media only screen and (max-width: 380px) {
    #presentazione {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    #servizi .center {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    #epar {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}