/* ==========================================================================
   Scintilla Studio — stile principale
   Usa solo i token di tokens.css. Tema unico scuro (Carbone 60%).
   Breakpoint: 40rem (640) · 48rem (768) · 64rem (1024) · 72rem (1152, nav desktop)
   ========================================================================== */

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:where(html) { scroll-behavior: smooth; }

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Grana: un solo strato fisso, non interattivo (calore tattile del materiale). */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--ember); color: var(--carbone); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: var(--z-skip);
  background: var(--ember); color: var(--carbone); padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none; transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

/* ---------- Tipografia ---------- */
.h2, .page-hero__title, .hero__title, .h3, .band__title, .apply__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em;
  font-optical-sizing: auto; text-wrap: balance;
}
.h2, .page-hero__title, .hero__title, .band__title, .apply__title { overflow-wrap: break-word; hyphens: auto; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-head); max-width: 22ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.h4 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-3); }
:is(h1, h2, h3, p) em {
  font-style: italic; color: var(--ember);
  padding-bottom: .04em; /* spazio per i discendenti in corsivo */
}
.lede { font-size: var(--fs-lead); color: var(--text-muted); max-width: var(--measure); margin-top: var(--s-4); line-height: 1.6; text-wrap: pretty; }
.prose { max-width: var(--measure); color: var(--text-muted); }
.prose p + p { margin-top: var(--s-4); }
.prose--cols p + p { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); font-style: italic; }
.prose--cols { display: grid; gap: var(--s-5); margin-top: var(--s-6); max-width: none; }
@media (min-width: 48rem) { .prose--cols { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember); border: 1px solid rgba(255, 122, 61, .35); background: rgba(255, 122, 61, .06);
  padding: .4rem .85rem; border-radius: var(--r-pill); margin-bottom: var(--s-5);
}

/* ---------- Pulsanti (raggio: pill) ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3rem; padding: .8rem 1.5rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn__arrow { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--ember); --btn-fg: var(--carbone); --btn-bd: var(--ember); }
.btn--primary:hover { --btn-bg: var(--ember-300); --btn-bd: var(--ember-300); }
.btn--ghost:hover { --btn-bd: var(--crema); background: rgba(246, 240, 230, .05); }
.btn--dark { --btn-bg: var(--carbone); --btn-fg: var(--crema); --btn-bd: var(--carbone); }
.btn--dark:hover { --btn-bg: var(--neutral-800); }
.btn--sm { min-height: 2.5rem; padding: .55rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; color: var(--ember); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(255, 122, 61, .4); text-underline-offset: .3em;
}
.link-arrow:hover { text-decoration-color: var(--ember); }
.link-arrow span { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover span { transform: translateX(3px); }
.section-link { margin-top: var(--s-7); }

/* ---------- Badge, tag, note ---------- */
.tag {
  font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(255, 122, 61, .45); color: var(--ember); border-radius: var(--r-pill); padding: .25rem .7rem;
}
.tag--dark { border-color: rgba(27, 20, 13, .5); color: var(--carbone); }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: var(--r-pill); margin-bottom: var(--s-3);
}
.badge--draft { background: var(--draft); color: var(--carbone); }
.draft-note {
  margin-top: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--draft);
  border-left: 2px solid var(--draft); padding-left: var(--s-3);
}
.pending-note {
  margin-top: var(--s-6); color: var(--text-muted); font-size: var(--fs-small);
  border-left: 2px solid var(--rame); padding-left: var(--s-4); max-width: var(--measure);
}
.preview-bar {
  background: var(--draft); color: var(--carbone); font-size: var(--fs-small); text-align: center; padding: .45rem var(--gutter);
}
.preview-bar strong { margin-right: .5em; }

/* ---------- Header e navigazione ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(27, 20, 13, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color var(--t-base);
}
.site-header.is-scrolled, .menu-open .site-header { border-bottom-color: var(--line); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--carbone); } }
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 32px; height: auto; } /* dimensione minima digitale del marchio: 32px (Foglio di costruzione) */
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }
.brand--lg .brand__mark { width: 44px; }
.brand--lg .brand__word { font-size: 2rem; }

.site-nav { display: none; margin-left: auto; }
.site-nav__list { display: flex; gap: clamp(.75rem, 1.6vw, 1.75rem); }
.site-nav__link {
  position: relative; display: inline-block; padding: .5rem 0; text-decoration: none;
  font-size: .9375rem; color: var(--text-muted); transition: color var(--t-fast);
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--text); }
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--ember);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out);
}
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header__cta { display: none; }

.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: 0 .9rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-pill); cursor: pointer;
  font-size: .875rem; font-weight: 500;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle__bars span { height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--t-base) var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Menu mobile: inizia sotto l'header, occupa l'altezza disponibile, scorre internamente. */
.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--menu-top, var(--header-h)); z-index: var(--z-menu);
  height: calc(100dvh - var(--menu-top, var(--header-h)));
  background: var(--carbone);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
}
@supports not (height: 100dvh) { .mobile-menu { height: calc(100vh - var(--menu-top, var(--header-h))); } }
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { display: flex; flex-direction: column; gap: var(--s-6); padding-top: var(--s-5); padding-bottom: calc(var(--s-7) + env(safe-area-inset-bottom)); min-height: 100%; }
.mobile-menu__list { display: grid; }
.mobile-menu__link {
  display: flex; align-items: center; min-height: 3.5rem; text-decoration: none; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2rem); line-height: 1.2;
}
.mobile-menu__link[aria-current="page"] { color: var(--ember); }
.mobile-menu__cta { margin-top: auto; }
.mobile-menu__meta { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-caption); }
.menu-open { overflow: hidden; } /* solo su html: sul body romperebbe lo sticky dell'header */

