: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;
}
.center {
    width: 1340px;
    margin: auto;
    position: relative;
}
.richiesta-info {
    padding: 50px;
    background-color: var(--verde-scuro);
    overflow: hidden;
}
.richiesta-info h3 {
    font-size: 24px;
    color: var(--giallo);
    font-family: var(--font-titoli);
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}
.richiesta-info p {
    font-size: 16px;
    color: var(--grigio);
    font-family: var(--font-testi);
    text-align: center;
    margin-bottom: 30px;
}
.richiesta-info .left {
    float: left;
    width: 49%;
}
.richiesta-info .right {
    float: right;
    width: 49%;
}
.richiesta-info input[type=text],
.richiesta-info input[type=email] {
    border: 2px solid #364743;
    display: block;
    padding: 12px 22px;
    font-size: 16px;
    color: var(--grigio);
    font-family: var(--font-testi);
    margin-bottom: 30px;
    transition: all .2s linear;
}
.richiesta-info input[type=text]:focus,
.richiesta-info input[type=email]:focus {
    border: 2px solid var(--giallo);
}
.richiesta-info select {
    border: 2px solid #364743;
    display: block;
    padding: 12px 22px;
    font-size: 16px;
    color: var(--grigio);
    font-family: var(--font-testi);
    margin-bottom: 30px;
    -webkit-appearance: none;
}
.richiesta-info option {
    color: black;
}
.richiesta-info textarea {
    border: 2px solid #364743;
    display: block;
    padding: 12px 22px;
    font-size: 16px;
    color: var(--grigio);
    font-family: var(--font-testi);
    margin-bottom: 30px;
    height: 120px;
    width: 100%;
    transition: all .2s linear;
}
.richiesta-info textarea:focus {
    border: 2px solid var(--giallo);
}
.richiesta-info label {
    font-family: var(--font-testi);
    font-size: 16px;
    color: var(--grigio);
    cursor: pointer;
    margin-bottom: 30px;
    display: block;
}
.richiesta-info label input {
    display: inline-block;
    margin-right: 5px;
}
.richiesta-info label a {
    color: var(--giallo);
}
.richiesta-info label a:hover {
    text-decoration: underline;
}
.richiesta-info button {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--verde-scuro);
    background: var(--giallo);
    text-align: center;
    font-family: var(--font-testi);
    padding: 15px 45px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
    transition: all .5s linear;
    margin-top: 30px;
}
.richiesta-info button::before {
    position: absolute;
    content: "";
    background-color: #fff;
    width: 120%;
    height: 0;
    padding-bottom: 120%;
    top: -110%;
    border-radius: 50%;
    left: -10%;
    transform: translate3d(0, 68%, 0) scale3d(0, 0, 0);
    z-index: -1;
}
.richiesta-info button::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
    z-index: -1;
}
.richiesta-info button:hover {
    color: #283734;
    background-color: var(--bianco);
}
.richiesta-info button:hover::before {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
}
.richiesta-info button:hover::after {
    transform: translate3d(0, 0, 0);
    transition-duration: 0.05s;
    transition-delay: 0.4s;
    transition-timing-function: linear;
}


@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;
    }
}
@media only screen and (max-width: 990px) {
    #hero .testi {
        width: 100%;
        padding: 0 20px;
    }
    #hero .testi h2 {
        text-align: center;
    }
    .center {
        width: 768px;
    }
}
@media only screen and (max-width: 768px) {
    #container {
        padding: 50px 0;
    }
    .center {
        width: 480px;
    }
}
@media only screen and (max-width: 480px) {
    .center {
        width: 380px;
    }
    .richiesta-info .left {
        float: none;
        width: 100%;
    }
    .richiesta-info .right {
        float: none;
        width: 100%;
    }
}
@media only screen and (max-width: 380px) {
    .center {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}