/* === LAYOUT GENERALE (header, nav, hero, sezioni, footer) === */

  <style>

    body {
      margin: 0;
      //font-family: 'Segoe UI', sans-serif;
	  //font-family: "Bookman Old Style", Georgia, serif;
      line-height: 1.6;
      color: #555;
    }

header {
  background: #ffffff;
  color: #222;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    header h1 {
      margin: 0;
      font-size: 1.5rem;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 1.5rem;
      margin: 0;
      padding: 0;
    }

nav ul li a {
  color: #555;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: #e60073; /* oppure un colore acceso per l'hover */
}
    /* Reset margini e padding */
    body, html {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      //font-family: Arial, sans-serif;
	  font-family: Georgia, Garamond, serif;
	  //font-family:AvantGarde, sans-serif;
	  font-weight:normal;
    }

    /* Carousel full width */
    .hero-carousel {
      position: relative;
      width: 100vw;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      height: 300px; /* Altezza banner */
      overflow: hidden;
      background: #000;
    }

    .carousel-slides {
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 0;
    }

    .carousel-slide {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }

    .carousel-slide.active {
      opacity: 1;
    }

    .carousel-overlay {
      position: absolute;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.4);
      z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      color: white;
      padding: 1rem;
      top: 50%;
      transform: translateY(-50%);
	  font-family:AvantGarde, sans-serif;
    }

    .hero-content h1 {
      font-size: 3.5rem;
      margin-bottom: 0.5rem;
	  font-weight:normal;
    }

    .hero-content p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
    }

    .cta {
      background-color: #e60073;
      color: white;
      padding: 0.7rem 1.5rem;
      text-decoration: none;
      border-radius: 30px;
      font-weight: bold;
      transition: background 0.3s ease;
      display: inline-block;
    }

    .cta:hover {
      background-color: #b30059;
    }

    /* Frecce */
    .carousel-prev, .carousel-next {
      position: absolute;
      top: 50%;
      z-index: 3;
      color: white;
      font-size: 2.5rem;
      padding: 0.3rem 0.6rem;
      cursor: pointer;
      user-select: none;
      background-color: rgba(0, 0, 0, 0.3);
      border-radius: 50%;
      transform: translateY(-50%);
      transition: background-color 0.3s ease;
    }

    .carousel-prev:hover, .carousel-next:hover {
      background-color: rgba(0, 0, 0, 0.6);
    }

    .carousel-prev { left: 20px; }
    .carousel-next { right: 20px; }

    /* Puntini */
    .carousel-dots {
      position: absolute;
      bottom: 15px;
      width: 100%;
      text-align: center;
      z-index: 3;
    }

    .dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      margin: 0 5px;
      background-color: rgba(255,255,255,0.5);
      border-radius: 50%;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .dot.active, .dot:hover {
      background-color: #fff;
    }

/*
    //* Responsive testo */
    @media (max-width: 600px) {
      .hero-content h1 {
        font-size: 1.8rem;
      }
      .hero-content p {
        font-size: 1rem;
      }
    }
*/
    section {
      padding: 2rem;
      max-width: 1000px;
      margin: auto;
    }

	section h2 {
	  margin-top:4rem;
	}

    .corsi {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .corso {
      background: #f8f8f8;
      padding: 1rem;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .corso h3 {
      margin-top: 0;
      color: #b30059;
    }

    footer {
      background: #222;
      color: #ccc;
      text-align: center;
      padding: 1rem;
      font-size: 0.9rem;
    }

/*
    @media (max-width: 600px) {
      header {
        flex-direction: column;
        align-items: flex-start;
      }

      nav ul {
        flex-direction: column;
        gap: 0.5rem;
      }
    }
*/
#galleria {
  //padding: 2rem 0;
}

.galleria {
  display: grid;
  //grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-columns: minmax(300px, 700px);
  gap: 1rem;
}

.galleria img {
  width: 100%;
  //height: 220px; /* altezza uniforme */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galleria img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
  width: auto;
}
.logo span {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

#slideshow {
  max-width: 1000px;
  margin: 2rem auto;
  position: relative;
}

.slideshow-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from { opacity: 0.4 }
  to { opacity: 1 }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container section:first-of-type {
  margin-top: 4rem;
}

.lightbox {
  display: none; /* nascosto di default */
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.hero-fixed {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  height: 400px; /* altezza banner */
  overflow: hidden;
}

.hero-bg {
  background: url('img/hero.jpg') center/cover no-repeat;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.hero-logo {
  position: absolute;
  top: 85%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-logo img {
  max-width: 200px;
  height: auto;
}

/* Menu responsive */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #222;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  nav ul.show {
    display: flex;
  }
  nav ul li {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
  }
  .menu-toggle {
    display: block;
  }
}

/* Override mobile: menu a tutta larghezza sotto l'header */
@media (max-width: 768px) {
  header { position: relative; }
  nav { width: 100%; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  nav ul.show { display: flex; }
  nav ul li {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: center;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
}

#backToTop {
  display: none; /* nascosto di default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #e60073;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #c0005a;
}

/* stili da allievi.html */

body {
      font-family: Georgia, serif;
      margin: 0;
      padding: 0;
      background-color: #f9f9f9;
      //color: #333;
	  color: #555;
    }

header {
  background: #ffffff;
  color: #222;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*
    header {
      background-color: #ffffff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      padding: 1rem 2rem;
    }
*/

    header h1 {
      margin: 0;
      font-size: 1.8rem;
    }

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  font-size: 1.3rem;
  font-weight: bold;
  color: #222;
}

/* nav ul { */
  /* list-style: none; */
  /* display: flex; */
  /* gap: 1.5rem; */
  /* margin: 0; */
  /* padding: 0; */
/* } */

/* nav ul li a { */
  /* color: #555; */
  /* text-decoration: none; */
  /* font-weight: bold; */
  /* transition: color 0.2s ease; */
/* } */

/* nav ul li a:hover { */
  /* color: #e60073; */
/* } */

    .container {
      max-width: 1200px;
      margin: 2rem auto;
      padding: 0 1rem;
    }

/*    === STILI ALLIEVI === */
.allievo {
	  margin-top:4rem;
      margin-bottom: 3rem;
    }
/* === FINE STILI ALLIEVI === */

    /* === STILI ALLIEVI === */
.allievo h2 {
	margin-top:5rem;
      margin-bottom: 1.5rem;
    }
/* === FINE STILI ALLIEVI === */

    /* === STILI ALLIEVI === */
.allievo p {
      margin-top: 0;
      font-style: italic;
    }
/* === FINE STILI ALLIEVI === */

    .foto-wrapper {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-top: 1rem;
    }

    .foto-wrapper img {
      background: white;
      border: 6px solid white;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
      border-radius: 4px;
      max-width: 500px;
      height: auto;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .foto-wrapper img:hover {
      transform: scale(1.03);
    }

    footer {
      text-align: center;
      font-size: 0.9rem;
      color: #777;
      padding: 2rem 0;
    }

</style>

