/* ==========================================================================
   OGNISSANTI · SPA & PISCINA — Landing "I percorsi di settembre"
   Tipografia: Cormorant Garamond per i titoli (corsivo come accento),
   Jost per i testi. Palette salvia + blu profondo dai materiali social.
   Nota: il Cormorant ha aste sottili — i titoli usano peso 600 e corpi
   leggermente maggiorati per mantenere presenza e leggibilità.
   ========================================================================== */

/*
@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('../assets/fonts/NeueHaasGroteskText-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
*/

:root {
  --sage: #B5C4C9;
  --sage-pale: #E9EFF0;
  --cream: #F6F4EF;

  --navy: #0C1B3A;
  --blue-deep: #10265E;
  --blue: #1B3F8F;

  --ink: #0C1B3A;
  --ink-soft: #3F4F63;
  --ink-faint: #6D7E8D;
  --line: #DFE5E7;
  --gold: #9A7F45;
  --surface: #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-text: 'Jost', 'Neue Haas Grotesk Text', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--navy); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
em { font-style: italic; }

/* Impedisce che il contenuto interno "allarghi" le celle di grid/flex
   oltre lo spazio disponibile: causa più comune di scroll orizzontale
   indesiderato su mobile, specialmente con righe scorrevoli o testo
   non spezzabile. */
.hero-text, .hero-visual,
.package, .how-row,
.footer-brand, .footer-col,
.final-card, .final-cta-media,
.field, .slots-copy, .slots-band,
.mid-cta, .book-inner {
  min-width: 0;
}

/* --- Elementi ricorrenti ------------------------------------------------------ */

.pill-label {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.pill-label.on-dark { border-color: rgba(255,255,255,0.35); color: var(--sage); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; margin-bottom: 44px;
  scroll-margin-top: 104px;
}

.section-head h2 { font-size: clamp(2.1rem, 3.6vw, 2.9rem); margin: 0; line-height: 1.14; }
.section-head .head-copy { max-width: 44ch; }
.section-head p.sub { color: var(--ink-soft); font-size: 0.98rem; margin: 12px 0 0; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--cream); border: none;
  padding: 15px 32px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 27, 58, 0.08);
}

