/* =========================================================
   Studio Difensore Tributario Dott. Salvatore Artino
   Design system + layout
   ========================================================= */

:root {
  /* Colori istituzionali (ripresi dalla brochure) */
  --bordeaux-900: #3D0C0C;
  --bordeaux-800: #4E1111;
  --bordeaux-700: #5E1414;
  --bordeaux-600: #7A1F1F;
  --bordeaux-500: #932C2C;

  --oro-600: #A8802F;
  --oro-500: #C39A42;
  --oro-400: #DCB763;
  --oro-300: #EBD299;
  --oro-100: #F7ECD2;

  --crema-50: #FDFBF5;
  --crema-100: #FBF4E2;
  --crema-200: #F4E9D2;
  --crema-300: #E8DABE;

  --inchiostro: #2B1B16;
  --inchiostro-soft: #5C4A43;
  --inchiostro-mute: #7C6A62;

  --bianco: #FFFFFF;
  --verde: #1F7A4D;
  --verde-soft: #E8F5EE;
  --ambra: #B5771A;
  --ambra-soft: #FFF6E3;

  /* Tipografia */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spaziature e forme */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(43, 27, 22, .06), 0 2px 8px rgba(43, 27, 22, .05);
  --shadow: 0 4px 12px rgba(43, 27, 22, .07), 0 14px 34px rgba(43, 27, 22, .08);
  --shadow-lg: 0 10px 24px rgba(43, 27, 22, .1), 0 30px 60px rgba(43, 27, 22, .12);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--inchiostro);
  background: var(--crema-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bordeaux-500); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding-left: 1.25em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--bordeaux-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--oro-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; }
.section--cream { background: var(--crema-100); }
.section--dark {
  background: linear-gradient(160deg, var(--bordeaux-800), var(--bordeaux-900) 70%);
  color: var(--crema-100);
}
.section--dark h2, .section--dark h3 { color: var(--bianco); }
.section--dark p { color: rgba(251, 244, 226, .86); }
/* Le superfici chiare dentro una sezione scura mantengono i propri colori */
.section--dark .note p,
.section--dark .card p { color: inherit; }
.section--dark .form-card p { color: var(--inchiostro-soft); }
.section--dark .form-card .form-footnote { color: var(--inchiostro-mute); }
.section--dark .form-card h2,
.section--dark .form-card h3 { color: var(--bordeaux-900); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bordeaux-700); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Occhiello / intestazioni di sezione ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oro-600); margin: 0 0 .85rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--oro-400); border-radius: 2px;
}
.section--dark .eyebrow { color: var(--oro-400); }
.section--dark .eyebrow::before { background: var(--oro-500); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.2rem + 2vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--inchiostro-soft); }
.section--dark .lead { color: rgba(251, 244, 226, .88); }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--bordeaux-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; width: 20px; height: 20px; }

