/* ═══════════════════════════════════════════════════════════════════
   CANTIERE SOCIAL — cantieresocial.it
   Design system: "sito di cantiere" — carta da progetto, arancio
   sicurezza, tipografia da cartello.
   ═══════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
  /* colore — estratto dal logo */
  --cream:        #FFF8F3;
  --cream-2:      #FBEFE5;
  --ink:          #17120E;
  --ink-2:        #241B14;
  --orange:       #EA7621;
  --orange-deep:  #C25A10;
  --orange-soft:  #FBE4D0;
  --orange-ink:   #A94B0B;   /* arancio leggibile come testo su fondo chiaro */
  --brown:        #4A342A;

  --fg:           var(--ink);
  --fg-muted:     #6B5B4E;
  --fg-faint:     #8C7A6B;
  --bg:           var(--cream);
  --surface:      #FFFFFF;
  --line:         rgba(23, 18, 14, .13);
  --line-strong:  rgba(23, 18, 14, .28);

  --fg-inv:       #FFF8F3;
  --fg-inv-muted: #AE9C8E;
  --line-inv:     rgba(255, 248, 243, .18);

  --focus:        var(--orange-deep);

  /* tipografia */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spazio — scala 4/8 */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  --radius:    14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --wrap: 1200px;
  --shadow-sm: 0 1px 2px rgba(23,18,14,.06), 0 4px 14px rgba(23,18,14,.05);
  --shadow-md: 0 2px 6px rgba(23,18,14,.07), 0 16px 40px rgba(23,18,14,.09);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--fg-inv);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── LAYOUT ──────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.wrap--narrow { max-width: 800px; }

.section { padding-block: clamp(72px, 10vw, 128px); }

/* ── TIPOGRAFIA ──────────────────────────────────────────────────── */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.muted     { color: var(--fg-faint); font-weight: 600; }
.muted-inv { color: #7E6D5F; font-weight: 600; }

.label {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--sp-5);
}
.label span {
  background: var(--orange);
  color: var(--ink);
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: .08em;
}
.label--inv { color: #A8968A; }

.sec-head { max-width: 760px; margin-bottom: var(--sp-8); }
.sec-head--center { max-width: 700px; margin-inline: auto; text-align: center; }
.sec-head--center .label { justify-content: center; }
.sec-head__note {
  margin-top: var(--sp-5);
  font-size: 1.06rem;
  color: var(--fg-muted);
  max-width: 58ch;
}
.sec-head--center .sec-head__note { margin-inline: auto; }
.sec-head__note--inv { color: #A8968A; }

/* icone — tratto coerente 1.6, nessuna emoji */
.ico {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ── BOTTONI ─────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 11px var(--sp-5);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--lg { min-height: 52px; padding: 14px var(--sp-6); font-size: 1rem; }
.btn--block { width: 100%; }

.btn--dark   { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink); }
.btn--orange { --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-bd: var(--orange); }
.btn--orange:hover { --btn-bg: var(--orange-deep); --btn-bd: var(--orange-deep); --btn-fg: #fff; }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--ink); }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: var(--sp-4) var(--sp-5);
  padding-top: max(var(--sp-4), env(safe-area-inset-top));
}

.nav {
  max-width: 980px; margin-inline: auto;
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
  background: rgba(255, 248, 243, .82);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.nav-wrap.is-stuck .nav {
  background: rgba(255, 248, 243, .94);
  box-shadow: var(--shadow-md);
}

.nav__brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700; font-size: .98rem;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__star { color: var(--orange); }

.nav__links {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-left: auto;
}
.nav__links a {
  display: block;
  padding: 9px var(--sp-4);
  border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(23,18,14,.05); }
.nav__cta { flex: 0 0 auto; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  border-radius: var(--radius-pill);
}
.nav__burger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  max-width: 980px; margin: var(--sp-2) auto 0;
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-4);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  min-height: 48px;
  display: flex; align-items: center;
  padding: 0 var(--sp-4);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.nav-mobile a:not(.btn):hover { background: rgba(23,18,14,.05); }
.nav-mobile .btn { margin-top: var(--sp-2); }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(120px, 17vw, 168px);
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
}

/* griglia da foglio di progetto */
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(23,18,14,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23,18,14,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 85% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: var(--sp-7);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 7px var(--sp-4) 7px var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--fg-muted);
  margin-bottom: var(--sp-5);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,118,33,.22);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4.05rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 600;
  margin-bottom: var(--sp-5);
}
.hero__title strong {
  font-weight: 800;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
/* sottolineatura da matita rossa */
.hero__title strong::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .1em;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: rule-in .8s .5s var(--ease) forwards;
}
@keyframes rule-in { to { transform: scaleX(1); } }

