/* ============================================================
   Dott.ssa Adriana Vallone — Anteprima sito
   Font: Playfair Display (heading), Montserrat (body)
   Palette:
     #8d916e  sage olive — accenti
     #4c4d4a  testo body
     #2d3e5c  blu scuro — footer
     #4b522d  oliva scuro — sezione prenota
     #e2dfda  crema chiaro — bg alt
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --c-bg:        #f7f5f0;
  --c-bg-alt:    #f9fbf8;
  --c-bg-dark:   #B7C2A1;
  --c-bg-deep:   #2d3e5c;

  --c-text:      #4c4d4a;
  --c-text-soft: #6f706d;
  --c-text-mute: #94958f;
  --c-heading:   #2a2c28;

  --c-sage:      #a2a391;
  --c-sage-deep: #8d916e;
  --c-sage-soft: #cccdb9;

  --c-line:      #d9d5cb;
  --c-line-soft: #ece9e1;

  --c-on-dark:        #f3efe6;
  --c-on-dark-soft:   #c8c2b0;
  --c-on-dark-muted:  rgba(243,239,230,.55);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  --ff-head: 'Playfair Display', 'Times New Roman', serif;
  --ff-body: 'Montserrat', system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(40,40,30,.06), 0 2px 8px rgba(40,40,30,.04);
  --shadow-md: 0 8px 24px rgba(45,40,30,.08), 0 2px 6px rgba(45,40,30,.05);
  --shadow-lg: 0 24px 60px rgba(45,40,30,.18), 0 8px 24px rgba(45,40,30,.10);

  --container: 1180px;
  --pad-x: clamp(20px, 4vw, 40px);

  /* altezza header sticky: logo 52px + padding verticale 16+16 */
  --header-h: 84px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* compensa l'header sticky: le ancore non finiscono più nascoste sotto di esso */
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-sage-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-heading); }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; }

/* ---- Container & section rhythm ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }

/* ---- Typography ---- */
.eyebrow {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-sage);
  font-weight: 500;
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--c-sage); display: inline-block;
}
.eyebrow.light { color: var(--c-on-dark-soft); }
.eyebrow.light::before { background: var(--c-on-dark-soft); }

.section-title {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--c-heading);
  margin: 0 0 22px;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--c-sage-deep);
  font-weight: 500;
}

.section-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text-soft);
  max-width: 64ch;
  margin: 0;
  text-wrap: pretty;
}

.section-head { margin-bottom: 60px; max-width: 760px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .section-intro { margin-left: auto; margin-right: auto; }
.section-head.light .section-title { color: var(--c-on-dark); }
.section-head.light .section-title em { color: #d4d6b9; }
.section-head.light .section-intro { color: var(--c-on-dark-soft); }

/* Enfasi parole/frasi chiave nei paragrafi (leggibilità + SEO/AI) — coerente col brand */
.about p strong,
.services p strong,
.process p strong,
.areas p strong,
.faq p strong {
  color: var(--c-heading);
  font-weight: 600;
}
/* sezione "Sedute" su foto scura: enfasi chiara.
   Colore fisso (non var(--c-on-dark)): qui lo sfondo resta la foto verde scura,
   mentre l'override light-sage inverte --c-on-dark in scuro. */
.sessions-text strong { color: #fbfaf6; font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn-primary {
  background: var(--c-bg-dark);
  color: var(--c-on-dark);
  border-color: var(--c-bg-dark);
}
.btn-primary:hover { background: var(--c-heading); border-color: var(--c-heading); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--c-heading);
  border-color: var(--c-line);
}
.btn-ghost:hover { background: var(--c-bg-alt); color: var(--c-heading); }
.btn-light-primary {
  background: var(--c-on-dark);
  color: var(--c-bg-dark);
  border-color: var(--c-on-dark);
}
.btn-light-primary:hover { background: #fff; color: var(--c-heading); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(247,245,240,.96);
  box-shadow: 0 1px 0 var(--c-line-soft);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-logo { height: 52px; width: auto; display: block; object-fit: contain; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; }
.brand-text--logo {
  display: flex; flex-direction: column;
  justify-content: center;
  padding-left: 16px;
  border-left: 1px solid var(--c-line);
  line-height: 1;
}
.brand-name-pf {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--c-heading);
  letter-spacing: -.005em;
  line-height: 1;
}
.brand-name-pf em {
  font-style: italic;
  font-weight: 500;
  color: var(--c-heading);
}
.brand-role-pf {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: var(--c-text-mute);
  letter-spacing: 0.34em;
  margin-top: 6px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--ff-head); font-size: 19px; color: var(--c-heading); font-weight: 500; letter-spacing: -.01em; }
.brand-name em { color: var(--c-sage-deep); font-style: italic; }
.brand-role { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-text-mute); margin-top: 2px; }

