/* =========================================================================
   Avv. Francesca Gerini — Design system
   Direzione: "Minimal istituzionale con calore umano"
   - Display: Fraunces (serif, opsz variabile) usata con parsimonia
   - Testo/UI: Hanken Grotesk (grotesque umanista, leggibile)
   - Accento: verde petrolio profondo (#1C4A45) — calmo, rassicurante,
     istituzionale senza il navy scontato; NON il terracotta/crema da IA.
   - Firma: "la domanda con cui arrivi" — la frase reale del cliente in
     corsivo serif, apre le sezioni e le card; incarna il valore = tradurre
     il linguaggio giuridico in parole comprensibili.
   Contrasti verificati WCAG AA (calcolo reale, non a occhio).
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:      #F7F4EF;
  --paper-2:    #ECE7DF;
  --ink:        #23211D;
  --ink-2:      #59544B;
  --accent:     #1C4A45;
  --accent-deep:#123430;
  --line:       #DAD3C8;
  --white:      #FFFFFF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale — fluid (usa più spazio sui grandi schermi) */
  --step--1: clamp(0.85rem, 0.82rem + 0.18vw, 0.98rem);
  --step-0:  clamp(1.02rem, 0.98rem + 0.22vw, 1.18rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.52vw, 1.55rem);
  --step-2:  clamp(1.52rem, 1.32rem + 1.00vw, 2.30rem);
  --step-3:  clamp(1.95rem, 1.58rem + 1.80vw, 3.35rem);
  --step-4:  clamp(2.55rem, 1.90rem + 3.20vw, 4.90rem);

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 0.875rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;

  --measure: 72ch;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(35,33,29,.04), 0 6px 20px rgba(35,33,29,.05);
  --shadow: 0 1px 2px rgba(35,33,29,.05), 0 14px 40px rgba(35,33,29,.09);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; color: var(--ink); margin: 0; font-optical-sizing: auto; letter-spacing: -0.01em; }

/* ---------- Skip link + focus ---------- */
.skip-link {
  position: absolute; left: 0; top: -60px;
  background: var(--accent); color: var(--white);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
  z-index: 200; transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2rem, 1440px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 880px); margin-inline: auto; }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--accent); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

/* ---------- Eyebrow + question motif (firma) ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 var(--sp-3);
}
.section--dark .eyebrow { color: #A9C9C2; }
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: .8; }

.quote-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-2);
  border-left: 2px solid var(--accent);
  padding-left: var(--sp-3);
  margin: 0 0 var(--sp-3);
  max-width: 52ch;
}
.section--dark .quote-lead { color: #CFE0DC; border-color: #A9C9C2; }

/* ---------- Section heading block ---------- */
.section-head { max-width: 60ch; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-2); font-size: var(--step-1); margin: var(--sp-3) 0 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--white); --btn-bd: var(--accent);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  line-height: 1; text-decoration: none;
  padding: .95em 1.5em; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--white); }
.btn--on-dark { --btn-bg: var(--paper); --btn-fg: var(--accent-deep); --btn-bd: var(--paper); }
.btn--on-dark:hover { background: var(--white); border-color: var(--white); color: var(--accent-deep); }
.btn--wide { width: 100%; justify-content: center; }
.arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 68px; }
.brand { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav__links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.02rem; padding: .3rem 0; position: relative; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width .2s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--accent); }
/* CTA nel menu: testo bianco su petrolio (fix contrasto) e niente sottolineatura */
.nav__links a.btn { color: var(--white); font-size: var(--step--1); padding: .7em 1.15em; }
.nav__links a.btn:hover { color: var(--white); }
.nav__links a.btn::after { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) var(--sp-7); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.hero__title { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.025em; line-height: 1.03; margin-bottom: var(--sp-3); }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 40ch; margin-bottom: var(--sp-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: center; }
.hero__meta { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: var(--step--1); color: var(--ink-2); }
.hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Photo placeholder ---------- */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  height: 100%; text-align: center; padding: var(--sp-4);
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(28,74,69,.05) 14px 15px),
    var(--paper-2);
  border: 1px dashed var(--accent);
  color: var(--accent);
}
.photo-placeholder svg { width: 34px; height: 34px; opacity: .7; }
.photo-placeholder b { font-weight: 600; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; }
.photo-placeholder small { color: var(--ink-2); max-width: 26ch; font-size: .78rem; }

