body {
    width: 100%;
    margin: 0;
     /* imposta il margine del body a 0px per una maggiore coerenza e controllo del layout */
    /*background-color: #f2ae49;*/
    background: linear-gradient(to bottom, #fafa15, #FFA500);
}

/*importazione google font*/
@font-face {
    font-family: 'nunitoSans';
    src: url(/FONT/Nunito_Sans/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf) format('truetype');
}

@font-face {
    font-family: 'dakdo';
    src: url(/FONT/dakdo-font/Dakdo-DOlRW.otf) format('opentype');
}

ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    border-bottom: 2px solid #FFA500 ;
    height: 30vh;
    position: fixed;
    z-index: 2;
}

li {
    float: left;
}

li a {
    display: block;
    font-family: dakdo, sans-serif;
    width: 100%;
    color: #FFA500;
    text-align: center;
    padding: 1vw 1vw;
    text-decoration: none;
    margin-right: 10vw;
    margin-top: 20vh;
    font-size: 195%;
    font-weight: bold;
    opacity: 0.8;
    /*effetto opaco */
    text-shadow: 2px 2px 4px #000000;
    /* effetto ombreggiatura */
    letter-spacing: 0.2vw;
}

li a:hover {
    color: #fafa15;
}

li img {
    width: 62%;
    height: auto;
    margin-left: 10%;
    margin-top: 6vh;
}


footer {
    display: flex;
    align-items: center;
    background-color:#000000;
    height: auto;
    line-height: 1;
    width: 100%;
}

/* formattazione elemento h3 nel footer */
#newsletter h3 {
    font-size: 300%;
    font-family: dakdo;
    letter-spacing: 0.2vw;
    color: #fff;
}


/* formattazione paragrago newsletter */

#newsletter p {
    font-size: 150%;
    font-family: nunitoSans, sans-serif;
    font-weight: bold;
    color: #fff;
}

/* formattazione button submit */
#submitButt {
    background-size: cover;
    /*adatta l'immagine al button*/
    border: none;
    width: 18%;
    height: auto;
    margin-top: 3%;
    margin-left: 20%;
}

/* formattazione logo e-mail */
#logoMail {
    width: 30%;
    height: auto;
    margin-left: -60%;
    margin-bottom: 74%;
}

/* formattazione form */
#newsletter {
    margin-left: 10vw;
    margin-bottom: 4vw;
    margin-top: 4vh;
}

/* formattazione casella inserimento e-mail */
#eMail {
    height: auto;
    width: 60%;
}

/* formattazione elementi img presenti nei contatti */
#contatti img {
    height: auto;
    width: 12%;
    margin-bottom: 5%;
}

/* formattazione elemento address*/
#contatti address {
    font-family: nunitoSans;
    font-size: 100%;
    font-weight: bold;
    color: #fff;
}

/* selettore di fratelli adiacenti */
section+address {
    margin-top: -1vw;
}

#imgAbout {
    width: 100%;
    /* fa si che il video occupi l'intero spazio del conternitore section */
    height: 300%;
    object-fit: cover;
    /*Scala l’elemento per coprire completamente il suo contenitore, mantenendo l’aspetto originale dell’immagine. */
    z-index: -1;
    /*Imposta il livello di profondità dell’elemento in modo che sia sotto gli altri elementi nel contenitore */
    position: relative;
    top: -15vh;
}

/* formattazione titolo h1 */
#titolo1 {
    position: absolute;
    /*L’elemento sarà posizionato in base alle coordinate specificate dai seguenti attributi */
    top: 15%;
    /* l’elemento sarà spostato verso il 10% della distanza dall’alto rispetto al suo contenitore genitor */
    left: 57%;
    right: 5%;
    color: #fafa15;
    font-size: 1040%;
    font-family: dakdo;
    font-weight: bolder;
    text-align: right;
    letter-spacing: 0.4vw;
    opacity: 0.90;
    text-shadow: 5px 5px 8px #000000;
    /* effetto ombreggiatura */
}

/* formattazione della section "descrizione" */
#descrizione {
    display: flex;
    /* specifica che l’elemento sarà visualizzato come un contenitore flessibile */
    align-items: center;
    /* Questa proprietà allinea gli elementi (figli) verticalmente all’interno del contenitore flessibile */
    padding: 10%;
    margin-top: -15%;
}

/* formattazione dell'elemento h2 di descrizione */
#descrizione h2 {
    font-size: 400%;
    font-family: dakdo;
    line-height: 1.2;
    /* spaziatura righe */
    letter-spacing: 3px;
    text-align: center;
    margin-left: 7%;
    margin-right: 7%;


}

/* formattazione dell'elemento p di descrizione */
#descrizione p {
    text-align: center;
    font-family: nunitoSans;
    font-size: 120%;
    font-weight: 250;
    display: block;
    margin-left: 10%;
    margin-bottom: 5%;
    margin-right: 10%;
    border: 1px solid #000000;
    padding: 15px;
}




/* formattazione dell'elemento h3 di istruttori */
#istruttori h3 {
    font-size: 400%;
    font-family: dakdo;
    margin-bottom: -1%;
    letter-spacing: 3px;
    text-align: center;
    margin-top: -3%;
}

/* formattazione degli elementi img in figure iNostriIstruttori */
#iNostriIstruttori img {
    width: 20%;
    height: auto;
    margin-left: 40%;
    margin-top: 5%;
}

/* formattazione dell'elemento h4 di figure*/
#iNostriIstruttori h4 {
    text-align: center;
    font-family: nunitoSans;
    font-size: 200%;
    margin-top: 3vh;
}

/* formattazione delle figcaption */
#istr {
    font-family: nunitoSans;
    font-size: 125%;
    font-weight: 250;
    text-align: justify;
    margin-left: 30%;
    margin-right: 30%;
    margin-top: 2vh;
    padding: 1vw;
}

#vediCorsi {
    background-size: cover; /*adatta l'immagine al button*/
    width: 7vw;
    height: 5vh;
    margin-left: 46%;
    padding-top: 2vh;
}

p+h3 {
    margin-bottom: -50%;
}

/* Button Torna Su */
.back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    /*background-color: darkorange; */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity 0.3s;
    background-size: cover;
}

.back-to-top-btn:hover {
    opacity: 0.8;
}