/* ==========================================
   1. GOOGLE FONTS & VARIABILI GLOBALI
   ========================================== */
@import url("https://fonts.googleapis.com/css2?family=Limelight&display=swap");

:root {
  --bg-teal: #0F5B66;
  --header-teal: #166B77;
  --accent-teal: #388A96;
  --text-dark: #1A2E32;
  --text-light: #FAF8F5;
  --border-color: rgba(15, 91, 102, 0.2);
  --primary-color: #09898a;
  --white: #ffffff;
  --old-background: #f6f1e7;
}

/* ==========================================
   2. RESET GLOBALE & SCROLL SPA
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html,
body {
  width: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--white);
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: clip;
}

.page-section {
  position: relative;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 60px;
  overflow: visible;
  display: block;
  text-align: center;
}

section {
  display: flex;
  background-color: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.primary-color {
  color: var(--primary-color) !important;
}


/* ==========================================
   3. NAVBAR (DESKTOP & MOBILE)
   ========================================== */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 150px;
  transition: background 0.3s ease, padding 0.3s ease;
  z-index: 1002;
  background: transparent;
}

.main-navbar.scrolled {
  backdrop-filter: blur(10px);
  padding: 10px 150px;
  background: rgba(0, 0, 0, 0.85);
}

.nav-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 1.2rem;
  font-family: inherit;
  text-transform: uppercase;
  position: relative;
  z-index: 1003;
}

