.hero-logo-img {
  display: block;
  margin: 1.5rem auto 0 auto;
  max-width: 180px;
  width: 80%;
  opacity: 0.5;
}
/* BOX CORSI BIANCHI */
.corso-block-header {
  display: flex;
  flex-direction: row; /* Forza gli elementi sulla stessa riga */
  align-items: center;
  justify-content: flex-start; /* Il titolo parte da sinistra */
  width: 100%;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  background: var(--white);
  border-radius: var(--radius);
}

.corso-block-header h3 {
  flex-shrink: 0; /* Impedisce al titolo di restringersi */
  margin: 0;
}

@media (max-width: 600px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: 0;
    height: calc(100vh - 80px);
    width: 70vw;
    max-width: 320px;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.18);
    opacity: 0.98;
    z-index: 1200;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 1.1rem 0;
    font-size: 1.15rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-right {
    gap: 0;
  }

  .btn-cta-desktop {
    display: none !important;
  }

  .btn-cta-mobile {
    display: inline-block !important;
    margin-top: 1.2rem;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.7rem;
    z-index: 1300;
    position: relative;
    width: 40px;
    height: 40px;
  }

  .nav-toggle .hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Stile per i box dei corsi nella homepage */


/* stile base, nessun box */



/* Hover effetto semplice */



.corso-card-img {
  width: auto;
  max-width: none;
  height: auto;
  display: inline;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ===========================
   VARIABILI E RESET
   =========================== */
:root {
  --primary: #cf0b0b;
  --primary-dark: #a50909;
  --dark: #000000;
  --dark2: #0d0d0d;
  --dark3: #1a1a1a;
  --light: #f0f0f0;
  --white: #ffffff;
  --text-muted: #aaaaaa;
  --font-main: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  overflow-y: scroll; /* Mantiene la barra di scorrimento sempre fissa */
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   NAVBAR
   =========================== */
   /* NAVBAR - hamburger: nascosto su desktop, visibile solo su mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 2rem;
  height: 80px;
  background: rgba(0, 0, 0, 0.95);
  box-sizing: border-box; 
  backdrop-filter: blur(8px);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: #000000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 56px;
  width: 154px;
  object-fit: contain;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}


.btn-cta-nav {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-cta-nav::after {
  display: none !important;
}

.btn-cta-nav:hover {
  background: transparent;
  color: var(--primary) !important;
  transform: scale(1.04);
}

.btn-cta-mobile {
  display: none;
}

/* =========================================
   HERO SECTION - LOOK FLEXGYM (UNIFICATO)
   ========================================= */

.hero {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Spazio per la navbar fissa */
}

/* Immagine di sfondo posizionata a destra */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%; 
  height: 100%;
  background: url('immagin/FOTO CON LOGO-02.png') center center / cover no-repeat;
  z-index: 1;
}

/* Sfumatura nera per leggere il testo a sinistra */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #000 40%, transparent 80%);
  z-index: 2;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 600px;
  text-align: left;
}

.hero-content h1 {
  font-family: var(--font-main);
  font-size: clamp(3rem, 8vw, 5rem); 
  font-weight: 900;
  color: #fff;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2.5rem;
  max-width: 450px;
}

/* GRUPPO PULSANTI */
.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-main);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 3px solid #fff;
  color: #fff;
  text-align: center;
}

.btn-hero:hover {
  background: #fff;
  color: #000;
}

/* Riga 218 circa */
.btn-hero--prova {
  background: var(--primary) !important; /* Usa il rosso #cf0b0b */
  border-color: var(--primary) !important;
  color: var(--white) !important;
}

