/* ══════════════════════════════════════════════════════════════════
   Jasmine Orosciam — Counselor
   Design system: viola (#6B3FA0) + oro (#C9A227)
   Display: Playfair Display · Testo: Inter · self-hosted
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* Viola */
  --primary:        #6B3FA0;
  --primary-600:    #5C3390;
  --primary-700:    #4C2A7A;
  --primary-800:    #38195C;
  --primary-900:    #241040;
  --primary-light:  #9B7BC8;
  --primary-300:    #C9B6E8;
  --primary-50:     #F4EFFB;
  --link:           #4C2A7A;   /* viola per testo e link, leggibile su fondo chiaro */

  /* Oro */
  --gold:           #C9A227;
  --gold-600:       #B08D1C;
  --gold-700:       #8A6C12;   /* oro leggibile su fondo chiaro (AA) */
  --gold-light:     #E6CE7B;
  --gold-100:       #F7F0DC;

  --bg:             #ffffff;
  --bg-soft:        #FAF7FC;
  --bg-alt:         #F6F1FA;
  --surface:        #ffffff;
  --text:           #2A1B3D;
  --text-soft:      #57496B;
  --text-mute:      #6E6280;
  --border:         #EBE2F2;
  --border-soft:    #F3EDF8;
  --gold-line:      rgba(201,162,39,.34);

  --radius:         16px;
  --radius-lg:      24px;
  --radius-sm:      11px;
  --shadow-sm:      0 1px 2px rgba(42,27,61,.06), 0 1px 3px rgba(42,27,61,.05);
  --shadow-md:      0 8px 22px rgba(42,27,61,.08), 0 2px 6px rgba(42,27,61,.05);
  --shadow-lg:      0 20px 44px rgba(107,63,160,.18), 0 6px 16px rgba(42,27,61,.08);
  --container:      1140px;
  --header-h:       72px;
  --ease:           .25s cubic-bezier(.4,0,.2,1);

  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-disp: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #150A20;
    --bg-soft:     #1C1029;
    --bg-alt:      #1A0E27;
    --surface:     #211433;
    --text:        #F4EFFA;
    --text-soft:   #C9BCD9;
    --text-mute:   #AA9BBE;
    --border:      #33234A;
    --border-soft: #281838;
    --gold-700:    #E6CE7B;   /* su fondo scuro l'oro chiaro è quello leggibile */
    --gold-100:    #2A1D3D;
    --primary-50:  #221434;
    --primary-300: #C9B6E8;
    --link:        #C6AFEA;   /* su fondo scuro serve un viola chiaro (AA) */
    --gold-line:   rgba(230,206,123,.30);
    --shadow-sm:   0 1px 2px rgba(0,0,0,.42);
    --shadow-md:   0 8px 22px rgba(0,0,0,.46);
    --shadow-lg:   0 22px 46px rgba(0,0,0,.56), 0 6px 16px rgba(0,0,0,.4);
  }
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-disp); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  background: var(--primary-700); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── Bottoni ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary-700), var(--primary-800)); color: #fff; box-shadow: 0 6px 18px rgba(76,42,122,.30); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(76,42,122,.38); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #33240A; box-shadow: 0 6px 18px rgba(201,162,39,.32); }
.btn-gold:hover { box-shadow: 0 14px 30px rgba(201,162,39,.42); }
.btn-outline { background: transparent; color: var(--link); border-color: var(--primary-300); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-700); background: var(--gold-100); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 17px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { cursor: not-allowed; opacity: .5; box-shadow: none; filter: grayscale(.35); }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; box-shadow: none; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 3px 8px rgba(107,63,160,.30)); }
.brand-mark img { width: 46px; height: 46px; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-disp); font-size: 1.12rem; font-weight: 600; letter-spacing: 0; }
.brand-text small { font-size: .7rem; color: var(--gold-700); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a {
  position: relative; padding: 9px 13px; border-radius: 999px;
  color: var(--text-soft); font-weight: 500; font-size: .93rem;
  transition: color var(--ease), background var(--ease);
}
.nav a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.nav a.active { color: var(--link); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; background: transparent; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 116px) 0 clamp(52px, 7vw, 92px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 54% at 84% 6%, rgba(201,162,39,.20), transparent 62%),
    radial-gradient(56% 52% at 6% 88%, rgba(107,63,160,.18), transparent 64%),
    linear-gradient(180deg, var(--bg-alt), var(--bg) 62%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
}
.hero-inner { position: relative; }
.hero-inner > * { max-width: 880px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 600; letter-spacing: -.015em; }
.hero-title em { font-style: italic; color: var(--link); }
.grad-text {
  background: linear-gradient(120deg, var(--primary), var(--gold-600) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; font-size: clamp(1.02rem, 2vw, 1.16rem); color: var(--text-soft); max-width: 62ch; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text-soft); }
.hero-badges li span { color: var(--gold-700); font-weight: 700; }

/* ── Sezioni ───────────────────────────────────────────────────── */
.section { padding: clamp(58px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); }
.section-lead { margin-top: 16px; color: var(--text-soft); font-size: 1.04rem; }
.section-note { margin-top: 30px; color: var(--text-mute); font-size: .93rem; }

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

/* ── Card ──────────────────────────────────────────────────────── */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-line); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 15px; color: var(--link);
  background: linear-gradient(140deg, var(--primary-50), var(--gold-100));
  border: 1px solid var(--border);
}
.card-icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .97rem; }