.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { background: #FFFFFF; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line);
  padding: 14px 30px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline:hover { border-color: var(--navy); background: rgba(12,27,58,0.03); }

/* --- Placeholder immagini ------------------------------------------------------ */

.img-placeholder {
  border: 1px dashed rgba(63, 79, 99, 0.5);
  background: var(--sage-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; width: 100%;
}

.img-placeholder .ph-title { font-size: 0.85rem; color: var(--blue-deep); font-weight: 500; margin: 0 0 4px; }
.img-placeholder .ph-spec { font-size: 0.76rem; color: var(--ink-faint); margin: 0; }

.img-placeholder.on-dark { border-color: rgba(255,255,255,0.42); background: rgba(255,255,255,0.08); }
.img-placeholder.on-dark .ph-title { color: #FFFFFF; }
.img-placeholder.on-dark .ph-spec { color: rgba(255,255,255,0.72); }

/* --- Barra promo --------------------------------------------------------------- */

.promo-bar {
  background: var(--navy); color: #FFFFFF;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  text-align: center; padding: 12px 22px;
}
.promo-bar strong { font-weight: 600; color: var(--sage); }
.promo-short { display: none; }

/* --- Header -------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--navy); border: 1px solid var(--navy);
  padding: 11px 26px; border-radius: 999px;
  color: var(--cream) !important; font-size: 0.8rem !important;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--blue); border-color: var(--blue); }

/* --- WhatsApp: pulsante secondario (header e form) ------------------------------ */

.nav-wa {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 10px 18px; border-radius: 999px;
  color: var(--ink) !important; font-size: 0.8rem !important;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-right: -14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-wa:hover { border-color: #25D366; background: rgba(37, 211, 102, 0.06); }
.nav-wa svg, .btn-wa svg { width: 18px; height: 18px; fill: #25D366; flex-shrink: 0; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 14px 28px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-wa:hover { border-color: #25D366; background: rgba(37, 211, 102, 0.06); }

/* --- Hero ---------------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue-deep) 55%, var(--blue) 100%);
  color: #FFFFFF; padding: 92px 0 100px;
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 52px; align-items: center; }

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

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem); font-weight: 600;
  line-height: 1.14; margin: 0 auto 22px; max-width: 26ch; color: #FFFFFF;
}

.hero-lede { font-size: 1.06rem; color: rgba(255,255,255,0.9); max-width: 44ch; margin: 0 auto 34px; }

.feeling-label {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 12px;
}

.feeling-select { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }

.feeling-pill {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(211,222,225,0.55);
  border-radius: 999px; padding: 11px 20px;
  font-size: 0.87rem; color: #FFFFFF; cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feeling-pill:hover, .feeling-pill.active { border-color: var(--sage); background: rgba(181,196,201,0.24); }
.feeling-pill .label-short { display: none; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

.hero-proof { font-size: 0.88rem; color: rgba(255,255,255,0.82); margin: 0; }
.hero-proof strong { color: var(--sage); font-weight: 600; }

.hero-visual { position: relative; }

.hero-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  background: var(--blue-deep);
}

/* velo scuro sul bordo inferiore: stacca il video dal gradiente della sezione */
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(to top, rgba(12, 27, 58, 0.35), rgba(12, 27, 58, 0) 45%);
  pointer-events: none;
}

/* --- Pacchetti ------------------------------------------------------------------ */

.packages { padding: 96px 0; }

/* grid-template-rows condivise tra le 3 card: ogni blocco (immagine, titolo,
   sottotitolo, trattamenti, benefici, omaggio, prezzo, cta) si allinea alla
   stessa altezza tra i pacchetti tramite subgrid, indipendentemente dalla
   lunghezza dei singoli testi */
.packages-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(11, auto);
  column-gap: 26px; row-gap: 0;
}

.package {
  display: grid; grid-template-rows: subgrid; grid-row: span 11;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 18px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.package:hover {
  border-color: var(--sage);
  box-shadow: 0 16px 40px rgba(12,27,58,0.1);
  transform: translateY(-3px);
}

.package.featured { border-color: var(--blue); border-width: 2px; padding: 17px; }

.package-flag {
  position: absolute; top: 0; right: 26px; transform: translateY(-50%);
  background: var(--blue-deep); color: #FFFFFF;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 999px;
}

/* immagine grande ma non ritagliata: resta nel suo rapporto nativo 4:5,
   con un piccolo margine laterale invece di riempire tutta la card */
.package-media { position: relative; width: 82%; margin: 0 auto 10px; }
.package-media .img-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.package-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); display: block;
}

.gift-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: #FFFFFF;
  border-radius: 999px; padding: 8px 18px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}

.package .tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 4px;
}

.package h3 { font-size: 1.9rem; margin: 0 0 4px; line-height: 1.05; }
.package .for-whom { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.3; margin: 0 0 10px; }
.package .tag, .package h3, .package .for-whom { text-align: center; }
.treatment-list {
  list-style: none; margin: 0 0 10px; padding: 0;
}

.treatment-list li { position: relative; }

.treatment-list li + li { margin-top: 15px; }

.treatment-list li + li::before {
  content: "+";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--gold); line-height: 1;
}

.treatment-list .t-name {
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  line-height: 1.25; margin: 0; text-align: center;
}

.treatment-list .t-detail {
  display: block; font-size: 0.78rem; font-weight: 400; color: var(--ink-soft);
  line-height: 1.25; margin-top: 1px;
}

.benefits {
  margin: 0 0 10px;
}

.benefits .b-label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 4px;
}

.benefits ul { list-style: none; margin: 0; padding: 0; }

.benefits li {
  position: relative; padding-left: 14px; margin-bottom: 2px;
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.25;
}

.benefits li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 999px; background: var(--gold);
}