.nav-main { display: flex; align-items: center; gap: 6px; }
.nav-main a {
  font-size: 14px; color: var(--c-text); padding: 8px 14px; border-radius: var(--r-pill);
  font-weight: 400;
}
.nav-main a:hover { color: var(--c-heading); background: var(--c-bg-alt); }
.nav-main a.nav-cta {
  margin-left: 8px;
  background: var(--c-bg-dark); color: var(--c-on-dark);
  padding: 10px 18px;
}
.nav-main a.nav-cta:hover { background: var(--c-heading); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--c-heading); transition: transform .25s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  /* overlay sotto l'header: posizionato in modo assoluto così l'apertura
     NON allunga l'header sticky né spinge giù le sezioni — altrimenti le
     ancore del menu calcolerebbero la destinazione su un layout gonfiato
     e dopo la chiusura del menu finirebbero molto più in basso (overshoot). */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-bg);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 var(--pad-x);
  pointer-events: none;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease, padding 0.32s ease;
  box-shadow: 0 8px 24px rgba(45,40,30,.09);
}
.nav-mobile.is-open {
  max-height: 520px;
  opacity: 1;
  padding: 8px var(--pad-x) 24px;
  pointer-events: auto;
}
.nav-mobile a { padding: 12px 8px; color: var(--c-heading); font-size: 16px; border-bottom: 1px solid var(--c-line-soft); }
.nav-mobile a.nav-cta { margin-top: 12px; background: var(--c-bg-dark); color: var(--c-on-dark); border-radius: var(--r-pill); border: 0; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--c-bg);
  /* l'header è sticky (in-flow): qui scontiamo la sua altezza, niente doppio conteggio */
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vh, 52px) 0 clamp(36px, 5vh, 72px);
  position: relative;
  overflow: hidden;
}
/* blobs replace the old ::before pseudo-element */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative; z-index: 1;
}
.hero-copy { max-width: 620px; }
.hero-title {
  font-family: var(--ff-head); font-weight: 500;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--c-heading);
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--c-sage-deep); font-weight: 500; }
.hero-claim {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--c-sage-deep);
  margin: 18px 0 22px;
  max-width: 46ch;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero-claim em { font-style: italic; }
.hero-sub {
  font-size: 18px; line-height: 1.65;
  color: var(--c-text-soft);
  max-width: 52ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--c-heading); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Striscia affiliazioni (sotto l'hero) ───────────────────────── */
.affil {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
  padding: clamp(26px, 5vw, 40px) 0;
}
.affil-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 4vw, 32px);
}
.affil-cap {
  margin: 0;
  max-width: 30ch;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: clamp(15px, 2.3vw, 18px);
  line-height: 1.5;
  color: var(--c-text-soft);
}
.affil-br { display: none; }
.affil-logos {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 40px);
}
.affil-logo {
  display: block;
  width: auto;
  opacity: .9;
  transition: opacity .3s ease, transform .3s ease;
}
.affil-logo--opp    { height: 46px; }
.affil-logo--emdr   { height: 48px; }
.affil-logo--europe { height: 48px; }
.affil-logo:hover { opacity: 1; transform: translateY(-2px); }
.affil-sep {
  width: 1px;
  align-self: stretch;
  min-height: 40px;
  background: var(--c-line);
}

@media (min-width: 760px) {
  .affil-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 44px;
  }
  .affil-cap { max-width: 34ch; }
  .affil-br { display: inline; }
  .affil-logo--opp  { height: 52px; }
  .affil-logo--emdr { height: 54px; }
}

/* portrait */
.hero-portrait { margin: 0; position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 400px;
  margin-left: auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--c-bg-alt);
  z-index: 1;
}
.portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.28);
  transform-origin: 50% 19%;
}
.portrait-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.portrait-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.portrait-placeholder .ph-label {
  position: relative; z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #5a5a4f;
  background: rgba(247,245,240,.92);
  padding: 8px 14px;
  border-radius: 4px;
}
.portrait-tag {
  position: absolute; left: -24px; bottom: 38px;
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  padding: 14px 20px 14px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  max-width: 260px;
}
.portrait-tag .tag-num {
  font-family: var(--ff-head); font-style: italic; font-size: 22px; color: var(--c-sage-deep);
  border-right: 1px solid var(--c-line); padding-right: 14px; line-height: 1;
}
.portrait-tag .tag-txt { font-size: 12.5px; line-height: 1.35; color: var(--c-text); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-text-mute);
  z-index: 1;
}
.hero-scroll svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- Hero background blobs ---- */
.hero-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 {
  width: clamp(420px, 54vw, 820px);
  height: clamp(420px, 54vw, 820px);
  right: -8%;
  bottom: -22%;
  background: radial-gradient(circle at 38% 38%,
    rgba(141,145,110,.13) 0%,
    rgba(141,145,110,.04) 52%,
    transparent 72%);
  border-radius: 56% 44% 68% 32% / 44% 56% 44% 56%;
}
.hero-blob--2 {
  width: clamp(220px, 27vw, 430px);
  height: clamp(220px, 27vw, 430px);
  left: -5%;
  top: 3%;
  background: radial-gradient(circle at 58% 52%,
    rgba(184,155,122,.11) 0%,
    rgba(184,155,122,.03) 52%,
    transparent 72%);
  border-radius: 66% 34% 42% 58% / 55% 45% 65% 35%;
}

