/* ================================================================
   formazione.cooperativalogos.it
   Design system ripreso dalla landing Workshop ABA (l'ultima
   realizzata dall'utente): navy #1D3557 · arancio #E8652C,
   bottoni pill, sezioni con scoop, decorazioni a pois, Poppins.
   ================================================================ */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/poppins-800.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 300; font-display: swap; src: url('fonts/poppins-300italic.woff2') format('woff2'); }

:root {
  --wab-navy: #1D3557;
  --wab-navy-dark: #152945;
  --wab-orange: #E8652C;
  --wab-orange-dark: #D0521A;
  --wab-orange-soft: #FDF0E8;
  /* L'arancio del brand su bianco sta a 3,3:1, sotto il minimo WCAG AA di
     4,5:1 per il testo. Questa è la stessa tinta (hue 21°, sat 85%) scurita
     quanto basta: 5,03:1 su bianco e 4,65:1 sull'azzurro delle sezioni alt.
     Va usata per il TESTO arancione; riempimenti e bordi restano --wab-orange. */
  --wab-orange-text: #BC4C0F;
  --wab-bg: #FFFFFF;
  --wab-bg-blue: #F0F7FC;
  --wab-text: #1D3557;
  --wab-text-soft: #4A5D7A;
  --wab-border: rgba(29, 53, 87, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--wab-text);
  line-height: 1.55;
  background: var(--wab-bg);
  overflow-x: hidden;
}

/* La sticky CTA è fixed: non occupa spazio nel flusso, e senza una riserva
   coprirebbe l'ultima riga del footer una volta arrivati in fondo. La riserva sta
   dentro al footer e non sul body perché il body ha lo sfondo chiaro e il footer
   quello scuro: tenendola sul body si vedeva come una striscia chiara sotto al
   footer, spessa quanto la differenza fra i 90px riservati e i ~67 della barra.
   118 = i 28 di padding suoi più i 90 da riservare. */
body.has-sticky .site-footer { padding-bottom: 118px; }

img { max-width: 100%; height: auto; }

/* ═════════════════════════════════════════
   DECORAZIONI HAND-DRAWN
   ═════════════════════════════════════════ */

.wab-dots {
  position: absolute;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.8px);
  background-size: 16px 16px;
  opacity: 0.25;
  pointer-events: none;
}

.wab-underline { position: relative; display: inline-block; }

.wab-underline::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -6px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2,7 Q50,-1 100,5 T198,3' stroke='%23E8652C' stroke-width='2.5' stroke-linecap='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ═════════════════════════════════════════
   HEADER
   ═════════════════════════════════════════ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 18px 20px;
}

.site-header .header-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header img { height: 40px; width: auto; display: block; }

/* logo bianco sul hero navy */
.site-header a.back-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.site-header a.back-link:hover { color: white; }

/* ═════════════════════════════════════════
   HERO NAVY CON SCOOP
   ═════════════════════════════════════════ */

.wab-hero {
  background: var(--wab-navy);
  color: white;
  padding: 120px 20px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wab-hero .wab-dots { top: 100px; right: -30px; color: #F8AA7E; }

.wab-hero .wab-dots-2 {
  position: absolute;
  bottom: 80px;
  left: -40px;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1.2px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

.wab-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -10%;
  right: -10%;
  height: 60px;
  background: white;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

.wab-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.wab-kicker {
  display: inline-block;
  background: var(--wab-orange);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.wab-hero h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: white;
}

.wab-hero h1 .wab-italic {
  font-weight: 300;
  font-style: italic;
  color: #F8AA7E;
  display: block;
  font-size: 0.88em;
  margin-top: 2px;
}

.wab-hero h1 .wab-underline::after {
  bottom: -16px;
  height: 14px;
  left: -8px;
  right: -8px;
}

/* terza riga dell'h1: la località, sotto la sottolineatura decorativa */
.wab-hero h1 .wab-hero-loc {
  display: block;
  font-size: 0.62em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
  margin-top: 24px;
}

.wab-hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 28px;
  line-height: 1.55;
  max-width: 440px;
}

.wab-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  margin: 0 auto 30px;
  max-width: 520px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.wab-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.wab-hero-meta-item svg { flex-shrink: 0; color: var(--wab-orange); }

/* Prova sociale nell'hero della home. Due colonne su telefono: quattro
   renderebbero i numeri troppo piccoli per essere letti a colpo d'occhio,
   che è l'unico modo in cui questi dati vengono letti. */
.wab-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  max-width: 400px;
  margin: 0 auto 28px;
  text-align: left;
}

.wab-hero-stat { display: flex; flex-direction: column; gap: 3px; }

.wab-hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #F8AA7E;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}

.wab-hero-stat-label {
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
}

.wab-hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}