/* box "in omaggio" compatto su un'unica riga: etichetta + contenuto affiancati */
.bonus-box {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px;
  background: var(--sage-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0;
  padding: 6px 12px; margin: 0 0 5px;
}

/* nota di servizio sotto il box omaggio: presente in tutte e tre le card
   perché ogni riga del subgrid deve esistere in ogni pacchetto, altrimenti
   i blocchi successivi si disallineano tra una card e l'altra */
.bonus-note {
  font-size: 0.74rem; line-height: 1.25; color: var(--ink-faint);
  margin: 0 0 10px;
}

.bonus-box .bonus-label {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.2; color: var(--gold); margin: 0;
}

.bonus-box .bonus-item {
  font-size: 0.82rem; font-weight: 500; line-height: 1.2; color: var(--blue-deep); margin: 0;
}

.price-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid var(--line); margin-bottom: 2px;
}
.price-old { font-size: 0.92rem; font-weight: 500; color: var(--ink-faint); text-decoration: line-through; }
.price-new { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; color: var(--navy); line-height: 1; }
.price-unit { font-size: 0.78rem; color: var(--ink-soft); }

.price-note { font-size: 0.78rem; font-weight: 500; line-height: 1.2; color: var(--ink-soft); margin: 0 0 8px; }

.package-cta {
  width: 100%; background: var(--navy); color: var(--cream); border: none;
  padding: 12px 22px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  cursor: pointer; align-self: end;
  transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
.package-cta:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 27, 58, 0.08);
}

/* --- Banda disponibilità settimanale ------------------------------------------------ */

.slots-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  background: var(--sage-pale);
  border-left: 3px solid var(--gold);
  padding: 26px 32px;
  margin-bottom: 96px;
}

.slots-copy {
  font-size: 1.05rem; color: var(--ink); margin: 0;
}

.slots-copy strong { font-weight: 600; color: var(--gold); }

.slots-band .btn-primary { flex-shrink: 0; }

/* --- Come funziona: righe editoriali ---------------------------------------------- */

.how { padding: 0 0 96px; }

.how-rows {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.how-row {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; align-items: start;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line);
}

.how-row:last-child { border-right: none; padding-right: 0; }
.how-row:not(:first-child) { padding-left: 28px; }

.how-row .n {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--sage);
  line-height: 0.9;
}

.how-row h4 { font-family: var(--font-text); font-size: 0.98rem; font-weight: 600; margin: 0 0 4px; }
.how-row p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* --- Testimonianze ------------------------------------------------------------------ */

.voices { padding: 0 0 96px; }

.voices-head { text-align: center; max-width: 46ch; margin: 0 auto 44px; }
.voices-head h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin: 0; line-height: 1.16; }

.voices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.voice {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 28px 26px;
  display: flex; flex-direction: column;
}

.voice .quote-mark {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 600;
  color: var(--gold); line-height: 0.6; margin: 0 0 18px; height: 24px;
}

.voice .voice-text {
  font-size: 0.96rem; color: var(--ink-soft); line-height: 1.6;
  margin: 0 0 24px; flex-grow: 1;
}

.voice .voice-author { display: flex; flex-direction: column; gap: 2px; }
.voice .voice-author .name { font-size: 0.9rem; font-weight: 600; }
.voice .voice-author .meta { font-size: 0.8rem; color: var(--ink-faint); }

/* --- Banda CTA finale ---------------------------------------------------------------- */

.final-cta { padding: 0 0 96px; }

.final-cta-inner {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch;
}

.final-cta-inner .img-placeholder { border-radius: var(--radius); min-height: 300px; }

.final-cta-media {
  width: 100%; height: 100%; min-height: 300px;
  object-fit: cover; border-radius: var(--radius); display: block;
}

.final-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 44px 42px; display: flex; flex-direction: column; justify-content: center;
}

.final-card .pill-label { align-self: flex-start; }
.final-card h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 0 0 14px; line-height: 1.16; }
.final-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 28px; max-width: 40ch; }
.final-card p strong { color: var(--gold); font-weight: 600; }

.final-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6em;
  color: var(--gold);
  line-height: 1;
  padding: 0 2px;
}
.final-card .final-copy-short { display: none; }
.final-card .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Form ------------------------------------------------------------------------------ */