/* ---- Hero SVG noise overlay ---- */
.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Decorative quote ---- */
.hero-claim-wrap { position: relative; }
.deco-quote {
  position: absolute;
  top: -32px;
  left: -10px;
  font-family: var(--ff-head);
  font-size: 140px;
  line-height: 1;
  color: rgba(141,145,110,.10);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.hero-claim-wrap .hero-claim { position: relative; z-index: 1; }

/* ---- Portrait ring ---- */
.portrait-ring {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1.5px solid rgba(141,145,110,.17);
  pointer-events: none;
  z-index: 0;
}

/* ---- Portrait badges ---- */
.portrait-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  padding: 12px 18px 12px 14px;
  z-index: 3;
}
.portrait-badge--1 { left: -30px; bottom: 56px; }
.portrait-badge--2 { right: -22px; top: 56px; }
.badge-num {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 21px;
  color: var(--c-sage-deep);
  border-right: 1px solid var(--c-line);
  padding-right: 10px;
  line-height: 1;
  white-space: nowrap;
}
.badge-txt { font-size: 11.5px; line-height: 1.35; color: var(--c-text); white-space: nowrap; }
.portrait-badge svg { color: var(--c-sage-deep); flex-shrink: 0; }

/* ---- Hero title line-break flow ---- */
.hero-title { line-height: 1.08; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--c-bg-alt); }
.about-blocks { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 84px); }
.about-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-block.reversed { grid-template-columns: 1.15fr 1fr; }
.about-block.reversed .ab-img { order: 2; }
.about-block.reversed .ab-body { order: 1; }

.ab-img { position: relative; }
.img-ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(135deg, transparent 47%, rgba(255,255,255,.4) 47%, rgba(255,255,255,.4) 53%, transparent 53%),
    linear-gradient(135deg, transparent 47%, rgba(255,255,255,.4) 47%, rgba(255,255,255,.4) 53%, transparent 53%);
  background-size: 22px 22px;
}
.img-ph-warm { background-color: #c9c3b3; }
.img-ph-sage { background-color: #a8ad8b; }

.ab-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  width: 100%;
  margin: 0;                /* azzera i margini di default del browser su <figure> (causava overflow orizzontale su mobile) */
  background: #c9c3b3;
}
.ab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-ph span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #3a3a30;
  background: rgba(255,255,255,.85);
  padding: 6px 12px;
  border-radius: 4px;
}

.ab-body .block-num {
  font-family: var(--ff-head); font-style: italic;
  font-size: 14px; color: var(--c-sage-deep);
  letter-spacing: 0.1em; margin: 0 0 14px;
}
.ab-body h3 {
  font-family: var(--ff-head); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--c-heading);
  margin: 0 0 16px;
  text-wrap: balance;
}
.ab-body p {
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.72;
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--c-bg-dark); color: var(--c-on-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(243,239,230,.18);
  border-bottom: 1px solid rgba(243,239,230,.18);
}
.stat {
  padding: 40px 28px;
  border-right: 1px solid rgba(243,239,230,.18);
  display: flex; flex-direction: column; gap: 10px;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--ff-head); font-weight: 500;
  font-size: clamp(52px, 6vw, 80px);
  color: var(--c-on-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num sup { font-size: 0.4em; color: var(--c-sage-soft); top: -.6em; margin-left: 4px; }
.stat-num .stat-unit { font-family: var(--ff-body); font-size: 0.32em; color: var(--c-sage-soft); font-weight: 400; margin-left: 6px; letter-spacing: 0.02em; vertical-align: middle; }
.stat-lbl { font-size: 13.5px; color: var(--c-on-dark-soft); line-height: 1.4; max-width: 22ch; }

/* ============================================================
   SERVIZI
   ============================================================ */
.services { background: var(--c-bg); }
.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.serv-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  position: relative;
}
.serv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-sage-soft); }
.serv-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-sage-deep);
  background: var(--c-bg-alt);
  border-radius: 50%;
  margin-bottom: 22px;
}
.serv-icon svg { width: 22px; height: 22px; }
.serv-card h3 {
  font-family: var(--ff-head); font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--c-heading);
  margin: 0 0 12px;
  text-wrap: balance;
}
.serv-card p { font-size: 15px; line-height: 1.65; color: var(--c-text); margin: 0; }

/* Modality block */
/* ============================================================
   SEDUTE — sezione full-bleed con foto di sfondo + overlay
   ============================================================ */