@media (min-width: 72rem) {
  .site-nav, .site-header__cta { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Sezioni ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--s-6) var(--s-7); }
.section--flush-top { padding-top: 0; }
.section-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-7); }

/* ---------- Hero home ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero__glow {
  position: absolute; z-index: -1; top: -18%; right: -8%; width: min(70vw, 900px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 122, 61, .16), rgba(200, 98, 44, .06) 55%, transparent 75%);
}
.hero__grid { position: relative; display: grid; gap: var(--s-7); align-items: center; }
.hero__title { font-size: var(--fs-h1); line-height: var(--lh-tight); max-width: 15ch; }
.hero__title em { display: inline; }
.hero__sub { margin-top: var(--s-5); font-size: var(--fs-lead); color: var(--text-muted); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__mark { justify-self: center; width: min(62vw, 22rem); }
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: 7fr 5fr; }
  .hero__mark { width: min(100%, 26rem); justify-self: end; }
}
.mark { width: 100%; height: auto; overflow: visible; }

/* Ingresso del marchio: i tre petali convergono nel punto, in ordine 50 / 30 / 20. */
.js .mark--hero .petal { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); opacity: 0; }
.js .mark--hero .mark__core { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.js .mark--hero.is-lit .petal { animation: petal-in 900ms var(--ease-out) forwards; }
.js .mark--hero.is-lit .petal--2 { animation-delay: 160ms; }
.js .mark--hero.is-lit .petal--3 { animation-delay: 300ms; }
.js .mark--hero.is-lit .mark__core { animation: core-in 500ms var(--ease-out) 650ms forwards; }
@keyframes petal-in { to { transform: scale(1); opacity: 1; } }
@keyframes core-in { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Numeri-guida ---------- */
.claims { border-block: 1px solid var(--line); padding-block: var(--s-6); }
.claims__list { display: grid; gap: var(--s-5); }
.claims__item { display: flex; flex-direction: column-reverse; gap: var(--s-1); }
.claims__item dd { font-family: var(--font-mono); font-size: var(--fs-stat); line-height: 1; color: var(--rame); letter-spacing: -0.03em; font-weight: 500; }
.claims__item dt { color: var(--text-muted); font-size: var(--fs-small); }
.claims__note { margin-top: var(--s-5); font-size: var(--fs-caption); color: var(--text-muted); max-width: 70ch; font-family: var(--font-mono); line-height: 1.6; }
@media (min-width: 48rem) {
  .claims__list { grid-template-columns: repeat(3, 1fr); }
  .claims__item + .claims__item { border-left: 1px solid var(--line); padding-left: var(--s-6); }
}

/* ---------- Tesi ---------- */
.pull {
  margin-top: var(--s-8); font-family: var(--font-display); font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  line-height: 1.25; max-width: 28ch; text-wrap: balance; padding-left: var(--s-5); border-left: 2px solid var(--ember);
}

/* ---------- Meccanismo (diagramma interattivo) ---------- */
.mech__stage { border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface-1); padding: var(--s-5); box-shadow: var(--shadow-1); }
.mech__switch { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); gap: 4px; }
.mech__btn {
  min-height: 2.5rem; padding: .4rem 1.1rem; border-radius: var(--r-pill); border: 0; background: transparent; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--text-muted); transition: background-color var(--t-base), color var(--t-base);
}
.mech__btn[aria-pressed="true"] { background: var(--crema); color: var(--carbone); }
.mech__diagram { position: relative; container-type: inline-size; aspect-ratio: 1 / 1; margin: var(--s-5) auto 0; max-width: 56rem; }
@media (min-width: 48rem) { .mech__diagram { aspect-ratio: 16 / 9; } }
.mech__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mech__lines line { stroke: var(--line-strong); stroke-width: .35; vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.mech__set { transition: opacity var(--t-slow) var(--ease-in-out); }
.mech__set--fornitori line { stroke: var(--neutral-500); stroke-dasharray: 4 5; }
.mech__set--fornitori .mech__gap { stroke: var(--danger); stroke-dasharray: 2 4; }
.mech__set--tavolo line { stroke: rgba(255, 122, 61, .55); }
[data-state="tavolo"] .mech__set--fornitori, [data-state="fornitori"] .mech__set--tavolo { opacity: 0; }
.mech__node {
  --px: var(--x); --py: var(--y);
  position: absolute; left: 0; top: 0;
  transform: translate(calc(var(--px) * 1cqw - 50%), calc(var(--py) * var(--ky) - 50%));
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .45rem .8rem; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line-strong);
  font-size: clamp(.75rem, .55rem + 1.4cqw, .9375rem); font-weight: 600;
  transition: transform var(--t-slow) var(--ease-in-out), opacity var(--t-slow), border-color var(--t-slow);
}
/* Coordinate in unità del viewBox 100 x 75: x scala con la larghezza, y con l'altezza. */
.mech__diagram { --ky: 1.3333cqw; }                              /* 1:1  -> 75 unità = W */
@media (min-width: 48rem) { .mech__diagram { --ky: 0.75cqw; } }  /* 16:9 -> 75 unità = 0.5625W */
[data-state="fornitori"] .mech__node--a { --px: 78; --py: 13; }
[data-state="fornitori"] .mech__node--b { --px: 78; --py: 37.5; }
[data-state="fornitori"] .mech__node--c { --px: 78; --py: 62; }
[data-state="tavolo"] .mech__node--a { --px: 52.6; --py: 15; }
[data-state="tavolo"] .mech__node--b { --px: 80; --py: 51; }
[data-state="tavolo"] .mech__node--c { --px: 39.6; --py: 50.5; }
.mech__node--tu { background: var(--crema); color: var(--carbone); border-color: var(--crema); }
.mech__node--core { flex-direction: column; gap: .2rem; padding: .5rem .7rem; background: transparent; border: 0; font-size: clamp(.6875rem, .5rem + 1.2cqw, .8125rem); color: var(--text-muted); }
.mech__node--core img { width: clamp(36px, 7cqw, 64px); }
.mech__node--core { background: var(--surface-1) !important; border-radius: var(--r-field); }
[data-state="fornitori"] .mech__node--core { opacity: 0; }
@media (max-width: 47.99rem) { .mech__core-label { display: none; } }
.mech__node--a { border-color: rgba(255, 122, 61, .6); }
.mech__node--b { border-color: rgba(57, 221, 196, .6); }
.mech__node--c { border-color: rgba(200, 98, 44, .8); }
.mech__captions { margin-top: var(--s-5); min-height: 4.5rem; }
.mech__caption { color: var(--text-muted); max-width: 60ch; }
.mech__caption strong { color: var(--text); }
[data-state="tavolo"] .mech__caption--fornitori, [data-state="fornitori"] .mech__caption--tavolo { display: none; }