.hero__sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 52ch;
  margin-bottom: var(--sp-6);
}
.hero__sub strong { color: var(--ink); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }

.hero__ticks { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
.hero__ticks li {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: .88rem; color: var(--fg-muted);
  font-family: var(--font-mono);
}
.hero__ticks li::before {
  content: ""; width: 6px; height: 6px;
  background: var(--orange); transform: rotate(45deg);
}

.hero__media { position: relative; justify-self: end; }
.hero__media img {
  width: 100%; max-width: 520px;
  filter: drop-shadow(0 30px 60px rgba(23,18,14,.16));
}

.hero__badge {
  position: absolute; left: -8px; bottom: 46px;
  display: flex; flex-direction: column;
  padding: var(--sp-4) var(--sp-5);
  background: var(--ink);
  color: var(--fg-inv);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}
.hero__badge-num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.7rem; line-height: 1;
  letter-spacing: -.03em;
  color: var(--orange);
}
.hero__badge-lbl {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase;
  color: #A8968A;
  margin-top: 4px;
}

/* ── TICKER ──────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-block: 1.5px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  padding-block: var(--sp-3);
}
.ticker__track {
  display: flex; align-items: center; gap: var(--sp-5);
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.ticker i { width: 6px; height: 6px; background: var(--ink); transform: rotate(45deg); flex: 0 0 auto; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PROBLEMA ────────────────────────────────────────────────────── */
.problem__claim { margin-bottom: var(--sp-8); max-width: 26ch; }

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.problem__card {
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.problem__card .ico { color: var(--orange); margin-bottom: var(--sp-4); }
.problem__card h3 {
  font-family: var(--font-display);
  font-size: 1.14rem; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-2);
}
.problem__card p { color: var(--fg-muted); font-size: .97rem; }

/* ── SERVIZI ─────────────────────────────────────────────────────── */
.services { background: var(--cream-2); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.card__n {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .1em;
  color: var(--fg-muted);
}
.card .ico { width: 28px; height: 28px; color: var(--orange); margin-bottom: var(--sp-4); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: var(--sp-3);
}
.card > p { color: var(--fg-muted); font-size: .96rem; margin-bottom: var(--sp-5); }
.card ul {
  margin-top: auto;
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line-strong);
}
.card li {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  font-size: .88rem; color: var(--fg-muted);
  font-family: var(--font-mono);
  line-height: 1.45;
}
.card li::before {
  content: ""; flex: 0 0 auto;
  width: 5px; height: 5px; margin-top: 8px;
  background: var(--orange); transform: rotate(45deg);
}