.sessions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 0;
  color: var(--c-on-dark);
}
.sessions-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;   /* mantiene il divano in vista anche al crop */
  z-index: -2;
}
.sessions-veil {
  position: absolute; inset: 0; z-index: -1;
  /* gradiente direzionale: denso a sinistra (dove c'è il testo), si apre sull'immagine.
     Tinta verde-scura (non nero) per legare alla palette. */
  background:
    linear-gradient(100deg,
      rgba(28, 38, 30, 0.88) 0%,
      rgba(28, 38, 30, 0.74) 42%,
      rgba(30, 40, 32, 0.42) 74%,
      rgba(30, 40, 32, 0.28) 100%),
    linear-gradient(0deg, rgba(20, 26, 20, 0.45), rgba(20, 26, 20, 0.04));
}
.sessions-inner { max-width: 660px; }
.sessions .eyebrow.light { color: #d4d6b9; }
.sessions-title {
  font-family: var(--ff-head); font-weight: 500;
  font-size: clamp(28px, 4.6vw, 46px); line-height: 1.12;
  color: #fbfaf6;
  margin: 0 0 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.sessions-title em { font-style: italic; color: #dfe2c4; }
.sessions-text {
  font-size: clamp(15.5px, 1.5vw, 17.5px); line-height: 1.72;
  color: #ece8dd;
  max-width: 54ch; margin: 0 0 38px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .3);
}
.sessions-stats { display: flex; margin: 0; }
.sess-stat { padding-right: 34px; margin-right: 34px; border-right: 1px solid rgba(243, 239, 230, .28); }
.sess-stat:last-child { padding-right: 0; margin-right: 0; border-right: none; }
.sess-stat dt {
  font-family: var(--ff-head); font-weight: 500;
  font-size: clamp(30px, 4vw, 42px); line-height: 1; color: #fff;
}
.sess-stat dd {
  margin: 9px 0 0; font-size: 12px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--c-sage-soft);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--c-bg-alt); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--c-line);
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  padding: 40px 28px 36px;
  border-right: 1px solid var(--c-line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step-n {
  font-family: var(--ff-head); font-style: italic; font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--c-sage-deep);
  letter-spacing: 0.02em;
  display: inline-block;
  padding-bottom: 22px;
  margin-bottom: 6px;
  position: relative;
}
.step-n::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; background: var(--c-sage-deep); width: 32px;
  transform: none;
}
.step h3 {
  font-family: var(--ff-head); font-weight: 500;
  font-size: 22px; line-height: 1.25;
  color: var(--c-heading);
  margin: 0 0 12px;
  text-wrap: balance;
}
.step p { font-size: 14.5px; color: var(--c-text); margin: 0; line-height: 1.6; }

/* ============================================================
   AREAS
   ============================================================ */
.areas { background: var(--c-bg); }
.areas-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
/* le colonne possono restringersi sotto al min-content del contenuto (no overflow su mobile stretti) */
.areas-grid > * { min-width: 0; }
.areas-copy p { color: var(--c-text); font-size: 16px; line-height: 1.7; max-width: 52ch; }

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.mode {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
  min-width: 0;
}
.mode-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--c-bg-alt);
  border-radius: 50%;
  color: var(--c-sage-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.mode-icon svg { width: 20px; height: 20px; }
.mode-lbl { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-mute); margin: 0; }
.mode-val { font-family: var(--ff-head); font-size: 18px; color: var(--c-heading); margin: 2px 0 0; font-weight: 500; line-height: 1.2; }

.areas-info { display: flex; flex-direction: column; gap: 18px; }
.card-title {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-sage-deep);
  font-weight: 500;
  margin: 0 0 18px;
}
.address-card {
  background: #fff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: 28px 30px;
}
.addr-link {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line-soft);
  color: var(--c-heading);
  transition: color .2s, transform .2s;
}
.addr-link:first-of-type { border-top: 0; padding-top: 0; }
.addr-link:hover { color: var(--c-sage-deep); transform: translateX(2px); }
.addr-link svg { width: 22px; height: 22px; color: var(--c-sage-deep); flex-shrink: 0; }
.addr-link span { display: flex; flex-direction: column; line-height: 1.4; }
.addr-link strong { font-family: var(--ff-head); font-weight: 500; font-size: 18px; }
.addr-link span > * + * { font-size: 13.5px; color: var(--c-text-mute); margin-top: 2px; }