.btn-hero--prova:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* -----------------------------------------
   VERSIONE MOBILE (Sotto 768px)
   ----------------------------------------- */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 2rem;
    align-items: center;
  }

  .hero::before {
    width: 100%; /* Sfondo pieno su mobile */
    opacity: 0.5;
  }

  .hero::after {
    background: rgba(0, 0, 0, 0.6); /* Overlay scuro uniforme */
  }

  .hero-container {
    text-align: left;
  }

  .hero-content h1 {
    font-size: 2.7rem; /* Testo massiccio come in foto */
  }

  .hero-content p {
    max-width: 280px;
  }

  /* Pulsanti uno sotto l'altro */
  .hero-cta-group {
    flex-direction: column; 
    gap: 1rem;
    align-items: flex-start;
  }

  .btn-hero {
    width: 100%;
    max-width: 300px;
  }
}

/* ========================
   BUTTONS
   ======================== */

.btn-hero {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.75rem 2rem;
  border: 2px solid var(--white);
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.btn-hero:hover {
  background: var(--white);
  color: #000;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (max-width: 700px) {
  .hero-cta-group {
    align-items: stretch;
  }
}

.btn-hero--prova {
  background: var(--primary) !important; /* Usa il rosso #cf0b0b */
  border-color: var(--primary) !important;
  color: var(--white) !important;
}

.btn-hero--prova:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.nav-links a.active {
  color: var(--primary);
}

/* Page Hero (used on inner pages) */
.page-hero {
  min-height: 45vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 3rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('immagin/FOTO CON LOGO-09.png') center center/cover no-repeat;
  opacity: 0.35;
}

.page-hero--corsi::before {
  background-image: url('immagin/FOTO CON LOGO-04.png');
  opacity: 0.7;
}

.page-hero--prezzi::before {
  background-image: url('immagin/FOTO CON LOGO-18.png');
  opacity: 0.6;
  background-position: center 40%;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-content h1 {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.05;
  margin: 0.4rem 0 0.8rem;
}

.page-hero-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  letter-spacing: 1px;
}

.chisiamo-page {
  padding-top: 4rem;
  min-height: auto;
}

.contatti-light-section {
  background: #f4f4f4;
  padding-top: 4rem;
  min-height: auto;
}

.contatti-form-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contatti-form-label {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.contatti-form-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #111;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.contatti-form-sub {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--primary);
  transition: all var(--transition);
  cursor: pointer;
}

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

/* ===========================
   SECTION BASE
   =========================== */
.section {
  padding: 5rem 2rem;
}

.section-dark {
  background: #000000;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: #222;
}

.section-title.light {
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.section-subtitle.light {
  color: #888;
}

/* ===========================
   CORSI - BLOCCHI
   =========================== */

.corsi-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Intestazione del blocco corso */
/* Forza la freccia dell'accordion sempre a destra, indipendentemente dal contenuto */
.corso-block-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.accordion-arrow {
    margin-left: auto !important; /* Questo spinge la freccia tutto a destra */
} 

.corso-block-header h3 {
  flex: 1; /* Permette al titolo di occupare lo spazio centrale */
  margin: 0;
}



/* Titolo del corso (es. SALA PESI) */
.corso-badge {
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  font-size: 0.8rem; /* Leggermente più piccolo per il desktop */
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0; /* Impedisce al badge di rimpicciolirsi troppo */
}

.arrow {
  margin-left: auto; /* Spinge ulteriormente la freccia a destra */
  transition: transform 0.3s ease;
}


.corso-block-header {
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
}

.corso-badge {
  font-size: 0.62rem;
  white-space: normal;
  text-align: center;
  width: 100%;
  border-radius: 8px;
}

.corso-block-body {
  padding: 0 1.2rem;
}

.corso-block-body.open {
  padding: 1.2rem;
}

.corso-block-body>p {
  font-size: 0.92rem;
  word-break: break-word;
}

.corso-giorno {
  font-weight: 700;
}

.corsi-wrapper {
  padding: 0 0.5rem;
}

.corso-block-header.open {
  background: var(--primary);
  color: var(--white);
}

.corso-block-header.open h3,
.corso-block-header.open .corso-block-icon,
.corso-block-header.open .corso-badge {
  color: var(--white);
}

.corso-block-header .corso-badge {
  margin-left: auto;
}

.accordion-arrow {
  margin-left: 0; /* Il distanziamento è gestito dal margin-left: auto del badge */
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--primary);
}

.corso-block-header.open .accordion-arrow {
  transform: rotate(180deg);
  color: var(--white);
}

.corso-block-body {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--transition), opacity 0.3s var(--transition), padding 0.3s var(--transition);
  background: var(--white);
}