.book { padding: 0 0 100px; }

.book-inner {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 56px 56px 60px;
  max-width: 880px; margin: 0 auto;
}

.book-head { text-align: center; max-width: 52ch; margin: 0 auto 40px; }
.book-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 0 0 12px; }
.book-head p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

.book-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 28px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
}

.field input, .field select {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); padding: 14px 16px;
  font-size: 0.97rem; color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus, .field select:focus { border-color: var(--blue); background: var(--surface); outline: none; }

.field .error { font-size: 0.78rem; font-weight: 500; color: var(--gold); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--gold); }
.field.invalid .error { display: block; }

.book-submit {
  background: var(--navy); color: var(--cream); border: none;
  padding: 18px 40px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  cursor: pointer; width: fit-content; align-self: center;
  transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
.book-submit:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 27, 58, 0.08);
}

.book-note { font-size: 0.83rem; color: var(--ink-faint); }

.security-microcopy {
  font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px;
}

.book-submit:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

.submit-error { display: none; font-size: 0.85rem; font-weight: 500; color: var(--gold); margin: 10px 0 0; }
.submit-error.is-visible { display: block; }

.wa-alt {
  align-items: center; text-align: center;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.wa-alt p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

.book-success {
  display: none; padding: 22px; background: var(--sage-pale);
  color: var(--blue-deep); border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500;
}

/* --- Footer esteso ---------------------------------------------------------------------- */

.site-footer { background: var(--navy); color: rgba(255,255,255,0.78); padding: 64px 0 28px; }

.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-logo { height: 52px; width: auto; margin: 0 0 16px; }
.footer-brand p { font-size: 0.87rem; margin: 0; max-width: 34ch; }

.footer-col h5 {
  font-family: var(--font-text); color: #FFFFFF;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: 0.87rem; margin-bottom: 7px; }
.footer-col a { text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.55);
}
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #FFFFFF; }

/* --- Modale di prenotazione (solo mobile: vedi hard safety-net più sotto) ----------------- */

.booking-modal {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

.booking-modal.is-open { display: flex; }

.booking-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 27, 58, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.25s ease;
}

.booking-modal-panel {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 32px 24px 40px;
  animation: modalSlideUp 0.3s ease;
}

.booking-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--sage-pale); color: var(--ink);
  border: none; font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-modal-backdrop, .booking-modal-panel { animation: none; }
}

body.modal-open { overflow: hidden; }

/* --- Barra CTA mobile --------------------------------------------------------------------- */

.sticky-cta { display: none; }

@media (min-width: 981px) {
  .section-head h2,
  .voices-head h2,
  .book-head h2,
  .final-card h2 { white-space: nowrap; }
}

/* --- Responsive ---------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .packages-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .voices-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-visual { order: -1; }
  .hero-media { aspect-ratio: 4 / 5; max-height: 460px; }
  .final-cta-inner { grid-template-columns: minmax(0, 1fr); }
  .final-cta-inner .img-placeholder { min-height: 220px; }
  .final-cta-media { min-height: 220px; }
  .final-card { padding: 34px 28px; }
  .book-inner { padding: 44px 32px 48px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .how-rows { grid-template-columns: minmax(0, 1fr); }
  .how-row { border-right: none; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .how-row:last-child { border-bottom: none; }
  .how-row:not(:first-child) { padding-left: 0; }

  .slots-band { gap: 20px; padding: 24px 28px; }
}

/* Rete di sicurezza: il modale è pensato solo per mobile. Anche in caso di
   bug lato JS, sopra i 640px resta comunque impossibile da visualizzare. */
@media (min-width: 641px) {
  .booking-modal { display: none !important; }
}