.hours-card {
  background: var(--c-bg-alt);
  border-radius: var(--r-lg);
  padding: 28px 30px;
}
.hours-list { display: flex; flex-direction: column; gap: 14px; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14.5px;
  flex-wrap: wrap;
}
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list .day { color: var(--c-text); font-weight: 500; }
.hours-list .time { color: var(--c-heading); font-family: var(--ff-head); font-style: italic; }
.hours-list .closed .time { color: var(--c-text-mute); font-style: italic; font-family: var(--ff-body); font-size: 13.5px; }
.hours-note { margin: 18px 0 0; font-size: 13px; color: var(--c-text-soft); line-height: 1.5; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs { background: var(--c-bg-alt); }
.certs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--c-line-soft);
  min-width: 0;
}
.cert-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.cert-logo svg { width: 56px; height: 56px; }
.cert-name {
  font-family: var(--ff-head); font-weight: 500;
  font-size: 17px; color: var(--c-heading); margin: 0 0 4px;
  line-height: 1.25;
  overflow-wrap: break-word;   /* spezza la parola lunga solo se non entra (schermi < 360px) */
  hyphens: auto;
}
.cert-sub { font-size: 12.5px; color: var(--c-text-mute); margin: 0; letter-spacing: 0.02em; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--c-bg); }
.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.rev-card {
  background: #fff;
  border: 1px solid var(--c-line-soft);
  padding: 36px 32px;
  border-radius: var(--r-lg);
  margin: 0;
  position: relative;
}
.rev-card::before {
  content: "“";
  position: absolute; top: 6px; right: 24px;
  font-family: var(--ff-head); font-size: 90px; line-height: 1; color: var(--c-sage-soft);
  font-style: italic;
}
.rev-stars { color: var(--c-sage-deep); font-size: 14px; letter-spacing: 3px; margin-bottom: 18px; }
.rev-card blockquote {
  font-family: var(--ff-head); font-weight: 400; font-style: italic;
  font-size: 18px; line-height: 1.55;
  color: var(--c-heading);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.rev-card figcaption { font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.rev-name { color: var(--c-heading); font-weight: 600; }
.rev-meta { color: var(--c-text-mute); font-size: 12px; }
.rev-disclaimer { margin-top: 32px; color: var(--c-text-mute); font-size: 12px; }

.rev-cta { text-align: center; margin-top: 52px; }
.rev-cta-btn svg { color: #f3c14b; }   /* stella dorata sul pulsante */
.rev-cta-note { margin: 16px 0 0; font-size: 13.5px; color: var(--c-text-soft); font-style: italic; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--c-bg-alt); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.faq-head { position: sticky; top: 100px; }
.faq-head p { color: var(--c-text); font-size: 16px; margin: 0 0 24px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  transition: border-color .2s;
}
.faq-list details[open] { border-color: var(--c-sage); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--ff-head); font-weight: 500;
  font-size: 17.5px;
  color: var(--c-heading);
  line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chev {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; background: var(--c-bg-alt);
  position: relative;
  transition: transform .25s, background .25s;
}
.faq-list .chev::before,
.faq-list .chev::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 10px; height: 1.5px; background: var(--c-sage-deep);
  transform: translate(-50%, -50%);
}
.faq-list .chev::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq-list details[open] .chev { background: var(--c-sage-deep); }
.faq-list details[open] .chev::before,
.faq-list details[open] .chev::after { background: #fff; }
.faq-list details[open] .chev::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list details p {
  padding: 0 26px 22px;
  margin: 0;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.65;
}

/* ============================================================
   PRENOTA
   ============================================================ */
.prenota { background: var(--c-bg-dark); color: var(--c-on-dark); }
.prenota .section-head { margin-bottom: 56px; }
.prenota-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(36px, 4vw, 60px);
  align-items: start;
}
/* gli item della grid possono restringersi sotto al min-content del contenuto
   (il <select> con opzioni lunghe causava overflow orizzontale su mobile) */
.prenota-grid > * { min-width: 0; }

.prenota-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(243,239,230,.14);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  backdrop-filter: blur(4px);
}
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-on-dark-soft);
  margin-bottom: 8px;
  font-weight: 500;
}
.field label .opt { color: var(--c-on-dark-muted); text-transform: none; letter-spacing: 0.02em; font-weight: 400; }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(243,239,230,.18);
  color: var(--c-on-dark);
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: border-color .2s, background .2s;
  width: 100%;
  min-width: 0;   /* impedisce che le opzioni lunghe del <select> allarghino il campo oltre il contenitore */
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-on-dark-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--c-sage-soft);
  background: rgba(255,255,255,.10);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-on-dark-soft) 50%), linear-gradient(135deg, var(--c-on-dark-soft) 50%, transparent 50%); background-position: calc(100% - 22px) center, calc(100% - 16px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--c-bg-dark); color: var(--c-on-dark); }
.field textarea { resize: vertical; min-height: 110px; }

.radio-row { border: 0; padding: 0; }
.radio-row legend {
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-on-dark-soft); margin-bottom: 12px;
  font-weight: 500;
}
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px;
  margin-right: 22px;
  font-size: 14.5px;
  text-transform: none; letter-spacing: 0;
  color: var(--c-on-dark);
  cursor: pointer;
}
.radio-row input[type="radio"] { accent-color: var(--c-sage-soft); }

.check {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; color: var(--c-on-dark-soft);
  margin: 4px 0 20px;
}
.check input { accent-color: var(--c-sage-soft); margin-top: 3px; }
.check a { color: var(--c-on-dark); text-decoration: underline; }

.form-note { font-size: 12px; color: var(--c-on-dark-muted); margin: 18px 0 0; }