.wab-hero-price .wab-big {
  font-size: 30px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

/* ═════════════════════════════════════════
   CTA BUTTON (pill)
   ═════════════════════════════════════════ */

.wab-btn {
  display: inline-block;
  background: var(--wab-orange);
  color: white !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 100px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px -4px rgba(232, 101, 44, 0.4);
  transition: all 0.2s ease;
  min-height: 50px;
  max-width: 100%;
}

.wab-btn:hover,
.wab-btn:focus {
  background: var(--wab-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -4px rgba(232, 101, 44, 0.5);
}

.wab-btn:focus-visible { outline: 3px solid var(--wab-navy); outline-offset: 2px; }
.wab-btn:active { transform: translateY(0); }

.wab-btn-wrap { text-align: center; margin: 32px 0 0; }

/* Negli hero il bottone segue subito prezzo/meta: serve meno aria sopra.
   Nella CTA finale il riepilogo lo precede già a distanza giusta. */
.wab-hero .wab-btn-wrap { margin-top: 8px; }
.wab-final .wab-btn-wrap { margin-top: 0; }

.wab-btn-note {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--wab-text-soft);
}

.wab-hero .wab-btn-note,
.wab-final .wab-btn-note { color: rgba(255, 255, 255, 0.65); }

.wab-btn-secondary {
  background: transparent;
  color: var(--wab-orange-text) !important;
  border: 1.5px solid var(--wab-orange);
  box-shadow: none;
}

.wab-btn-secondary:hover,
.wab-btn-secondary:focus {
  background: var(--wab-orange);
  color: white !important;
  box-shadow: 0 6px 16px -4px rgba(232, 101, 44, 0.3);
}

/* Variante per i fondi scuri: lì l'arancione del testo si perderebbe nel navy. */
.wab-btn-chiaro {
  background: transparent;
  color: white !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.wab-btn-chiaro:hover,
.wab-btn-chiaro:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  box-shadow: none;
}

/* .wab-btn impone display: inline-block, che da solo vincerebbe sull'attributo
   hidden lasciando visibile un pulsante che non deve esserci. */
.wab-btn[hidden] { display: none; }

/* ═════════════════════════════════════════
   SEZIONI BASE
   ═════════════════════════════════════════ */

.wab-section {
  padding: 56px 20px;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.wab-section-alt {
  background: var(--wab-bg-blue);
  max-width: 100%;
  position: relative;
}

.wab-section-alt .wab-section-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px;
  position: relative;
}

.wab-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wab-orange-text);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wab-section-title::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--wab-orange);
}

.wab-section h2,
.wab-section-alt h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--wab-navy);
  margin: 0 0 24px;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

/* Variante centrata: la sezione contatti della home. Sostituisce gli style=""
   che prima centravano a mano occhiello, paragrafo e pill dei contatti. */
.wab-section-center { text-align: center; }
.wab-section-center .wab-section-title { justify-content: center; }
.wab-section-center .wab-contact-links { justify-content: center; }

.wab-section-center .wab-program-intro {
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

/* ═════════════════════════════════════════
   CARD CORSO (catalogo)
   ═════════════════════════════════════════ */

.wab-courses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 26px;
}

a.wab-course-card {
  display: block;
  background: white;
  border: 1px solid var(--wab-border);
  border-radius: 16px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--wab-text);
  box-shadow: 0 4px 18px -8px rgba(29, 53, 87, 0.12);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

a.wab-course-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  background: var(--wab-orange-soft);
  border-radius: 62% 38% 55% 45% / 58% 52% 48% 42%;
  transition: transform 0.3s ease;
}

a.wab-course-card:hover {
  transform: translateY(-3px);
  border-color: var(--wab-orange);
  box-shadow: 0 12px 30px -10px rgba(232, 101, 44, 0.25);
}

a.wab-course-card:hover::before { transform: scale(1.15); }
a.wab-course-card:focus-visible { outline: 3px solid var(--wab-orange); outline-offset: 2px; }

.wab-course-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wab-orange-text);
  margin-bottom: 10px;
}

.wab-course-meta svg { flex-shrink: 0; }

.wab-course-card h3 {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: var(--wab-navy);
  margin: 0 0 8px;
  line-height: 1.25;
}

.wab-course-card p.wab-course-desc {
  position: relative;
  font-size: 14.5px;
  color: var(--wab-text-soft);
  margin: 0 0 14px;
  line-height: 1.6;
  /* Con una card sola la griglia va a colonna piena: senza questo limite la
     riga supererebbe i cento caratteri. In due colonne non ha alcun effetto. */
  max-width: 62ch;
}

.wab-course-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wab-course-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--wab-navy);
}

.wab-course-cta {
  color: var(--wab-orange-text);
  font-weight: 600;
  font-size: 14.5px;
}

/* ═════════════════════════════════════════
   AVVISAMI (lista contatti corsi futuri)
   ═════════════════════════════════════════ */

/* Fascia sotto al catalogo, non una card della griglia: il form è troppo alto
   e stirerebbe le card dei corsi accanto fino alla sua altezza. */
.wab-avvisami {
  margin-top: 26px;
  padding: 24px 22px;
  background: var(--wab-bg-blue);
  border-radius: 16px;
  border: 1px solid var(--wab-border);
}

