: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;
}
.tabella {
    background-color: var(--bianco);
    box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.1);
}
.tabella .intestazioni {
    overflow: hidden;
    background-color: var(--verde-chiaro);
}
.tabella .intestazioni .cella {
    display: block;
    float: left;
    padding: 20px 30px;
}
.tabella .intestazioni .cella:first-of-type {
   width: 15%;
}
.tabella .intestazioni .cella:nth-of-type(2) {
   width: 20%;
}
.tabella .intestazioni .cella:nth-of-type(3) {
   width: 20%;
}
.tabella .intestazioni .cella:nth-of-type(4) {
   width: 25%;
}
.tabella .intestazioni .cella:nth-of-type(5) {
   width: 20%;
}
.tabella .intestazioni .cella h3 {
    font-family: var(--font-testi);
    font-weight: 700;
    color: var(--bianco);
    font-size: 18px;
}
.tabella .righe {
    overflow: hidden;
    border-bottom: solid 1px rgba(0,0,0,.1);
}
.tabella .righe .cella {
    display: block;
    float: left;
    padding: 20px 30px;
}
.tabella .righe .cella:first-of-type {
   width: 15%;
}
.tabella .righe .cella:first-of-type img {
   display: block;
   width: 100%;
   margin: auto;
}
.tabella .righe .cella:nth-of-type(2) {
   width: 20%;
}
.tabella .righe .cella:nth-of-type(3) {
   width: 20%;
}
.tabella .righe .cella:nth-of-type(4) {
   width: 25%;
}
.tabella .righe .cella:nth-of-type(5) {
   width: 20%;
}
.tabella .righe .cella p {
    font-family: var(--font-testi);
    color: #6e7775;
    font-size: 16px;
    line-height: 26px;
}
.tabella .righe .cella p strong {
    font-weight: 700;
    color: #e52629;
}



@media only screen and (max-width: 1340px) {
    #hero .testi {
        width: 1170px;
    }
    #hero .testi h2 {
        font-size: 40px;
        padding-top: 17px;
    } 
    .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) {
      .center {
        width: 480px;
    }
    .tabella .intestazioni {
        display: none;
    }
    .tabella .righe .cella {
        float: none;
    }
    .tabella .righe .cella:first-of-type {
        width: 100%;
        padding-bottom: 0;
    }
    .tabella .righe .cella:nth-of-type(2) {
        width: 100%;
        padding-bottom: 0;
        padding-top: 5px;
        position: relative;
    }
    .tabella .righe .cella:nth-of-type(3) {
        width: 100%;
        padding-bottom: 0;
        padding-top: 5px;
        position: relative;
    }
    .tabella .righe .cella:nth-of-type(3)::before {
        content: 'Destinatari: ';
        font-family: var(--font-testi);
        color: #6e7775;
        font-size: 16px;
        line-height: 26px;
        font-weight: 700;
    }
    .tabella .righe .cella:nth-of-type(4) {
        width: 100%;
        padding-bottom: 0;
        padding-top: 5px;
        position: relative;
    }
    .tabella .righe .cella:nth-of-type(4)::before {
        content: 'Descrizione: ';
        font-family: var(--font-testi);
        color: #6e7775;
        font-size: 16px;
        line-height: 26px;
        font-weight: 700;
    }
    .tabella .righe .cella:nth-of-type(5) {
        width: 100%;
        padding-top: 5px;
        position: relative;
    }
    .tabella .righe .cella:nth-of-type(5)::before {
        content: 'Province / Regioni: ';
        font-family: var(--font-testi);
        color: #6e7775;
        font-size: 16px;
        line-height: 26px;
        font-weight: 700;
    }
}
@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;
    }
}