.corso-block-body.open {
  padding: 1.8rem 2rem;
  max-height: 2000px;
  opacity: 1;
}


.corso-block-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.corso-block-header h3 {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex: 1;
  margin: 0;
}


.corso-badge {
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.corso-block-body>p {
  color: #555;
  font-size: 1rem;
  line-height: 1.75;
}

.corso-sub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.corso-sub-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid var(--primary);
}

.corso-sub-card>span {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.corso-sub-card h4 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  color: #222;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.corso-sub-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===========================
   CORSO ORARI - TABELLA
   =========================== */
.corso-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.corso-table thead tr {
  background: var(--primary);
}

.corso-table thead th {
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.65rem 1rem;
  text-align: left;
}

.corso-table tbody tr {
  background: #fff;
  transition: background 0.2s;
}

.corso-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.corso-table tbody tr:hover {
  background: #fff0ef;
}

.corso-table tbody td {
  padding: 0.65rem 1rem;
  color: #444;
  font-family: var(--font-body);
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.corso-table tbody td:first-child {
  font-family: var(--font-main);
  font-weight: 700;
  color: #222;
  width: 120px;
}

/* Pre-Mamma */
.corso-premamma {
  margin-top: 1.6rem;
  background: #fff5f5;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
}

.corso-premamma-header {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.corso-premamma p {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.65;
}

.corso-slot-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.corso-slot {
  display: block;
}

.corso-giorno {
  font-weight: 700;
}


@media (max-width: 600px) {
  .corso-block-header {
    gap: 0.6rem;
    padding: 1rem 1.2rem;
  }

  .corso-badge {
    margin-left: 0;
  }


  .corso-badge {
    font-size: 0.62rem;
    white-space: normal;
    text-align: center;
    width: 100%;
    border-radius: 8px;
  }

  .accordion-arrow {
    margin-left: auto;
    margin-right: 0;
    align-self: center;
    font-size: 1.3rem;
    display: inline-block;
    vertical-align: middle;
  }

}

.corso-block-header h3 {
  font-size: 1rem;
}

.corso-badge {
  font-size: 0.62rem;
  white-space: normal;
  text-align: center;
  width: 100%;
  border-radius: 8px;
}

.corso-block-body {
  padding: 0 1.2rem;
}

.corso-block-body.open {
  padding: 1.2rem;
}

.corso-block-body>p {
  font-size: 0.92rem;
  word-break: break-word;
}

.corso-giorno {
  @media (max-width: 600px) {
    font-weight: 700;
  }

  .corsi-wrapper {
    padding: 0 0.5rem;
  }
}

/* ===========================
   ORARI - TABLE
   =========================== */
.table-wrapper {
  overflow-x: auto;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(207, 11, 11, 0.15), 0 2px 12px rgba(0, 0, 0, 0.10);
  padding: 0.5rem;
}

.orari-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
}

.orari-table th {
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  font-family: var(--font-main);
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.orari-table td {
  padding: 0.9rem 1rem;
  text-align: center;
  color: #222;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.orari-table tbody td:first-child {
  font-weight: 700;
}

.orari-table tbody tr:last-child td {
  border-bottom: none;
}

.orari-table tbody tr:hover {
  background: #fdf0f0;
}

/* ===========================
   PREZZI
   =========================== */
.prezzi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.prezzi-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.prezzi-solo {
  display: flex;
  justify-content: center;
  margin: 0 auto 3rem;
}

.prezzi-solo .prezzo-card {
  width: 300px;
}

.prezzo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.prezzo-features li {
  font-size: 0.9rem;
  color: #555;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
}

/* Banner studenti */
.prezzi-row .prezzo-card {
  width: 240px;
  flex-shrink: 0;
}

.studenti-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.studenti-banner-img {
  position: relative;
  overflow: hidden;
}

.studenti-banner-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.studenti-sconto {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
  border-radius: 50%;
  text-align: center;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(207, 11, 11, 0.4);
  margin-bottom: 1rem;
}

.studenti-sconto span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.studenti-banner-text {
  background: #111;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.studenti-banner-text h3 {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.studenti-banner-text p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.studenti-banner-text strong {
  color: var(--primary);
}

.studenti-banner-text .btn-prezzo {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .prezzi-row {
    grid-template-columns: 1fr;
  }

  .prezzi-row .prezzo-card {
    width: 100%;
  }

  .studenti-banner {
    grid-template-columns: 1fr;
  }

  .studenti-banner-img {
    min-height: 220px;
  }
}

.prezzo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  width: 240px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform var(--transition);
  border: 2px solid transparent;
}

.prezzo-card:hover {
  transform: translateY(-4px);
}

.prezzo-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 8px 35px rgba(231, 76, 60, 0.2);
}

.prezzo-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.prezzo-header {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #333;
  margin-bottom: 0.8rem;
}

.prezzo-amount {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.prezzo-amount span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
}

.btn-prezzo {
  display: inline-block;
  background: transparent;
  color: #333;
  padding: 0.55rem 1.5rem;
  border: 2px solid #333;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn-prezzo:hover {
  background: #333;
  color: #fff;
}

.btn-prezzo--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-prezzo--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Info row abbonamenti */
.prezzi-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.prezzi-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f9f9f9;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
  border-left: 4px solid #aaa;
}