.wab-avvisami-testo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.wab-avvisami-icona {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: white;
  color: var(--wab-orange-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wab-avvisami h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--wab-navy);
  margin: 0 0 4px;
  line-height: 1.3;
}

.wab-avvisami-testo p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--wab-text-soft);
  margin: 0;
}

/* Honeypot: fuori dallo schermo invece che display:none, perché alcuni bot
   saltano di proposito i campi nascosti in modo troppo evidente. */
.wab-avvisami-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wab-avvisami-riga { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* Pagina corso: il campo "quale corso ti interesserebbe" lì è nascosto, perché
   la risposta la sappiamo. Senza questa riga, da 768px in su resterebbe un solo
   campo dentro una griglia a due colonne e l'email occuperebbe metà larghezza,
   con un buco accanto. */
.wab-avvisami-riga.is-singola { grid-template-columns: 1fr; }

/* La stessa fascia in fondo alla pagina corso, dove è la coda del discorso e non
   una sezione a sé: con il padding pieno della sezione galleggiava fra il blocco
   scuro sopra e il footer sotto, prendendosi un'importanza che non le compete.
   Il margine superiore del riquadro serve solo sulla home, dove segue la griglia
   del catalogo.

   Le due classi insieme (.wab-section.wab-riavviso) non sono un vezzo: da 768px
   in su c'è una media query che rimette padding 84px su .wab-section, e sta più
   in basso in questo file. A parità di specificità vincerebbe lei. */
.wab-section.wab-riavviso { padding-top: 40px; padding-bottom: 44px; }
.wab-riavviso .wab-avvisami { margin-top: 0; }

.wab-avvisami-campo label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wab-navy);
  margin-bottom: 6px;
}

.wab-avvisami-opz {
  font-weight: 400;
  color: var(--wab-text-soft);
}

.wab-avvisami-campo input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;             /* sotto i 16px iOS ingrandisce la pagina al focus */
  color: var(--wab-text);
  background: white;
  padding: 11px 13px;
  border: 1.5px solid var(--wab-border);
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}

.wab-avvisami-campo input:focus {
  outline: none;
  border-color: var(--wab-orange);
  box-shadow: 0 0 0 3px rgba(232, 101, 44, 0.15);
}

.wab-avvisami-consenso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wab-text-soft);
  cursor: pointer;
}

.wab-avvisami-consenso input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--wab-orange);
  cursor: pointer;
}

.wab-avvisami-consenso a { color: var(--wab-orange-text); }

.wab-avvisami-btn {
  width: 100%;
  margin-top: 16px;
  font-size: 15px;
}

.wab-avvisami-esito {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  display: none;
}

.wab-avvisami-esito.is-visible { display: block; }
.wab-avvisami-esito.ok { color: #1B7A4B; font-weight: 600; }
.wab-avvisami-esito.ko { color: #B42318; }
.wab-avvisami-esito a { color: inherit; }

/* Form concluso: il messaggio di esito resta, i campi spariscono */
.wab-avvisami-form.is-inviato .wab-avvisami-riga,
.wab-avvisami-form.is-inviato .wab-avvisami-consenso,
.wab-avvisami-form.is-inviato .wab-avvisami-btn { display: none; }

/* ═════════════════════════════════════════
   INFO-LIST (chi può partecipare)
   ═════════════════════════════════════════ */

.wab-audience { position: relative; }

.wab-audience .wab-dots {
  color: var(--wab-navy);
  top: -10px;
  right: -10px;
  width: 90px;
  height: 90px;
  opacity: 0.18;
}

.wab-info-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wab-info-item { display: flex; gap: 16px; align-items: flex-start; }

.wab-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--wab-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -2px rgba(232, 101, 44, 0.35);
}

.wab-info-icon svg { width: 20px; height: 20px; }

.wab-info-body { flex: 1; padding-top: 4px; }

.wab-info-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--wab-navy);
  margin: 0 0 4px;
  line-height: 1.3;
}

.wab-info-body p {
  font-size: 14.5px;
  color: var(--wab-text-soft);
  margin: 0;
  line-height: 1.55;
}

.wab-info-body p strong { color: var(--wab-navy); font-weight: 600; }

/* ═════════════════════════════════════════
   BENEFIT LIST (cosa porti a casa)
   ═════════════════════════════════════════ */

.wab-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 26px 0 0;
}

.wab-benefit { display: flex; gap: 16px; align-items: flex-start; padding: 4px 0; }

.wab-benefit-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: white;
  border: 2px solid var(--wab-orange);
  color: var(--wab-orange-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  font-feature-settings: 'tnum';
}

.wab-benefit-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--wab-text-soft);
  padding-top: 7px;
}

.wab-benefit-text strong { font-weight: 700; color: var(--wab-navy); }

/* ═════════════════════════════════════════
   PROGRAMMA (numbered list)
   ═════════════════════════════════════════ */

.wab-program-intro {
  font-size: 15.5px;
  color: var(--wab-text-soft);
  margin-bottom: 26px;
  line-height: 1.6;
}

