* { margin: 0; padding: 0; box-sizing: border-box; }
/*body { font-family: Arial, sans-serif; line-height: 1.6; }*/

h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
}
body {
  font-family: 'Poppins', sans-serif;
}

header {
  background: #000;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 20px;          /* altezza fissa della navbar */
}

.nav-scroll {
  display: flex;
  margin-left: auto;         /* spinge i link a destra della navbar */
}

/* ul dei link */
.nav-scroll ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  font-family: 'Oswald', sans-serif;
}

.nav-scroll li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-scroll li a:hover {
  color: #1c8ca0;
}

.logo-ext img {
  height: 100%;
  max-height: 40px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  margin-top: 7px;
  margin-right: 20px;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 100%;
  max-height: 40px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  margin-top: 5px;
}

.logo img:hover {
  transform: scale(1.1); /* ingrandisce leggermente */
  opacity: 0.85;
  filter: brightness(1.1);
}

/* Responsive per mobile 📱 */
@media (max-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 10px;
    position: relative;
    gap: 5px; /* spazio tra logo e link */
  }

  /* container scorrevole solo per i link */
  .nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;               /* scorrimento orizzontale */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex: 1;                        /* occupa lo spazio rimanente accanto al logo */
  }

  .nav-scroll::-webkit-scrollbar {
  display: none;
  }

  /* ul allineato in orizzontale */
  .nav-scroll ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .logo {
    position: static;
    flex-shrink: 0;
  }

  .logo img {
    height: 35px;
  }

  nav a {
    font-size: 0.9rem; /* testo compatto */
    white-space: nowrap; /* impedisce al testo di andare a capo */
  }

  .logo-ext {
    display: none;
  }

}

.hero {
  background: url('img/hero.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center; /*flex-start*/
  color: #1c8ca0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
    /*margin-top: 400px;
    width: 100%;*/
  position: absolute;
    top: clamp(400px, 45vh, 450px);
  /* ↑ distanza minima 180px, ideale 45% dell’altezza schermo, max 500px */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  width: 90%;
  padding: 15px;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-shadow: 
    0 0 5px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.6),
    2px 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-top: 10px;
  text-shadow: 
    0 0 5px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.6),
    2px 2px 6px rgba(0, 0, 0, 0.9);
}

/*.hero-content h1,
.hero-content p {
  color: #fff;
  text-shadow:
    0 0 5px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.6),
    2px 2px 6px rgba(0, 0, 0, 0.9);
}*/