.prenota-side { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(243,239,230,.14);
  border-radius: var(--r-lg);
  color: var(--c-on-dark);
  transition: background .2s, transform .2s;
}
.contact-card:hover { background: rgba(255,255,255,.10); transform: translateX(2px); color: var(--c-on-dark); }
.cc-icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-bg-dark); border-radius: 50%;
  color: var(--c-on-dark); flex-shrink: 0;
}
.cc-icon svg { width: 20px; height: 20px; }
.cc-lbl { display: block; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-on-dark-soft); }
.cc-val { display: block; font-family: var(--ff-head); font-size: 19px; font-weight: 500; color: var(--c-on-dark); margin-top: 2px; }

.info-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(243,239,230,.14);
  border-radius: var(--r-lg);
  padding: 24px;
}
.info-card h4 {
  font-family: var(--ff-head); font-weight: 500;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--c-on-dark);
}
.info-card p { font-size: 14px; color: var(--c-on-dark-soft); margin: 0 0 6px; }
.info-card .info-meta { margin-top: 12px; font-size: 13px; color: var(--c-sage-soft); font-family: var(--ff-head); font-style: italic; }

.map-placeholder {
  display: block;
  position: relative;
  margin-top: 16px;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 2 / 1;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.map-placeholder:hover,
.map-placeholder:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(45, 50, 30, .22);
}
.map-placeholder .map-art { width: 100%; height: 100%; display: block; }
.map-cta {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  color: #fff;
  background: rgba(45, 50, 30, .85);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background .2s ease;
}
.map-cta svg { width: 14px; height: 14px; flex: none; }
.map-placeholder:hover .map-cta,
.map-placeholder:focus-visible .map-cta { background: rgba(45, 50, 30, 1); }
.map-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--c-sage-deep);
  opacity: .8;
}
.map-note a { color: inherit; text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-bg);
  color: var(--c-text);
  padding: 80px 0 24px;
  border-top: 1px solid var(--c-line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-line-soft);
}
.foot-mark { width: 56px; height: 56px; object-fit: contain; margin-bottom: 14px; }
.foot-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.005em;
  margin: 0 0 6px;
  color: var(--c-heading);
  line-height: 1;
}
.foot-name em { font-style: italic; font-weight: 500; }
.foot-role {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  margin: 0 0 18px;
}
.foot-tag { font-size: 14px; color: var(--c-text-soft); max-width: 30ch; line-height: 1.6; margin: 0; }

.foot-col h5 {
  font-family: var(--ff-body); font-weight: 500;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-sage-deep);
  margin: 0 0 18px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col li { font-size: 14.5px; color: var(--c-text); line-height: 1.5; }
.foot-col a { color: var(--c-text); display: inline-flex; align-items: baseline; gap: 8px; }
.foot-col a::before,
.foot-bottom a::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") no-repeat center / contain;
  opacity: 0.55;
  transform: translateY(0.05em);
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.foot-col a:hover::before,
.foot-bottom a:hover::before {
  opacity: 1;
  transform: translateY(0.05em) translateX(2px);
}
.foot-col a:hover { color: var(--c-heading); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-sage); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 12.5px; color: var(--c-text-mute);
  flex-wrap: wrap; gap: 12px;
}
.foot-bottom a { color: var(--c-text-soft); display: inline-flex; align-items: baseline; gap: 6px; }
.foot-bottom a:hover { color: var(--c-heading); }

/* ============================================================
   FLOATING MOBILE CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 24px; right: 18px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
}
.floating-cta a {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(45,40,30,.20);
  transition: transform .22s ease, box-shadow .22s ease;
}
.floating-cta a:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(45,40,30,.26); }
.floating-cta svg { width: 21px; height: 21px; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-main { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero { min-height: calc(100dvh - var(--header-h)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 380px; }
  .portrait-frame { margin: 0 auto; }
  .hero-scroll { display: none; }
  .portrait-badge { display: none; }
  .portrait-ring { display: none; }
  .hero-blob--2 { display: none; }

  .about-block, .about-block.reversed { grid-template-columns: 1fr; }
  .about-block .ab-img, .about-block.reversed .ab-img { order: -1; }
  .about-block .ab-body, .about-block.reversed .ab-body { order: 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(243,239,230,.18); }
  .stat:nth-child(2n) { border-right: 0; }

  .serv-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--c-line); }

  .areas-grid { grid-template-columns: 1fr; }
  .certs-row { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }

  /* Sedute: su mobile l'overlay diventa verticale e più denso per leggibilità */
  .sessions { padding: 80px 0; }
  .sessions-bg { object-position: center 40%; }
  .sessions-veil {
    background: linear-gradient(180deg,
      rgba(24, 32, 26, 0.58) 0%,
      rgba(24, 32, 26, 0.80) 55%,
      rgba(22, 30, 24, 0.92) 100%);
  }
  .sess-stat { padding-right: 26px; margin-right: 26px; }

  .hero { padding: 30px 0 70px; }
  .hero-title { font-size: 38px; }
  .hero-portrait { max-width: 300px; }
  .portrait-frame { border-radius: 50%; }

  .field-row { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .serv-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-left: 0; border-right: 0; }
  .step { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .step:last-child { border-bottom: 0; }
  .certs-row { grid-template-columns: 1fr 1fr; }
  .comuni { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }

  .floating-cta { display: flex; }
  .site-footer { padding-bottom: 100px; }
}