/* Mappa dello studio (Google Maps a consenso) */
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent .btn { margin-top: var(--sp-1); }
.map-consent__link { font-size: var(--step--1); color: var(--accent); text-underline-offset: 3px; }

/* ---------- "Dato da confermare" inline marker ---------- */
.tbd {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-deep);
  border-bottom: 1px dashed var(--accent);
  padding: 0 .25em; border-radius: 2px;
  font-weight: 500; font-style: normal;
  white-space: nowrap;
}
.section--dark .tbd { background: rgba(255,255,255,.16); color: var(--white); border-color: #A9C9C2; }

/* ---------- Value strip ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.value h3 { font-size: var(--step-1); margin-bottom: var(--sp-1); }
.value p { color: var(--ink-2); margin: 0; font-size: var(--step-0); }
.value__ic { color: var(--accent); margin-bottom: var(--sp-2); }
.value__ic svg { width: 30px; height: 30px; }

/* ---------- Practice cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none; color: var(--ink);
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card__q { font-family: var(--font-display); font-style: italic; color: var(--ink-2); font-size: var(--step-0); line-height: 1.4; margin-bottom: var(--sp-3); }
.card h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.card p { color: var(--ink-2); margin: 0 0 var(--sp-3); font-size: var(--step-0); }
.card__more { margin-top: auto; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.card:hover .card__more .arrow { transform: translateX(3px); }

/* ---------- Method (numbered — sequenza reale) ---------- */
.steps { display: grid; gap: var(--sp-3); counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4);
  padding: var(--sp-4) 0; border-top: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--font-display); font-size: var(--step-2); color: var(--accent); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--step-1); margin-bottom: var(--sp-1); }
.step p { margin: 0; color: var(--ink-2); max-width: var(--measure); }

/* ---------- Prose ---------- */
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 var(--sp-3); }
.prose h2 { font-size: var(--step-2); margin: var(--sp-5) 0 var(--sp-2); }
.prose h3 { font-size: var(--step-1); margin: var(--sp-4) 0 var(--sp-1); }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--sp-3); }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--accent); }

/* ---------- Split (chi sono / generic two-col) ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }

/* ---------- Facts list ---------- */
.facts { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 10rem 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--line); font-size: var(--step-0); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts dt, .facts .k { color: var(--ink-2); font-weight: 500; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.form { display: grid; gap: var(--sp-3); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--step-0); }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .8em .9em; width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: var(--step--1); color: var(--ink-2); }
.field--error input, .field--error textarea { border-color: #9B2C2C; }
.field__err { color: #9B2C2C; font-size: var(--step--1); font-weight: 500; display: none; }
.field--error .field__err { display: block; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: var(--step--1); color: var(--ink-2); }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--accent); }
.form__status { display: none; padding: var(--sp-3); border-radius: var(--radius); font-weight: 500; }
.form__status--ok { display: block; background: color-mix(in srgb, var(--accent) 14%, var(--white)); color: var(--accent-deep); border: 1px solid var(--accent); }