.nav-logo img {
  width: 64px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links .nav-btn {
  background: #fff;
  color: #000;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 1;
  transition: transform 0.3s ease;
}

.dropdown {
  position: relative;
}

.dropdown-trigger .arrow {
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown.open .dropdown-trigger .arrow {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .dropdown-menu {
    position: absolute;
    top: 140%;
    left: -15px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown:hover .dropdown-trigger .arrow {
    transform: rotate(180deg);
  }

  .nav-social-links {
    margin-left: 0;
    margin-top: 15px;
    /* Distanza dall'ultimo link su mobile */
    justify-content: center;
    /* Centra le icone nel menu a tendina */
    width: 100%;
  }

  .nav-social-links a {
    font-size: 1.5rem;
    /* Icone leggermente più grandi per facilitare il tocco */
    padding: 10px;
  }
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1003;
  margin-right: 24px;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .main-navbar {
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
  }

  .main-navbar.scrolled {
    padding: 15px 20px;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-top: 90px;
    padding-bottom: 120px;
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .dropdown-menu {
    display: none;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 10px 0 0 0;
    min-width: auto;
    text-align: center;
    list-style: none;
    width: 100%;
  }

  .dropdown-menu li a {
    font-size: 1.05rem;
    padding: 8px 0;
    color: #bbb;
    display: block;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}


/* ==========================================
   4. HERO PRINCIPALE (VIDEO BACKGROUND)
   ========================================== */
.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  height: 100vh;
  gap: 50px;
  align-items: center;
}

.hero-container>* {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
}

.video-background {
  object-fit: cover;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  gap: 15px;
}

.hero-tagline {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.hero-content h1 {
  font-family: Limelight, Arial, sans-serif;
}

.fade-in-text {
  opacity: 0;
  animation: fadeInUp 1.4s ease-out forwards;
  color: #e0e0e0;
}

.title-main {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  animation-delay: 0.2s;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 30px;
  color: #e0e0e0;
  animation-delay: 0.7s;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #000;
  background-color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s ease;
  animation-delay: 1.2s;
  width: auto;
  height: auto;
}

.cta-button:hover {
  transform: scale(1.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================
   5. SEZIONI CORSI (HERO AZZURRA, ORARI, LIVELLI)
   ========================================== */
.course-hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 140px 20px 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-details h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  line-height: 1.1;
}

.info-block {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-group {
  margin-bottom: 18px;
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-group h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: #e0f2fe;
}

.info-group p {
  font-size: 1.05rem;
  font-weight: 500;
}

/* --- STRUTTURA DESCRIZIONE CORSO --- */
.course-description {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  overflow: visible;
}

.course-title {
  font-family: "Limelight", cursive, sans-serif;
  text-align: center;
  display: inline-block;
  width: 100%;
  margin-bottom: 30px;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: -webkit-sticky;
  /* position: sticky; */
  top: 100px;
  z-index: 110;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 15px 0px;
  border-radius: 12px;
  transition: font-size 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;

}

.course-title.is-sticky {
  font-size: 1.3rem;
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.course-content-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}





.course-content-grid .hero-image-container {
  flex: 1;
  width: 100%;
  margin: 0;
}

.course-content-grid .hero-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
}

.course-content-grid .description-container {
  flex: 1;
  width: 100%;
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  line-height: 1.6;
}

.course-content-grid .description-container h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-content-grid .description-container p {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 15px;
}

.course-content-grid .description-container p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {

  .course-title,
  .course-description h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    top: 100px;
  }

  .course-title.is-sticky,
  .course-description h1.is-sticky {
    font-size: 1.1rem;
  }

  .course-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

}


/* --- TABELLA ORARI CORSI --- */
.schedule-container {
  background-color: var(--bg-teal);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 1100px;
  width: 100%;
  overflow-x: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

.schedule-title {
  color: var(--text-light);
  text-align: center;
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.schedule-subtitle {
  color: var(--white);
  text-align: center;
  margin: 0 0 24px 0;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.5px;
}

table.schedule-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  min-width: 800px;
}

table.schedule-grid th,
table.schedule-grid td {
  text-align: center;
  border-radius: 8px;
  padding: 10px 8px;
}

.col-header {
  background-color: var(--header-teal);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.col-header .day {
  display: block;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.col-header .location {
  display: block;
  font-size: 13px;
  color: var(--white);
  font-weight: 400;
  margin-top: 2px;
}

.time-header {
  background-color: var(--accent-teal);
  color: var(--text-light);
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  width: 110px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cell-empty {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.course-badge {
  background-color: var(--white);
  color: var(--bg-teal);
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  border-left: 4px solid var(--accent-teal);
}

.course-badge.principianti {
  border-left-color: #2E8B57;
}

.course-badge.livello2 {
  border-left-color: #388A96;
}

.course-badge.livello3 {
  border-left-color: #D97706;
}

.course-badge.livello4 {
  border-left-color: #B91C1C;
}

.schedule-footer {
  margin-top: 20px;
  text-align: center;
  color: var(--white);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

/* --- GRIGLIA DEI LIVELLI --- */
.levels-container {
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
}

.section-heading {
  text-align: center;
  color: var(--bg-teal);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.level-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.level-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--white);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.level-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--bg-teal);
  margin: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-card-body {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  flex-grow: 1;
}


/* ==========================================
   6. GALLERIA IMMAGINI & LIGHTBOX MODAL
   ========================================== */
.photo-carousel-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.photo-carousel-section h1 {
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1a1a1a;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  flex: 0 0 calc(25% - 12px);
  min-width: 200px;
}

.carousel-slide .gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-prev-btn {
  left: -20px;
}

.carousel-next-btn {
  right: -20px;
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 8px);
  }

  .carousel-prev-btn {
    left: -10px;
  }

  .carousel-next-btn {
    right: -10px;
  }
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex !important;
}

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox .close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 45px;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  z-index: 100000;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lightbox .close-btn:hover {
  transform: scale(1.2);
}

.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  z-index: 100000;
  transition: background 0.3s ease;
}

.lightbox .nav-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox .prev-btn {
  left: 30px;
}

.lightbox .next-btn {
  right: 30px;
}

@media (max-width: 600px) {
  .lightbox .prev-btn {
    left: 10px;
  }

  .lightbox .next-btn {
    right: 10px;
  }

  .lightbox .close-btn {
    top: 15px;
    right: 20px;
  }
}


/* ==========================================
   7. FORM DI CONTATTO E INFO BADGE
   ========================================== */
.contact-container {
  margin: 80px auto;
  display: flex;
  width: 100%;
  max-width: 1100px;
  background-color: var(--bg-teal);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-form-wrapper {
  flex: 1;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #2b2b2b;
}

.contact-subtitle {
  /* font-family:  cursive, sans-serif; */
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.title {
  font-family: "Limelight", cursive, sans-serif;
  font-size: 3.2rem;
  font-weight: 520;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ffffff;
  max-width: 480px;
  margin-bottom: 2rem;
}

#grazie {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  border-radius: 2px;
  background-color: #ffffff;
  box-sizing: border-box;
  /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI'; */
  font-size: 1rem;
  color: #333;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.9rem 2.8rem;
  border: none;
  border-radius: 50px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.contact-image-wrapper {
  flex: 1;
  position: relative;
  background-image: url("../images/contact_bg.png");
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

.info-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  background-color: var(--bg-teal);
  padding: 1.2rem 1.5rem;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 320px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #ffffff;
}

.thank-you-box {
  display: none;
  width: 100%;
  max-width: 820px;
  margin: 1.5rem auto 0 auto;
  padding: 1.2rem 1.5rem;
  background-color: var(--bg-teal);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.thank-you-box p {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

#grazie:target .contact-form {
  display: none;
}

#grazie:target .thank-you-box {
  display: block;
}


/* ==========================================
   8. MEDIA QUERIES AGGIUNTIVE
   ========================================== */
@media (max-width: 768px) {
  .title-main {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .schedule-container {
    border-radius: 0;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .schedule-container::-webkit-scrollbar {
    height: 9px;
  }

  .schedule-container::-webkit-scrollbar-thumb {
    background-color: var(--text-dark);
    border-radius: 6px;
  }

  .course-description {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    padding: 20px;
  }

  .description-container {
    text-align: center;
    padding: 20px;
  }

  .hero-image-container img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    align-items: center;
  }

  .hero-details {
    text-align: center;
  }

  .contact-image-wrapper {
    display: none;
  }

  .contact-container {
    max-width: 500px;
  }

  .contact-form-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 20px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }
}

/* ==========================================
   9. FOOTER
   ========================================== */
.main-footer {
  background-color: #111111;
  color: #e0e0e0;
  padding: 40px 20px 20px 20px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px 2.2fr 1.8fr 1fr;
  gap: 35px;
  align-items: start;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo img {
  width: 65px;
  height: auto;
}

.footer-container h3 {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.nav-two-columns {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 15px;
}

.nav-two-columns li a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-two-columns li a:hover {
  color: var(--primary-color, #09898a);
}

.footer-contact p {
  font-size: 0.9rem;
  color: #aaaaaa;
  margin-bottom: 6px;
  line-height: 1.4;
}

.footer-contact a {
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--primary-color, #09898a);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

.social-links a:hover {
  background: var(--primary-color, #09898a);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1100px;
  margin: 15px auto 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: #666666;
}

@media (max-width: 850px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

@media (max-width: 550px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-two-columns {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ==========================================
   10. BANNER WHATSAPP
   ========================================== */
.whatsapp-banner-section {
  width: 100%;
  padding: 30px 20px;
  background-color: #f7f9f8;
}

.whatsapp-banner-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #25D366;
  border-radius: 16px;
  padding: 25px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12);
}

.whatsapp-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.whatsapp-icon-box {
  background-color: #25D366;
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-icon-box svg {
  width: 30px;
  height: 30px;
}

.whatsapp-banner-text h2 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  font-weight: 700;
}

.whatsapp-banner-text p {
  font-size: 0.95rem;
  color: #555555;
  margin: 0;
}

.whatsapp-btn {
  background-color: #25D366;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 800px) {
  .whatsapp-banner-container {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .whatsapp-banner-content {
    flex-direction: column;
    gap: 12px;
  }

  .whatsapp-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================
       STILI NUOVA SEZIONE FESTIVAL
       ========================================== */
.page-section.festival-section {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--bg-teal) 0%, #0A3D44 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.festival-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Intestazione e Descrizione */
.festival-header {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.festival-title {
  font-size: 3rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 1px;
}

.festival-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
}

/* Highlights: Location e Date in Grande */
.festival-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 850px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.highlight-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #A3E8F0;
  margin-bottom: 5px;
  font-weight: 600;
}

.highlight-value {
  font-family: "Limelight", cursive, sans-serif;
  font-size: 2rem;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
}

.highlight-divider {
  width: 2px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.25);
}

/* Conto Alla Rovescia (Countdown) */
.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.countdown-heading {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--white);
  opacity: 0.9;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  border-radius: 12px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.countdown-number {
  font-family: "Limelight", cursive, sans-serif;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A3E8F0;
  margin-top: 6px;
}

/* Pulsante Iscriviti CTA */
.festival-cta {
  margin-top: 10px;
}

.cta-button.festival-btn {
  display: inline-block;
  padding: 16px 45px;
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--bg-teal);
  background-color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.cta-button.festival-btn:hover {
  transform: translateY(-4px) scale(1.03);
  background-color: #FAF8F5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: var(--primary-color);
}

/* ==========================================
       RESPONSIVE MOBILE
       ========================================== */
@media (max-width: 768px) {
  .festival-title {
    font-size: 2.4rem;
  }

  .festival-description {
    font-size: 0.95rem;
  }

  .festival-highlights {
    flex-direction: column;
    gap: 20px;
    padding: 25px 20px;
  }

  .highlight-divider {
    width: 80%;
    height: 1px;
  }

  .highlight-value {
    font-size: 2rem;
  }

  .countdown-timer {
    gap: 10px;
  }

  .countdown-box {
    min-width: 75px;
    padding: 12px 10px;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }

  .cta-button.festival-btn {
    padding: 14px 35px;
    font-size: 1rem;
  }
}

.video-container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-container video,
.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}