@media (max-width: 640px) {

  /* --- respiro laterale e ritmo verticale --- */
  .container { padding: 0 20px; }

  /* --- barra promo: due righe leggibili invece di un blocco compresso --- */
  .promo-bar {
    font-size: 0.7rem; letter-spacing: 0.01em;
    padding: 10px 16px; line-height: 1.4;
    white-space: nowrap; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .promo-bar::-webkit-scrollbar { display: none; }
  .promo-full { display: none; }
  .promo-short { display: inline; }

  /* --- header più basso --- */
  .site-header .container { height: 64px; }
  #come-funziona { scroll-margin-top: 84px; }
  .site-nav { gap: 12px; }
  .site-nav .nav-links { display: none; }
  .nav-cta { padding: 10px 18px; font-size: 0.72rem !important; }
  .nav-wa { width: 40px; height: 40px; padding: 0; justify-content: center; margin-right: 0; }
  .nav-wa-label { display: none; }
  .btn-wa { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.76rem; }
  .brand img { height: 36px; }

  /* --- hero: foto come sfondo con velo scuro (opzione A), solo mobile --- */
  .hero { padding: 40px 0 36px; position: relative; overflow: hidden; }
  .hero-grid { gap: 26px; }
  .hero h1 { font-size: 2.05rem; line-height: 1.18; margin: 0 0 16px; max-width: none; }
  .hero-lede { font-size: 0.97rem; margin: 0 0 24px; max-width: none; }

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

  .hero-visual {
    position: absolute; inset: 0; z-index: 0;
    margin: 0; border-radius: 0;
  }
  .hero-media {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: auto; max-height: none;
    object-fit: cover; border-radius: 0;
  }
  .hero-visual::after {
    border-radius: 0;
    background: linear-gradient(180deg,
      rgba(12,27,58,.35) 0%,
      rgba(12,27,58,.55) 40%,
      rgba(12,27,58,.94) 85%);
  }

  .pill-label { margin-bottom: 16px; padding: 5px 14px; font-size: 0.66rem; }

  .feeling-label { font-size: 0.7rem; margin-bottom: 10px; }

  .feeling-select {
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 0 24px;
    padding: 0;
  }

  .feeling-pill {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 11px 8px;
    font-size: 0.76rem;
    font-weight: 500;
    text-align: center;
    background: rgba(12, 27, 58, 0.55);
    border-color: rgba(181, 196, 201, 0.75);
    box-shadow: 0 4px 14px rgba(12, 27, 58, 0.25);
  }

  .feeling-pill .label-full { display: none; }
  .feeling-pill .label-short { display: inline; }

  .hero-actions { margin-bottom: 14px; justify-content: center; }
  .btn-primary { padding: 15px 26px; font-size: 0.78rem; }
  .hero-proof { font-size: 0.83rem; text-align: center; }

  .section-head { flex-direction: column; align-items: center; text-align: center; }
  .section-head .btn-outline { width: 100%; justify-content: center; }

  /* --- pacchetti: carosello orizzontale con sbirciata, solo mobile --- */
  .packages { padding: 52px 0 0; }

  .packages-grid {
    display: flex; flex-wrap: nowrap; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 0 0 6px 10px;
  }
  .packages-grid::-webkit-scrollbar { display: none; }

  .package {
    display: flex; flex-direction: column;
    flex: 0 0 84%;
    scroll-snap-align: start;
    padding: 16px; border-radius: var(--radius);
  }
  .package-cta { margin-top: auto; }
  .package.featured { padding: 15px; }
  .benefits .b-label { text-align: center; }
  .bonus-box { justify-content: center; text-align: center; }
  .bonus-note { text-align: center; }
  .price-row { justify-content: center; }
  .price-note { text-align: center; }
  .package h3 { font-size: 1.7rem; }
  .package-media { width: 82%; }
  .gift-badge { font-size: 0.62rem; padding: 6px 13px; top: 12px; right: 12px; }

  /* il carosello scorrevole "clippa" tutto ciò che esce dai bordi della card:
     il badge non può più sporgere a cavallo del bordo superiore */
  .package-flag {
    top: 14px; right: 14px; left: auto;
    transform: none;
    font-size: 0.6rem; padding: 6px 12px;
  }
  .price-new { font-size: 2.1rem; }
  .package-cta { padding: 12px 18px; font-size: 0.74rem; }

  /* --- testate di sezione --- */
  .section-head { margin-bottom: 26px; gap: 16px; }
  .section-head h2 { font-size: 1.95rem; }
  .btn-outline { padding: 13px 24px; font-size: 0.76rem; }

  /* --- banda disponibilità --- */
  .slots-band {
    flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 22px 20px; margin-bottom: 56px;
  }
  .slots-copy { font-size: 0.97rem; }
  .slots-band .btn-primary { width: 100%; justify-content: center; }

  /* --- come funziona --- */
  .how { padding: 40px 0 56px; }

  /* card minimal invece di righe con divisori edge-to-edge */
  .how-rows {
    display: flex; flex-direction: column; gap: 14px;
    border-top: none; border-bottom: none;
  }
  .how-row {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 20px;
    gap: 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .how-row:not(:first-child) { padding-left: 20px; }
  .how-row:last-child { border-bottom: 1px solid var(--line); }

  .how-row .n {
    width: 34px; height: 34px; border-radius: 999px;
    background: var(--sage-pale); color: var(--blue-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-family: var(--font-display); font-weight: 600;
    line-height: 1;
  }

  /* --- testimonianze --- */
  .voices { padding: 0 0 56px; }
  .voices-head { margin-bottom: 26px; }
  .voices-head h2 { font-size: 1.95rem; }
  .voice { padding: 22px 20px; text-align: center; }
  .voice .voice-author { align-items: center; }

  /* --- banda CTA finale --- */
  .final-cta { padding: 0 0 56px; }
  .final-cta-inner { padding: 18px; gap: 18px; border-radius: var(--radius); }
  .final-cta-inner .img-placeholder { min-height: 170px; }
  .final-cta-media { min-height: 170px; }
  .final-card { padding: 26px 22px; border-radius: var(--radius-sm); text-align: center; }
  .final-card .pill-label { align-self: center; }
  .final-card h2 { font-size: 1.75rem; }
  .final-card .final-copy-full { display: none; }
  .final-card .final-copy-short { display: inline; }

  /* le info sui posti confluiscono nel box finale: la banda separata si nasconde */
  .slots-band { display: none; }
  .final-card p { font-size: 0.92rem; margin-bottom: 22px; }
  .final-card .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .final-card .cta-row a { justify-content: center; }

  /* --- form --- */
  .book { padding: 0 0 64px; }
  .book-form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .field.full { grid-column: auto; }
  .book-submit { width: 100%; justify-content: center; padding: 17px 20px; font-size: 0.78rem; }
  .book-inner { padding: 30px 22px 34px; border-radius: var(--radius); }
  .book-head { margin-bottom: 28px; }
  .book-head h2 { font-size: 1.9rem; }
  .book-head p { font-size: 0.93rem; }
  .book-success { text-align: center; }

  /* iOS Safari fa auto-zoom sui campi con font-size < 16px */
  .field input, .field select { font-size: 16px; }

  /* --- footer --- */
  .site-footer { padding: 44px 0 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: 30px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: center; }
  .footer-bottom .legal { justify-content: center; }

  /* --- barra CTA fissa --- */
  body { padding-bottom: 74px; }

  .sticky-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--navy); color: #FFFFFF;
    padding: 11px 18px; border-radius: var(--radius) var(--radius) 0 0;
  }
  .sticky-cta .sticky-text {
    font-size: 0.76rem; line-height: 1.3;
    min-width: 0; flex: 1 1 auto;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sticky-cta .sticky-text strong {
    color: var(--sage); font-weight: 600; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sticky-cta a {
    flex: 0 0 auto;
    background: var(--cream); color: var(--navy); text-decoration: none;
    padding: 11px 18px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; white-space: nowrap;
  }
}

/* --- schermi molto stretti (iPhone SE e simili) ------------------------------------- */

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.85rem; }
  .feeling-pill { padding: 9px 6px; font-size: 0.7rem; }
  .price-new { font-size: 2.1rem; }
  .slots-number { font-size: 3rem; }
  .sticky-cta .sticky-text { font-size: 0.72rem; }
  .sticky-cta a { padding: 10px 16px; font-size: 0.7rem; }
}