.btn--gold { --btn-bg: var(--oro-400); --btn-fg: var(--bordeaux-900); }
.btn--gold:hover { --btn-bg: var(--oro-300); }
.btn--wa { --btn-bg: #1FA855; --btn-fg: #fff; }
.btn--wa:hover { --btn-bg: #178f47; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--bordeaux-700);
  border-color: rgba(94, 20, 20, .28);
}
.btn--ghost:hover { --btn-bg: rgba(94, 20, 20, .06); }
/* Su tutti i fondi scuri il bottone secondario deve schiarirsi */
.section--dark .btn--ghost,
.page-hero .btn--ghost,
.hero .btn--ghost,
.cta-band .btn--ghost,
.sidebar__card--dark .btn--ghost { --btn-fg: var(--crema-100); border-color: rgba(251, 244, 226, .42); }
.section--dark .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.sidebar__card--dark .btn--ghost:hover { --btn-bg: rgba(251, 244, 226, .12); }

/* ...ma dentro le superfici chiare (schede, moduli) torna scuro */
.form-card .btn--ghost,
.hero__card .btn--ghost,
.calc .btn--ghost,
.card .btn--ghost { --btn-fg: var(--bordeaux-700); border-color: rgba(94, 20, 20, .28); }
.form-card .btn--ghost:hover,
.hero__card .btn--ghost:hover,
.calc .btn--ghost:hover,
.card .btn--ghost:hover { --btn-bg: rgba(94, 20, 20, .06); }
.btn--sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.06rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--bordeaux-900);
  color: var(--crema-200);
  font-size: .86rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 40px; padding-block: .35rem;
}
.topbar__claim { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__claim svg { width: 16px; height: 16px; color: var(--oro-400); flex: none; }
.topbar__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.4rem; }
.topbar a { color: var(--crema-200); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--oro-300); }
.topbar svg { width: 15px; height: 15px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 245, .96);
  border-bottom: 1px solid var(--crema-300);
  transition: box-shadow .2s var(--ease);
}
@media (min-width: 901px) {
  .site-header {
    background: rgba(253, 251, 245, .94);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}
.site-header.is-stuck { box-shadow: 0 6px 22px rgba(43, 27, 22, .1); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
  position: relative;
}
body.nav-open { overflow: hidden; touch-action: none; }
body.nav-open .site-header { box-shadow: 0 6px 22px rgba(43, 27, 22, .1); }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--bordeaux-800); letter-spacing: -.01em;
}
.brand__role {
  font-size: .68rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--oro-600);
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: 999px;
  font-size: .95rem; font-weight: 550; color: var(--inchiostro); text-decoration: none;
  transition: background-color .16s var(--ease), color .16s var(--ease);
  white-space: nowrap;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--crema-200); color: var(--bordeaux-700); }
.nav__link[aria-current="page"] { color: var(--bordeaux-700); background: var(--crema-200); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }

.nav__item { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 310px; padding: .5rem;
  background: var(--bianco); border: 1px solid var(--crema-300);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.nav__panel a {
  display: block; padding: .6rem .75rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--inchiostro); font-size: .93rem; font-weight: 550;
}
.nav__panel a small { display: block; font-weight: 400; font-size: .8rem; color: var(--inchiostro-mute); }
.nav__panel a:hover { background: var(--crema-100); color: var(--bordeaux-700); }

.nav__cta { display: none; }
.header-cta { flex: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: var(--crema-200); border: 1px solid var(--crema-300);
  border-radius: 12px; cursor: pointer; color: var(--bordeaux-800);
}
.nav-toggle svg { width: 24px; height: 24px; margin-inline: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--bordeaux-800) 0%, var(--bordeaux-900) 55%, #2E0808 100%);
  color: var(--crema-100);
  padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(220, 183, 99, .22), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(220, 183, 99, .1), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.hero h1 { color: var(--bianco); }
.hero h1 em { font-style: normal; color: var(--oro-400); }
.hero__lead {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.28rem);
  color: rgba(251, 244, 226, .9); max-width: 34rem;
}
.hero .eyebrow { color: var(--oro-400); }
.hero .eyebrow::before { background: var(--oro-500); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: .55rem 1.5rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(220, 183, 99, .28);
  list-style: none; padding-left: 0;
  font-size: .93rem; color: rgba(251, 244, 226, .84);
}
.hero__trust li { display: flex; align-items: center; gap: .5rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--oro-400); flex: none; }

/* Card "check rapido" nell'hero */
.hero__card {
  background: var(--crema-50); color: var(--inchiostro);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--oro-400);
}
.hero__card h2 { font-size: 1.3rem; margin-bottom: .35rem; }
.hero__card p { font-size: .95rem; color: var(--inchiostro-soft); }
.hero__checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.hero__checklist li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .55rem 0; border-bottom: 1px dashed var(--crema-300);
  font-size: .95rem;
}
.hero__checklist li:last-child { border-bottom: 0; }
.hero__checklist svg { width: 20px; height: 20px; color: var(--verde); flex: none; margin-top: 2px; }