.prezzi-info-card--gold {
  border-left-color: #e0a800;
  background: #fffdf0;
}

.prezzi-info-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.prezzi-info-card strong {
  font-family: var(--font-main);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.3rem;
  color: #222;
}

.prezzi-info-card p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   FOTO BANNER
   =========================== */
.prezzi-bg {
  background: url('immagin/FOTO CON LOGO-33.png') center center/cover no-repeat;
  position: relative;
}

.prezzi-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* ===========================
   CHI SIAMO
   =========================== */
.chisiamo-text-only {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.chisiamo-text-only p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* Stats Banner */
.stats-banner {
  background: #0a0a0a;
  padding: 4rem 2rem;
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
}

.stat-number {
  font-family: var(--font-main);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  margin-top: 0.4rem;
}

/* Valori section */
.valori-section {
  background: #111;
  padding: 4rem 2rem 5rem;
  position: relative;
  overflow: visible;
}

.valori-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 0 14px 14px 0;
  margin-bottom: 3.5rem;
}

.valori-badge svg {
  flex-shrink: 0;
}

.valori-badge strong {
  display: block;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}

.valori-badge span {
  font-size: 0.78rem;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.valori-img-wrap {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.valori-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
}

.valori-img-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.valori-img-wrap .valori-badge {
  position: absolute;
  bottom: 1.8rem;
  left: 0;
  z-index: 2;
  margin-bottom: 0;
}

.valori-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1050px;
  margin: 0 auto;
}

.valore-card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 2rem 1.8rem;
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  border-left: 3px solid var(--primary);
  pointer-events: none;
}