.wab-program-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.wab-program-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--wab-border);
  transition: border-color 0.2s ease;
}

.wab-program-item:hover { border-color: var(--wab-orange); }

.wab-program-num {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--wab-orange-text);
  font-feature-settings: 'tnum';
  width: 28px;
}

.wab-program-label {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--wab-navy);
  line-height: 1.3;
}

/* ═════════════════════════════════════════
   TIROCINIO (specchietto "Da noi" / "Altrove")
   È una <table> vera, ma su mobile le righe diventano griglie a due
   colonne con la tappa a tutta larghezza sopra le celle: le due colonne
   restano affiancate perché il confronto si legge solo così. I ruoli
   ARIA nell'HTML compensano la semantica che il display: grid butta via.
   ═════════════════════════════════════════ */

.wab-tirocinio-intro {
  font-size: 15.5px;
  color: var(--wab-text-soft);
  margin-bottom: 26px;
  line-height: 1.6;
}

.wab-confronto {
  display: block;
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--wab-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px -6px rgba(29, 53, 87, 0.1);
  overflow: hidden;
}

.wab-confronto thead,
.wab-confronto tbody { display: block; }

.wab-confronto tr {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Le intestazioni restano in vista mentre si scorrono le sette righe. */
.wab-confronto thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: white;
  border-bottom: 2px solid var(--wab-border);
}

.wab-confronto thead th {
  padding: 12px 14px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.2;
}

.wab-confronto thead .wab-confronto-tappa { display: none; }

.wab-confronto thead .wab-confronto-noi {
  color: var(--wab-orange-text);
  background: var(--wab-orange-soft);
}

.wab-confronto thead .wab-confronto-altrove { color: var(--wab-navy); }

.wab-confronto thead small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--wab-text-soft);
}

.wab-confronto tbody tr { border-top: 1px solid var(--wab-border); }

.wab-confronto tbody th {
  grid-column: 1 / -1;
  padding: 14px 14px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wab-navy);
  text-align: left;
  line-height: 1.3;
}

.wab-confronto td {
  position: relative;
  padding: 4px 14px 16px 38px;
  font-size: 14px;
  line-height: 1.45;
  vertical-align: top;
}

.wab-confronto td.wab-confronto-noi {
  color: var(--wab-navy);
  background: #FFF9F5;
}

.wab-confronto td.wab-confronto-altrove { color: var(--wab-text-soft); }

.wab-confronto td strong { font-weight: 700; }

/* Spunta arancione per "Da noi", trattino grigio per "Altrove": il
   trattino constata, la croce rossa avrebbe accusato. */
.wab-confronto td::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--wab-orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.wab-confronto td.wab-confronto-altrove::before {
  background-color: rgba(29, 53, 87, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}

.wab-tirocinio-nota {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--wab-text-soft);
  line-height: 1.55;
  text-align: center;
}

.wab-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═════════════════════════════════════════
   DOCENTI (foto squircle organico)
   ═════════════════════════════════════════ */

.wab-teachers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}

.wab-teacher {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.wab-teacher-photo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  overflow: hidden;
  background: var(--wab-bg-blue);
  border-radius: 62% 38% 55% 45% / 58% 52% 48% 42%;
  box-shadow: 0 8px 24px -8px rgba(29, 53, 87, 0.2);
  transition: transform 0.3s ease;
}

.wab-teacher:nth-child(2) .wab-teacher-photo {
  border-radius: 42% 58% 48% 52% / 52% 42% 58% 48%;
}

.wab-teacher-photo:hover { transform: scale(1.03) rotate(-1deg); }

.wab-teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wab-teacher-info { flex: 1; min-width: 0; }

.wab-teacher-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--wab-navy);
  margin: 0 0 4px;
  line-height: 1.25;
}

.wab-teacher-role {
  font-size: 13.5px;
  color: var(--wab-text-soft);
  margin-bottom: 10px;
  line-height: 1.4;
}

.wab-teacher-cert {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wab-orange-text);
  background: var(--wab-orange-soft);
  padding: 5px 11px;
  border-radius: 4px;
}

.wab-teachers-note {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--wab-bg-blue);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--wab-text-soft);
  line-height: 1.55;
  text-align: center;
}

.wab-teachers-note strong { color: var(--wab-navy); font-weight: 600; }

.wab-teachers-note a {
  color: var(--wab-orange-text);
  text-decoration: underline;
  font-weight: 500;
}

/* ═════════════════════════════════════════
   REASONS (card con numero grande)
   ═════════════════════════════════════════ */

.wab-reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.wab-reason {
  background: white;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px -6px rgba(29, 53, 87, 0.1);
  border: 1px solid var(--wab-border);
}

.wab-reason-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--wab-orange);
  line-height: 1;
  margin-bottom: 12px;
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
}

.wab-reason h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--wab-navy);
  margin: 0 0 10px;
  line-height: 1.3;
}