/* ---------- Barra fiducia ---------- */
.trustbar { background: var(--bordeaux-900); color: var(--crema-200); padding: 1.1rem 0; }
.trustbar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem;
  text-align: center;
}
.trustbar__num {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--oro-400);
  display: block; line-height: 1.2;
}
.trustbar__label { font-size: .84rem; color: rgba(251, 244, 226, .78); }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--contatti { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bianco);
  border: 1px solid var(--crema-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin-bottom: .45rem; }
.card p { margin-bottom: 0; color: var(--inchiostro-soft); font-size: .96rem; }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--crema-100); color: var(--bordeaux-700);
  border-radius: 12px; border: 1px solid var(--crema-300);
}
.card__icon svg { width: 24px; height: 24px; }

a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--oro-400); }
.card__more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; font-size: .92rem; font-weight: 650; color: var(--bordeaux-700);
}
.card__more svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
a.card:hover .card__more svg { transform: translateX(4px); }

/* Card "situazione" (riconosci il tuo caso) */
.case-card {
  display: flex; gap: .95rem; align-items: flex-start;
  background: var(--bianco); border: 1px solid var(--crema-300);
  border-left: 4px solid var(--oro-400);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-left-color .2s var(--ease);
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-left-color: var(--bordeaux-600); color: inherit; }
.case-card svg { width: 22px; height: 22px; color: var(--bordeaux-600); flex: none; margin-top: 3px; }
.case-card strong { display: block; font-size: 1rem; color: var(--bordeaux-900); margin-bottom: .15rem; }
.case-card span { font-size: .9rem; color: var(--inchiostro-soft); line-height: 1.55; }

