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);
}

/* formattazione popup iniziale */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.popup-content {
    text-align: center;
}


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

}


/*formattazione css del video in Homepage*/
#videoHome {
    width: 100%;
    /* fa si che il video occupi l'intero spazio del conternitore section */
    height: auto;
    max-width: 100%;
    object-fit: contain;
    /*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 */
}

/* formattazione titolo h1 */
#nomeScuola {
    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: 62.5%;
    color: yellow;
    font-size: 1050%;
    font-family: dakdo, sans-serif;
    font-weight: bolder;
    text-align: right;
    letter-spacing: 0.6vw;
    opacity: 0.85;
    text-shadow: 5px 5px 8px #000000;
    /* effetto ombreggiatura */
}

#intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-top: 0.4%;
    margin-right: 5%;
    margin-left: 5%;
}

.content {
    flex: 1;
    text-align: left;
}

#intro h2 {
    font-family: dakdo, sans-serif;
    font-size: 580%;
    letter-spacing: 0.3vw;
    line-height: 125%;
}

#intro p {
    font-family: nunitoSans, sans-serif;
    font-size: 120%;
    line-height: 150%;
    margin-right: 8%;
    text-align: justify;
}

#intro img {
    width: 40%;
    /* Regola la larghezza dell'immagine per coprire metà del contenitore */
    height: auto;
    object-fit: cover;
    /* Per coprire l'intera area con l'immagine */
    margin-top: 5%;
}

h2+p {
    margin-top: -10%;
}



.mySlides {
    display: none;
}

img {
    vertical-align: middle;
}


/* Slideshow container */
.slideshow-container {
    max-width: 50%;
    position: relative;
    margin: auto;
    margin-top: 12%;
    margin-bottom: 7%;
}

#caroselloSurf {
    margin-top: 10%;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #000000;
    font-size: 60%;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    height: 1.5vw;
    width: 1.5vw;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

#contenitorePunti {
    position: relative;
    margin-top: -7vw;
    margin-bottom: 20vh;
}

h4 {
    text-align: center;
    font-family: dakdo, sans-serif;
    font-size: 220%;
    margin-bottom: -10%;
}


.active {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}



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: 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;
}