/* Confronto */
.compare { margin-top: var(--s-8); }
.compare__row { display: grid; gap: var(--s-2); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.compare__row--head { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); border-bottom-color: var(--line-strong); }
.compare__row--head span:last-child { color: var(--ember); }
.compare__old { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(255, 107, 107, .55); text-decoration-thickness: 1px; }
.compare__new { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 500; }
.compare__new .icon { flex-shrink: 0; margin-top: .1rem; }
@media (max-width: 47.99rem) { .compare__row--head { display: none; } }
@media (min-width: 48rem) { .compare__row { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

/* ---------- Fasi del metodo ---------- */
.phases { display: grid; gap: var(--s-5); margin-top: var(--s-7); counter-reset: phase; }
.phase { position: relative; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.phase::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--ember); }
.phase__n { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--ember); letter-spacing: .1em; }
.phase__name { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-top: var(--s-2); }
.phase__moment { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: var(--s-1); }
.phase__what { color: var(--text-muted); margin-top: var(--s-3); font-size: .9375rem; }
@media (min-width: 64rem) { .phases:not(.phases--detailed) { grid-template-columns: repeat(5, 1fr); gap: var(--s-5); } }
.phases--detailed .phase { display: grid; gap: var(--s-3) var(--s-7); padding-block: var(--s-6); }
.phases--detailed .phase__name { font-size: var(--fs-h3); }
.phase__facts { display: grid; gap: var(--s-4); margin-top: var(--s-2); }
.phase__facts dt { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--ember); }
.phase__facts dd { margin-top: var(--s-1); }
@media (min-width: 64rem) {
  .phases--detailed .phase { grid-template-columns: 4rem 1fr 1.2fr; align-items: start; }
  .phases--detailed .phase__n { grid-row: span 3; font-size: 1rem; padding-top: .45rem; }
  .phases--detailed .phase__name, .phases--detailed .phase__moment, .phases--detailed .phase__what { grid-column: 2; }
  .phases--detailed .phase__facts { grid-column: 3; grid-row: 1 / span 3; }
}

/* ---------- Casi: elenco ---------- */
.case-list { border-top: 1px solid var(--line-strong); }
.case-row { border-bottom: 1px solid var(--line); }
.case-row__link {
  display: grid; grid-template-columns: 2.5rem 1fr auto; gap: var(--s-2) var(--s-4); align-items: center;
  padding-block: var(--s-5); text-decoration: none; transition: background-color var(--t-base);
}
a.case-row__link:hover { background: rgba(246, 240, 230, .03); }
a.case-row__link:hover .case-row__title { color: var(--ember); }
.case-row__n { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); }
.case-row__main { display: grid; gap: var(--s-1); min-width: 0; }
.case-row__title { font-family: var(--font-display); font-size: clamp(1.125rem, 1rem + .7vw, 1.5rem); line-height: 1.25; transition: color var(--t-fast); }
.case-row__meta { font-size: var(--fs-small); color: var(--text-muted); }
.case-row__value { grid-column: 2 / -1; display: grid; font-family: var(--font-mono); color: var(--rame); font-size: 1.125rem; font-weight: 500; }
.case-row__value small { font-family: var(--font-body); font-size: var(--fs-caption); color: var(--text-muted); font-weight: 400; }
.case-row__value--pending { font-size: var(--fs-caption); color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.case-row .badge { grid-column: 2 / -1; justify-self: start; margin: 0; }
.case-row__arrow { display: none; color: var(--ember); }
@media (min-width: 48rem) {
  .case-row__link { grid-template-columns: 3rem 1fr minmax(12rem, auto) 1.5rem; }
  .case-row__value { grid-column: auto; text-align: right; }
  .case-row .badge { grid-column: 2; }
  .case-row__arrow { display: block; grid-row: 1; grid-column: 4; }
  .case-row--pending .case-row__value { grid-column: 3 / 5; }
}

/* ---------- Competenze 50/30/20 ---------- */
.forces__grid { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.force { padding: var(--s-6); border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--surface-1); display: grid; gap: var(--s-3); align-content: start; }
.force--strategia { background: linear-gradient(160deg, rgba(255, 122, 61, .16), var(--surface-1) 60%); border-color: rgba(255, 122, 61, .3); }
.force--creativita { background: linear-gradient(160deg, rgba(57, 221, 196, .1), var(--surface-1) 60%); }
.force--vendita { background: linear-gradient(160deg, rgba(200, 98, 44, .16), var(--surface-1) 60%); }
.force__weight { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.force__weight span { color: var(--text); font-size: 1rem; margin-right: .3em; }
.force__name { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); }
.force p { color: var(--text-muted); }
.force__gives { font-size: var(--fs-small); color: var(--text) !important; }
.force__who { font-family: var(--font-mono); font-size: var(--fs-caption); }
@media (min-width: 64rem) { .forces__grid { grid-template-columns: 5fr 3fr 2.4fr; } }

/* ---------- Testimonianze ---------- */
.quotes { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 48rem) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quotes--all { align-items: start; }
.quote { padding: var(--s-6); border-radius: var(--r-surface); background: var(--surface-1); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s-4); }
.quote .badge { align-self: flex-start; margin: 0; }
.quote__text p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }
.quote__by { display: grid; gap: 2px; }
.quote__name { font-weight: 600; }
.quote__role { font-size: var(--fs-small); color: var(--text-muted); }
.quote__more summary { cursor: pointer; font-size: var(--fs-small); color: var(--ember); font-weight: 600; list-style: none; display: inline-flex; gap: .4em; align-items: center; min-height: 2.75rem; }
.quote__more summary::-webkit-details-marker { display: none; }
.quote__more summary::after { content: "+"; font-family: var(--font-mono); }
.quote__more[open] summary::after { content: "−"; }
.quote__full { color: var(--text-muted); font-size: .9375rem; display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.quote__context { margin-top: var(--s-4); font-size: var(--fs-caption); font-family: var(--font-mono); color: var(--text-muted); }

/* ---------- Persone ---------- */
.team-grid { display: grid; gap: var(--s-7) var(--s-5); margin-top: var(--s-7); }
@media (min-width: 40rem) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid .person:nth-child(2) { margin-top: var(--s-8); }
  .team-grid .person:nth-child(3) { margin-top: var(--s-6); }
}
.person__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-surface); background: var(--surface-2); }
.person__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.85) sepia(.18) contrast(1.05) brightness(.95);
  transition: filter var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.person:hover .person__photo img { filter: none; transform: scale(1.02); }