/* ---------- Motivi di nullità (pillars) ---------- */
.pillar {
  background: rgba(251, 244, 226, .07);
  border: 1px solid rgba(220, 183, 99, .3);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.pillar__num {
  font-family: var(--font-display); font-size: 2.1rem; color: var(--oro-400);
  line-height: 1; display: block; margin-bottom: .6rem;
}
.pillar h3 { font-size: 1.18rem; color: var(--bianco); margin-bottom: .5rem; }
.pillar p { font-size: .95rem; margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.step {
  position: relative; padding-top: 3.4rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bordeaux-700); color: var(--oro-300);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 0 0 6px var(--crema-100);
}
.step::after {
  content: ""; position: absolute; top: 24px; left: 56px; right: -20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--oro-400) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step p { font-size: .94rem; color: var(--inchiostro-soft); margin-bottom: 0; }

/* ---------- Blocco "info-note" ---------- */
.note {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.15rem 1.35rem; border-radius: var(--radius);
  background: var(--ambra-soft); border: 1px solid #F0DDB4;
  font-size: .95rem; color: #6B4A12;
}
.note svg { width: 22px; height: 22px; flex: none; color: var(--ambra); margin-top: 2px; }
.note p { margin: 0; }
.note p + p { margin-top: .6rem; }
.note--info { background: #EEF4FB; border-color: #D3E2F2; color: #244766; }
.note--info svg { color: #2E6BA0; }

/* ---------- Elenco numerato "7 punti" ---------- */
.facts { counter-reset: fact; display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.facts > li {
  counter-increment: fact;
  position: relative;
  background: var(--bianco); border: 1px solid var(--crema-300);
  border-radius: var(--radius); padding: 1.35rem 1.5rem 1.35rem 4.4rem;
  box-shadow: var(--shadow-sm);
}
.facts > li::before {
  content: counter(fact);
  position: absolute; left: 1.35rem; top: 1.35rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bordeaux-700); color: var(--oro-300);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.facts h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.facts p { margin-bottom: 0; font-size: .96rem; color: var(--inchiostro-soft); }
.facts p + p { margin-top: .6rem; }

/* ---------- Timeline scadenze ---------- */
.deadlines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.deadline {
  background: var(--bianco); border: 1px solid var(--crema-300);
  border-radius: var(--radius); padding: 1.35rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.deadline__days {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--bordeaux-700); line-height: 1;
}
.deadline__unit { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--oro-600); font-weight: 700; }
.deadline h3 { font-size: 1.02rem; margin: .8rem 0 .3rem; }
.deadline p { font-size: .9rem; color: var(--inchiostro-soft); margin: 0; }

/* ---------- Calcolatore termini ---------- */
.calc {
  background: var(--bianco); border: 1px solid var(--crema-300);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  box-shadow: var(--shadow);
}
.calc__form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.calc__form .field { flex: 1 1 220px; margin: 0; }
.calc__out { margin-top: 1.5rem; display: none; }
.calc__out.is-visible { display: block; }
.calc__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-bottom: 1.1rem; }
.calc__res {
  border-radius: var(--radius); padding: 1rem 1.1rem;
  border: 1px solid var(--crema-300); background: var(--crema-50);
}
.calc__res h4 { margin: 0 0 .25rem; font-size: .98rem; }
.calc__res .date { font-weight: 700; font-size: 1.05rem; color: var(--bordeaux-800); }
.calc__res .left { display: block; font-size: .87rem; color: var(--inchiostro-soft); margin-top: .15rem; }
.calc__res.is-ok { background: var(--verde-soft); border-color: #BFE3D0; }
.calc__res.is-ok .date { color: #14603A; }
.calc__res.is-late { background: #FCEDED; border-color: #F0CFCF; }
.calc__res.is-late .date { color: #93221F; }

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--crema-300); }
.accordion__item { border-bottom: 1px solid var(--crema-300); }
.accordion__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.25rem .25rem; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--bordeaux-900);
  line-height: 1.35;
}
.accordion__btn:hover { color: var(--bordeaux-500); }
.accordion__btn .chev {
  flex: none; width: 26px; height: 26px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--crema-200); color: var(--bordeaux-700);
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.accordion__btn .chev svg { width: 15px; height: 15px; }
.accordion__btn[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--oro-400); }
.accordion__panel {
  overflow: hidden; height: 0;
  transition: height .28s var(--ease);
}
.accordion__inner { padding: 0 3.2rem 1.4rem .25rem; color: var(--inchiostro-soft); }
.accordion__inner p:last-child { margin-bottom: 0; }

/* ---------- Regioni ---------- */
.regions { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; padding: 0; margin: 0; }
.regions li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: 999px;
  background: rgba(251, 244, 226, .1); border: 1px solid rgba(220, 183, 99, .35);
  color: var(--crema-100); font-weight: 600; font-size: .95rem;
}
.regions svg { width: 16px; height: 16px; color: var(--oro-400); }

/* ---------- Form ---------- */
.form-card {
  background: var(--bianco); border: 1px solid var(--crema-300);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.15rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 650; color: var(--bordeaux-900); }