.wab-reason p {
  font-size: 14.5px;
  color: var(--wab-text-soft);
  margin: 0;
  line-height: 1.6;
}

/* ═════════════════════════════════════════
   TESTIMONIANZE
   ═════════════════════════════════════════ */

.wab-testimonials-intro {
  font-size: 14.5px;
  color: var(--wab-text-soft);
  margin-bottom: 24px;
}

.wab-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.wab-quote {
  background: white;
  border-radius: 12px;
  padding: 22px 20px 20px;
  box-shadow: 0 4px 18px -6px rgba(29, 53, 87, 0.1);
  position: relative;
}

.wab-quote-mark {
  color: var(--wab-orange);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: Georgia, serif;
}

.wab-quote-text {
  font-size: 14.5px;
  color: var(--wab-text);
  line-height: 1.65;
  font-style: italic;
  margin: 0;
}

/* ═════════════════════════════════════════
   FAQ
   ═════════════════════════════════════════ */

.wab-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.wab-faq-item {
  background: white;
  border: 1px solid var(--wab-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.wab-faq-item[open] {
  border-color: var(--wab-orange);
  box-shadow: 0 4px 14px -6px rgba(232, 101, 44, 0.2);
}

.wab-faq-item summary {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wab-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  line-height: 1.35;
}

.wab-faq-item summary::-webkit-details-marker { display: none; }

.wab-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wab-orange-soft);
  color: var(--wab-orange-text);
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s ease;
}

.wab-faq-item[open] summary::after {
  content: '−';
  background: var(--wab-orange);
  color: white;
}

.wab-faq-answer {
  padding: 0 18px 18px;
  font-size: 14.5px;
  color: var(--wab-text-soft);
  line-height: 1.65;
}

.wab-faq-answer strong { color: var(--wab-navy); font-weight: 600; }

/* ═════════════════════════════════════════
   CONTATTI (pill-button con icone)
   ═════════════════════════════════════════ */

.wab-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.wab-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: white;
  border: 1.5px solid var(--wab-border);
  border-radius: 100px;
  color: var(--wab-navy);
  text-decoration: none !important;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wab-contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.wab-contact-wa { border-color: #25D366; color: #128C4A; }

.wab-contact-wa:hover,
.wab-contact-wa:focus {
  background: #25D366;
  color: white !important;
  border-color: #25D366;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgba(37, 211, 102, 0.4);
}

.wab-contact-mail { border-color: var(--wab-orange); color: var(--wab-orange-text); }

.wab-contact-mail:hover,
.wab-contact-mail:focus {
  background: var(--wab-orange);
  color: white !important;
  border-color: var(--wab-orange);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgba(232, 101, 44, 0.4);
}

/* ═════════════════════════════════════════
   LOCATION (indirizzo + CTA)
   ═════════════════════════════════════════ */

.wab-location-card {
  margin-top: 26px;
  background: white;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 8px 28px -10px rgba(29, 53, 87, 0.15);
  border: 1px solid var(--wab-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.wab-location-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: var(--wab-orange-soft);
  border-radius: 62% 38% 55% 45% / 58% 52% 48% 42%;
  z-index: 0;
}

.wab-location-pin {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  background: var(--wab-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 16px -4px rgba(232, 101, 44, 0.4);
  margin-bottom: 6px;
}

.wab-location-name {
  position: relative;
  z-index: 1;
  font-size: 19px;
  font-weight: 700;
  color: var(--wab-navy);
  margin: 0;
  line-height: 1.3;
}

.wab-location-address {
  position: relative;
  z-index: 1;
  font-size: 15.5px;
  color: var(--wab-text-soft);
  line-height: 1.55;
  margin: 0;
}

.wab-location-address strong {
  color: var(--wab-navy);
  font-weight: 600;
  font-size: 17px;
  display: block;
  margin-bottom: 2px;
}

.wab-location-actions {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  width: 100%;
  max-width: 320px;
}

.wab-location-actions .wab-btn { width: 100%; max-width: none; }

/* ═════════════════════════════════════════
   CTA FINALE (navy con scoop top)
   ═════════════════════════════════════════ */

.wab-final {
  background: var(--wab-navy);
  color: white;
  padding: 72px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wab-final::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -10%;
  right: -10%;
  height: 50px;
  background: white;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 1;
}

/* quando la sezione precedente è alt, lo scoop deve essere azzurro */
.wab-final.wab-final-after-alt::before { background: var(--wab-bg-blue); }

.wab-final .wab-dots { color: #F8AA7E; bottom: 30px; right: -30px; }

.wab-final-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.wab-seats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.wab-seats::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--wab-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.wab-final h2 {
  font-size: 30px;
  font-weight: 700;
  color: white;
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.wab-final-summary {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
  line-height: 1.6;
}

.wab-final-summary strong { color: white; font-weight: 600; }

.wab-final .wab-btn {
  background: var(--wab-orange);
  color: white !important;
  box-shadow: 0 10px 24px -6px rgba(232, 101, 44, 0.5);
}

.wab-final .wab-btn:hover,
.wab-final .wab-btn:focus {
  background: white;
  color: var(--wab-orange-text) !important;
}

.wab-payment-box {
  margin: 28px auto 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: left;
  max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.wab-payment-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(232, 101, 44, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wab-orange);
}

.wab-payment-box h3 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px;
}

.wab-payment-box p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.55;
}

/* ═════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════ */

.site-footer {
  background: var(--wab-navy-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 20px 28px;
  font-size: 13.5px;
  line-height: 1.7;
}

.site-footer .footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.site-footer img { height: 36px; width: auto; margin-bottom: 14px; }

.site-footer h3 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

.site-footer a { color: #F8AA7E; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  margin-top: 4px;
  font-size: 12px;
}

/* ═════════════════════════════════════════
   STICKY CTA MOBILE
   ═════════════════════════════════════════ */

.wab-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 10px 14px;
  box-shadow: 0 -4px 20px rgba(29, 53, 87, 0.1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--wab-border);
}

.wab-sticky-info { flex: 1; min-width: 0; }

.wab-sticky-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--wab-navy);
  line-height: 1.1;
}

.wab-sticky-seats {
  font-size: 11.5px;
  color: var(--wab-text-soft);
  font-weight: 500;
  margin-top: 2px;
}

.wab-sticky-price,
.wab-sticky-seats {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* WhatsApp è l’alternativa per chi preferisce chiedere prima di iscriversi:
   in outline, perché il pieno arancione resta l’unico invito primario. */
.wab-sticky-wa {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #25D366;
  border-radius: 50%;
  background: white;
  color: #128C4A;
}

.wab-sticky-wa svg { width: 22px; height: 22px; }

.wab-sticky-wa:hover,
.wab-sticky-wa:focus {
  background: #128C4A;
  color: white;
  border-color: #128C4A;
}

.wab-sticky .wab-btn {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  padding: 11px 16px;
  min-height: 44px;
  box-shadow: 0 4px 12px -2px rgba(232, 101, 44, 0.35);
}

/* ═════════════════════════════════════════
   MODALE DI ISCRIZIONE
   ═════════════════════════════════════════ */

.wab-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 20px max(20px, env(safe-area-inset-bottom));
  background: rgba(21, 41, 69, 0.78);
  font-family: 'Poppins', -apple-system, sans-serif;
}

.wab-modal.is-open { display: flex; animation: wab-fade-in 0.25s ease; }

.wab-modal-dialog {
  background: white;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  margin: 20px auto auto;
  box-shadow: 0 20px 60px -10px rgba(29, 53, 87, 0.35);
  animation: wab-slide-up 0.3s ease;
  overflow: hidden;
}

.wab-modal-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--wab-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: linear-gradient(to bottom, #F9FBFD, white);
}

.wab-modal-header-text h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  color: var(--wab-navy);
  line-height: 1.25;
}