.person__photo.is-broken { display: grid; place-items: center; }
.person__photo.is-broken::after { content: attr(data-initial); font-family: var(--font-display); font-size: 4rem; color: var(--ember); }
.person__body { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.person__role { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.person__role span { color: var(--ember); margin-right: .4em; }
.person__name { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; }
.person__body p { color: var(--text-muted); }
.person__table { color: var(--text) !important; border-left: 2px solid var(--ember); padding-left: var(--s-4); }
.person__years { font-family: var(--font-mono); font-size: var(--fs-caption); }

/* ---------- Home: Diagnosi ---------- */
.home-diagnosi__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 64rem) { .home-diagnosi__grid { grid-template-columns: 1.15fr 1fr; } }
.home-diagnosi__card, .ticket, .entry, .note-card, .offer, .provenance, .inst, .extra, .verify, .problem {
  border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--surface-1); box-shadow: var(--shadow-1);
}
.home-diagnosi__card { padding: var(--s-6); display: grid; gap: var(--s-5); }
.home-diagnosi__price { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); font-family: var(--font-mono); font-size: 2rem; color: var(--rame); }
.home-diagnosi__price span { font-family: var(--font-body); font-size: 1rem; color: var(--text); font-weight: 600; }
.home-diagnosi__guarantee, .offer__guarantee { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); color: var(--text-muted); }
.home-diagnosi__guarantee .icon, .offer__guarantee .icon { flex-shrink: 0; }

.ticks { display: grid; gap: var(--s-2); }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; background: url("../icons/scintilla-icon-check.svg") center / contain no-repeat; }
.crosses { display: grid; gap: var(--s-2); }
.crosses li { position: relative; padding-left: 1.6rem; color: var(--text-muted); }
.crosses li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; background: url("../icons/scintilla-icon-chiudi.svg") center / contain no-repeat; }

.petal-divider { display: flex; gap: .55rem; margin-bottom: var(--s-5); }
.petal-divider svg { width: 9px; height: 28px; fill: var(--ember); }
.petal-divider svg:nth-child(2) { fill: var(--teal); transform: rotate(14deg); }
.petal-divider svg:nth-child(3) { fill: var(--rame); transform: rotate(-12deg); }