.field .hint { font-size: .82rem; color: var(--inchiostro-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .95rem;
  background: var(--crema-50);
  border: 1.5px solid var(--crema-300); border-radius: var(--radius-sm);
  font-size: .97rem; color: var(--inchiostro);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C4A43' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--bianco);
  border-color: var(--oro-500); box-shadow: 0 0 0 4px rgba(220, 183, 99, .22);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #C0504D; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--inchiostro-soft); }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--bordeaux-700); }
.form-footnote { font-size: .84rem; color: var(--inchiostro-mute); margin: 1rem 0 0; }
.form-status { margin-top: 1rem; font-size: .93rem; display: none; }
.form-status.is-visible { display: block; }

/* Colonna contatti diretti */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.contact-list a, .contact-list .item {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.15rem; border-radius: var(--radius);
  background: rgba(251, 244, 226, .08); border: 1px solid rgba(220, 183, 99, .3);
  text-decoration: none; color: var(--crema-100);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.contact-list a:hover { background: rgba(251, 244, 226, .16); border-color: var(--oro-400); color: var(--crema-100); }
.contact-list svg { width: 22px; height: 22px; color: var(--oro-400); flex: none; margin-top: 3px; }
.contact-list .k { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--oro-400); font-weight: 700; }
.contact-list .v { font-weight: 600; word-break: break-word; }

/* ---------- CTA finale ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--bordeaux-700), var(--bordeaux-900));
  color: var(--crema-100);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.4rem + 2.5vw, 3.2rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--bianco); }
.cta-band p { color: rgba(251, 244, 226, .88); max-width: 44rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

/* ---------- Pagine interne ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--bordeaux-800), var(--bordeaux-900));
  color: var(--crema-100);
  padding: clamp(2.5rem, 1.8rem + 3vw, 4rem) 0 clamp(2.5rem, 1.8rem + 3vw, 4rem);
}
.page-hero h1 { color: var(--bianco); max-width: 20ch; }
.page-hero p { color: rgba(251, 244, 226, .88); }
.page-hero .lead { max-width: 42rem; color: rgba(251, 244, 226, .88); }
.page-hero .eyebrow { color: var(--oro-400); }
.page-hero .eyebrow::before { background: var(--oro-500); }

.breadcrumb { font-size: .86rem; margin-bottom: 1.2rem; color: rgba(251, 244, 226, .7); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.breadcrumb a { color: var(--oro-300); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--oro-300); }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: rgba(220, 183, 99, .55); }

.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--oro-600); font-weight: 700; }
.prose blockquote {
  margin: 1.6rem 0; padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--oro-400); background: var(--crema-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .98rem; color: var(--inchiostro-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.ref { font-size: .88rem; color: var(--inchiostro-mute); font-style: italic; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.25rem; }
.sidebar__card {
  background: var(--bianco); border: 1px solid var(--crema-300);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.sidebar__card--dark {
  background: linear-gradient(150deg, var(--bordeaux-700), var(--bordeaux-900));
  border-color: transparent; color: var(--crema-100);
}
.sidebar__card--dark h3 { color: var(--bianco); }
.sidebar__card--dark p { color: rgba(251, 244, 226, .85); font-size: .93rem; }
.sidebar__card h3 { font-size: 1.1rem; }
.sidebar__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.sidebar__list a {
  display: block; padding: .6rem .7rem; border-radius: var(--radius-sm);
  font-size: .93rem; color: var(--inchiostro); text-decoration: none; font-weight: 550;
}
.sidebar__list a:hover { background: var(--crema-100); color: var(--bordeaux-700); }
.sidebar__list a[aria-current="page"] { background: var(--crema-200); color: var(--bordeaux-700); }

/* ---------- Foto professionista ---------- */
.portrait {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(168, 128, 47, .32);
  background: var(--bordeaux-900);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait figcaption {
  font-size: .82rem;
  color: var(--inchiostro-mute);
  padding: .7rem .95rem .85rem;
  background: var(--bianco);
  border-top: 1px solid var(--crema-300);
}

.portrait--sidebar {
  aspect-ratio: 1;
}
.portrait--sidebar img { object-position: center 8%; }

.portrait--inline { margin: 1.35rem 0 1.8rem; }
.portrait--inline img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-position: 68% 72%;
}

.pro-band {
  background: var(--crema-100);
  padding: clamp(1.8rem, 1.2rem + 2vw, 2.7rem) 0;
  border-bottom: 1px solid var(--crema-300);
}
.pro-band__inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(1.2rem, 1rem + 2vw, 2.2rem);
  align-items: center;
}
.pro-band .portrait {
  aspect-ratio: 1;
  max-width: 280px;
  width: 100%;
}
.pro-band .portrait img { object-position: center 8%; }
.pro-band h2 {
  margin-bottom: .35rem;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
}
.pro-band p {
  margin-bottom: 1rem;
  color: var(--inchiostro-soft);
  max-width: 52ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bordeaux-900); color: rgba(251, 244, 226, .8);
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 1.5rem;
  font-size: .93rem;
}
.site-footer h3 {
  font-family: var(--font-body); font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--oro-400); margin-bottom: 1rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer a { color: rgba(251, 244, 226, .8); text-decoration: none; }