.valore-icon {
  width: 52px;
  height: 52px;
  background: rgba(207, 11, 11, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.valore-card h3 {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.valore-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.chisiamo-content {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
}

.chisiamo-text {
  text-align: left;
}

.section-subtitle.light {
  color: #ccc;
  position: relative;
  z-index: 1;
}

.section-title.light {
  color: #fff;
  position: relative;
  z-index: 1;
}

.section-title.left {
  text-align: left;
}

.chisiamo-text p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.chisiamo-cta {
  font-family: var(--font-main);
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--primary) !important;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-top: 1.8rem !important;
}

.chisiamo-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .chisiamo-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title.left {
    text-align: center;
  }

  .chisiamo-text {
    text-align: center;
  }
}

/* ===========================
   CONTATTI
   =========================== */
@media (max-width: 600px) {
  .contatti-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Forza la centratura del box */
    padding: 0 1rem;
  }

  .contatti-info {
    margin: 0 auto !important; /* Centra il box rispetto alla pagina */
    width: 100% !important;
    max-width: 380px !important; /* Dimensione ideale per smartphone */
  }


.contatti-info,
  .contatti-form-box {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin-left: auto;   /* ASSICURATI CHE SIA AUTO */
    margin-right: auto;  /* ASSICURATI CHE SIA AUTO */
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra le icone e i testi dentro il box */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    background: #fff;
    border-left: 5px solid var(--primary);
  }

  .contatti-form input,
  .contatti-form textarea,
  .contatti-form select {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
  }

  .contatti-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
  }

  .contatti-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    width: 100%;
  }
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #fff;
  border-radius: 16px;
  border-left: 5px solid var(--primary);
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.contatti-info-title {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  font-style: italic;
  color: #fff;
  line-height: 1;
  margin: 0;
}

.contatti-info-ghost {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  font-style: italic;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  margin: -1rem 0 0;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: #1e1e1e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.info-card-label {
  display: block;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.info-card-value {
  display: block;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.2rem;
  text-decoration: none;
}

.info-card-value--link:hover {
  color: var(--primary);
}

.info-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.info-card-link:hover {
  text-decoration: underline;
}

.info-card-sub {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin: 0;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0;
  background: #25d366;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.btn-call:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.contatti-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}

.contatti-form input,
.contatti-form textarea,
.contatti-form select {
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #111;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}


.contatti-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23111111'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.contatti-form select option {
  background: #fff;
  color: #111;
}

.contatti-form input::placeholder,
.contatti-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.contatti-form input:focus,
.contatti-form textarea:focus,
.contatti-form select:focus {
  border-color: var(--primary);
}

.contatti-form-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.btn-form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
  border-radius: 10px;
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  color: #27ae60;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

.form-error {
  display: none;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

.mappa-section {
  width: 100%;
  padding: 2rem;
  background: #0a0a0a;
  line-height: 0;
}

.mappa-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--dark);
  color: #666;
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.9rem;
  line-height: 2;
}

.footer-cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.75rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 1.2rem;
  transition: background var(--transition), transform var(--transition);
}

.footer-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===========================
   PREVIEW SECTIONS (HOME)
   =========================== */