/* ---------- Pagine interne: hero ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--s-8); }
.page-hero__title { font-size: var(--fs-h1); line-height: var(--lh-tight); max-width: 18ch; }
.page-hero__title--case { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); max-width: 24ch; }
.page-hero__lede { margin-top: var(--s-5); font-size: var(--fs-lead); color: var(--text-muted); max-width: 52ch; }
.page-hero__split { display: grid; gap: var(--s-7); align-items: center; }
.page-hero__split .btn { margin-top: var(--s-6); }
.page-hero__mark { width: min(50vw, 16rem); justify-self: center; }
@media (min-width: 64rem) {
  .page-hero__split { grid-template-columns: 1.5fr 1fr; }
  .page-hero__mark { justify-self: end; width: 18rem; }
}

/* ---------- Metodo ---------- */
.ai-principle__grid { display: grid; gap: var(--s-6); align-items: start; }
.ai-principle__grid .icon { margin-bottom: var(--s-5); }
@media (min-width: 64rem) { .ai-principle__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.articles { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 48rem) { .articles { grid-template-columns: repeat(2, 1fr); } }
.article { padding: var(--s-5) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.article__n { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--ember); letter-spacing: .1em; text-transform: uppercase; }
.article p { color: var(--text-muted); }

/* ---------- Servizi ---------- */
.entry { display: grid; gap: var(--s-4); padding: var(--s-6); align-items: center; background: linear-gradient(120deg, rgba(255, 122, 61, .12), var(--surface-1) 55%); }
.entry__step { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .1em; color: var(--ember); }
.entry__copy p:last-child { color: var(--text-muted); margin-top: var(--s-2); max-width: 60ch; }
.entry__price { font-family: var(--font-mono); font-size: 2.5rem; color: var(--rame); }
@media (min-width: 64rem) { .entry { grid-template-columns: 1fr auto auto; gap: var(--s-7); } }
.offers { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 64rem) { .offers { grid-template-columns: 1fr 1.2fr 1fr; align-items: stretch; } }
.offer { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.offer--flagship { border-color: rgba(255, 122, 61, .45); background: linear-gradient(180deg, rgba(255, 122, 61, .1), var(--surface-1) 40%); }
.offer__head { display: flex; justify-content: space-between; align-items: center; }
.offer__name { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.offer__claim { font-family: var(--font-display); font-style: italic; color: var(--ember); font-size: 1.125rem; }
.offer__for { color: var(--text-muted); font-size: .9375rem; }
.offer .ticks { font-size: .9375rem; }
.offer__price { margin-top: auto; font-family: var(--font-mono); font-size: 2rem; color: var(--rame); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.offer__price span { font-size: 1rem; color: var(--text-muted); }
.offer__meta { font-size: var(--fs-small); color: var(--text-muted); }

.stack { display: grid; gap: var(--s-6); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border-radius: var(--r-surface); color: var(--carbone);
  background: linear-gradient(135deg, var(--ember-700) -40%, var(--ember-600) 20%, var(--ember) 60%, var(--ember-300) 120%); }
.icon-chip { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--r-pill); background: var(--carbone); }
.stack__copy { display: grid; gap: var(--s-4); max-width: 60ch; }
.stack__name { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.1; }
.stack__claim { font-family: var(--font-display); font-style: italic; font-size: 1.375rem; }
.stack__composition { font-family: var(--font-mono); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; }
.stack__why, .stack__bonus { font-size: .9375rem; }
.stack__price { align-self: end; }
.stack__amount { font-family: var(--font-mono); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 500; line-height: 1; }
.stack__separate { margin-top: var(--s-2); }
.stack__meta { font-size: var(--fs-small); margin-top: var(--s-1); }
@media (min-width: 64rem) { .stack { grid-template-columns: 1.6fr 1fr; } .stack__price { text-align: right; } }

.numbered { counter-reset: n; display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.numbered li { counter-increment: n; position: relative; padding-left: 2.75rem; color: var(--text-muted); }
.numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .1em; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ember); }
.numbered strong { color: var(--text); }
.limits { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }

/* ---------- Casi: pagina indice ---------- */
.provenance { display: flex; gap: var(--s-5); padding: var(--s-6); align-items: flex-start; border-color: rgba(200, 98, 44, .45); }
.provenance .icon { flex-shrink: 0; }
.provenance p { color: var(--text-muted); max-width: 70ch; }
.provenance strong { color: var(--text); }
.protocol { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.protocol li { font-size: var(--fs-small); color: var(--text-muted); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.protocol span { display: block; font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--ember); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s-1); }
@media (min-width: 48rem) { .protocol { grid-template-columns: repeat(4, 1fr); } }
.extras { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 48rem) { .extras { grid-template-columns: repeat(3, 1fr); } }
.extra { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.extra__value { font-family: var(--font-mono); font-size: 1.5rem; color: var(--rame); }
.extra p { color: var(--text-muted); font-size: var(--fs-small); }
.institutional { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 64rem) { .institutional { grid-template-columns: 1fr 1fr; } }
.inst { padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
.inst__kind { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.inst__org { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.inst p { color: var(--text-muted); }
.inst .proof { max-width: 14rem; }
.disclaimer { font-size: var(--fs-caption); color: var(--text-muted); font-family: var(--font-mono); line-height: 1.7; }

/* ---------- Caso: scheda ---------- */
.crumbs { display: flex; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); margin-bottom: var(--s-5); }
.crumbs a { color: var(--ember); }
.page-hero--case .badge { margin-bottom: var(--s-4); }
.case-meta { display: grid; gap: var(--s-4); margin-top: var(--s-6); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.case-meta dt { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.case-meta dd { margin-top: var(--s-1); font-size: .9375rem; }
@media (min-width: 64rem) { .case-meta { grid-template-columns: repeat(4, 1fr); } }
.case__layout { display: grid; gap: var(--s-8); padding-bottom: var(--section-y); }
@media (min-width: 64rem) { .case__layout { grid-template-columns: 1.6fr 1fr; align-items: start; } .case__proofs { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.case__main { display: grid; gap: var(--s-7); }
.case__layout > *, .case__main > *, .hero__grid > *, .page-hero__split > * { min-width: 0; }
.case-figure { padding: var(--s-6); border-radius: var(--r-surface); border: 1px solid rgba(200, 98, 44, .45); background: linear-gradient(140deg, rgba(200, 98, 44, .14), var(--surface-1) 60%); }
.case-figure__value { font-family: var(--font-mono); font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); color: var(--rame); line-height: 1; letter-spacing: -0.03em; font-weight: 500; overflow-wrap: anywhere; }
.case-figure__label { margin-top: var(--s-3); color: var(--text-muted); }
.case-block { display: grid; gap: var(--s-3); max-width: var(--measure); }
.case-block p { color: var(--text-muted); }
.case-block__title { font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--ember); }
.case-block--missing p { color: var(--draft); font-family: var(--font-mono); font-size: var(--fs-small); }
.case-block--limits { border-left: 2px solid var(--rame); padding-left: var(--s-5); }
.metrics { display: grid; border-top: 1px solid var(--line); }
.metrics > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.metrics dt { color: var(--text-muted); font-size: .9375rem; }
.metrics dd { font-family: var(--font-mono); color: var(--text); }
.case-definition { font-size: var(--fs-small); }
.case-definition strong { color: var(--text); }
.case-quote blockquote p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--text); }
.case-quote figcaption { margin-top: var(--s-2); font-size: var(--fs-caption); color: var(--text-muted); font-family: var(--font-mono); }
.case-quote + .case-quote { margin-top: var(--s-5); }
.case__proofs { display: grid; gap: var(--s-5); }
.proof { display: grid; gap: var(--s-3); }
.proof__frame { display: block; border-radius: var(--r-field); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-2); max-width: 22rem; }
.proof__frame:hover { border-color: var(--ember); }
.proof figcaption { font-size: var(--fs-caption); color: var(--text-muted); max-width: 22rem; }
.proof__kind { display: block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--rame); margin-bottom: 2px; }
.verify { padding: var(--s-5); border-color: var(--draft); }
.verify__title { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--draft); }
.verify__list { display: grid; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-small); }
.verify__list div { display: grid; grid-template-columns: minmax(9rem, 1fr) 2fr; gap: var(--s-3); }
.verify__list dt { color: var(--text-muted); }
.case-pager { display: grid; gap: var(--s-4); padding-bottom: var(--section-y); border-top: 1px solid var(--line); padding-top: var(--s-6); }
@media (min-width: 48rem) { .case-pager { grid-template-columns: 1fr 1fr; } }
.case-pager__link { display: grid; gap: var(--s-1); text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; }
.case-pager__link span { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--ember); text-transform: uppercase; letter-spacing: .08em; }
.case-pager__link:hover { color: var(--ember); }
.case-pager__link--next { text-align: right; }