.site-footer a:hover { color: var(--oro-300); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--bianco); display: block; }
.footer-brand span { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--oro-400); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(220, 183, 99, .22);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: rgba(251, 244, 226, .6);
}
.disclaimer {
  margin-top: 1.5rem; padding: 1.1rem 1.35rem;
  background: rgba(0, 0, 0, .22); border-radius: var(--radius);
  font-size: .82rem; line-height: 1.65; color: rgba(251, 244, 226, .68);
}

/* ---------- Barra CTA mobile ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: .6rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(253, 251, 245, .97);
  border-top: 1px solid var(--crema-300);
  box-shadow: 0 -6px 24px rgba(43, 27, 22, .12);
}
.mobile-cta .btn { flex: 1; padding: .85rem .5rem; font-size: .95rem; min-height: 48px; }

/* ---------- Segnaposto da completare ---------- */
.tbd {
  background: #FFF3CD;
  border-bottom: 2px dashed #D9A62E;
  padding: 0 .25em;
  border-radius: 3px;
  font-style: normal;
  color: #6B4A12;
  font-size: .95em;
}

/* ---------- Animazioni ---------- */
/* Il contenuto parte nascosto solo se il JavaScript è attivo: senza JS resta sempre leggibile */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 560px; }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .sidebar .portrait { max-width: 280px; }
}

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--contatti { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .deadlines { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .calc__results { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar__claim { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { gap: 1.1rem; }

  .brand { min-width: 0; flex: 1; }
  .brand__name { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__role { font-size: .64rem; }

  .nav-toggle {
    display: grid; place-items: center;
    position: relative; z-index: 120;
    flex: none; margin-left: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .header-cta { display: none; }

  /*
    Il menu deve essere fixed rispetto al viewport.
    Non usare backdrop-filter sull'header mobile: crea un containing block
    e il pannello finisce con altezza 0 dentro l'header.
  */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--crema-50);
    padding: 1rem 1.15rem calc(5.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s var(--ease), visibility .2s;
    border-top: 1px solid var(--crema-300);
    box-shadow: inset 0 8px 16px rgba(43, 27, 22, .04);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__link {
    padding: 1rem 1rem;
    font-size: 1.08rem;
    border-radius: var(--radius-sm);
    justify-content: space-between;
    min-height: 48px;
  }
  .nav__panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--crema-300);
    border-radius: 0; margin: .15rem 0 .5rem 1rem; padding: 0 0 0 .5rem;
    min-width: 0; display: none;
  }
  .nav__item.is-open > .nav__panel { display: block; }
  .nav__item.is-open > .nav__link { background: var(--crema-200); color: var(--bordeaux-700); }
  .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
  .nav__panel a {
    padding: .85rem .75rem;
    font-size: .98rem;
    min-height: 48px;
  }
  .nav__cta {
    margin-top: 1.35rem;
    display: grid;
    gap: .7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--crema-300);
  }
  .nav__cta .btn { width: 100%; min-height: 48px; }

  .mobile-cta {
    display: flex;
    z-index: 90;
  }
  body.nav-open .mobile-cta { opacity: .35; pointer-events: none; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  /* Su schermi stretti la mail per esteso spingerebbe fuori la barra: resta nel footer */
  .topbar__links a:last-child { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .deadlines { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .pro-band__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .pro-band .portrait { max-width: min(100%, 340px); width: 100%; }
  .pro-band .eyebrow { justify-content: center; }
  .pro-band p { margin-inline: auto; }
  .accordion__inner { padding-right: 1rem; }
  .facts > li { padding: 1.2rem 1.15rem 1.2rem 1.15rem; }
  .facts > li::before { position: static; margin-bottom: .7rem; }
  .btn { width: 100%; }
  .mobile-cta .btn { width: auto; }
  .btn-row { flex-direction: column; }
  .cta-band .btn-row { flex-direction: column; }
}

@media print {
  .site-header, .topbar, .mobile-cta, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