.contact-aside { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.contact-aside h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.contact-aside .facts li { grid-template-columns: 1fr; gap: .1rem; }
.contact-aside .facts .k { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--step-3); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #CFE0DC; font-size: var(--step-1); max-width: 46ch; margin: var(--sp-3) auto var(--sp-4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8D4CC; padding-block: var(--sp-6) var(--sp-4); font-size: var(--step--1); }
.site-footer a { color: #E7E3DA; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); padding-bottom: var(--sp-5); border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: var(--sp-2); }
.footer-col h3 { font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: #A9A499; margin: 0 0 var(--sp-2); font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-legal { padding-top: var(--sp-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); color: #A9A499; }
.footer-legal .tbd { background: rgba(255,255,255,.14); color: var(--white); border-color: rgba(255,255,255,.4); }
.social-ig { display: inline-flex; align-items: center; gap: .5rem; }
.social-ig svg { width: 20px; height: 20px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(18,51,47,.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.cookie[data-open="true"] { display: flex; animation: cookie-fade .25s var(--ease); }
.cookie__box {
  width: 100%; max-width: 480px;
  background: var(--ink); color: #EDE9E1;
  border-radius: 12px; padding: var(--sp-4);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  animation: cookie-in .3s var(--ease);
}
@keyframes cookie-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cookie h3 { font-size: var(--step-1); color: var(--white); margin-bottom: .5rem; }
.cookie p { font-size: var(--step--1); margin: 0 0 var(--sp-3); color: #C9C4BA; }
.cookie a { color: #fff; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie__actions .btn { padding: .7em 1.1em; font-size: var(--step--1); }
.cookie .btn--reject { --btn-bg: transparent; --btn-fg: #EDE9E1; --btn-bd: rgba(255,255,255,.4); }
.cookie .btn--reject:hover { --btn-bg: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }

/* ---------- Page hero (interne) ---------- */
.page-hero { padding-block: var(--sp-6) var(--sp-5); background: var(--accent); color: var(--paper); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--sp-3); color: var(--white); }
.page-hero p { font-size: var(--step-1); color: #CFE0DC; max-width: 52ch; }
.page-hero .eyebrow { color: #A9C9C2; }
.breadcrumb { font-size: var(--step--1); color: var(--ink-2); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: #CFE0DC; }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ---------- Notice (avviso onesto placeholder pagina legale) ---------- */
.notice {
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  border: 1px solid var(--accent); border-left-width: 4px;
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5); font-size: var(--step-0); color: var(--accent-deep);
}
.notice strong { color: var(--accent-deep); }

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack-3 > * + * { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .values { grid-template-columns: 1fr; gap: var(--sp-3); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: .1rem; }
  .facts .k { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; }
  .step { grid-template-columns: 1fr; gap: var(--sp-1); }
  .cookie { padding: .75rem; align-items: flex-end; }
}

/* ---------- Menu mobile/tablet (hamburger fino a 1080px) ---------- */
@media (max-width: 1080px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--sp-2) 1.25rem var(--sp-4);
    transform: translateY(-120%); transition: transform .28s var(--ease);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav__links[data-open="true"] { transform: translateY(0); }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
  .nav__links a::after { display: none; }
  .nav__links .btn { margin-top: var(--sp-3); justify-content: center; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: transparent; border: 1px solid var(--line);
    border-radius: var(--radius); cursor: pointer; color: var(--ink);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .ic-close { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-close { display: block; }
}

/* =========================================================================
   ENHANCEMENTS — texture, motion orchestrata, dettagli editoriali
   (tutto disattivato sotto prefers-reduced-motion)
   ========================================================================= */

/* ---------- Grana di carta: toglie il piattume "digitale" ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Entrata hero orchestrata ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { opacity: 0; will-change: transform, opacity; animation: fg-rise .7s var(--ease) both; }
  .hero .eyebrow      { animation-delay: .10s; }
  .hero__title        { opacity: 0; clip-path: inset(0 0 105% 0); animation: fg-wipe .95s var(--ease) .18s both; }
  .hero__lead         { animation-delay: .40s; }
  .hero__actions      { animation-delay: .54s; }
  .hero__meta         { animation-delay: .66s; }
  .hero__media        { opacity: 0; animation: fg-photo 1s var(--ease) .28s both; }
}
@keyframes fg-rise  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fg-wipe  { 0% { opacity: 0; clip-path: inset(0 0 105% 0); } 100% { opacity: 1; clip-path: inset(0 0 -8% 0); } }
@keyframes fg-photo { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }

/* filo verticale petrolio a fianco dell'occhiello hero */
.hero__content .eyebrow { position: relative; }

/* ---------- Reveal on scroll: più materico e scaglionato ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .values .reveal:nth-child(2) { --rd: .09s; }
.cards .reveal:nth-child(3), .values .reveal:nth-child(3) { --rd: .18s; }
.cards .reveal:nth-child(4) { --rd: .12s; }
.cards .reveal:nth-child(5) { --rd: .2s; }
.cards .reveal:nth-child(6) { --rd: .28s; }
.steps .reveal:nth-child(2) { --rd: .08s; }
.steps .reveal:nth-child(3) { --rd: .16s; }
.steps .reveal:nth-child(4) { --rd: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Valori: trattamento editoriale (niente icone generiche) ---------- */
.values { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5) var(--sp-5); }
.value { padding-top: var(--sp-3); border-top: 1.5px solid var(--accent); position: relative; }
.value h3 { font-size: var(--step-2); font-weight: 400; letter-spacing: -0.01em; margin-bottom: var(--sp-2); }
.value h3 em { font-style: italic; color: var(--accent); }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ---------- Underline che si disegna nei link di testo ---------- */
.prose a, .contact-aside a:not(.social-ig), .cookie p a {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
  padding-bottom: 1px;
}
.prose a:hover, .contact-aside a:not(.social-ig):hover, .cookie p a:hover { background-size: 100% 1.5px; }
@media (prefers-reduced-motion: reduce) { .prose a, .contact-aside a:not(.social-ig) { background-size: 100% 1.5px; } }

/* ---------- Foto: micro-zoom su hover quando ci sarà un'immagine reale ---------- */
.photo img { transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.03); }

/* ---------- Section head: filo verticale d'accento ---------- */
.section-head { position: relative; }
.hero__title em, .card:hover h3 { transition: color .2s var(--ease); }

/* ---------- Card: la domanda si accende su hover ---------- */
.card:hover .card__q { color: var(--accent); transition: color .25s var(--ease); }

/* =========================================================================
   Blog "Approfondimenti" + Barra contatto rapido (mobile)
   ========================================================================= */

/* ---------- Lista articoli (placeholder blog) ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.post-item { padding: var(--sp-4) 0; border-top: 1px solid var(--line); position: relative; }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item__tag { display: inline-block; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: var(--sp-2); }
.post-item h2 { font-size: var(--step-2); font-weight: 400; margin-bottom: var(--sp-1); }
.post-item p { color: var(--ink-2); margin: 0; max-width: var(--measure); }
.post-item__soon { display: inline-block; margin-top: var(--sp-2); font-size: var(--step--1); font-weight: 600; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; padding: .2em .8em; }

/* ---------- Barra contatto rapido (solo mobile) ---------- */
.quickbar { display: none; }
@media (max-width: 680px) {
  .quickbar {
    display: flex; gap: .5rem;
    position: fixed; inset: auto 0 0 0; z-index: 80;
    padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: saturate(1.1) blur(8px);
    border-top: 1px solid var(--line);
  }
  .quickbar__btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem; text-decoration: none;
    padding: .8em .5em; border-radius: var(--radius);
    background: var(--accent); color: var(--white); border: 1.5px solid var(--accent);
  }
  .quickbar__btn svg { width: 18px; height: 18px; }
  .quickbar__btn--wa { background: #1F7A3D; border-color: #1F7A3D; }
  .quickbar__btn--ghost { background: transparent; color: var(--accent); }
  /* spazio in fondo così la barra non copre il footer */
  body { padding-bottom: 4.5rem; }
  /* la card cookie (bottom-sheet su mobile) resta sopra la barra contatti */
  .cookie { padding-bottom: 5.5rem; }
}

/* ---------- CTA doppia (WhatsApp + Email) ---------- */
.cta-actions { display: flex; gap: var(--sp-2) var(--sp-3); flex-wrap: wrap; }
.cta-band .cta-actions { justify-content: center; }
.btn--on-dark-ghost { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(255,255,255,.55); }
.btn--on-dark-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--paper); color: var(--white); }
.btn svg.ic { width: 18px; height: 18px; }

/* ---------- Blocco contatto rapido in pagina Contatti ---------- */
.contact-quick { padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.contact-quick__lead { font-weight: 600; margin: 0 0 var(--sp-3); font-size: var(--step-1); }

/* =========================================================================
   Striscia numeri (fatti reali, informativi — nessun claim elogiativo)
   + contatori animati allo scroll. Art. 17 CDF: solo dati veri e neutri.
   ========================================================================= */
.stats-band { border-block: 1px solid var(--line); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4) var(--sp-5); text-align: center;
  align-items: start;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.stat__n {
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-size: clamp(2.6rem, 1.9rem + 2.6vw, 3.7rem);
  color: var(--accent); letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.stat__n .suf { font-size: .5em; margin-left: .06em; color: var(--accent); }
.stat__l { margin: 0; color: var(--ink-2); font-size: var(--step-0); max-width: 24ch; line-height: 1.45; }
.stat__l strong { color: var(--ink); font-weight: 600; }
/* scaglionamento del reveal per la striscia */
.stats .reveal:nth-child(2) { --rd: .10s; }
.stats .reveal:nth-child(3) { --rd: .20s; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; gap: var(--sp-4); }
  .stat { padding-block: var(--sp-1); }
}

/* Reveal un filo più percepibile (richiesta: animazioni più vive) */
.reveal { transform: translateY(26px); }

/* =========================================================================
   Motti dello studio — trattamento editoriale (corsivo serif, la "firma")
   ========================================================================= */
.mottos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
.motto { border-left: 2px solid var(--accent); padding-left: var(--sp-4); }
.motto__q {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: var(--step-2); line-height: 1.34; letter-spacing: -0.01em;
  color: var(--ink); margin: 0;
}
.motto__t { margin: var(--sp-2) 0 0; color: var(--ink-2); font-size: var(--step-0); }
.motto--lead .motto__q { font-size: var(--step-3); color: var(--accent); }

/* Striscia motto-firma (home) */
.motto-band { text-align: center; }
.motto-band__q {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: var(--step-3); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--accent); margin: 0;
}
.motto-band__t { margin: var(--sp-3) 0 0; color: var(--ink-2); font-size: var(--step-0); }

/* =========================================================================
   SOCIAL — maggiore risalto (header, footer, contatti) + sezione Instagram
   ========================================================================= */

/* Icona Instagram nell'header (persistente su tutte le pagine) */
.nav__ig a {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--accent);
}
.nav__ig a::after { display: none; }
.nav__ig-label { display: none; }
.nav__ig .ig-glyph { width: 34px; height: 34px; padding: 6px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--accent); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.nav__ig a:hover .ig-glyph { background: var(--accent); color: var(--white); border-color: var(--accent); }
@media (max-width: 1080px) {
  /* Nel menu mobile diventa una voce con etichetta, come le altre */
  .nav__ig-label { display: inline; font-weight: 500; }
  .nav__ig .ig-glyph { width: 30px; height: 30px; padding: 5px; }
  .nav__ig a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
}

/* Link social come "pill" nei footer e nella colonna contatti */
.site-footer .social-ig,
.contact-aside .social-ig {
  padding: .55em 1em; border-radius: 100px; font-weight: 600;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.site-footer .social-ig {
  border: 1px solid rgba(255,255,255,.28); color: #F1EEE7;
}
.site-footer .social-ig:hover {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.55);
  color: #fff; text-decoration: none; transform: translateY(-1px);
}
.contact-aside .social-ig {
  border: 1px solid var(--accent); color: var(--accent);
}
.contact-aside .social-ig:hover {
  background: var(--accent); color: var(--white); transform: translateY(-1px);
}

/* Sezione Instagram in home */
.ig-band__inner {
  display: flex; align-items: center; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
}
.ig-band__glyph {
  flex: 0 0 auto; width: clamp(84px, 16vw, 120px); height: clamp(84px, 16vw, 120px);
  display: grid; place-items: center; border-radius: 22px;
  background: var(--accent); color: var(--paper);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent);
}
.ig-band__glyph svg { width: 56%; height: 56%; }
.ig-band__body { flex: 1 1 auto; }
.ig-band__body h2 { font-size: var(--step-2); margin: var(--sp-1) 0 var(--sp-2); }
.ig-band__body p { color: var(--ink-2); margin: 0 0 var(--sp-4); max-width: 56ch; }
.ig-band__body .btn .ic { width: 20px; height: 20px; }
@media (max-width: 680px) {
  .ig-band__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Mappa nella colonna Contatti (sotto WhatsApp ed email, parallela all'aside) */
.map-embed--col { aspect-ratio: 4 / 3; width: 100%; }
@media (max-width: 900px) { .map-embed--col { aspect-ratio: 3 / 2; } }

/* =========================================================================
   ARTICOLO (Approfondimenti) — pagina singola
   ========================================================================= */
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem var(--sp-3); margin-top: var(--sp-3); font-size: var(--step--1); color: #CFE0DC; }
.article__meta .tag { color: #A9C9C2; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.article__meta .dot { color: #7FA8A0; }
.article__body > h2:first-of-type { margin-top: 0; }
.article__body h2 { margin-top: var(--sp-5); font-size: var(--step-2); }
.article__body h3 { margin-top: var(--sp-4); font-size: var(--step-1); }
.article__body .lead { font-size: var(--step-1); color: var(--ink-2); }

/* Callout: disclaimer permanente "informazione generale" */
.callout {
  background: color-mix(in srgb, var(--accent) 7%, var(--white));
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
  font-size: var(--step-0); color: var(--ink-2); margin: var(--sp-4) 0;
}
.callout strong { color: var(--accent-deep); }
.callout p { margin: 0; }

/* "Leggi anche" — item cliccabile */
.post-item--link h2 { margin: 0; }
.post-item--link a { text-decoration: none; color: var(--ink); }
.post-item--link a:hover { color: var(--accent); }
.post-item__arrow { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--sp-2); color: var(--accent); font-weight: 600; font-size: var(--step--1); }

/* =========================================================================
   Tempo di risposta (solo giorni feriali) — abbassa l'attrito al contatto
   Testo da confermare con Francesca (vedi DATI-DA-CONFERMARE.md)
   ========================================================================= */
.reply-time {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: var(--sp-3); font-size: var(--step--1); color: var(--ink-2);
}
.reply-time svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); }
.reply-time strong { color: var(--ink); font-weight: 600; }
.section--dark .reply-time, .cta-band .reply-time { color: #CFE0DC; }
.section--dark .reply-time svg, .cta-band .reply-time svg { color: #A9C9C2; }
.section--dark .reply-time strong, .cta-band .reply-time strong { color: #fff; }
.reply-time[hidden] { display: none; }

/* =========================================================================
   Menu social a tendina (emoji 🔗 in alto a destra)
   ========================================================================= */
.nav__social { position: relative; display: flex; align-items: center; }
.social-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  width: 42px; height: 34px; padding: 0; font-size: 17px; line-height: 1;
  background: var(--white); border: 1px solid var(--line); border-radius: 9px;
  color: var(--accent); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.social-toggle:hover, .social-toggle[aria-expanded="true"] { background: var(--paper-2); border-color: var(--accent); }
.social-toggle::after { display: none; }
.social-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 196px; list-style: none; margin: 0; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.social-menu[data-open="true"] { display: block; animation: social-in .16s var(--ease); }
@keyframes social-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.social-menu li { margin: 0; }
.social-menu a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .7rem; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: var(--step--1); font-weight: 500; white-space: nowrap;
}
.social-menu a::after { display: none; }
.social-menu a:hover { background: var(--paper-2); color: var(--accent); }
.social-menu svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }

/* Nel menu mobile (<=1080px): la tendina si apre in linea, senza overlay */
@media (max-width: 1080px) {
  .nav__social { position: static; display: block; }
  .social-toggle { width: auto; height: auto; padding: .8rem 0; border: 0;
    background: transparent; border-radius: 0; color: var(--ink);
    font-family: var(--font-body); font-weight: 500; font-size: var(--step-1);
    justify-content: flex-start; gap: .6rem; }
  .social-toggle::before { content: none; }
  .social-toggle::after { content: "Social"; display: inline; }
  .social-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 1.6rem; min-width: 0; }
  .social-menu a { font-size: var(--step-1); }
}

/* =========================================================================
   Social affiancati a Instagram (footer, Contatti, sezione Instagram home)
   ========================================================================= */
.social-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.social-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 100px;
  border: 1px solid currentColor; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social-mini svg { width: 18px; height: 18px; }
.social-mini:hover { transform: translateY(-1px); }
/* Footer (sfondo scuro) */
.site-footer .social-mini { color: #D8D4CC; }
.site-footer .social-mini:hover { background: rgba(255,255,255,.10); color: #fff; }
/* Colonna Contatti (sfondo chiaro) */
.contact-aside .social-mini { color: var(--accent); }
.contact-aside .social-mini:hover { background: var(--accent); color: #fff; }
/* Sezione Instagram in home */
.ig-band__body .social-mini { color: var(--accent); background: var(--white); border-color: var(--line); }
.ig-band__body .social-mini:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ig-band__body .social-row { gap: .6rem; }

/* =========================================================================
   Lista social uniforme (icona + nome account, uno per riga)
   ========================================================================= */
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.social-list a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.social-list svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); }
/* Footer (sfondo scuro) */
.site-footer .social-list a { color: #E7E3DA; }
.site-footer .social-list a:hover { color: #fff; }
.site-footer .social-list svg { color: #CFE0DC; }
/* Colonna Contatti (sfondo chiaro) */
.contact-aside .social-list a { color: var(--ink); }
.contact-aside .social-list a:hover { color: var(--accent); }
/* Sezione social in home */
.ig-band__body .social-list { gap: .7rem; }
.ig-band__body .social-list a { font-size: var(--step-0); color: var(--ink); }
.ig-band__body .social-list a:hover { color: var(--accent); }

/* =========================================================================
   Tabelle informative (cookie policy) — scroll orizzontale su mobile
   ========================================================================= */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--sp-3) 0; border: 1px solid var(--line); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 520px; }
.data-table th, .data-table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--paper-2); font-weight: 700; color: var(--ink); white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table code { font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }

/* =========================================================================
   RIFINITURE DESIGN (2026-09-14) — pass di polish, solo visivo.
   Per annullare: rimuovere questo blocco (o ripristinare il backup).
   ========================================================================= */

/* Superfici bianche: angoli morbidi coerenti + profondità appena percettibile
   così le card e le foto "staccano" dalla carta senza rumore visivo. */
.card, .photo, .contact-aside, .ig-band__inner, .callout,
.map-embed--col, .field input, .field textarea, .field select {
  border-radius: var(--radius-lg);
}
.photo { box-shadow: var(--shadow-sm); }
.card { box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow); }
.contact-aside, .ig-band__inner { box-shadow: var(--shadow-sm); }

/* Un filo più d'aria tra le card delle aree (respiro editoriale) */
.cards { gap: var(--sp-4); }

/* Tipografia: titoli bilanciati, testo senza righe orfane */
h1, h2, h3, .hero__title, .page-hero h1, .section-head h2, .cta-band h2 { text-wrap: balance; }
.hero__lead, .prose p, .article__body .lead, .section-head p, .card p, .value p { text-wrap: pretty; }

/* Dettaglio di selezione testo coerente col brand */
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }

/* Foto: transizione ombra oltre allo zoom già presente */
.photo { transition: box-shadow .3s var(--ease); }
.photo:hover { box-shadow: var(--shadow); }

/* hero title: flusso naturale (evita orfano "Hai un") */
.hero__title { text-wrap: pretty; }

/* =========================================================================
   FIX MOBILE (2026-09-14) — menu senza lineette + hero: prima il testo
   ========================================================================= */
/* Menu a tendina: via le sottolineature sotto ogni voce (erano irregolari) */
@media (max-width: 1080px) {
  .nav__links a,
  .nav__ig a,
  .social-toggle { border-bottom: 0 !important; }
  .nav__links { padding: var(--sp-2) 1.25rem var(--sp-4); gap: .15rem; }
  .nav__links a { padding: .8rem 0; }
  .social-menu a { padding: .6rem 0; }
}
/* Hero su telefono: prima la scritta, poi la foto (più piccola e centrata) */
@media (max-width: 900px) {
  .hero { padding-top: var(--sp-5); }
  .hero__grid { gap: var(--sp-4); }
  .hero__media { order: 0; max-width: 340px; margin-inline: auto; margin-top: var(--sp-2); }
}

/* =========================================================================
   SPAZIATURA VERTICALE più compatta (2026-09-14) — tutto il sito
   Prima: .section 7rem sopra+sotto → tra due sezioni ~14rem (troppo vuoto).
   ========================================================================= */
.section { padding-block: var(--sp-6); }               /* 7rem → 4.5rem */
.ig-band { padding-block: var(--sp-5); }               /* social più vicino */
.motto-band { padding-block: var(--sp-4) var(--sp-5); }/* motto più raccolto */
@media (max-width: 680px) {
  .section { padding-block: var(--sp-5); }              /* mobile ancora più compatto */
  .ig-band, .motto-band { padding-block: var(--sp-4); }
}

/* =========================================================================
   HERO HOME — meno spazio sopra + occhiello "badge" (2026-09-15)
   ========================================================================= */
.hero { padding-block: clamp(1.1rem, .4rem + 2vw, 2.4rem) var(--sp-6); }
@media (max-width: 900px) { .hero { padding-top: var(--sp-3); } }

/* Etichetta hero: sobria, tipografica. Niente pill/pallino/linea. */
.hero__kicker {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);
}

/* =========================================================================
   "Come lavoro" — metodo a numeri editoriali (firma tipografica del sito)
   (2026-09-15) — sostituisce i .steps statici nella pagina Come lavoro
   ========================================================================= */
.method { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.method__step {
  position: relative;
  display: grid; grid-template-columns: minmax(3rem, 4rem) 1fr; gap: var(--sp-3) clamp(1.25rem, .8rem + 2.5vw, 2.5rem);
  align-items: center; padding: var(--sp-1) 0;
  border-top: 1px solid var(--line);
}
.method__step:last-child { border-bottom: 1px solid var(--line); }

.method__n {
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-size: var(--step-2);
  color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.method__body h3 { font-size: var(--step-2); font-weight: 500; margin: .15em 0 var(--sp-2); }
.method__body p { margin: 0; color: var(--ink-2); max-width: none; }

/* piccola animazione d'entrata, scaglionata (coerente col resto del sito) */
.method__step { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.method__step.is-in { opacity: 1; transform: none; }
.method__step:nth-child(2) { transition-delay: .08s; }
.method__step:nth-child(3) { transition-delay: .16s; }
.method__step:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .method__step { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 620px) {
  .method__step { grid-template-columns: 1fr; gap: var(--sp-1); }
  .method__body h3 { margin-top: 0; }
}

/* =========================================================================
   CTA STICKY MOBILE — contatto sempre a portata di pollice (2026-09-16)
   Iniettata da main.js su tutte le pagine; visibile solo ≤ 760px.
   ========================================================================= */
.cta-sticky { display: none; }
@media (max-width: 760px) {
  .cta-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; gap: .5rem;
    padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .cta-sticky__wa, .cta-sticky__mail {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; border-radius: var(--radius); font-weight: 600;
    font-size: var(--step-0); text-decoration: none; transition: background .2s var(--ease);
  }
  .cta-sticky__wa {
    flex: 1 1 auto; background: var(--accent); color: #fff;
    box-shadow: var(--shadow-sm);
  }
  .cta-sticky__wa:active { background: var(--accent-deep); }
  .cta-sticky__wa svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .cta-sticky__mail {
    flex: 0 0 auto; width: 48px; background: var(--white);
    border: 1px solid var(--line); color: var(--accent);
  }
  .cta-sticky__mail svg { width: 22px; height: 22px; }
  /* lo spazio per non coprire footer/contenuto in fondo */
  body.has-sticky-cta { padding-bottom: 72px; }
  /* mentre il banner cookie è aperto, la barra non deve competere */
  body:has(.cookie[data-open="true"]) .cta-sticky { display: none; }
}

/* =========================================================================
   TESTIMONIANZE — griglia sobria (Art. 17: fatti veri, nessuna comparazione)
   Stili pronti; la sezione va popolata con recensioni REALI + consenso.
   ========================================================================= */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.testimonial {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}
.testimonial__q { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.testimonial__q::before { content: "“"; font-family: var(--font-display); color: var(--accent); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: .08em; }
.testimonial__by { margin: auto 0 0; font-size: var(--step--1); color: var(--ink-2); font-style: normal; }
.testimonial__by strong { color: var(--ink); font-weight: 600; }
.testimonials__note { margin-top: var(--sp-4); font-size: var(--step--1); color: var(--ink-2); }
.testimonials__note a { color: var(--accent); }