.preview-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.preview-label {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.preview-label.light {
  color: var(--primary);
}

/* CHI SIAMO preview */
.preview-chisiamo {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.preview-chisiamo .preview-text {
  flex: 1;
}

.preview-chisiamo .preview-text h2 {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: #111;
}

.preview-chisiamo .preview-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.preview-chisiamo .preview-img {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-chisiamo .preview-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* CORSI preview */
.preview-corsi {
  background: #000;
  max-width: 100%;
  padding: 4rem 0 0;
  text-align: center;
}

.corsi-section-header {
  padding: 0 2rem;
}

.corsi-footer-btn {
  padding: 3rem 0;
}

.preview-title-center {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.preview-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.corsi-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.corsi-slider {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 3px;
  width: 100%;
}

.corsi-slider::-webkit-scrollbar {
  display: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.25);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  padding: 0;
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow--prev {
  left: 1rem;
}

.slider-arrow--next {
  right: 1rem;
}

.corso-flip-card {
  position: relative;
  height: 440px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 300px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.corso-flip-card:hover {
  border-color: rgba(207, 11, 11, 0.6);
}

.corso-flip-bg {
  position: relative;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  z-index: 1;
}

.corso-flip-card {
  background: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: none;
  padding: 0;
  display: block;
}

.corso-flip-bg {
  position: relative;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  z-index: 1;
}

@media (max-width: 768px) {
  .corso-flip-bg {
    height: 160px;
  }
}

/* PREZZI preview */
.preview-prezzi {
  background: var(--primary);
  max-width: 100%;
  padding: 5rem 2rem;
  text-align: center;
}

/* ── ANTEPRIMA ABBONAMENTI ─────────────────────────── */
.preview-abbonamenti {
  background: #0d0d0d;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0;
}

.preview-abbonamenti::before {
  display: none;
}

.preview-abbonamenti>* {
  position: relative;
  z-index: 1;
}

.preview-abbonamenti--solid {
  background: #111;
}

.preview-abbonamenti--solid::before {
  display: none;
}

.page-hero--contatti::before {
  background-image: url('immagin/FOTO CON LOGO-01.png');
  opacity: 0.5;
  background-position: left 25%;
}

.preview-abb-header {
  text-align: center;
  background: transparent;
  border: none;
  transform: none;
}

.preview-abb-header h2 {
  color: #fff;
}

.preview-abb-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
}

@media (max-width: 900px) {
  .preview-abb-cards {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 1rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
  }

  .preview-abb-cards::-webkit-scrollbar {
    display: none;
  }
}

.abb-card {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  padding: 2.2rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.abb-card:hover {
  transform: translateY(-5px);
}

@media (max-width: 900px) {
  .abb-card {
    min-width: 80vw;
    max-width: 80vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;
  }
}

.abb-card--studenti {
  border-color: rgba(255, 255, 255, 0.08);
}

.abb-card--prova {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.abb-card--prova:hover {
  background: #b00909;
  transform: translateY(-4px);
}

.abb-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.abb-card-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
}

.abb-card--prova .abb-card-label {
  color: rgba(255, 255, 255, 0.75);
}

.abb-card-price {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}

.abb-euro {
  font-size: 1.6rem;
  vertical-align: super;
}

.abb-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.abb-card-price-big {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 2px;
}

.abb-gratuita {
  font-size: 2.8rem;
  display: block;
  letter-spacing: 1px;
}

.abb-card-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.abb-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.abb-features li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 1.1rem;
  position: relative;
}

.abb-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.abb-card--prova .abb-features li::before {
  color: rgba(255, 255, 255, 0.6);
}

.btn-abb-cta {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: auto;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-abb-cta:hover {
  background: #0d0d0d;
  color: #fff;
  transform: translateY(-2px);
}

.preview-abb-footer {
  text-align: center;
  margin-top: 0.5rem;
}

.preview-prezzo-card {
  max-width: 600px;
  margin: 0 auto;
}

.preview-prezzo-card .preview-label {
  color: rgba(255, 255, 255, 0.7);
}

.preview-prezzo-card h2 {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.preview-prezzo-card h2 strong {
  font-size: 1.3em;
}

.preview-features {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.preview-features li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  padding: 0.3rem 0;
  font-family: var(--font-body);
}

.preview-sconto {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ORARI preview */
.preview-orari {
  background: #f7f7f7;
  max-width: 100%;
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
}

.preview-orari .preview-text {
  max-width: 480px;
  width: 100%;
}

.preview-orari .preview-text h2 {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #111;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.preview-orari-table {
  border-top: 1px solid #ddd;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  z-index: 2;
  position: relative;
}

.preview-orari-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  color: #333;
  font-family: var(--font-body);
}

.preview-orari-row span:last-child {
  font-weight: 600;
  font-family: var(--font-main);
}

.preview-orari-row.chiuso span:last-child {
  color: #e74c3c;
}

/* CONTATTI preview */
.preview-contatti {
  background: #fff;
  max-width: 100%;
  padding: 5rem 2rem;
  text-align: center;
}

.preview-contatti--dark {
  background: #111;
}

.preview-contatti--dark .preview-title-center {
  color: #fff !important;
}

.preview-contatti--dark .preview-contatto-item {
  color: #fff;
}

.preview-contatti--dark .preview-contatto-item p {
  color: rgba(255, 255, 255, 0.65);
}

.preview-contatti--dark .preview-contatto-item a {
  color: rgba(255, 255, 255, 0.75) !important;
}

.preview-contatti--dark .btn-call {
  border: 1px solid #fff !important;
  color: #fff !important;
}

.preview-contatti--dark .btn-call:hover {
  background: #fff;
  color: #111 !important;
}

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

.preview-contatti .preview-title-center {
  color: #111;
  margin-bottom: 3rem;
}

.preview-contatti-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
  margin-bottom: 2.5rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.preview-contatto-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  color: #111;
}

.preview-contatto-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.preview-contatto-item strong {
  display: block;
  font-family: var(--font-main);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.preview-contatto-item p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.preview-contatto-item a {
  color: #444 !important;
}

.preview-contatti .btn-call {
  background: transparent;
  border: 1.5px solid #222;
  color: #111 !important;
}

.preview-contatti .btn-call:hover {
  background: #111;
  color: #fff !important;
}

/* Bottone preview generico */
.btn-preview {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

.btn-preview--light {
  border-color: var(--white);
  color: var(--white);
}

.btn-preview--light:hover {
  background: var(--white);
  color: #111;
}

.btn-preview--red {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-preview--red:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

@media (max-width: 900px) {
  .preview-chisiamo {
    flex-direction: column;
    gap: 2rem;
  }

  .preview-contatti-grid {
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .slider-arrow {
    display: none;
  }

  .preview-contatti-grid {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
  }

  /* --- Migliorie mobile sezione contatti --- */
  .contatti-light-section {
    padding-top: 2.2rem;
    padding-bottom: 0;
  }

  .contatti-form-intro {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .contatti-form-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .contatti-form-sub {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .contatti-grid {
    gap: 1.2rem;
    padding: 0 0.2rem;
  }

  .contatti-info,
  .contatti-form-box {
    padding: 1.2rem 0.7rem;
    border-radius: 10px;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  .info-card {
    gap: 0.6rem;
  }

  .info-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.1rem;
  }

  .info-card-label {
    font-size: 0.62rem;
  }

  .info-card-value {
    font-size: 0.93rem;
  }

  .info-card-link {
    font-size: 0.8rem;
  }

  .btn-whatsapp,
  .btn-chiama {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
  }

  .contatti-form {
    gap: 1rem;
  }

  .contatti-form .form-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .form-group label {
    font-size: 0.65rem;
  }

  .contatti-form input,
  .contatti-form textarea,
  .contatti-form select {
    padding: 0.7rem 0.9rem;
    font-size: 0.93rem;
    border-radius: 8px;
  }

  .btn-form-submit {
    padding: 0.7rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .form-success,
  .form-error {
    font-size: 0.9rem;
  }

  .mappa-section {
    display: none !important;
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  /* Migliora visibilità hamburger */
  .nav-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1200;
    font-size: 2.3rem;
    padding: 0.2rem 0.7rem;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    transition: color 0.2s, transform 0.3s;
  }


  .nav-toggle:active {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
  }

  /* Aumenta area cliccabile */
  .nav-toggle {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links a {
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .btn-cta-desktop {
    display: none;
  }

  .nav-right {
    flex: 0 0 0;
    width: 0;
  }

  .nav-logo img {
    height: 40px;
  }

  .nav-links.open {
    transform: translateX(0);
  }

 .btn-cta-mobile {
  display: block !important;
  margin: 1.5rem auto !important; /* Centra orizzontalmente usando i margini */
  width: fit-content !important;  /* Impedisce al pulsante di allargarsi troppo */
  padding: 0.8rem 2rem !important;
  text-align: center;
  font-size: 1.1rem;
  border-radius: 50px;
}

  .hero {
    padding: 5rem 1.5rem 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .contatti-grid {
    grid-template-columns: 1fr;
  }

  .prezzo-card.featured {
    transform: scale(1);
  }

  .stats {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }

  .section {
    padding: 3.5rem 1.2rem;
  }
}

@media (max-width: 768px) {
  .corsi-slider-wrapper {
    overflow-x: auto;
    padding: 0 10px;
  }

  .corsi-slider {
    gap: 16px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .corso-flip-card {
    min-width: 85vw;
    max-width: 90vw;
    margin-right: 8px;
    scroll-snap-align: start;
  }

  .slider-arrow {
    display: none;
  }
}
/* ===========================
   TABELLE CORSI ADATTABILI SU MOBILE
   =========================== */
@media (max-width: 768px) {
  /* Trasforma la tabella in un blocco fluido */
  .corso-table {
    display: block;
    width: 100%;
    /* Se la tabella è ancora troppo larga, fa scorrere col dito SOLO la tabella e non tutta la pagina */
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
  }
  
  /* Permette al testo di andare a capo e recupera spazio */
  .corso-table tbody td, 
  .corso-table thead th {
    white-space: normal !important; /* Annulla il blocco dell'andata a capo */
    font-size: 0.85rem; /* Rimpicciolisce leggermente il testo su mobile */
    padding: 0.6rem 0.5rem; /* Riduce un po' gli spazi interni per farci stare più testo */
  }
  
  /* Sistema anche le "barre rosse" dei titoli che erano forzate su una riga */
  .corso-block-header {
    flex-wrap: wrap !important;
  }
  .corso-badge {
    white-space: normal !important;
    height: auto !important;
  }
}
/* ===========================
   CENTRARE TABELLE ORARI (SOLO DESKTOP)
   =========================== */
@media (min-width: 769px) {
  .corso-table {
    width: max-content; /* La tabella prende solo lo spazio necessario */
    min-width: 60%; /* Si assicura che non sia troppo stretta */
    margin-left: auto !important; /* Spinge la tabella al centro (sinistra) */
    margin-right: auto !important; /* Spinge la tabella al centro (destra) */
  }

  /* Centra anche il testo all'interno delle celle per un look più pulito */
  .corso-table th, 
  .corso-table td {
    text-align: center;
  }
  
  /* Mantiene il primo elemento (il giorno) allineato a sinistra se preferisci, 
     se vuoi tutto centrato puoi rimuovere le tre righe qui sotto */
  .corso-table tbody td:first-child {
    text-align: left;
  }
}
/* ===========================
   FIX TABELLA PRE-MAMMA "SPEZZATA" SU MOBILE
   =========================== */
@media (max-width: 768px) {
  .corso-table {
    display: table !important; /* Restituisce la struttura a colonne perfetta */
    width: 100% !important;
  }

  /* Riduciamo leggermente lo spazio interno del riquadro rosa Pre-Mamma 
     per dare più respiro alla tabella sui telefoni più stretti */
  .corso-premamma {
    padding: 1rem 0.8rem !important;
  }
}

/* --- COOKIE BANNER STYLE --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 13, 13, 0.98); /* Sfondo scuro come il tuo sito */
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: none; /* Gestito da JS */
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text h3 {
  font-family: var(--font-main);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.cookie-text p {
  color: #bbb;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Bottoni stile FlexGym */
.btn-cookie-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.3s;
}

.btn-cookie-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-main);
}

.btn-cookie-primary:hover { background: var(--primary-dark); }
.btn-cookie-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1.5rem;
  }
  
  .cookie-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column; /* Bottoni impilati su mobile */
  }
  
  .btn-cookie-primary, .btn-cookie-secondary {
    width: 100%;
  }
}

.main-footer {
  background: #000;
  padding: 20px 5%;
  border-top: 1px solid #222;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* Spinge i due blocchi ai lati */
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  color: #777;
  font-size: 0.8rem;
}

.footer-right a {
  color: #777;
  text-decoration: none;
  font-size: 0.8rem;
  margin-left: 15px;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: var(--primary); /* Il rosso della tua palestra */
}