/* ============================================================
   LIGHT-SAGE DARK SECTIONS OVERRIDE
   Active because --c-bg-dark is now a light sage (#B7C2A1).
   Inverts on-dark text + glass surfaces for proper contrast.
   ============================================================ */
:root {
  --c-on-dark:       #2a2c28;
  --c-on-dark-soft:  #4c4d4a;
  --c-on-dark-muted: rgba(42, 44, 40, .55);
}

/* section heads on light sage */
.section-head.light .section-title em { color: #3a4a30; }
.eyebrow.light::before { background: #4c4d4a; }

/* stats: sup/unit (were light sage on dark) */
.stat-num sup,
.stat-num .stat-unit { color: var(--c-sage-deep); }

/* stats: divider in mobile */
@media (max-width: 980px) {
  .stat { border-bottom-color: rgba(0,0,0,.18) !important; }
}

/* PRENOTA — form surfaces */
.prenota-form {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(0, 0, 0, .10);
}
.field input, .field select, .field textarea {
  background-color: rgba(255, 255, 255, .70);
  border-color: rgba(0, 0, 0, .14);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background-color: #fff;
  border-color: var(--c-sage-deep);
}
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-on-dark-soft) 50%),
    linear-gradient(135deg, var(--c-on-dark-soft) 50%, transparent 50%);
}
.field select option { background: #fff; color: var(--c-heading); }
.radio-row input[type="radio"],
.check input { accent-color: var(--c-sage-deep); }
.check a { color: var(--c-heading); text-decoration-color: var(--c-sage-deep); }

/* PRENOTA — side cards */
.contact-card {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(0, 0, 0, .10);
}
.contact-card:hover { background: rgba(255, 255, 255, .85); }
.cc-icon { background: var(--c-sage-deep); color: #fff; }

.info-card {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(0, 0, 0, .10);
}
.info-card .info-meta { color: var(--c-sage-deep); }

.map-cta {
  color: #fff;
  background: rgba(45, 50, 30, .85);
}

/* PRENOTA — "Verifica disponibilità" submit becomes the strong CTA on light sage */
.btn-light-primary {
  background: #2a2c28;
  color: #fff;
  border-color: #2a2c28;
}
.btn-light-primary:hover {
  background: var(--c-sage-deep);
  border-color: var(--c-sage-deep);
  color: #fff;
}

/* Floating mobile CTA: WhatsApp = sage, Phone = dark */
.floating-cta a { background: var(--c-sage-deep); color: #fff; }
.floating-cta a:last-child { background: var(--c-heading); color: #fff; }

/* ============================================================
   FORM — honeypot anti-spam & messaggio di conferma
   ============================================================ */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
/* ── Popup esito invio form ─────────────────────────────────── */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.form-modal[hidden] { display: none; }

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 32, 26, .55);
  backdrop-filter: blur(3px);
  animation: fm-fade .25s ease both;
}

.form-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 40px 34px 32px;
  text-align: center;
  box-shadow: 0 24px 60px -12px rgba(30, 32, 26, .4);
  animation: fm-pop .32s cubic-bezier(.34, 1.56, .64, 1) both;
}

.form-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--c-text-mute);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.form-modal-close:hover { background: var(--c-line-soft); color: var(--c-heading); }
.form-modal-close svg { width: 18px; height: 18px; }

.form-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef4e8;
  color: #5a7a3e;
}
.form-modal-icon svg { width: 30px; height: 30px; }

.form-modal-card.is-error .form-modal-icon {
  background: #fbeaea;
  color: #c0392b;
}

.form-modal-card strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 22px;
  line-height: 1.25;
  color: var(--c-heading);
  margin-bottom: 10px;
}
.form-modal-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-soft);
  margin: 0 auto 26px;
  max-width: 34ch;
}
.form-modal-ok { width: 100%; justify-content: center; }

@keyframes fm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fm-pop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .form-modal-backdrop, .form-modal-card { animation: none; }
}

/* ============================================================
   CONSENSO COOKIE — banner (1° livello) + pannello preferenze (2°)
   Linee guida Garante 2021: Accetta/Rifiuta con pari evidenza.
   ============================================================ */