/* ── Chi sono ──────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-portrait {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-alt); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center;
  color: var(--text-mute); text-align: center; padding: 24px; font-size: .88rem;
  background: linear-gradient(150deg, var(--primary-50), var(--gold-100));
}
.about-portrait .placeholder svg { width: 44px; height: 44px; color: var(--primary-light); }
.about-body > * + * { margin-top: 18px; }
.about-body p { color: var(--text-soft); }
.about-quote {
  margin-top: 26px; padding: 22px 26px; border-left: 3px solid var(--gold);
  background: var(--gold-100); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-disp); font-size: 1.16rem; font-style: italic; color: var(--text);
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  font-size: .84rem; font-weight: 500; color: var(--text-soft);
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border);
}

/* ── Percorso (steps) ──────────────────────────────────────────── */
.steps { display: grid; gap: 18px; counter-reset: step; }
.steps li {
  position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 22px; align-items: start;
  padding: 24px 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.steps li:hover { border-color: var(--gold-line); box-shadow: var(--shadow-sm); }
.step-n {
  font-family: var(--font-disp); font-size: 2rem; font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold); text-align: center;
}
.steps h3 { font-size: 1.18rem; margin-bottom: 6px; }
.steps p { color: var(--text-soft); font-size: .97rem; }

/* ── Due colonne: è / non è ────────────────────────────────────── */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare-col { border-radius: var(--radius-lg); padding: 30px 28px; border: 1px solid var(--border); background: var(--surface); }
.compare-col h3 { font-size: 1.22rem; margin-bottom: 18px; display: flex; align-items: center; gap: 11px; }
.compare-col ul { display: grid; gap: 12px; }
.compare-col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-soft); font-size: .97rem; }
.compare-col li span { font-weight: 700; line-height: 1.6; }
.compare-yes { background: linear-gradient(160deg, var(--primary-50), var(--surface) 70%); }
.compare-yes h3 { color: var(--link); }
.compare-yes li span { color: var(--link); }
.compare-no li span { color: var(--text-mute); }

/* ── Modalità ──────────────────────────────────────────────────── */
.mode-card { text-align: center; padding: 34px 26px; }
.mode-card .card-icon { margin-inline: auto; }
.mode-card strong { display: block; font-family: var(--font-disp); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.mode-card small { display: block; color: var(--text-soft); font-size: .95rem; line-height: 1.6; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 840px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.faq details[open] { border-color: var(--gold-line); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 1.02rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--gold-700); border-bottom: 2px solid var(--gold-700);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--text-soft); font-size: .98rem; }

/* ── Contatti ──────────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 46px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-line); text-decoration: none; }
.contact-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-800));
}
.contact-ic-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-600)); color: #33240A; }
.contact-meta { display: flex; flex-direction: column; min-width: 0; }
.contact-meta small { font-size: .76rem; color: var(--text-mute); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.contact-meta strong { font-weight: 600; font-size: .98rem; overflow-wrap: anywhere; }
.contact-aside {
  margin-top: 6px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-soft); font-size: .93rem;
}

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-md);
}
.form-required-note { font-size: .84rem; color: var(--text-mute); margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .89rem; font-weight: 600; margin-bottom: 7px; }
.req { color: var(--gold-700); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: .97rem; color: var(--text);
  padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(107,63,160,.14);
}
.field-error { display: none; margin-top: 6px; font-size: .84rem; color: #b3261e; }
.field.invalid .field-error, .consent-field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #b3261e; }
@media (prefers-color-scheme: dark) { .field-error { color: #ffb4ab; } }

.consent-field { display: grid; grid-template-columns: 20px 1fr; gap: 10px 12px; margin-bottom: 20px; align-items: start; }
.consent-field input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--primary); }
.consent-field label { font-size: .87rem; color: var(--text-soft); line-height: 1.55; }
.consent-field .field-error { grid-column: 1 / -1; }
/* display:none, non fuori schermo: i campi solo spostati vengono compilati
   dal riempimento automatico del browser, quelli non visualizzati no. */