.cta {
  background: #1c8ca0;
  color: #fff;
  padding: 10px 20px;
  margin-top: 15px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-content {
    top: clamp(300px, 35vh, 450px);
    padding: 10px;       /* padding più stretto */
    text-align: center;  /* centriamo il testo */
    width: 90%;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
}

footer {
  text-align: center;
  padding: 1rem;
  background: #000;
  color: #fff;
}

.about {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* ✅ per essere responsive */
}

.about-image {
  flex: 1 1 400px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1 1 400px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text h2 {
    margin-top: 1rem;
  }

    .location-text p {
    text-align: center;
  }
}

.location {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.location-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.location-text {
  flex: 1 1 400px;
  font-size: 1rem;
}

.location-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.location-text p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.location-text a {
  color: #1c8ca0;
  text-decoration: none;
  font-weight: bold;
}

.location-text a:hover {
  text-decoration: underline;
}

.location-map {
  flex: 1 1 400px;
}

.location-map iframe {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .location-container {
    flex-direction: column; /* impila testo e mappa */
    align-items: center;    /* centra orizzontalmente */
    text-align: center;     /* centra il testo */
  }

  .location-text h2 {
    text-align: center;
    width: 100%;
  }
}

.schedule {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.schedule h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.schedule p {
  margin-bottom: 2rem;
  font-size: 1rem;
}

.schedule table {
  width: 100%;
  border-collapse: collapse;
}

.schedule th, .schedule td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #ccc;
  font-size: 1rem;
}

/* Categorie colorate */
.schedule tr.kids {
  background-color: #FFFAE6;
}

.schedule tr.fundamentals {
  background-color: #E6F7FF;
}

.schedule tr.advanced {
  background-color: #FFF0F6;
}

.schedule tr.competition {
  background-color: #E6FFE6;
}

/* Hover sulle righe */
.schedule tbody tr:hover {
  background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
  .schedule table, 
  .schedule thead, 
  .schedule tbody, 
  .schedule th, 
  .schedule td, 
  .schedule tr {
    display: block;
    width: 100%;
  }

  .schedule thead { 
    display: none;
  }

  .schedule tbody tr {
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
  }

  .schedule td {
    position: relative;
    padding: 8px 8px 8px 45%;
    text-align: left;
  }

   /* Etichette basate su classi */
  .schedule td.time::before {
    content: "Ora";
  }
  .schedule td.type::before {
    content: "Tipo di classe";
  }

  .schedule td::before {
    position: absolute;
    top: 8px;
    left: 15px;
    width: 40%;
    white-space: nowrap;
    font-weight: bold;
    color: #444;
  }

/* ✅ Mantiene visibili i giorni con rowspan */
.schedule td.day {
  display: block;
  background: #fff;
  font-weight: bold;
  padding-left: 15px;
  font-size: 1rem;
}

/* Nasconde eventuali celle vuote di giorno (non serve nel tuo HTML, ma precauzione) */
.schedule td.day:empty {
  display: none;
}

  /* Stile migliorato */
  .schedule td {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .schedule td::before {
    font-size: 0.85rem;
    color: #777;
  }
}


.table-wrapper {
  overflow-x: auto; /* ✅ utile su schermi piccoli */
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #000;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

td {
  font-size: 1rem;
}

.schedule td.day {
  background-color: #fff;
  font-weight: bold;
  text-align: left;
  vertical-align: middle;
  /* border-right: 2px solid #ccc; /* separa giorno da lezioni */
  padding-left: 20px;
}


@media (max-width: 768px) {
  table {
    min-width: 100%;
  }
  th, td {
    padding: 10px;
    font-size: 0.9rem;
  }
}

.trial-form {
  background-color: #fff;
  padding: 80px 10%;
  text-align: center;
}

.trial-form h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.trial-form p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.trial-form form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.trial-form input,
.trial-form textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}

.trial-form button {
  background-color: #1c8ca0;
  color: white;
  padding: 15px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trial-form button:hover {
  background-color: #1c8ca0;
}

/* Responsive */
@media (max-width: 768px) {
  .trial-form {
    padding: 60px 5%;
  }

  .trial-form input,
  .trial-form textarea,
  .trial-form button {
    width: 100%;
    font-size: 1rem;
  }
}

.about-image video {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  object-fit: cover;
  display: block;
}

.social-icons {
  display: inline-block; /* permette di stare sulla stessa linea */
  margin-left: 5px;      /* piccolo spazio dopo la scritta */
  gap: 10px;             /* spazio tra le icone */
}

.social-icons a {
  text-decoration: none;
  color: #000;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #1c8ca0;
  transform: scale(1.2);
}

.location-text .social-icons {
  margin-top: 15px;
  display: inline-block;
  gap: 15px;       /* spazio tra le icone */
  justify-content: flex-start; /* a sinistra su desktop */
}

.location-text .social-icons a {
  text-decoration: none;
  color: #000;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.location-text .social-icons a:hover {
  color: #1c8ca0;       /* colore al passaggio */
  transform: scale(1.2); /* effetto elegante */
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .location-text .social-icons {
    display: flex;               /* da inline-block a flex */
    justify-content: center;     /* centra le icone */
    align-items: center;
    gap: 15px;                   /* mantiene spaziatura */
    margin-top: 10px;
  }

  .location-text .social-icons a {
    font-size: 1.8rem;           /* leggermente più grandi su mobile */
  }
}