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;

}

#imgbck {
    width: 100%;
    object-fit: cover;
    z-index: -1;
    position: relative;
}

/* 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 */
}


#h4Corsi {
    font-family: dakdo, sans-serif;
    font-size: 300%;
    text-align: center;
    letter-spacing: 0.25vw;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 10%;
}

#pCorsi {
    font-family: nunitoSans, sans-serif;
    font-size: 120%;
    text-align: justify;
    margin-right: 15%;
    margin-left: 15%;
}




#listaCorsi {
    margin-top: 10%;
}

#listaCorsi p {
    text-align: center;
    font-family: nunitoSans;
    font-size: 25px;
    display: flex;
    align-items:start;
    justify-content: center;
    border: 1px solid #000000;
    padding: 50px;
    margin-left: 15%;
    margin-right: 15%;
}

#listaCorsi h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    font-family: dakdo;
    letter-spacing: 3px;
    text-align: center;
}

#meteo {
    display: flex;
    justify-content: space-between; /* Per distribuire gli elementi su tutta la larghezza */
    align-items: center; /* Per allineare gli elementi verticalmente */
   
    padding: 20px; /* Aggiungi spazio intorno ai contenuti */
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 10%;

}

#iframeContainer {
    flex: 1; /* L'iframe occupa tutto lo spazio disponibile */
    margin-right: 20px; /* Aggiungi spazio tra l'iframe e il testo */
}



#condizioniMeteo {
    flex: 1; /* Il testo occupa tutto lo spazio disponibile */
}

#condizioniMeteo h5 {
    font-family: dakdo;
    font-size: 36px;
    text-align: center;
    margin-top: 2%;
    letter-spacing: 0.3vh;
}

#condizioniMeteo p {
    margin: 0; /* Rimuovi il margine predefinito dal paragrafo */
    text-align: justify;
    font-family: nunitoSans;
    font-size: 22px;
}


img {
    vertical-align: middle;
}

/* Position the image container (needed to position the left and right arrows) */

.container {
    position: relative;
    /* Position the image container (needed to position the left and right arrows) */
    max-width: 55%;
    max-height: 33%;
    /* Imposta una larghezza massima per il container */
    margin: 0 auto;
    /* Centra il container orizzontalmente */
    margin-bottom: 8%;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
    cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -5%;
    color: white;
    font-weight: bold;
    font-size: 150%;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgb(65, 54, 54);
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover,
add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(109, 103, 103, 0.8);
}

.active,
.demo:hover {
    opacity: 1;
}

#titleCarosello {
    font-size: 300%;
    font-family: dakdo, sans-serif;
    line-height: 1.2;
    /* spaziatura righe */
    letter-spacing: 3px;
    text-align: center;
    margin-top: 125px;
}
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;
}

/* Button Torna Su */
.back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    /*background-color: #FFA500; */
    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;
}