/* ---------- Atelier ---------- */
.pillars { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.pillars li { padding: var(--s-5); border-left: 2px solid var(--ember); background: var(--surface-1); border-radius: 0 var(--r-surface) var(--r-surface) 0; color: var(--text-muted); }
.pillars strong { color: var(--text); }
.story__list { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
@media (min-width: 48rem) { .story__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .story__list { grid-template-columns: repeat(4, 1fr); } }
.story__step { border-top: 1px solid var(--line-strong); padding-top: var(--s-4); }
.story__step:last-child { border-top-color: var(--ember); }
.story__n { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--ember); }
.story__step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; margin-top: var(--s-2); }
.story__step p { color: var(--text-muted); font-size: .9375rem; margin-top: var(--s-2); }
.values__grid { display: grid; gap: var(--s-7); }
@media (min-width: 64rem) { .values__grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.values__list { display: grid; gap: var(--s-2); }
.value { display: grid; grid-template-columns: 3rem 1fr; gap: 0 var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-field); position: relative; overflow: hidden; background: var(--surface-1); }
.value::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1% * 3); max-width: 100%; background: linear-gradient(90deg, rgba(255, 122, 61, .2), rgba(255, 122, 61, .04)); }
.value > * { position: relative; }
.value__weight { grid-row: span 2; font-family: var(--font-mono); font-size: 1.5rem; color: var(--rame); align-self: center; }
.value__name { font-weight: 600; }
.value__line { color: var(--text-muted); font-size: var(--fs-small); }
.semiotic__grid { display: grid; gap: var(--s-7); align-items: center; }
.semiotic__mark { width: min(60vw, 18rem); justify-self: center; }
@media (min-width: 64rem) { .semiotic__grid { grid-template-columns: 1fr 1.6fr; } }