.wab-modal-header-text p {
  margin: 0;
  font-size: 12.5px;
  color: var(--wab-text-soft);
  font-weight: 500;
}

.wab-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wab-bg-blue);
  border: none;
  color: var(--wab-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.wab-modal-close:hover {
  background: var(--wab-orange-soft);
  color: var(--wab-orange);
  transform: rotate(90deg);
}

.wab-modal-body {
  padding: 22px;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.wab-form-field { margin-bottom: 14px; }

.wab-form-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wab-navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.wab-form-field .wab-req { color: var(--wab-orange-text); margin-left: 2px; }

/* Aiuto sul formato atteso. Sta sotto l'etichetta e non dentro il campo: così
   non sparisce proprio mentre si scrive e non si confonde con un valore già
   inserito, che è il difetto dei placeholder usati come istruzioni. */
.wab-form-field .wab-form-hint {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--wab-text-soft);
  margin: -3px 0 6px;
  line-height: 1.35;
}

.wab-form-field input[type="text"],
.wab-form-field input[type="tel"],
.wab-form-field input[type="email"],
.wab-form-field select {
  width: 100%;
  padding: 11px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--wab-text);
  background: white;
  border: 1.5px solid var(--wab-border);
  border-radius: 10px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.wab-form-field input:focus,
.wab-form-field select:focus {
  outline: none;
  border-color: var(--wab-orange);
  box-shadow: 0 0 0 3px rgba(232, 101, 44, 0.14);
}

/* Rosso solo dopo che l'utente ha davvero sbagliato: :user-invalid scatta a
   interazione avvenuta. La versione precedente si appoggiava a
   :placeholder-shown per capire se il campo era stato toccato, e senza
   attributo placeholder segnerebbe in rosso tutti i campi vuoti all'apertura. */
.wab-form-field input:user-invalid { border-color: #E74C3C; }

.wab-form-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231D3557' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.wab-form-field-cf input { text-transform: uppercase; letter-spacing: 0.04em; }

.wab-form-field-hidden { display: none; }
.wab-form-field-hidden.is-visible { display: block; }

/* Scelta del metodo di pagamento: carta (Stripe) oppure bonifico bancario */
.wab-form-pagamento {
  border: none;
  padding: 0;
  margin: 18px 0 4px;
}

.wab-form-pagamento legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--wab-navy);
  margin-bottom: 8px;
  padding: 0;
}