/* ── SETTORI ─────────────────────────────────────────────────────── */
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.sector {
  display: flex; flex-direction: column;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--orange);
}
.sector header {
  display: flex; align-items: center; gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.sector header .ico { color: var(--orange); }
.sector h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -.02em;
}
.sector__claim {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 700;
  line-height: 1.2; letter-spacing: -.03em;
  margin-bottom: var(--sp-3);
  text-wrap: balance;
}
.sector > p { color: var(--fg-muted); font-size: .96rem; }
.sector ul {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.sector li {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: .85rem; color: var(--fg-muted);
  line-height: 1.45;
}
.sector li::before {
  content: ""; flex: 0 0 auto;
  width: 5px; height: 5px; margin-top: 8px;
  background: var(--orange); transform: rotate(45deg);
}

/* ── METODO (blocco scuro) ───────────────────────────────────────── */
.method {
  background: var(--ink);
  color: var(--fg-inv);
  background-image:
    linear-gradient(to right, rgba(255,248,243,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,248,243,.045) 1px, transparent 1px);
  background-size: 64px 64px;
}
.method .label span { background: var(--orange); color: var(--ink); }

.phases {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-inv);
}
.phase {
  display: grid;
  grid-template-columns: 84px 1fr 160px;
  gap: var(--sp-5);
  align-items: start;
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--line-inv);
  transition: background-color .22s var(--ease);
}
.phase:hover { background: rgba(255,248,243,.035); }
.phase__n {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 800;
  line-height: .9; letter-spacing: -.04em;
  color: var(--orange);
}
.phase h3 {
  font-family: var(--font-display);
  font-size: 1.42rem; font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: var(--sp-2);
}
.phase p { color: #A8968A; font-size: .99rem; max-width: 62ch; }
.phase__meta {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .09em;
  text-transform: uppercase;
  color: #A8968A;
  padding-top: 6px;
  text-align: right;
}

/* ── NUMERI + CITAZIONI ──────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-7);
}
.stat {
  display: flex; flex-direction: column-reverse; gap: var(--sp-2);
  padding: var(--sp-6);
  background: var(--surface);
}
.stat dt {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.stat dd {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat dd[data-todo] { color: var(--fg-faint); }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.quote {
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: 1.14rem; line-height: 1.45;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-5);
  text-wrap: pretty;
}
.quote blockquote::before { content: "“"; color: var(--orange); }
.quote blockquote::after  { content: "”"; color: var(--orange); }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote figcaption strong { font-weight: 700; font-size: .95rem; }
.quote figcaption span {
  font-family: var(--font-mono);
  font-size: .8rem; color: var(--fg-muted);
}

/* ── STUDIO ──────────────────────────────────────────────────────── */
.studio { background: var(--cream-2); }
.studio__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: var(--sp-8);
  align-items: center;
}
.studio__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.studio__media::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 8px;
  background: repeating-linear-gradient(
    -45deg, var(--orange) 0 12px, var(--ink) 12px 24px
  );
}
.studio__media img { width: 100%; }

.studio__lead {
  font-size: 1.08rem; color: var(--fg-muted);
  margin-bottom: var(--sp-6); max-width: 56ch;
}