/* ---------- Diagnosi ---------- */
.ticket { padding: var(--s-6); display: grid; gap: var(--s-4); }
.ticket__name { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .1em; color: var(--ember); }
.ticket__price { font-family: var(--font-mono); font-size: 3rem; line-height: 1; color: var(--rame); }
.ticket__facts { display: grid; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.ticket__facts div { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.ticket__facts dt { color: var(--text-muted); font-size: var(--fs-small); }
.ticket__facts dd { font-size: var(--fs-small); text-align: right; }
.problems { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 48rem) { .problems { grid-template-columns: repeat(2, 1fr); } }
.problem { padding: var(--s-5); }
.problem h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; }
.problem p { color: var(--text-muted); margin-top: var(--s-2); }
.session__grid { display: grid; gap: var(--s-7); }
@media (min-width: 64rem) { .session__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.session__lists { display: grid; gap: var(--s-7); }
.includes { display: grid; gap: var(--s-4); }
.includes li { display: flex; gap: var(--s-4); align-items: flex-start; }
.includes .icon { flex-shrink: 0; }
.includes strong { display: block; }
.includes span { color: var(--text-muted); font-size: var(--fs-small); }
.price-why { display: grid; gap: var(--s-6); }
@media (min-width: 64rem) { .price-why { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.price-why__cards { display: grid; gap: var(--s-4); }
.note-card { display: flex; gap: var(--s-4); padding: var(--s-5); align-items: flex-start; }
.note-card .icon { flex-shrink: 0; }
.note-card p { color: var(--text-muted); font-size: .9375rem; }
.note-card strong { color: var(--text); }
.steps-row { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
@media (min-width: 48rem) { .steps-row { grid-template-columns: repeat(4, 1fr); } }
.steps-row li { border-top: 1px solid var(--line-strong); padding-top: var(--s-4); }
.steps-row span { font-family: var(--font-mono); color: var(--ember); font-size: var(--fs-small); }
.steps-row h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; margin-top: var(--s-2); }
.steps-row p { color: var(--text-muted); font-size: .9375rem; margin-top: var(--s-2); }

/* Candidatura: unico momento a campo Ember (Identity Book cap. 12). */
.apply { background: linear-gradient(140deg, var(--ember-600) 0%, var(--ember) 55%, var(--ember-300) 130%); color: var(--carbone); }
.apply__grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 64rem) { .apply__grid { grid-template-columns: 1fr 1.15fr; gap: var(--s-8); } .apply__copy { position: sticky; top: calc(var(--header-h) + var(--s-6)); } }
.apply__title { font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; }
.apply__lead { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.3; margin-top: var(--s-5); max-width: 22ch; }
.apply__small { margin-top: var(--s-5); max-width: 46ch; font-size: .9375rem; }

/* ---------- Form (raggio campi: 10px) ---------- */
.form { background: var(--carbone); color: var(--text); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-surface); box-shadow: var(--shadow-2); display: grid; gap: var(--s-5); }
.form__title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }
.form__req { font-size: var(--fs-small); color: var(--text-muted); margin-top: calc(-1 * var(--s-3)); }
.field { display: grid; gap: var(--s-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field legend { padding: 0; margin-bottom: var(--s-2); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 3rem; padding: .75rem 1rem; border-radius: var(--r-field);
  background: var(--surface-1); border: 1px solid var(--neutral-700); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field textarea:hover { border-color: var(--neutral-500); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(57, 221, 196, .25); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field__help { font-size: var(--fs-small); color: var(--text-muted); }
.field__error { font-size: var(--fs-small); color: var(--danger); font-weight: 500; }
.field--choices { gap: var(--s-2); }
.choice { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 400 !important; cursor: pointer; padding: .55rem .75rem; border-radius: var(--r-field); border: 1px solid var(--line); }
.choice:hover { border-color: var(--line-strong); }
.choice input { accent-color: var(--ember); width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--ember); background: rgba(255, 122, 61, .07); }
.field--check .choice { border: 0; padding: 0; font-size: var(--fs-small); color: var(--text-muted); }
.field--check a { color: var(--ember); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: var(--s-5); border-radius: var(--r-field); border: 1px solid var(--line-strong); display: grid; gap: var(--s-3); }
.form__status:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.form__status[data-kind="success"] { border-color: var(--success); background: rgba(57, 221, 196, .07); }
.form__status[data-kind="error"] { border-color: var(--danger); background: rgba(255, 107, 107, .07); }
.form__status[data-kind="info"] { border-color: var(--draft); background: rgba(242, 201, 76, .07); }
.form__status h4 { font-size: 1rem; }
.form__status p { color: var(--text-muted); font-size: .9375rem; }
.form__status .btn { justify-self: start; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: var(--s-6); }
@media (min-width: 64rem) { .faq__grid { grid-template-columns: 1fr 1.6fr; } }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-5); font-weight: 600; font-size: 1.0625rem; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--font-mono); color: var(--ember); transition: transform var(--t-base) var(--ease-out); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { color: var(--text-muted); padding-bottom: var(--s-5); max-width: 60ch; }

/* ---------- Banda Diagnosi ---------- */
.band { background: linear-gradient(140deg, var(--ember-600) 0%, var(--ember) 60%, var(--ember-300) 140%); color: var(--carbone); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.band__inner { display: grid; gap: var(--s-5); justify-items: start; }
.band__title { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); line-height: 1.02; max-width: 16ch; }
.band__text { max-width: 52ch; font-size: var(--fs-lead); }

/* ---------- Pagine legali ---------- */
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-top: var(--s-7); }
.legal p, .legal ul { color: var(--text-muted); margin-top: var(--s-3); max-width: var(--measure); }
.legal ul { padding-left: 1.2rem; }
.legal-banner { border: 1px solid var(--draft); color: var(--draft); padding: var(--s-4) var(--s-5); border-radius: var(--r-field); font-size: var(--fs-small); }
.legal-updated { margin-top: var(--s-3); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-caption); }
.todo { background: rgba(242, 201, 76, .16); color: var(--draft); padding: 0 .25em; border-radius: 3px; font-family: var(--font-mono); font-size: .875em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-6); }
.site-footer__top { display: grid; gap: var(--s-7); }
@media (min-width: 64rem) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__claim { margin-top: var(--s-4); color: var(--text-muted); max-width: 30ch; }
.site-footer__nav ul { display: grid; gap: var(--s-2); list-style: none; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer__nav a, .site-footer__legal a, .site-footer__social a { color: var(--text-muted); display: inline-block; padding-block: .2rem; }
.site-footer__nav a:hover, .site-footer__legal a:hover, .site-footer__social a:hover { color: var(--text); }
.site-footer__contact { display: grid; gap: var(--s-2); align-content: start; color: var(--text-muted); }
.site-footer__email { color: var(--ember); font-weight: 600; }
.site-footer__social { display: flex; gap: var(--s-4); }
.site-footer__bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 64rem) { .site-footer__bottom { grid-template-columns: 1fr auto auto; gap: var(--s-6); } }
.site-footer__payoff { font-family: var(--font-display); font-style: italic; font-size: 1.75rem; color: var(--ember); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-small); }
.site-footer__copy { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Comparsa allo scroll (solo con JS e senza riduzione del movimento) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  :where(html) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .mark--hero .petal, .js .mark--hero .mark__core { transform: none; opacity: 1; }
}

/* ---------- Stampa ---------- */
@media print {
  body::after, .site-header, .band, .mobile-menu, .preview-bar { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Testimonianze e prove (pagina /testimonianze/ e casi)
   ========================================================================== */

/* Registro: conteggi dei materiali (non punteggi, non rating). */
.ledger { border-block: 1px solid var(--line); padding-block: var(--s-6); }
.ledger__list { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, 1fr); }
.ledger__list div { display: flex; flex-direction: column-reverse; gap: var(--s-1); }
.ledger__list dd { font-family: var(--font-mono); font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); color: var(--rame); line-height: 1; }
.ledger__list dt { font-size: var(--fs-small); color: var(--text-muted); }
@media (min-width: 48rem) { .ledger__list { grid-template-columns: repeat(4, 1fr); } }
.ledger__note { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--text-muted); max-width: 72ch; }

.jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); text-decoration: none; font-size: var(--fs-small); font-weight: 600; }
.jump a:hover { border-color: var(--ember); color: var(--ember); }

.shot-link { display: inline-flex; align-items: center; gap: .3em; min-height: 2.75rem; color: var(--ember); font-size: var(--fs-small); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 122, 61, .4); text-underline-offset: .25em; }
.shot-link:hover { text-decoration-color: var(--ember); }

/* Recensioni: lettura editoriale, testo integrale. */
.letters { margin-top: var(--s-7); border-top: 1px solid var(--line-strong); }
.letter { display: grid; gap: var(--s-4); padding-block: var(--s-7); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
@media (min-width: 64rem) { .letter { grid-template-columns: 17rem 1fr; gap: var(--s-8); } .letter__head { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; } }
.letter__name { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; }
.letter__role { color: var(--text-muted); font-size: var(--fs-small); margin-top: var(--s-1); }
.letter__meta { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); margin-top: var(--s-2); }
.letter__body { max-width: 64ch; color: var(--text-muted); display: grid; gap: var(--s-3); }
.letter__body { color: var(--text); font-size: 1.0625rem; }
.letter__body--lead { color: var(--text-muted); font-size: 1rem; }
.letter__body--lead p:first-child { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.4; color: var(--text); }

/* Messaggi: trascrizioni a bolle. */
.threads { columns: 1; column-gap: var(--s-5); margin-top: var(--s-7); }
@media (min-width: 64rem) { .threads { columns: 2; } }
.thread { break-inside: avoid; display: grid; gap: var(--s-3); padding: var(--s-6); margin-bottom: var(--s-5); border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--surface-1); scroll-margin-top: calc(var(--header-h) + 1rem); }
.thread__kind { font-family: var(--font-mono); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.thread__title { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.25; }
.thread__note { font-size: var(--fs-small); color: var(--text-muted); border-left: 2px solid var(--rame); padding-left: var(--s-3); }
.chat { display: grid; gap: var(--s-2); margin-block: var(--s-2); }
.chat__msg { position: relative; max-width: 88%; padding: .6rem .85rem 1.3rem; border-radius: 14px; background: var(--surface-2); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat__msg--ricevuto { justify-self: start; border-top-left-radius: 4px; }
.chat__msg--inviato { justify-self: end; border-top-right-radius: 4px; background: rgba(255, 122, 61, .14); border: 1px solid rgba(255, 122, 61, .25); }
.chat__time { position: absolute; right: .7rem; bottom: .3rem; font-family: var(--font-mono); font-size: .6875rem; color: var(--text-muted); }

.inst__transcript { color: var(--text-muted); display: grid; gap: var(--s-3); font-size: .9375rem; border-left: 2px solid var(--line-strong); padding-left: var(--s-4); }
.inst__note { font-size: var(--fs-small); color: var(--text-muted); }
.inst strong { color: var(--text); }

/* Archivio dei riquadri. */
.archive { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 48rem) { .archive { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 80rem) { .archive { grid-template-columns: repeat(3, 1fr); } }
.archive__item { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface-1); align-items: start; }
.archive__thumb { display: block; border-radius: var(--r-field); overflow: hidden; border: 1px solid var(--line-strong); }
.archive__thumb:hover { border-color: var(--ember); }
.archive__text { display: grid; gap: var(--s-1); font-size: var(--fs-small); min-width: 0; overflow-wrap: anywhere; }
.thread, .letter__body, .inst { overflow-wrap: anywhere; }
.archive__ref { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); }
.archive__type { justify-self: start; font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .5rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text-muted); }
.archive__type--recensione, .archive__type--messaggio { border-color: rgba(255, 122, 61, .5); color: var(--ember); }
.archive__type--dashboard { border-color: rgba(200, 98, 44, .7); color: var(--ember-300); }
.archive__label { font-weight: 600; color: var(--text); }
.archive__detail, .archive__dup, .archive__where { color: var(--text-muted); }
.archive__ambiguous { color: var(--text-muted); border-left: 2px solid var(--rame); padding-left: var(--s-2); }
.archive__ambiguous strong { color: var(--text); }
.archive__where a { color: var(--ember); }

/* Casi: rimando alle testimonianze e prove non assegnate. */
.voices-teaser { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 64rem) { .voices-teaser { grid-template-columns: 1.2fr 1fr; } }
.unassigned { display: grid; gap: var(--s-3); }
.unassigned li { display: grid; gap: var(--s-1); padding: var(--s-4); border: 1px dashed var(--line-strong); border-radius: var(--r-surface); font-size: var(--fs-small); color: var(--text-muted); }
.unassigned__link { color: var(--text); font-weight: 600; }
.case-archive-link { margin-top: calc(-1 * var(--s-3)); }

/* Visualizzatore. */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 60rem); max-height: 96dvh; color: var(--text); }
.lightbox::backdrop { background: rgba(10, 6, 2, .94); }
.lightbox__figure { display: grid; gap: var(--s-3); justify-items: center; }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(96dvh - 8.5rem); border-radius: var(--r-field); background: var(--surface-2); }
@media (min-width: 48rem) { .lightbox__img { min-height: min(80dvh, 1100px); object-fit: contain; } }
.lightbox__caption { font-size: var(--fs-small); color: var(--crema); text-align: center; max-width: 60ch; }
.lightbox__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-4); margin-top: var(--s-3); }
.lightbox__open { color: var(--ember); font-size: var(--fs-small); }
.lightbox-open { overflow: hidden; }
.verify__list { overflow-wrap: anywhere; }
@media (max-width: 29.99rem) { .verify__list div { grid-template-columns: 1fr; gap: 0; } }