.wab-form-pagamento .wab-req { color: var(--wab-orange-text); margin-left: 2px; }

.wab-form-radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1.5px solid var(--wab-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wab-form-radio:hover { border-color: rgba(232, 101, 44, 0.4); }

.wab-form-radio:has(input:checked) {
  border-color: var(--wab-orange);
  background: var(--wab-orange-soft);
}

.wab-form-radio input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--wab-orange);
  margin-top: 1px;
  cursor: pointer;
}

.wab-form-radio strong {
  display: block;
  font-size: 13.5px;
  color: var(--wab-navy);
  line-height: 1.3;
}

.wab-form-radio em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--wab-text-soft);
  line-height: 1.4;
  margin-top: 2px;
}

.wab-form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--wab-text-soft);
  line-height: 1.5;
  margin: 8px 0 16px;
  cursor: pointer;
}

.wab-form-checkbox input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--wab-orange);
  margin-top: 1px;
  cursor: pointer;
}

.wab-form-checkbox span { padding-top: 1px; }

.wab-form-checkbox a {
  color: var(--wab-orange-text);
  text-decoration: underline;
  font-weight: 500;
}

.wab-form-submit { width: 100%; margin: 0; }

.wab-form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none !important;
}

.wab-form-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--wab-text-soft);
  margin: 12px 0 0;
}

/* Modulo in due passi. Il primo chiede solo chi sei e come paghi; il secondo,
   che vede soltanto chi sceglie il bonifico, i dati per fattura e attestato. */
.wab-form-passo[hidden] { display: none; }

.wab-form-passo-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wab-orange-text);
  margin: 0 0 12px;
}

.wab-form-passo-num[hidden] { display: none; }

.wab-form-passo-intro {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--wab-text-soft);
  background: var(--wab-bg-blue);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

/* Uscita di servizio dal secondo passo: chi la usa ha già l'iscrizione salvata
   e ritrova lo stesso modulo nel link che gli arriva via email. Deve vedersi,
   ma non competere con il pulsante che completa. */
.wab-form-salta {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 6px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--wab-text-soft);
  text-decoration: underline;
  cursor: pointer;
}

.wab-form-salta:hover { color: var(--wab-navy); }

.wab-form-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  font-size: 13px;
  color: #991B1B;
  line-height: 1.5;
  display: none;
}

.wab-form-error.is-visible { display: block; }

.wab-form-error a {
  color: #991B1B;
  font-weight: 600;
  text-decoration: underline;
}

/* Honeypot: fuori schermo, invisibile all'utente ma accessibile ai bot */
.wab-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ═════════════════════════════════════════
   PAGINE ESITO (grazie / annullato)
   ═════════════════════════════════════════ */

/* Le pagine di esito hanno poco contenuto: su schermi alti finivano prima del
   bordo inferiore della finestra e sotto al footer restava scoperta una fascia
   bianca, il fondo del body. Il main si prende lo spazio che avanza e il
   footer resta l'ultima cosa che si vede, qualunque sia l'altezza. */
body.pagina-esito {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.pagina-esito .wab-esito { flex: 1; }

.wab-esito {
  background: var(--wab-navy);
  color: white;
  min-height: 70vh;
  display: flex;
  /* In colonna perché sotto il messaggio può comparire il riquadro che chiede
     i dati per fattura e attestato: in riga finirebbero affiancati. */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.wab-esito .wab-dots { color: #F8AA7E; top: 120px; right: -30px; }

.wab-esito-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.wab-esito-azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Riquadro che chiede i dati per fattura e attestato dopo il pagamento, sia in
   fondo a grazie.html sia da solo su completa.html. Fondo bianco perché
   contiene un modulo: i campi sono già disegnati per stare sul chiaro, e sul
   navy della pagina il riquadro si legge come una cosa a sé. */
.wab-completa-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: #fff;
  color: var(--wab-text);
  text-align: left;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.wab-completa-box[hidden] { display: none; }

.wab-completa-box h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--wab-navy);
  margin: 0 0 8px;
}

/* Doppia classe non per vezzo: il riquadro vive dentro .wab-esito, che dipinge
   di bianco i propri paragrafi e di arancio chiaro i propri link per stare sul
   navy. Qui il fondo è bianco, e `.wab-completa-intro` da sola perde il
   confronto con `.wab-esito p` — testo bianco su bianco, invisibile. */
.wab-completa-box .wab-completa-intro {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--wab-text-soft);
  margin: 0 0 18px;
}

.wab-completa-box .wab-completa-intro a {
  color: var(--wab-orange-text);
  font-weight: 600;
}

.wab-completa-box .wab-form-submit { margin-top: 4px; }