.people {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.person {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person h3 {
  font-family: var(--font-display);
  font-size: 1.24rem; font-weight: 800;
  letter-spacing: -.03em;
}
.person__role {
  font-family: var(--font-mono);
  font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: var(--sp-3);
}
.person p:last-child { font-size: .93rem; color: var(--fg-muted); }

.studio__values { display: flex; flex-direction: column; gap: var(--sp-3); }
.studio__values li {
  display: flex; align-items: center; gap: var(--sp-3);
  font-weight: 600; font-size: .97rem;
}
.studio__values li::before {
  content: ""; flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.acc { border-top: 1px solid var(--line-strong); }
.acc__item { border-bottom: 1px solid var(--line-strong); }
.acc__item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  min-height: 64px;
  padding-block: var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  cursor: pointer;
  list-style: none;
  transition: color .18s var(--ease);
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary:hover { color: var(--orange-deep); }
.acc__item summary::after {
  content: ""; flex: 0 0 auto;
  width: 22px; height: 22px;
  background: var(--fg-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s var(--ease), background-color .18s var(--ease);
}
.acc__item[open] summary::after { transform: rotate(45deg); background: var(--orange); }
.acc__body { padding-bottom: var(--sp-5); }
.acc__body p { color: var(--fg-muted); max-width: 68ch; }

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta {
  background: var(--ink);
  color: var(--fg-inv);
  background-image: radial-gradient(90% 70% at 15% 0%, rgba(234,118,33,.16), transparent 62%);
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: var(--sp-8);
  align-items: start;
}
.cta .label span { background: var(--orange); color: var(--ink); }
.cta__lead {
  font-size: 1.08rem; color: #A8968A;
  margin-top: var(--sp-5); margin-bottom: var(--sp-7);
  max-width: 50ch;
}
.cta__direct { display: flex; flex-direction: column; gap: var(--sp-4); }
.cta__direct li { display: flex; align-items: center; gap: var(--sp-3); }
.cta__direct .ico { color: var(--orange); }
.cta__direct a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s var(--ease);
}
.cta__direct a:hover { border-bottom-color: var(--orange); }

/* ── FORM ────────────────────────────────────────────────────────── */
.form {
  padding: var(--sp-6);
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form__title {
  font-family: var(--font-display);
  font-size: 1.24rem; font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: var(--sp-5);
}

.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: .84rem; font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 6px;
}
.field label span { color: var(--orange-ink); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px var(--sp-4);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16px; /* evita lo zoom automatico su iOS */
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236B5B4E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,118,33,.2);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #C0281E; }

.field__err[hidden] { display: none; }
.field__err {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-size: .82rem; font-weight: 600;
  color: #A32118;
}
.field__err::before {
  content: ""; flex: 0 0 auto;
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M12 7.5v5.5M12 16.2v.6' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M12 7.5v5.5M12 16.2v.6' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.field--check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--sp-3);
  align-items: start;
  margin-bottom: var(--sp-5);
}
.field--check input {
  width: 24px; height: 24px;
  margin-top: 1px;
  accent-color: var(--orange);
  cursor: pointer;
}
.field--check label {
  margin: 0;
  font-size: .86rem; font-weight: 400;
  line-height: 1.5; color: var(--fg-muted);
}
.field--check .field__err { grid-column: 1 / -1; }

.form__note {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: .76rem; color: var(--fg-muted);
  text-align: center;
}
.form__status:not(:empty) {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--orange-soft);
  border-radius: 10px;
  font-size: .88rem; font-weight: 600;
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--fg-inv);
  padding-top: var(--sp-8);
  padding-bottom: max(var(--sp-5), env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-inv);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}
.footer__brand p {
  margin-top: var(--sp-3);
  color: #8B7A6C; font-size: .93rem; max-width: 38ch;
}
.footer h2 {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: #A8968A;
  margin-bottom: var(--sp-4);
}
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__nav a, .footer__contact a {
  min-height: 32px; display: inline-flex; align-items: center;
  color: #C4B5A8; font-size: .93rem; text-decoration: none;
  transition: color .18s var(--ease);
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--orange); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-inv);
  font-family: var(--font-mono);
  font-size: .74rem; color: #A8968A;
}
.footer__bottom a {
  display: inline-block;
  padding-block: 5px;
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer__bottom a:hover { color: var(--orange); }

/* ── MOTION ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero__media { justify-self: center; }
  .hero__media img { max-width: 420px; }
  .hero__badge { left: 0; bottom: 24px; }

  .problem__grid, .cards, .sectors__grid { grid-template-columns: repeat(2, 1fr); }
  .studio__inner { grid-template-columns: 1fr; }
  .studio__media { max-width: 460px; }
  .cta__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav { padding-right: var(--sp-2); }

  .phase { grid-template-columns: 56px 1fr; }
  .phase__n { font-size: 1.7rem; }
  .phase__meta { grid-column: 2; justify-self: start; text-align: left; padding-top: var(--sp-2); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 88px; }

  .problem__grid, .cards, .sectors__grid, .quotes, .people {
    grid-template-columns: 1fr;
  }
  .hero__actions .btn { flex: 1 1 auto; }
  .hide-sm { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__bottom { flex-direction: column; }
  .form { padding: var(--sp-5); }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero__badge { padding: var(--sp-3) var(--sp-4); }
}

/* ── PREFERENZE UTENTE ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__title strong::after { transform: scaleX(1); }
  .btn:hover, .card:hover { transform: none; }
}

@media print {
  .nav-wrap, .ticker, .form, .hero__grid-bg { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