.hp-field { display: none !important; }
.form-note { margin-top: 14px; font-size: .84rem; color: var(--text-mute); text-align: center; }

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary-800), var(--primary-900)); color: #fff; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(50% 70% at 88% 10%, rgba(201,162,39,.28), transparent 62%);
}
.cta-inner { position: relative; z-index: 1; text-align: center; padding: clamp(52px, 7vw, 84px) 0; }
.cta-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; }
.cta-inner p { margin: 16px auto 0; max-width: 56ch; color: #DCD1EC; }
.cta-inner .hero-cta { justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: clamp(44px, 6vw, 68px) 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-wm { display: flex; flex-direction: column; line-height: 1.2; }
.footer-wm strong { font-family: var(--font-disp); font-size: 1.1rem; font-weight: 600; }
.footer-wm small { font-size: .7rem; color: var(--gold-700); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.footer-brand p { color: var(--text-soft); font-size: .93rem; max-width: 42ch; }
.footer-col h3 { font-size: 1rem; margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--text-soft); font-size: .92rem; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--link); }
.footer-legal { font-style: normal; color: var(--text-soft); font-size: .92rem; }
.footer-legal strong { display: block; color: var(--text); }
.footer-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center;
  color: var(--text-mute); font-size: .86rem;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-legal-links a { color: var(--text-mute); }
.footer-legal-links a:hover { color: var(--link); }

/* ── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--primary-900); color: #fff; padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-size: .93rem; z-index: 300; opacity: 0;
  transition: opacity var(--ease), transform var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Reveal on scroll ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 2px; padding: 14px clamp(18px, 4vw, 32px) 22px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); transform: translateY(-130%);
    transition: transform var(--ease); margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .brand-text small { display: none; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2, .compare { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 52px 1fr; gap: 16px; padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ── Pagine legali / prosa ─────────────────────────────────────── */
.legal { padding: clamp(44px, 6vw, 76px) 0 clamp(56px, 7vw, 90px); }
.legal-wrap { max-width: 780px; margin: 0 auto; }
.legal-wrap h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.legal-updated { color: var(--text-mute); font-size: .88rem; margin-bottom: 34px; }
.legal-wrap h2 {
  font-size: 1.3rem; margin: 40px 0 12px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.legal-wrap h3 { font-size: 1.06rem; margin: 24px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--text-soft); }
.legal-wrap p + p { margin-top: 14px; }
.legal-wrap ul { margin: 14px 0; display: grid; gap: 9px; }
.legal-wrap ul li { position: relative; padding-left: 22px; }
.legal-wrap ul li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.legal-wrap .legal-box {
  margin: 26px 0; padding: 20px 24px; border-radius: var(--radius);
  background: var(--gold-100); border: 1px solid var(--gold-line); color: var(--text-soft); font-size: .95rem;
}
.legal-wrap dl { margin: 14px 0; display: grid; gap: 10px; }
.legal-wrap dt { font-weight: 600; color: var(--text); }
.legal-wrap dd { margin: 0 0 6px; color: var(--text-soft); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 600; }

/* ── Profilo (hero centrato) ───────────────────────────────────── */
.hero-profile { padding-top: clamp(40px, 6vw, 72px); }
.profile-inner { position: relative; text-align: center; max-width: 780px; }
.hero-profile .eyebrow::before { display: none; }
.hero-profile .hero-title { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
.hero-profile .hero-sub { margin-left: auto; margin-right: auto; }

.avatar {
  width: clamp(140px, 22vw, 172px); aspect-ratio: 1; margin: 0 auto 26px; padding: 5px;
  border-radius: 50%; background: linear-gradient(140deg, var(--gold-light), var(--gold-600));
  box-shadow: var(--shadow-lg);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); }

.hero-claim {
  margin-top: 18px; font-family: var(--font-disp); font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.4; color: var(--text);
}
.hero-claim em { font-style: italic; color: var(--link); }

/* ── Riga social ───────────────────────────────────────────────── */
.social-row { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.social-row a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--text-soft); background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.social-row a:hover {
  transform: translateY(-3px); color: var(--link);
  border-color: var(--gold); box-shadow: var(--shadow-md); text-decoration: none;
}
.social-row-sm { justify-content: flex-start; margin-top: 20px; gap: 10px; }
.social-row-sm a { width: 38px; height: 38px; }

/* ── Hub "Inizia da qui" ───────────────────────────────────────── */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-link {
  display: flex; align-items: center; gap: 16px; height: 100%;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.hub-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-line); text-decoration: none; }