/* ---- Bottoni consenso (pari peso visivo tra accetta/rifiuta) ---- */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid var(--c-sage-deep);
  transition: all .2s ease;
}
.cc-btn--solid {
  background: var(--c-sage-deep);
  color: #fff;
}
.cc-btn--solid:hover { background: var(--c-heading); border-color: var(--c-heading); transform: translateY(-1px); }
.cc-btn--ghost {
  background: transparent;
  color: var(--c-heading);
}
.cc-btn--ghost:hover { background: var(--c-bg-alt); }
.cc-btn:focus-visible,
.foot-cookie-btn:focus-visible { outline: 2px solid var(--c-sage-deep); outline-offset: 2px; }

/* ---- Banner (1° livello) ---- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 3vw, 28px);
  transform: translateX(-50%);
  z-index: 1000;
  width: min(620px, calc(100vw - 28px));
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -14px rgba(30, 32, 26, .35);
  animation: cc-rise .4s cubic-bezier(.34, 1.2, .5, 1) both;
}
.cookie-banner[hidden] { display: none; }
.cc-inner { position: relative; padding: 26px 28px 22px; }
.cc-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none; background: transparent;
  font-size: 24px; line-height: 1;
  color: var(--c-text-mute); cursor: pointer; border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.cc-close:hover { background: var(--c-line-soft); color: var(--c-heading); }
.cc-title {
  font-family: var(--ff-head);
  font-size: 21px; font-weight: 500;
  color: var(--c-heading);
  margin: 0 26px 10px 0;
}
.cc-desc {
  font-size: 13.5px; line-height: 1.65;
  color: var(--c-text-soft);
  margin: 0 0 20px;
}
.cc-desc strong { color: var(--c-heading); font-weight: 600; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .cc-btn { flex: 1 1 auto; }

/* ---- Pannello preferenze (2° livello, modale) ---- */
.cookie-prefs {
  position: fixed; inset: 0; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-prefs[hidden] { display: none; }
.cp-backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 32, 26, .5);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: fm-fade .25s ease both;
}
.cp-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--c-bg);
  border-radius: 18px;
  padding: 34px 32px 28px;
  box-shadow: 0 24px 70px -16px rgba(30, 32, 26, .5);
  animation: cc-rise .35s cubic-bezier(.34, 1.4, .55, 1) both;
}
.cp-x {
  position: absolute; top: 16px; right: 18px;
  width: 34px; height: 34px;
  border: none; background: transparent;
  font-size: 26px; line-height: 1;
  color: var(--c-text-mute); cursor: pointer; border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.cp-x:hover { background: var(--c-line-soft); color: var(--c-heading); }
.cp-title {
  font-family: var(--ff-head);
  font-size: 24px; font-weight: 500;
  color: var(--c-heading);
  margin: 0 30px 8px 0;
}
.cp-lead {
  font-size: 13.5px; line-height: 1.6;
  color: var(--c-text-soft);
  margin: 0 0 22px;
}
.cp-cat {
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.cp-cat-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.cp-cat-name {
  font-family: var(--ff-head);
  font-size: 16.5px; font-weight: 500;
  color: var(--c-heading);
}
.cp-badge {
  margin-left: auto;
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-sage-deep);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.cp-cat-desc {
  font-size: 12.5px; line-height: 1.6;
  color: var(--c-text-soft);
  margin: 0;
}
.cp-cat-desc strong { color: var(--c-heading); font-weight: 600; }
.cp-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}
.cp-actions .cc-btn { flex: 1 1 auto; }
.cp-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Toggle switch ---- */
.cp-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.cp-switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.cp-slider {
  width: 46px; height: 26px; border-radius: var(--r-pill);
  background: var(--c-line); transition: background .22s ease;
  position: relative;
}
.cp-slider::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .22s ease;
}
.cp-switch input:checked + .cp-slider { background: var(--c-sage-deep); }
.cp-switch input:checked + .cp-slider::after { transform: translateX(20px); }
.cp-switch input:focus-visible + .cp-slider { outline: 2px solid var(--c-sage-deep); outline-offset: 2px; }

/* ---- Link "Preferenze cookie" nel footer ---- */
.foot-cookie-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}
.foot-cookie-btn:hover { color: var(--c-on-dark); }

@keyframes cc-rise {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
/* il pannello modale è centrato (non traslato in X): override del keyframe */
.cp-panel { animation-name: cp-pop; }
@keyframes cp-pop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .cc-actions, .cp-actions { flex-direction: column; }
  .cc-actions .cc-btn, .cp-actions .cc-btn { width: 100%; }
}

/* ---- Banner cookie su mobile: centraggio garantito + mai oltre il viewport ---- */
@media (max-width: 640px) {
  .cookie-banner {
    /* insets simmetrici: centrato senza dipendere da translateX (immune a eventuali overflow) */
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    /* resta sopra alla barra gesture/nav del telefono */
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    /* mai più alto del viewport: l'eventuale eccedenza scrolla all'interno */
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    animation-name: cc-rise-m;
  }
  .cc-inner {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px 20px 18px;
  }
}
@keyframes cc-rise-m {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cp-panel, .cp-backdrop { animation: none; }
}