.wab-esito-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  background: var(--wab-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(232, 101, 44, 0.5);
  animation: wab-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wab-esito h1 {
  font-size: 30px;
  font-weight: 700;
  color: white;
  margin: 0 0 12px;
  line-height: 1.2;
}

.wab-esito p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0 0 28px;
}

.wab-esito p a { color: #F8AA7E; }

/* ═════════════════════════════════════════
   ANIMAZIONI E UTILITY
   ═════════════════════════════════════════ */

@keyframes wab-fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes wab-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wab-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

body.wab-modal-open { overflow: hidden; }

.wab-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: wab-spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}

@keyframes wab-spin { to { transform: rotate(360deg); } }

/* ═════════════════════════════════════════
   COOKIE BANNER
   ═════════════════════════════════════════ */

.wab-cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100000;
  background: white;
  border: 1px solid var(--wab-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px -8px rgba(29, 53, 87, 0.3);
  padding: 18px;
  max-width: 480px;
  margin: 0 auto;
  animation: wab-slide-up 0.3s ease;
}

.wab-cookie-banner p {
  font-size: 13px;
  color: var(--wab-text-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}

.wab-cookie-banner a { color: var(--wab-orange-text); font-weight: 500; }

.wab-cookie-actions { display: flex; gap: 10px; }

.wab-cookie-actions .wab-btn {
  flex: 1;
  font-size: 14px;
  padding: 11px 18px;
  min-height: 44px;
}

/* con la sticky CTA mobile, il banner sta sopra di essa */
body.has-sticky .wab-cookie-banner { bottom: 86px; }
@media (min-width: 768px) {
  body.has-sticky .wab-cookie-banner { bottom: 16px; }
  .wab-cookie-banner { left: auto; right: 20px; bottom: 16px; }
}

/* ═════════════════════════════════════════
   DESKTOP (>= 768px)
   ═════════════════════════════════════════ */

@media (min-width: 768px) {
  body.has-sticky .site-footer { padding-bottom: 28px; }  /* qui la barra non c'è */

  .wab-sticky { display: none; }

  .wab-hero { padding: 160px 24px 110px; }
  .wab-hero h1 { font-size: 58px; }

  .wab-hero-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 560px;
    gap: 16px;
    text-align: center;
  }
  .wab-hero-stat-num { font-size: 30px; }
  .wab-hero-sub { font-size: 18px; }
  .wab-hero-meta { font-size: 14px; gap: 10px 22px; }
  .wab-hero::after { height: 80px; }

  .wab-section { padding: 84px 24px; }
  .wab-section-alt .wab-section-inner { padding: 84px 24px; }

  .wab-section h2,
  .wab-section-alt h2 { font-size: 36px; }

  .wab-courses { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Con una card sola due colonne lascerebbero mezza riga vuota: la card
     occupa tutta la larghezza. Non centrata a larghezza ridotta, altrimenti
     sarebbe l'unico elemento della sezione a non partire dal margine
     sinistro, disallineato dal titolo sopra e dalla fascia sotto. */
  .wab-courses:has(> :only-child) { grid-template-columns: 1fr; }

  .wab-avvisami { padding: 30px 28px; }
  .wab-avvisami-riga { grid-template-columns: 1fr 1fr; gap: 16px; }
  .wab-avvisami-btn { width: auto; min-width: 220px; }

  .wab-benefits { grid-template-columns: 1fr 1fr; gap: 22px 28px; }

  .wab-program-list { grid-template-columns: 1fr 1fr; gap: 10px 14px; }

  /* Specchietto: torna la tabella a tre colonne, con la tappa a sinistra. */
  .wab-confronto tr { grid-template-columns: 1.05fr 1.3fr 1.05fr; }
  .wab-confronto thead .wab-confronto-tappa { display: block; }
  .wab-confronto thead th { padding: 14px 18px 12px; }
  .wab-confronto tbody th {
    grid-column: auto;
    padding: 16px 18px;
    font-size: 14.5px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.4;
  }
  .wab-confronto td { padding: 16px 18px 16px 44px; font-size: 14.5px; }
  .wab-confronto td::before { left: 18px; top: 18px; }
  .wab-tirocinio-nota { font-size: 14px; }

  .wab-teachers { grid-template-columns: 1fr 1fr; gap: 40px; }

  .wab-teacher {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 20px;
  }

  .wab-teacher-photo { width: 120px; height: 120px; }

  .wab-reasons { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .wab-location-card { padding: 40px 32px 36px; gap: 16px; }
  .wab-location-name { font-size: 22px; }
  .wab-location-address { font-size: 16px; }
  .wab-location-address strong { font-size: 19px; }

  .wab-quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .wab-final { padding: 110px 24px 90px; }
  .wab-final::before { height: 70px; }
  .wab-final h2 { font-size: 42px; }

  .wab-esito h1 { font-size: 40px; }

  .site-footer .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .site-footer .copyright { grid-column: 1 / -1; }

  .wab-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }

  .wab-form-row-2 .wab-form-field { margin-bottom: 0; }

  .wab-modal {
    background: rgba(21, 41, 69, 0.65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}