.hub-ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: var(--link); background: linear-gradient(140deg, var(--primary-50), var(--gold-100));
  border: 1px solid var(--border);
}
.hub-ic svg { width: 22px; height: 22px; }
.hub-txt { display: flex; flex-direction: column; min-width: 0; }
.hub-txt strong { font-weight: 600; font-size: 1rem; }
.hub-txt small { color: var(--text-mute); font-size: .86rem; }
.hub-go { margin-left: auto; color: var(--gold-700); font-size: 1.2rem; transition: transform var(--ease); }
.hub-link:hover .hub-go { transform: translateX(4px); }
.hub-primary { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-100), var(--surface) 72%); }
.hub-primary .hub-ic { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #33240A; border-color: transparent; }

/* ── Chi sono: testo + credenziali ─────────────────────────────── */
.about-narrow { grid-template-columns: 1.35fr 1fr; }
.creds {
  padding: 28px 26px; border-radius: var(--radius-lg);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.creds h3 { font-size: 1.05rem; margin-bottom: 16px; }
.creds .creds-h2 { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.creds-list { display: grid; gap: 15px; }
.creds-list li { display: grid; gap: 2px; padding-left: 20px; position: relative; }
.creds-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.creds-list strong { font-size: .94rem; font-weight: 600; line-height: 1.45; }
.creds-list small { font-size: .85rem; color: var(--text-mute); }

.chips-sm { margin-top: 16px; }
.chips-sm li { font-size: .78rem; padding: 5px 11px; }

/* ── Card interamente cliccabile ───────────────────────────────── */
.card-link-full { display: block; color: inherit; }
.card-link-full:hover { text-decoration: none; }
.card-link-full h3 { color: var(--text); }

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .about-narrow { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hub { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hub-txt strong { font-size: .95rem; }
}

/* ── Footer a quattro colonne ──────────────────────────────────── */
.footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

@media (max-width: 980px) {
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Esito dell'invio del modulo ───────────────────────────────── */
.form-result {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 44px) clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md); text-align: center;
}
.form-result[hidden] { display: none; }
.form-result-ic {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-800));
  box-shadow: 0 8px 22px rgba(76,42,122,.32);
}
.form-result-ic svg { width: 30px; height: 30px; }
.form-result h3 { font-size: 1.5rem; margin-bottom: 12px; }
.form-result p { color: var(--text-soft); max-width: 46ch; margin: 0 auto; }
.form-result p strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.form-result-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* variante errore */
.form-result.is-error .form-result-ic {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-600)); color: #33240A;
  box-shadow: 0 8px 22px rgba(201,162,39,.34);
}

/* ── Icona di piattaforma in linea col testo ───────────────────── */
.pf-ic {
  display: inline-block; vertical-align: -2px; margin-right: 5px;
  width: 15px; height: 15px; flex: none;
}
.hub-txt small .pf-ic { opacity: .85; }
.footer-links a .pf-ic { opacity: .8; }

/* ── Esito dell'invio, attaccato al pulsante ───────────────────── */
.form-status {
  margin-bottom: 16px; padding: 15px 18px; border-radius: var(--radius-sm);
  font-size: .95rem; line-height: 1.55; font-weight: 500;
  border: 2px solid transparent;
}
.form-status[hidden] { display: none; }
.form-status.is-error   { background: #fdf2f0; border-color: #d9534f; color: #8c1d18; }
.form-status.is-success { background: #eaf7ef; border-color: #2e7d4f; color: #1c5c38; font-weight: 600; }
.form-status.is-pending { background: var(--bg-alt); border-color: var(--border); color: var(--text-soft); }
@media (prefers-color-scheme: dark) {
  .form-status.is-error   { background: #3a1f1c; border-color: #e07a72; color: #ffb4ab; }
  .form-status.is-success { background: #17301f; border-color: #4caf7d; color: #9ae0b8; }
  .form-status.is-pending { background: var(--bg-alt); border-color: var(--border); color: var(--text-soft); }
}
/* la casella del consenso va evidenziata: è l'inciampo più frequente */
.consent-field.invalid { 
  padding: 12px 14px; margin-inline: -14px;
  border-radius: var(--radius-sm); background: #fdf2f0; border: 1px solid #f0c8c2;
}
@media (prefers-color-scheme: dark) {
  .consent-field.invalid { background: #3a1f1c; border-color: #6b3a34; }
}

/* ── Cosa manca per abilitare l'invio ──────────────────────────── */
.form-hint { margin-top: 12px; font-size: .87rem; line-height: 1.5; color: var(--gold-700); font-weight: 600; text-align: center; }
.form-hint:empty { display: none; }

/* ── Toast di esito dell'invio ─────────────────────────────────── */
.toast { max-width: min(92vw, 520px); text-align: center; font-weight: 600; }
.toast-ok { background: #1c5c38; }
.toast-ko { background: #8c1d18; }
