/* Atelier Edile — foglio di stile del sito
   Direzione visiva dalla reference "Noir Ridge": fondo Midnight, superfici Graphite, testo Ivory,
   un solo accento Ember. Titoli in un grotesk largo maiuscolo (Archivo Expanded), testo in Helvetica. */

:root {
  --bg: #171717;
  --surface: #292929;
  --surface-2: #333333;
  --ink: #ffffff;
  --muted: #a6a6a6;
  --stone: #838383;
  --rule: #3a3a3a;
  --accent: #e73a00;
  --accent-fill: #cf3400;
  --accent-text: #ff5a1f;
  --accent-ink: #ffffff;
  --paper: #ffffff;
  --paper-ink: #171717;
  --paper-muted: #6b6b6b;
  --todo-bg: #3d2418;
  --todo-ink: #ff9a6e;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step-tiny: 0.8125rem;
  --step-small: 0.9375rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.4rem);
  --step-head: clamp(2rem, 1.1rem + 3.6vw, 4.5rem);
  --step-mega: clamp(3rem, 10.1vw, 15rem);

  --margin: clamp(1rem, 2.4vw, 2.25rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 12rem);
  --header-h: 4.75rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 6rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* Da telefono la transizione tra pagine si somma alle entrate degli elementi e crea uno scatto: la togliamo */
@media (max-width: 64em), (hover: none) { @view-transition { navigation: none; } }

/* ---------- tipografia ---------- */
h1, h2, h3, .mega, .h-sec, .h-mid, .h-sm { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; text-wrap: balance; hyphens: none; }
.mega { font-size: var(--step-mega); line-height: 0.82; letter-spacing: -0.035em; color: var(--accent); white-space: nowrap; }
/* Ogni riga di un titolo resta intera: la misura si adatta alla colonna (--fit calcolato dalla riga più lunga) */
:where(.bracket, .split__a, .split__b, .faq__head, .deliver__text, .invest__side, .apply__side, .contacts__list, .finale__cta > div, .page-head) { container-type: inline-size; }
.finale__cta > div { width: 100%; }
.h-sec { font-size: clamp(1.25rem, var(--fit, 6cqi), var(--max, 4.5rem)); line-height: 0.95; letter-spacing: -0.02em; }
.h-sec .line { display: block; white-space: nowrap; }
.h-sec .em, .h-mid .em { color: var(--accent); }
.h-mid { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem); line-height: 0.98; letter-spacing: -0.015em; }
.h-sm { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem); line-height: 1.05; letter-spacing: -0.005em; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; text-wrap: pretty; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
strong { font-weight: 700; }
.nums { font-variant-numeric: tabular-nums; }

/* Etichette minuscole in maiuscoletto spaziato, come nella reference. Numerate come chiede il brief. */
.kicker, .label { display: block; font-family: var(--font-text); font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.4; }
.label { color: var(--accent-text); letter-spacing: 0.08em; margin-bottom: 1.25rem; }

/* Dati mancanti del brief: segnaposto ben visibile */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0.05em 0.35em; font-family: var(--font-text); font-stretch: 100%; font-weight: 700; text-transform: none; letter-spacing: 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.paper .todo, .form-card .todo { background: #fbe3d8; color: #a52a00; }

/* La stella a quattro punte che apre le sezioni */
.star { width: 1.6rem; height: 1.6rem; margin-inline: auto; color: var(--stone); }
.star--accent { color: var(--accent); }

/* ---------- impaginazione ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.tone { background: var(--surface); }
.cover { width: 100%; height: 100%; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shutter { overflow: clip; }

/* Titolo centrato tra due parentesi, come le sezioni della reference */
.bracket { position: relative; display: grid; justify-items: center; text-align: center; gap: 1.75rem; padding-inline: clamp(0rem, 9vw, 9rem); }
.bracket::before, .bracket::after { content: ""; position: absolute; top: 2.75rem; height: min(100% - 2.75rem, 18rem); width: clamp(3rem, 6vw, 6rem); border: clamp(10px, 1.2vw, 16px) solid transparent; border-radius: 50%; pointer-events: none; }
.bracket::before { left: 0; border-left-color: var(--surface-2); }
.bracket::after { right: 0; border-right-color: var(--surface-2); }
.bracket p { max-width: 52ch; }
.bracket .lead { max-width: 46ch; }
@media (max-width: 48em) { .bracket::before, .bracket::after { display: none; } }

/* ---------- controlli ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.1rem; padding: 0 1.6rem; background: var(--accent-fill); color: var(--accent-ink); text-decoration: none; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; border: 0; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.btn::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.btn:active { transform: scale(0.97); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--stone); }
.link { text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.more { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.more .arrow { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.75rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--accent); font-size: 1.05rem; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--paper); color: var(--accent); }
  .btn--ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
  .form-card .btn:hover { background: var(--paper-ink); color: var(--paper); }
  .link:hover { text-decoration-color: currentColor; }
  .more:hover .arrow { transform: translateX(4px); }
}

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 2rem; padding-inline: var(--margin); background: var(--bg); transition: transform 320ms var(--ease-out); }
.site-header::after { content: ""; position: absolute; left: var(--margin); right: var(--margin); bottom: 0; border-bottom: 1px dotted var(--stone); }
.wordmark { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-text); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 1.5rem; height: auto; color: var(--accent); margin-right: 0.15rem; }
.wordmark .w2 { color: var(--stone); font-weight: 400; }
.nav { flex: 1; display: flex; align-items: center; }
.nav__list { margin-inline: auto; display: flex; gap: clamp(1rem, 2.4vw, 2.75rem); align-items: center; }
.nav__link, .nav__drop > button { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-block: 0.5rem; transition: color var(--t-hover) ease; }
.nav__link[aria-current="page"], .nav__link:hover, .nav__drop > button:hover, .nav__drop > button[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.5em; text-decoration-thickness: 2px; }
.nav__drop { position: relative; }
.nav__drop > button { display: inline-flex; align-items: center; gap: 0.4em; }
.nav__drop > button svg { width: 0.7em; transition: transform var(--t-ui) var(--ease-out); }
.nav__drop.is-open > button svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 1.1rem); left: 50%; translate: -50% 0; width: 21rem; padding: 0.6rem; background: var(--surface); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); display: none; transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
.nav__drop.is-open .nav__menu { display: block; }
@starting-style { .nav__drop.is-open .nav__menu { opacity: 0; transform: translateY(-6px); } }
.nav__menu a { display: grid; gap: 0.2rem; padding: 0.85rem 0.9rem; text-decoration: none; transition: background-color var(--t-hover) ease; }
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--surface-2); }
.nav__menu a span:first-child { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 0.95rem; }
.nav__menu a span + span { font-size: 0.875rem; color: var(--muted); }
.nav__cta { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.3em; white-space: nowrap; transition: color var(--t-hover) ease; }
.nav__cta::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.nav__cta:hover { color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0; }
@media (max-width: 64em) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--ink); padding: 0 var(--margin) var(--margin); display: none; flex-direction: column; overflow-y: auto; transition: opacity var(--t-ui) var(--ease-out); }
.mobile-menu.is-open { display: flex; }
@starting-style { .mobile-menu.is-open { opacity: 0; } }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); border-bottom: 1px dotted var(--stone); }
.menu-close { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mobile-menu nav { margin-top: 2rem; display: grid; gap: 0.35rem; }
.mobile-menu nav a, .mobile-menu__group { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1.6rem; line-height: 1.3; text-decoration: none; }
.mobile-menu nav .sub { font-family: var(--font-text); font-stretch: 100%; font-weight: 400; text-transform: none; font-size: 1.05rem; padding-left: 1rem; line-height: 2; color: var(--muted); }
.mobile-menu .btn { margin-top: 2.5rem; }

.call-bar { display: none; }
@media (max-width: 47.99em) {
  .call-bar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 0.6rem var(--margin) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--bg); transform: translateY(110%); transition: transform 320ms var(--ease-out); }
  .call-bar.is-on { transform: none; }
  .call-bar .btn { width: 100%; }
  body { padding-bottom: 4.5rem; }
}

main { display: block; }

/* ---------- hero della home: il nome a tutta larghezza e le foto sotto ---------- */
.intro-hero { padding: calc(var(--header-h) + clamp(1.75rem, 4vw, 3rem)) var(--margin) 0; text-align: center; }
.intro-hero .kicker { margin-bottom: clamp(1rem, 2.5vw, 2rem); }
.intro-hero h1 { margin-inline: -0.03em; }
.intro-hero h1 .mega { display: block; }
.thumbs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.6rem; margin-top: clamp(1rem, 2vw, 1.75rem); align-items: start; text-align: left; }
.thumbs figure { overflow: clip; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs > figure:nth-of-type(1) { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 4 / 5; }
.thumbs > figure:nth-of-type(2) { grid-column: 3 / 5; grid-row: 1; aspect-ratio: 3 / 2; }
.thumbs > figure:nth-of-type(3) { grid-column: 9 / 11; grid-row: 1; aspect-ratio: 3 / 2; }
.thumbs > figure:nth-of-type(4) { grid-column: 11 / 13; grid-row: 1; aspect-ratio: 4 / 5; }
.thumbs__copy { grid-column: 5 / 9; grid-row: 1; display: grid; justify-items: center; align-content: start; gap: 1.5rem; text-align: center; padding: 1rem 1rem 0; }
.thumbs__copy p { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
@media (max-width: 48em) {
  .intro-hero h1 .mega { white-space: normal; font-size: 17.5vw; line-height: 0.86; }
  .thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.45rem; }
  .thumbs__copy { grid-column: 1 / -1; grid-row: 1; padding: 0 0 1.5rem; }
  .thumbs > figure:nth-of-type(1) { grid-column: 1 / 3; grid-row: 2; }
  .thumbs > figure:nth-of-type(2) { grid-column: 3 / 7; grid-row: 2; }
  .thumbs > figure:nth-of-type(3), .thumbs > figure:nth-of-type(4) { display: none; }
}

/* Foto larga dentro i margini */
.wide-photo { margin: clamp(3rem, 6vw, 5rem) var(--margin) 0; overflow: clip; }
.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 48em) { .wide-photo img { aspect-ratio: 4 / 3; } }

/* Riquadri dei numeri */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.tile-num { background: var(--surface); padding: 1.25rem 1.5rem 1rem; min-height: clamp(11rem, 18vw, 15rem); display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.tile-num > span { font-size: 1rem; line-height: 1.35; max-width: 20ch; color: var(--muted); }
.tile-num b { align-self: flex-end; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(3rem, 1.5rem + 5vw, 7rem); line-height: 0.8; letter-spacing: -0.04em; color: var(--stone); white-space: nowrap; }
.tile-num b small { font-size: 0.3em; letter-spacing: 0; margin-left: 0.15em; }
.tile-num--accent { background: var(--accent-fill); }
.tile-num--accent span, .tile-num--accent b { color: #fff; }
@media (max-width: 48em) { .tiles { grid-template-columns: 1fr; } .tile-num { min-height: 9rem; } }

/* Righe termine / descrizione separate da filetti, come i principi della reference */
.rows { display: grid; margin-top: clamp(2.5rem, 5vw, 4rem); }
.rows__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.75rem var(--gutter); align-items: start; padding: clamp(1.25rem, 2.2vw, 1.9rem) 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.rows__term { grid-column: 1 / 7; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 0.9rem + 2.4vw, 3.25rem); line-height: 0.92; letter-spacing: -0.02em; }
.rows__term b { color: var(--accent); font-weight: 600; }
.rows__desc { grid-column: 8 / 13; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.rows__desc strong { display: block; color: var(--ink); margin-bottom: 0.35rem; }
.rows__meta { display: block; margin-top: 0.75rem; font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
a.rows__item { transition: background-color var(--t-hover) ease, padding var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.rows__item:hover { background: var(--surface); padding-inline: 1rem; } }
@media (max-width: 48em) { .rows__term, .rows__desc { grid-column: 1 / -1; } }

/* La scala del processo: passi che salgono, con la linea e la pillola */
.stairs { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--gutter); align-items: end; margin-top: clamp(3rem, 6vw, 5rem); }
.stair { display: grid; justify-items: center; text-align: center; gap: 0.9rem; }
.stair h3 { font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.25rem); line-height: 1.08; letter-spacing: 0; }
.stair h3 b { color: var(--accent); font-weight: 600; }
.stair p { font-size: 0.95rem; line-height: 1.4; color: var(--muted); max-width: 26ch; }
.stair__line { width: 1px; background: var(--accent); position: relative; margin-top: 0.5rem; height: calc(3rem + var(--k, 0) * clamp(2.5rem, 5vw, 5rem)); }
.stair__line::before { content: ""; position: absolute; top: -3px; left: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 64em) {
  .stairs { grid-template-columns: 1fr; gap: 0; align-items: stretch; }
  .stair { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 1.25rem; row-gap: 0.4rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
  .stair .pill { grid-row: 1 / 3; grid-column: 1; align-self: start; min-width: 6.5rem; }
  .stair h3, .stair p { grid-column: 2; }
  .stair__line { display: none; }
}

/* Banda che scalda verso l'arancio, con le foto disposte su una curva */
.curve-band { padding-top: calc(var(--section) / 2); background: linear-gradient(180deg, var(--bg) 0%, #4a1804 45%, var(--accent) 100%); overflow: clip; }
.curve { display: flex; justify-content: center; gap: clamp(0.5rem, 1vw, 1rem); margin-top: clamp(3rem, 6vw, 5rem); perspective: 1400px; padding: 0 var(--margin) clamp(3rem, 6vw, 5rem); }
.curve figure { flex: 0 1 19rem; min-width: 0; aspect-ratio: 4 / 3; overflow: clip; transform: rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0)); }
.curve img { width: 100%; height: 100%; object-fit: cover; }
.curve figure:nth-child(1) { --ry: 34deg; --tz: 60px; }
.curve figure:nth-child(2) { --ry: 16deg; --tz: 10px; }
.curve figure:nth-child(4) { --ry: -16deg; --tz: 10px; }
.curve figure:nth-child(5) { --ry: -34deg; --tz: 60px; }
@media (max-width: 48em) {
  .curve { display: grid; grid-template-columns: 1fr 1fr; perspective: none; }
  .curve figure { transform: none; }
  .curve figure:nth-child(3) { grid-column: 1 / -1; order: -1; }
}

/* Calcolatore: quanto costa uno sconto */
.calc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: start; margin-top: clamp(3rem, 6vw, 5rem); }
.calc__intro { grid-column: 1 / 6; }
.calc__intro .h-mid { margin-bottom: 1.25rem; }
.calc__tool { grid-column: 7 / 13; background: var(--surface); padding: clamp(1.5rem, 3vw, 2.75rem); }
.calc__row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.25rem 1rem; }
.calc__row + .calc__row { margin-top: 1.5rem; }
.calc__row label { font-weight: 700; font-size: 0.95rem; }
.calc__row output { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.calc__row input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 2rem; margin: 0; }
.calc__result { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc__result div { background: var(--surface-2); padding: 1.25rem; }
.calc__result div.is-accent { background: var(--accent-fill); }
.calc__result b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1; margin-bottom: 0.6rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calc__result span { font-size: 0.95rem; line-height: 1.4; display: block; }
.calc__say { margin-top: 1.5rem; font-size: 1.05rem; }
.calc__note { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 64em) { .calc__intro, .calc__tool { grid-column: 1 / -1; } }
@media (max-width: 30em) { .calc__result { grid-template-columns: 1fr; } }

/* Due colonne: testo e immagine */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: start; }
.split__a { grid-column: 1 / 6; }
.split__b { grid-column: 7 / 13; }
.split--flip .split__a { grid-column: 8 / 13; order: 2; }
.split--flip .split__b { grid-column: 1 / 7; order: 1; }
.split .h-sec, .split .h-mid { margin-bottom: 1.5rem; }
.split img { width: 100%; object-fit: cover; }
.split__a > * + p { margin-top: 1rem; }
@media (max-width: 64em) { .split__a, .split__b, .split--flip .split__a, .split--flip .split__b { grid-column: 1 / -1; order: initial; } }

/* Ritratto (o luogo) e citazione */
.quote-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem var(--gutter); align-items: end; }
.quote-block__photo { grid-column: 1 / 5; }
.quote-block__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.quote-block__text { grid-column: 6 / 13; }
.quote-block blockquote p { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 34ch; }
.quote-block blockquote p .dim { color: var(--stone); }
.quote-block figcaption { margin-top: 2rem; display: grid; gap: 0.3rem; }
.signature { font-family: "Allura", cursive; padding-left: 0.25rem; font-size: 2.4rem; line-height: 1; color: var(--accent-text); transform: rotate(-4deg); transform-origin: left; display: block; margin-bottom: 0.5rem; }
@media (max-width: 48em) { .quote-block__photo { grid-column: 1 / 9; } .quote-block__text { grid-column: 1 / -1; } }

/* Casi studio */
.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); text-align: left; }
.case-plate { background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.25rem, 3vw, 2.5rem); text-decoration: none; }
.cases__main { grid-column: 1 / 9; min-height: 30rem; background: var(--accent-fill); transition: background-color var(--t-hover) ease; }
.cases__main:hover { background: #b82e00; }
.cases__main .mega { color: #fff; font-size: clamp(3rem, 1rem + 8vw, 9.5rem); }
.cases__side { grid-column: 9 / 13; display: grid; gap: 1rem; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem var(--gutter); margin-top: 1.75rem; font-size: 1rem; text-align: left; }
.case-facts small { display: block; color: var(--muted); font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.disclaimer { margin-top: 2rem; font-size: var(--step-small); color: var(--muted); max-width: 70ch; }
@media (max-width: 64em) { .cases__main, .cases__side { grid-column: 1 / -1; } .cases__main { min-height: 22rem; } .case-facts { grid-template-columns: 1fr 1fr; } }

/* Recensioni */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.review { background: var(--surface); padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 15rem; }
.review p { font-size: 1.05rem; }
.review footer { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 64em) { .reviews { grid-template-columns: 1fr; } }
.origin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); margin-top: 1rem; background: var(--surface); }
.origin__photo { grid-column: 1 / 6; }
.origin__photo img { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; }
.origin__text { grid-column: 6 / 13; padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem) 0; align-self: center; }
.origin__text .h-mid { margin-bottom: 1.25rem; }
@media (max-width: 64em) { .origin__photo, .origin__text { grid-column: 1 / -1; } .origin__text { padding: 0 1.5rem 2rem; } .origin__photo img { min-height: 0; aspect-ratio: 16 / 10; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); text-align: left; }
.post { display: grid; gap: 1rem; align-content: start; text-decoration: none; }
.post__img { overflow: clip; }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-soft); }
.post small { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.post h3 { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); line-height: 1.05; }
.post p { font-size: 1rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { a.post:hover img { transform: scale(1.05); } a.post:hover h3 { color: var(--accent-text); } }
@media (max-width: 64em) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40em) { .posts { grid-template-columns: 1fr; } }

/* Moduli: scheda bianca con campi sottolineati, come nella reference */
.form-card { background: var(--paper); color: var(--paper-ink); padding: clamp(1.5rem, 3vw, 2.25rem); text-align: left; }
.form-card__intro { font-size: 1rem; line-height: 1.4; margin-bottom: 1.25rem; max-width: 40ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem var(--gutter); }
.form .full, .form-card--narrow .form > * { grid-column: 1 / -1; }
.f { display: grid; gap: 0.35rem; align-content: start; }
.f > span, .f legend { font-size: 0.875rem; color: var(--paper-muted); }
.f > span i, .f legend i { font-style: normal; }
.input { width: 100%; min-height: 2.9rem; padding: 0.5rem 0; background: transparent; border: 0; border-bottom: 1px solid #bdbdbd; border-radius: 0; font-size: 1rem; color: var(--paper-ink); transition: border-color var(--t-hover) ease; }
.input:focus { outline: none; border-color: var(--accent); }
textarea.input { min-height: 7rem; resize: vertical; line-height: 1.5; padding-top: 0.75rem; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171717' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.25rem center; background-size: 0.75rem; padding-right: 1.75rem; }
fieldset.f { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.25rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px #c9c9c9; font-size: 0.93rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.choice input:checked + span { background: var(--accent-fill); color: #fff; box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .choice:hover span { box-shadow: inset 0 0 0 1px currentColor; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.9rem; line-height: 1.45; color: var(--paper-muted); }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); margin: 0.1rem 0 0; }
.form-error { color: #c42c00; font-size: 0.95rem; font-weight: 700; }
.form-error:empty { display: none; }
.f.is-invalid .input { border-color: #c42c00; }
.f.is-invalid .choices span { box-shadow: inset 0 0 0 1px #c42c00; }
@media (max-width: 40em) { .form { grid-template-columns: 1fr; } }

/* ---------- chiusura e footer sopra l'ultima foto ---------- */
.finale { position: relative; overflow: clip; background: #322D29; }
.finale > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.9) brightness(0.4) contrast(1.1); }
.finale__inner { position: relative; padding: calc(var(--section) / 2) var(--margin) 1.5rem; }
.finale__cta { display: grid; justify-items: center; text-align: center; gap: 2rem; }
.finale__cta .form-card { width: min(100%, 27rem); }
.site-footer { position: relative; margin-top: clamp(4rem, 9vw, 8rem); }
.site-footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem var(--gutter); align-items: end; }
.site-footer__claim { grid-column: 1 / 5; font-size: 1rem; max-width: 30ch; }
.site-footer__nav, .site-footer__contact { display: grid; gap: 0.55rem; align-content: end; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer__nav { grid-column: 7 / 10; }
.site-footer__contact { grid-column: 10 / 13; }
.site-footer a { text-decoration: none; transition: color var(--t-hover) ease; }
.site-footer a:hover { color: var(--accent-text); }
.site-footer .mega { display: block; text-align: center; margin-top: clamp(2rem, 4vw, 3rem); margin-inline: -0.03em; }
.site-footer__imprint { margin-top: 1.5rem; text-align: center; font-size: var(--step-tiny); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.site-footer__imprint p { max-width: none; }
.site-footer__imprint p + p { letter-spacing: 0.02em; text-transform: none; font-weight: 400; color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 64em) {
  .site-footer__claim { grid-column: 1 / -1; }
  .site-footer__nav { grid-column: 1 / 7; }
  .site-footer__contact { grid-column: 7 / -1; }
}
@media (max-width: 48em) { .site-footer .mega { white-space: normal; font-size: 17.5vw; line-height: 0.86; } }

/* ---------- pagine interne ---------- */
.page-head { padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) var(--margin) 0; }
/* Pagina a sola testata (Grazie): spazio sotto il pulsante e altezza piena, così il footer non sale a metà schermo */
.page-head--solo { min-height: 78svh; padding-bottom: clamp(5rem, 10vw, 8rem); display: flex; flex-direction: column; justify-content: center; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.facts div { background: var(--surface); padding: 1.25rem 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.facts dt { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem); line-height: 1.1; }
.facts div.is-accent { background: var(--accent-fill); }
.facts div.is-accent dt { color: #fff; }
@media (max-width: 48em) { .facts { grid-template-columns: 1fr 1fr; } }

.recognise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.recognise li { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); line-height: 1.3; min-height: 11rem; display: flex; align-items: flex-end; }
.recognise li:nth-child(2) { background: var(--accent-fill); }
@media (max-width: 64em) { .recognise { grid-template-columns: 1fr; } .recognise li { min-height: 0; } }

.deliver { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: center; }
.deliver__doc { grid-column: 1 / 6; background: var(--paper); color: var(--paper-ink); padding: clamp(1.75rem, 3vw, 2.5rem); transform: rotate(-1.5deg); }
.deliver__doc h3 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.deliver__doc ol { padding-left: 1.25rem; display: grid; gap: 0.6rem; font-size: 1rem; }
.deliver__doc .doc-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.deliver__text { grid-column: 7 / 13; }
.deliver__text .h-sec { margin-bottom: 1.5rem; }
@media (max-width: 64em) { .deliver__doc, .deliver__text { grid-column: 1 / -1; } .deliver__doc { transform: none; } }

.invest { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; align-items: stretch; margin-top: clamp(2.5rem, 5vw, 4rem); text-align: left; }
.invest__price { grid-column: 1 / 7; background: var(--accent-fill); padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 20rem; }
.invest__price .todo { background: rgba(0, 0, 0, 0.25); color: #fff; }
.invest__price b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
.invest__side { grid-column: 7 / 13; background: var(--surface); padding: clamp(2rem, 4vw, 3.5rem); display: grid; gap: 1.25rem; align-content: start; }
@media (max-width: 64em) { .invest__price, .invest__side { grid-column: 1 / -1; } }

.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem var(--gutter); align-items: start; }
.faq__head { grid-column: 1 / 5; }
.faq__head .h-sec { margin-bottom: 1.25rem; }
.faq__list { grid-column: 6 / 13; display: grid; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); line-height: 1.15; transition: color var(--t-hover) ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-text); font-weight: 400; font-size: 1.6rem; color: var(--accent); transition: transform var(--t-ui) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details > div { padding: 0 0 1.5rem; font-size: 1rem; color: var(--muted); }
@media (max-width: 64em) { .faq__head, .faq__list { grid-column: 1 / -1; } }

.note-signed { max-width: 56rem; margin-inline: auto; background: var(--surface); padding: clamp(2rem, 5vw, 4rem); }
.note-signed p { font-size: var(--step-lead); line-height: 1.4; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); text-align: left; }
.timeline li { background: var(--surface); padding: 1.5rem; display: grid; gap: 1.25rem; align-content: space-between; min-height: 13rem; }
.timeline li:last-child { background: var(--accent-fill); }
.timeline b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.75rem); line-height: 0.9; letter-spacing: -0.02em; }
.timeline p { font-size: 1rem; }
@media (max-width: 64em) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36em) { .timeline { grid-template-columns: 1fr; } .timeline li { min-height: 0; } }

/* Tabella fasi e servizi */
.map-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.map-table th, .map-table td { text-align: left; padding: 1.1rem 0.75rem; vertical-align: middle; border-bottom: 1px solid var(--rule); }
.map-table thead th { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.map-table td:first-child a { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1.05rem; text-decoration: none; }
.map-table td:first-child a:hover { color: var(--accent-text); }
.dots { display: flex; gap: 0.35rem; }
.dots i { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 0.95rem; background: var(--surface); color: var(--stone); }
.dots i.on { background: var(--accent-fill); color: #fff; }
.table-scroll { overflow-x: auto; }

/* Metodo VOLTA: l'arco a cinque conci */
.volta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: center; text-align: left; }
.volta__stage { grid-column: 1 / 7; }
.volta__phase { grid-column: 8 / 13; min-height: 18rem; display: grid; gap: 1.25rem; align-content: center; }
.volta__phase h3 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.5rem); line-height: 0.95; }
.volta__phase h3 b { color: var(--accent); font-weight: 600; }
.volta__phase dt { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.35rem; }
.volta__phase dd { font-size: 1.05rem; line-height: 1.5; }
.volta-arch { width: 100%; height: auto; overflow: visible; }
.volta-arch .concio { cursor: pointer; }
.volta-arch .concio path { fill: var(--surface); transition: fill 300ms ease; }
.volta-arch .concio text { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 46px; fill: var(--stone); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill 300ms ease; }
.volta-arch .concio:hover path { fill: var(--surface-2); }
.volta-arch .concio.is-on path { fill: var(--accent); }
.volta-arch .concio.is-on text { fill: #fff; }
.volta-arch .concio:focus-visible { outline: none; }
.volta-arch .concio:focus-visible path { stroke: #fff; stroke-width: 3; }
.volta-arch .pier { fill: var(--surface-2); }
.volta__list { display: grid; gap: 0.5rem; }
.js .volta__list { display: none; }
@media (max-width: 64em) { .volta__stage, .volta__phase { grid-column: 1 / -1; } .volta__phase { min-height: 15rem; align-content: start; } }

/* Indici con card (casi, risorse) */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.filters .choice span { box-shadow: inset 0 0 0 1px var(--stone); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem var(--gutter); }
.card { display: grid; gap: 1rem; align-content: start; text-decoration: none; }
.card__fig { overflow: clip; background: var(--surface); aspect-ratio: 4 / 3; }
.card__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft); }
.card h3 { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem); line-height: 1.05; }
.card p { font-size: 1rem; color: var(--muted); }
.card .big { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1.1rem; color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) { a.card:hover .card__fig img { transform: scale(1.04); } a.card:hover h3 { color: var(--accent-text); } }
.card[hidden] { display: none; }
@media (max-width: 64em) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40em) { .cards { grid-template-columns: 1fr; } }

/* Mockup di una risorsa scaricabile, disegnato */
.mock { position: relative; aspect-ratio: 4 / 3; background: var(--surface); display: grid; place-items: center; overflow: clip; }
.mock--accent { background: var(--accent-fill); }
.mock__doc { width: 44%; aspect-ratio: 210 / 297; background: #fff; color: var(--paper-ink); padding: 7% 6%; display: flex; flex-direction: column; gap: 5%; transform: rotate(-4deg); }
.mock__doc small { font-size: clamp(0.5rem, 0.35rem + 0.3vw, 0.7rem); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.mock__doc b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(0.7rem, 0.45rem + 0.8vw, 1.15rem); line-height: 1; }
.mock__doc i { display: block; height: 0.35rem; background: #EFE9E1; }
.mock__doc i:nth-of-type(2n) { width: 70%; }
.mock__doc i.accent { background: var(--accent); width: 30%; }

/* Articolo */
.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.article__body { grid-column: 3 / 9; font-size: 1.125rem; line-height: 1.65; }
.article__body > * + * { margin-top: 1.25rem; }
.article__body h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1; margin-top: 3rem; }
.article__body ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.article__aside { grid-column: 10 / 13; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1rem; }
.in-pratica { background: var(--accent-fill); padding: 2rem; margin-top: 2.5rem !important; }
.in-pratica h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.in-pratica ol { padding-left: 1.25rem; display: grid; gap: 0.75rem; font-size: 1.05rem; }
@media (max-width: 64em) { .article__body { grid-column: 1 / -1; } .article__aside { grid-column: 1 / -1; position: static; margin-top: 3rem; } }

/* Candidatura */
.apply { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem var(--gutter); align-items: start; }
.apply__side { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 2rem); }
.apply__side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 2rem; }
.apply__form { grid-column: 6 / 13; }
.apply__form h2 { font-size: 1rem; margin: 2.5rem 0 1.25rem; color: var(--accent); }
.apply__form h2:first-child { margin-top: 0; }
@media (max-width: 64em) { .apply__side, .apply__form { grid-column: 1 / -1; } .apply__side { position: static; } }

/* Contatti */
.contacts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem var(--gutter); align-items: start; }
.contacts__list { grid-column: 1 / 6; display: grid; gap: 1rem; }
.contacts__list div { background: var(--surface); padding: 1.25rem 1.5rem; display: grid; gap: 0.35rem; }
.contacts__list dt { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contacts__list dd { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.contacts__form { grid-column: 7 / 13; }
@media (max-width: 64em) { .contacts__list, .contacts__form { grid-column: 1 / -1; } }

.prose { max-width: 46rem; margin-inline: auto; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.2rem; margin-top: 2.5rem; }
.credits-list { display: grid; gap: 1.25rem; max-width: 56rem; margin-inline: auto; }
.credits-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: start; font-size: 1rem; }
.credits-list img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 800ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 50ms); }
  .js .shutter[data-reveal] img { transform: scale(1.1); transition: transform 1300ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .js .intro-hero h1 { overflow: clip; padding-bottom: 0.04em; }
  .js .intro-hero h1 .mega { transform: translateY(105%); animation: line-up 1000ms var(--ease-expo) 80ms forwards; }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 400ms); }
  .js .thumbs > figure { clip-path: inset(100% 0 0 0); animation: open-up 900ms var(--ease-in-out) forwards; animation-delay: calc(300ms + var(--i, 0) * 70ms); }
  .js .thumbs img { scale: 1.12; animation: settle 1400ms var(--ease-soft) forwards; animation-delay: calc(300ms + var(--i, 0) * 70ms); }
  .js [data-reveal] .stair__line { transform: scaleY(0); transform-origin: bottom; transition: transform 900ms var(--ease-expo) 250ms; }
  .js [data-reveal].is-in .stair__line { transform: none; }
  @supports (animation-timeline: view()) {
    .drift { animation: drift-y linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; scale: 1.1; }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes open-up { to { clip-path: inset(0); } }
@keyframes settle { to { scale: 1; } }
@keyframes drift-y { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
::view-transition-old(root) { animation: vt-leave 200ms var(--ease-exit) both; }
::view-transition-new(root) { animation: vt-arrive 380ms var(--ease-out) 60ms both; }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(16px); } }

/* Home: banda della risorsa, situazioni, chiusura centrata */
.resource-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; margin-top: 1rem; background: var(--surface); text-decoration: none; transition: background-color var(--t-hover) ease; }
.resource-band .mock { grid-column: 1 / 5; }
.resource-band > div:last-child { grid-column: 6 / 12; padding: 2rem 0; }
.resource-band:hover { background: var(--surface-2); }
@media (max-width: 48em) { .resource-band .mock, .resource-band > div:last-child { grid-column: 1 / -1; } .resource-band > div:last-child { padding: 0 1.5rem 2rem; } }
.problems li { background: var(--bg); }
.problems li:nth-child(2) { background: var(--accent-fill); }
.center-close { display: grid; justify-items: center; gap: 1.5rem; text-align: center; margin-top: 3rem; }

/* Tre foto di misure diverse */
.trio { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 1rem; align-items: end; }
.trio img { width: 100%; object-fit: cover; }
.trio figure:nth-child(1) img { aspect-ratio: 4 / 3; }
.trio figure:nth-child(2) img { aspect-ratio: 3 / 4; }
.trio figure:nth-child(3) img { aspect-ratio: 1; }
@media (max-width: 48em) { .trio { grid-template-columns: 1fr 1fr; } .trio figure:nth-child(1) { grid-column: 1 / -1; } }

@media (max-width: 48em) { .h-sec { --max: 2.75rem; } }

/* ---------- Home compatta, struttura dal mockup ---------- */
.compact .h-sec { --max: 3.4rem; }
.compact .section { padding-block: clamp(4rem, 8vw, 6rem); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head-row > div { container-type: inline-size; flex: 1 1 26rem; }
.head-row > p { flex: 0 1 30rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two > div { container-type: inline-size; }
.two > div > * + * { margin-top: 1.1rem; }
.two--center { align-items: center; }

.hero2 { padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) var(--margin) clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: center; }
.hero2__copy { grid-column: 1 / 8; container-type: inline-size; display: grid; gap: 1.6rem; justify-items: start; }
.hero2__copy h1 { --max: 4.6rem; }
.hero2__copy p { font-size: var(--step-lead); line-height: 1.45; max-width: 40ch; }
.hero2__actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.hero2__media { grid-column: 8 / 13; position: relative; }
.hero__slides { position: relative; aspect-ratio: 4 / 5; max-height: 76svh; width: 100%; overflow: clip; background: var(--surface); }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms ease; }
.hero__slides img:first-child, .hero__slides img.is-on { opacity: 1; }
.js .hero__slides img:first-child:not(.is-on) { opacity: 0; }
.hero2__caption { margin-top: 0.75rem; font-size: var(--step-tiny); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .hero__slides img.is-on { animation: settle-s 9s linear forwards; } }
@keyframes settle-s { from { scale: 1.06; } to { scale: 1; } }
@media (max-width: 64em) { .hero2__copy, .hero2__media { grid-column: 1 / -1; } .hero__slides { aspect-ratio: 4 / 3; } }

.proofbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem var(--gutter); padding: 2rem 0; border-top: 1px dotted var(--stone); border-bottom: 1px dotted var(--stone); }
.proofbar b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1; margin-bottom: 0.5rem; }
.proofbar span { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 48em) { .proofbar { grid-template-columns: 1fr 1fr; } }

.band-accent { background: var(--accent-fill); }
.band-accent .wrap { max-width: 64rem; margin-inline: auto; padding-block: clamp(4rem, 8vw, 6rem); display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.band-accent blockquote p { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.25; max-width: 34ch; }
.band-accent .signature { color: #fff; transform: rotate(-4deg); transform-origin: center; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-pair figcaption { margin-top: 0.6rem; font-size: var(--step-tiny); color: var(--muted); }
.photo-bw img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }

.letters5 { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 2px; background: var(--rule); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.letters5 li { background: var(--surface); padding: 1.6rem 1.4rem; display: grid; gap: 0.7rem; align-content: start; }
.letters5 b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 0.85; color: var(--accent); }
.letters5 strong { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1.05rem; }
.letters5 span { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 64em) { .letters5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36em) { .letters5 { grid-template-columns: 1fr; } }

.lined { display: grid; }
.lined li { padding: 0.95rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
.lined li small { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.box { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.9rem; align-content: start; }
.box .dash li { padding-left: 1.4rem; position: relative; font-size: 1.05rem; line-height: 1.45; }
.box .dash li + li { margin-top: 0.7rem; }
.box .dash li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.svc-card { background: var(--surface); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; text-decoration: none; transition: background-color var(--t-hover) ease; }
.svc-card .roman { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; color: var(--accent); }
.svc-card h3 { font-size: 1.15rem; line-height: 1.05; }
.svc-card p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.svc-card:hover { background: var(--surface-2); }
@media (max-width: 64em) { .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40em) { .cards--4 { grid-template-columns: 1fr; } }

.case-card { background: var(--surface); display: flex; flex-direction: column; text-decoration: none; }
.case-card__top { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--surface-2); }
.case-card__top.is-accent { background: var(--accent-fill); }
.case-card__body { padding: 1.5rem; display: grid; gap: 0.5rem; }
.case-card__body h3 { font-size: 1.2rem; }
.case-card__body .result { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 1.15rem; margin-top: 0.5rem; }

.boxed { border: 1px solid var(--stone); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2rem 3rem; align-items: center; }
.boxed > div:first-child { container-type: inline-size; }
.boxed > div:first-child > * + * { margin-top: 1rem; }
.boxed > div:last-child { display: grid; gap: 1.25rem; justify-items: start; }

.review-card { background: var(--surface); padding: 1.75rem; display: grid; gap: 1.25rem; align-content: space-between; min-height: 14rem; }
.review-card .who { display: flex; gap: 0.75rem; align-items: center; font-size: 0.9rem; color: var(--muted); }
.review-card .who i { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--surface-2); flex: none; }
.origin-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 3rem; padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); }

/* Su schermi stretti le righe dei titoli possono andare a capo: meglio di un titolo minuscolo */
@media (max-width: 48em) {
  .h-sec { font-size: clamp(1.6rem, var(--fit), var(--max, 4.5rem)); }
  .h-sec .line { white-space: normal; }
  .hero2__copy h1 { --fit: 10.5cqi; }
}
.tone .h-sec .em, .tone .h-mid .em { color: var(--accent-text); }

/* ==========================================================================
   Rifinitura "Apple style": grigi di sistema, gradienti leggeri sull'arancio,
   angoli appena arrotondati, vetro solo dove serve (header e barra mobile).
   ========================================================================== */
:root {
  --bg: #0d0d0f;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --muted: #a1a1a6;
  --stone: #8e8e93;
  --rule: rgba(255, 255, 255, 0.1);
  --accent: #ff5a1f;
  --accent-text: #ff7a45;
  --accent-fill: linear-gradient(135deg, #ff7a3d 0%, #f04a0c 45%, #d63600 100%);
  --surface-grad: linear-gradient(180deg, #232326 0%, #1c1c1e 100%);
  --r: 14px;
  --r-s: 10px;
}


/* Titoli: la riga accesa ha un gradiente appena percettibile */
.cases__main .mega, .tile-num--accent b { background: none; -webkit-text-fill-color: #fff; color: #fff; }

/* Superfici con un leggero gradiente e angoli morbidi */
.tile-num, .case-plate, .review, .origin, .resource-band, .calc__tool, .facts > div, .invest__side, .contacts__list > div, .note-signed, .timeline li, .recognise li, .letters5 li, .svc-card, .case-card, .review-card, .box { border-radius: var(--r); background: var(--surface-grad); }
.tile-num--accent, .facts div.is-accent, .recognise li:nth-child(2), .problems li:nth-child(2), .timeline li:last-child, .cases__main, .invest__price, .in-pratica, .mock--accent { background: var(--accent-fill); }
.calc__result div { border-radius: var(--r-s); }
.calc__result div.is-accent { background: var(--accent-fill); }
.form-card, .deliver__doc { border-radius: var(--r); }
.invest__price { border-radius: var(--r); }
.mock, .card__fig, .post__img, .origin__photo img { border-radius: var(--r); overflow: hidden; }
.shutter, .wide-photo, .thumbs figure, .quote-block__photo, .split__b.shutter, .trio figure, .photo-pair figure { border-radius: var(--r); }
.wide-photo { overflow: clip; }
.origin { overflow: hidden; }
.rows__item { border-radius: var(--r-s); }
.faq details { border-radius: 0; }

/* Pulsanti: capsula con gradiente e riflesso al passaggio */
.btn { position: relative; overflow: hidden; isolation: isolate; border-radius: 999px; background: var(--accent-fill); box-shadow: none; transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-hover) ease, background-color var(--t-hover) ease, color var(--t-hover) ease; }
.btn::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); z-index: -1; transition: transform 700ms var(--ease-out); pointer-events: none; }
.btn--ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.choice span, .pill { border-radius: 999px; }
.input { border-radius: var(--r-s) var(--r-s) 0 0; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-fill); color: #fff; box-shadow: none; }
  .btn:hover::after { transform: skewX(-20deg) translateX(420%); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
  .form-card .btn:hover { background: var(--paper-ink); color: #fff; }
}

/* Header traslucido, come il vetro di macOS */
.site-header { background: rgba(250, 248, 245, 0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transition: transform 320ms var(--ease-out), background-color 300ms ease; }
.site-header::after { border-bottom-color: rgba(50, 45, 41, 0.12); }
.nav__menu { border-radius: var(--r); background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
.nav__menu a { border-radius: var(--r-s); }
.mobile-menu { background: rgba(250, 248, 245, 0.9); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); }
.mobile-menu.is-open nav > * { animation: rise 520ms var(--ease-out) both; }
.mobile-menu.is-open nav > *:nth-child(n+3) { animation-delay: 50ms; }
.mobile-menu.is-open nav > *:nth-child(n+6) { animation-delay: 100ms; }
.mobile-menu.is-open nav > *:nth-child(n+9) { animation-delay: 150ms; }


/* Barra in basso su telefono: vetro chiaro, sempre a portata di pollice */
.mobile-bar { display: none; }
@media (max-width: 47.99em) {
  .mobile-bar { position: fixed; z-index: 60; left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 0.2rem; padding: 0.35rem; border-radius: 22px; background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -16px rgba(0, 0, 0, 0.8); transform: translateY(150%); transition: transform 450ms var(--ease-expo); }
  .mobile-bar.is-on { transform: none; }
  .mobile-bar .tab { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 0.1rem; padding: 0.35rem 0.2rem; border-radius: 16px; font-size: 0.68rem; font-weight: 500; color: var(--ink); text-decoration: none; }
  .mobile-bar .tab svg { width: 20px; height: 20px; }
  .mobile-bar .tab[aria-current="page"] { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .mobile-bar .btn { flex: 1.8 1 0; min-width: 0; min-height: 2.9rem; padding: 0 0.7rem; font-size: 0.8rem; letter-spacing: 0.02em; }
  .mobile-bar .btn::before { display: none; }
  body { padding-bottom: 5.5rem; }
}

/* Riflesso che segue il cursore sui pannelli (le coordinate le imposta lo script) */
[data-glow] { position: relative; }
[data-glow]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 400ms ease; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 140, 80, 0.14), transparent 60%); }
[data-glow]:hover::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .tile-num, .case-plate, .review, .svc-card, .case-card, .post, .resource-band { transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
  .tile-num:hover, a.case-plate:hover, .review:hover, a.post:hover, a.resource-band:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
  .thumbs figure img { transition: transform 900ms var(--ease-soft); }
  .thumbs figure:hover img { transform: scale(1.06); }
}

/* "Ti riconosci?": le situazioni si spuntano */
.problems-check { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.problems-check input { position: absolute; opacity: 0; }
.problems-check label { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; min-height: 9rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--r); background: var(--surface-grad); cursor: pointer; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.35; transition: background 300ms ease, transform var(--t-press) var(--ease-out), box-shadow 300ms ease; }
.problems-check label:active { transform: scale(0.98); }
.problems-check .tick { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); transition: background 300ms ease, box-shadow 300ms ease; }
.problems-check .tick svg { width: 0.9rem; opacity: 0; transform: scale(0.5); transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.problems-check input:checked + label { background: var(--accent-fill); box-shadow: none; }
.problems-check input:checked + label .tick { background: #fff; box-shadow: none; }
.problems-check input:checked + label .tick svg { opacity: 1; transform: none; }
.problems-check input:focus-visible + label { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.problems-result { display: grid; justify-items: center; gap: 1.25rem; text-align: center; margin-top: 2.5rem; }
.problems-result .count { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.problems-result .count b { color: var(--accent-text); }

/* Telefono: spaziature più strette, caroselli da scorrere col pollice */
@media (max-width: 48em) {
  :root { --section: clamp(4rem, 16vw, 6rem); }
  .tiles { grid-template-columns: 1fr 1fr !important; gap: 0.6rem; }
  .tile-num { min-height: 8.5rem; padding: 1rem; }
  .tile-num b { font-size: 2.6rem; }
  .reviews, .posts { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding: 0 var(--margin) 0.5rem; scroll-padding-inline: var(--margin); }
  .reviews, .posts { overflow-y: hidden; overscroll-behavior-x: contain; overscroll-behavior-y: none; touch-action: pan-x pan-y; }
  /* Nel carosello le schede stanno ferme: niente salita d’ingresso né sollevamento al tocco */
  .js .posts > *, .js .reviews > *, .js .posts > [data-reveal], .js .reviews > [data-reveal] { transform: none !important; opacity: 1 !important; transition: none !important; }
  .reviews > *, .posts > * { scroll-snap-align: start; }
  .reviews::-webkit-scrollbar, .posts::-webkit-scrollbar { display: none; }
  .rows__item { padding-inline: 0.25rem; }
  .bracket { gap: 1.25rem; }
  .intro-hero { padding-top: calc(var(--header-h) + 1.25rem); }
}
@media (max-width: 30em) { .tile-num > span { font-size: 0.85rem; } }
.tile-num b .todo { font-size: 0.42em; vertical-align: middle; }

/* ==========================================================================
   Palette LUXE (Davis Humphries Design), impostazione chiara alla Apple.
   #322D29 inchiostro · #72383D bordeaux · #AC9C8D tortora · #D1C7BD sabbia
   #D9D9D9 grigio linee · #EFE9E1 avorio. Fondo più chiaro ricavato dall'avorio.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #faf8f5;
  --ivory: #efe9e1;
  --sand: #d1c7bd;
  --taupe: #ac9c8d;
  --line: #d9d9d9;
  --ink: #322d29;
  --muted: #6b6058;
  --stone: #8f8174;
  --surface: #ffffff;
  --surface-2: #e9e2d9;
  --rule: rgba(50, 45, 41, 0.12);
  --accent: #72383d;
  --accent-text: #72383d;
  --accent-strong: #5a2a2f;
  --accent-fill: linear-gradient(135deg, #8d4a50 0%, #72383d 50%, #5a2a2f 100%);
  --surface-grad: linear-gradient(180deg, #ffffff 0%, #fcfaf7 100%);
  --paper: #ffffff;
  --paper-ink: #322d29;
  --paper-muted: #6b6058;
  --todo-bg: #f3e4e5;
  --todo-ink: #72383d;
  --shadow-card: 0 1px 2px rgba(50, 45, 41, 0.05), 0 14px 34px -18px rgba(50, 45, 41, 0.22);
}
html { color-scheme: light; }
body { background: radial-gradient(1100px 560px at 50% -200px, rgba(172, 156, 141, 0.28), transparent 70%), var(--bg); color: var(--ink); }
::selection { background: var(--accent); color: #fff; }
.tone { background: var(--ivory); }

/* Titoli: il bordeaux con un gradiente appena percettibile */
.cases__main .mega, .tile-num--accent b { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.label, .more, .nav__cta, .rows__meta, .post small, .case-facts small { color: var(--accent); }
.kicker { color: var(--muted); }
.star { color: var(--taupe); }
.wordmark svg { color: var(--accent); }
.wordmark .w2 { color: var(--taupe); }

/* Card bianche con ombre morbide al posto dei pannelli scuri */
.tile-num, .case-plate, .review, .origin, .resource-band, .calc__tool, .facts > div, .invest__side, .contacts__list > div, .note-signed, .timeline li, .recognise li, .letters5 li, .svc-card, .case-card, .review-card, .box, .problems-check label, .form-card, .apply__form, .mock { background: var(--surface-grad); box-shadow: var(--shadow-card); }
.mock { background: var(--ivory); box-shadow: none; }
.mock--accent, .tile-num--accent, .facts div.is-accent, .recognise li:nth-child(2), .problems li:nth-child(2), .timeline li:last-child, .cases__main, .invest__price, .in-pratica, .calc__result div.is-accent { background: var(--accent-fill); color: #fff; box-shadow: 0 18px 40px -22px rgba(50, 45, 41, 0.28); }
.tile-num--accent > span, .facts div.is-accent dt, .facts div.is-accent dd, .recognise li:nth-child(2), .timeline li:last-child p, .timeline li:last-child b, .invest__price p, .invest__price .kicker, .cases__main p, .cases__main .kicker, .in-pratica, .calc__result div.is-accent span { color: #fff; }
.tile-num b { color: var(--sand); }
.tile-num b small { color: var(--taupe); }
.calc__result div { background: var(--ivory); }
.calc__result div span { color: var(--muted); }
.calc__result div.is-accent b { color: #fff; }
.case-plate .muted, .cases__side .kicker { color: var(--muted); }
.rows__item, .faq details, .lined li, .map-table th, .map-table td { border-color: var(--rule); }
.bracket::before { border-left-color: var(--sand); }
.bracket::after { border-right-color: var(--sand); }
.dots i { background: var(--ivory); color: var(--taupe); }
.dots i.on { background: var(--accent-fill); color: #fff; }
.volta-arch .concio path { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.volta-arch .concio text { fill: var(--taupe); }
.volta-arch .concio:hover path { fill: var(--ivory); }
.volta-arch .concio.is-on path { fill: var(--accent); stroke: var(--accent); }
.volta-arch .concio.is-on text { fill: #fff; }
.deliver__doc { box-shadow: 0 30px 60px -30px rgba(50, 45, 41, 0.35); }
.todo { background: var(--todo-bg); color: var(--todo-ink); }

/* Pulsanti: capsula bordeaux, seconda scelta in vetro chiaro */
.btn { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px -14px rgba(50, 45, 41, 0.28); }
.btn--ghost { color: var(--ink); background: rgba(50, 45, 41, 0.05); box-shadow: inset 0 0 0 1px rgba(50, 45, 41, 0.18); }
.choice span { box-shadow: inset 0 0 0 1px var(--sand); }
.filters .choice span { box-shadow: inset 0 0 0 1px var(--sand); }
.choice input:checked + span { background: var(--accent-fill); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 16px 34px -14px rgba(114, 56, 61, 1); }
  .btn--ghost:hover { background: rgba(50, 45, 41, 0.1); color: var(--ink); }
  .form-card .btn:hover { background: var(--ink); color: #fff; }
  .tile-num:hover, a.case-plate:hover, .review:hover, a.post:hover, a.resource-band:hover { box-shadow: 0 2px 4px rgba(50, 45, 41, 0.05), 0 26px 50px -24px rgba(50, 45, 41, 0.35); }
  a.rows__item:hover { background: #fff; }
  .nav__link:hover, .nav__drop > button:hover { color: var(--accent); }
}
.cases__main:hover { background: var(--accent-fill); filter: brightness(1.06); }

/* Header, menu e barra in basso: vetro chiaro */
.nav__link, .nav__drop > button { color: var(--ink); }
.nav__link[aria-current="page"] { text-decoration-color: var(--accent); }
.nav__menu a span + span { color: var(--muted); }
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--ivory); }
.nav__menu { box-shadow: 0 24px 50px -20px rgba(50, 45, 41, 0.3), inset 0 0 0 1px rgba(50, 45, 41, 0.08); }
.site-header::after { border-bottom: 1px solid rgba(50, 45, 41, 0.1); }
.mobile-menu { color: var(--ink); }
.mobile-menu__top { border-bottom-color: var(--line); }
.mobile-menu nav .sub { color: var(--muted); }
.mobile-bar { box-shadow: inset 0 0 0 1px rgba(50, 45, 41, 0.1), 0 18px 40px -16px rgba(50, 45, 41, 0.35) !important; }
.mobile-bar .tab[aria-current="page"] { background: var(--ivory); color: var(--accent); }
[data-glow]::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(114, 56, 61, 0.07), transparent 60%); }

/* "Ti riconosci?" */
.problems-check .tick { box-shadow: inset 0 0 0 1.5px var(--sand); }
.problems-check input:checked + label { background: var(--accent-fill); color: #fff; }
.problems-result .count b { color: var(--accent); }

/* Calcolatore */
.calc__row input[type="range"] { accent-color: var(--accent); }

/* Fasce scure: chiusura e "Sul campo". Dentro, i colori si capovolgono. */
.finale, .curve-band { --ink: #efe9e1; --muted: #d1c7bd; --stone: #ac9c8d; --rule: rgba(239, 233, 225, 0.16); color: var(--ink); }
.finale { background: #322d29; }
.finale > img { filter: grayscale(0.7) sepia(0.25) brightness(0.36) contrast(1.05); }
.finale .mega { color: #efe9e1; }
.finale .h-sec .em { color: #dcb0b4; }
.finale .star { color: #c98d92; }
.finale .todo, .curve-band .todo { background: rgba(239, 233, 225, 0.14); color: #f3dcdd; }
.site-footer a:hover { color: #fff; }
.curve-band { background: linear-gradient(180deg, var(--bg) 0%, #8a7d71 30%, #4a3f39 65%, #322d29 100%); }
.curve-band .label { color: #f3dcdd; }
.curve-band .h-sec .em { color: #ecc9cb; }
.curve-band .bracket::before, .curve-band .bracket::after { display: none; }

/* Niente parentesi decorative ai lati dei titoli (richiesta del cliente) */
.bracket::before, .bracket::after { content: none !important; display: none !important; }
.bracket { padding-inline: 0; }

/* Caso studio: stato delle attività, marchio, schermate del sito, realizzazioni */
.status { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0.6rem 0.35rem 0; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--ivory); color: var(--muted); vertical-align: middle; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--taupe); }
.status--done { background: #f3e4e5; color: var(--accent); }
.status--done::before { background: var(--accent); }
.rows__desc .status { display: inline-flex; }
.case-brand { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.case-brand__logo { display: grid; place-items: center; min-height: 14rem; padding: 2.5rem; border-radius: var(--r); background: linear-gradient(135deg, #24564f 0%, #1f4b47 55%, #173a37 100%); }
.case-brand__logo img { width: min(100%, 26rem); height: auto; }
.case-brand__swatches { display: grid; gap: 0.6rem; }
.case-brand__swatches li { display: flex; align-items: flex-end; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--c); color: #fff; font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-card); }
.case-screens { display: grid; grid-template-columns: 3fr 1fr; gap: 1rem; align-items: end; }
.case-screens figure { border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(50, 45, 41, 0.45); }
.case-screens img { width: 100%; height: auto; display: block; }
.case-works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.case-works figure { position: relative; border-radius: var(--r); overflow: clip; }
.case-works img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.case-works figcaption { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; display: grid; gap: 0.1rem; padding: 0.75rem 0.9rem; border-radius: 12px; background: rgba(250, 248, 245, 0.82); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); font-size: 0.85rem; color: var(--muted); }
.case-works figcaption strong { color: var(--ink); font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) { .case-works figure:hover img { transform: scale(1.05); } }
@media (max-width: 64em) {
  .case-brand { grid-template-columns: 1fr; }
  .case-brand__swatches { grid-template-columns: repeat(3, 1fr); }
  .case-brand__swatches li { min-height: 5rem; }
  .case-works { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding: 0 var(--margin) 0.5rem; scroll-padding-inline: var(--margin); }
  .case-works > * { scroll-snap-align: start; }
}
@media (max-width: 40em) { .case-screens { grid-template-columns: 1fr 0.42fr; gap: 0.6rem; } }
.cases__main.has-photo { position: relative; overflow: hidden; }
.cases__main.has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; mix-blend-mode: luminosity; transition: transform 900ms var(--ease-soft); }
.cases__main.has-photo > :not(img) { position: relative; }
.cases__main.has-photo .case-logo { width: min(16rem, 60%); height: auto; filter: brightness(0) invert(1); }
@media (hover: hover) and (pointer: fine) { .cases__main.has-photo:hover > img { transform: scale(1.04); } }
.case-brand__logo img, .case-logo { background: none !important; }
.case-brand__logo { gap: 1rem; text-align: center; }
.case-brand__word { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 3vw, 4.5rem); letter-spacing: 0.02em; color: #fff; }
.case-placeholder { display: grid; place-items: center; min-height: 18rem; padding: 2rem; border-radius: var(--r); background: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--sand); text-align: center; }
.case-screens .case-placeholder { min-height: 22rem; }
.case-places { justify-content: center; }

.facts > div { min-width: 0; }
.facts dd { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 48em) { .facts dd { font-size: 0.95rem; } }
@media (max-width: 30em) { .facts { grid-template-columns: 1fr; } }
.case-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; list-style: none; padding: 0; margin-top: 2rem; }
.case-places li { display: grid; gap: 0.35rem; padding: 1.25rem 1.4rem; border-radius: var(--r); background: var(--surface-grad); box-shadow: var(--shadow-card); font-weight: 600; }
.case-places small { font-weight: 400; font-size: 0.85rem; color: var(--muted); }

/* Caso Nanotec: tavole dal manuale di brand (vettoriali e foto a 2880 px) */
.nt-hero { margin: clamp(1.5rem, 4vw, 3rem) 0 0; }
.nt-hero img { display: block; width: 100%; height: clamp(18rem, 52vw, 44rem); object-fit: cover; border-radius: var(--r); transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }
.nt-hero { overflow: hidden; border-radius: var(--r); margin-inline: var(--margin); }

/* Prima e dopo: il cursore scopre il nuovo marchio */
.nt-compare { margin: 0; --pos: 50%; }
.nt-compare__frame { position: relative; overflow: hidden; border-radius: var(--r); background: #ebebed; box-shadow: var(--shadow-card); aspect-ratio: 3 / 2; touch-action: pan-y; }
.nt-compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.nt-compare__tag { position: absolute; top: 1rem; left: 1rem; padding: 0.35rem 0.8rem; border-radius: 99px; background: rgba(255, 255, 255, 0.85); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.nt-compare__tag--after { left: auto; right: 1rem; color: #1C433F; }
.nt-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #1C433F; pointer-events: none; }
.nt-compare__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; transform: translate(-50%, -50%); border-radius: 50%; background: #1C433F; color: #fff; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.15em; box-shadow: 0 10px 24px -10px rgba(19, 23, 22, 0.6); transition: transform var(--t-hover) var(--ease-out); }
.nt-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.nt-compare__range:focus-visible ~ .nt-compare__handle::after, .nt-compare__frame:hover .nt-compare__handle::after { transform: translate(-50%, -50%) scale(1.1); }
.nt-compare__frame:has(.nt-compare__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.nt-compare figcaption { margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }

/* Il marchio su verde bosco */
.nt-brand { position: relative; display: grid; place-items: center; min-height: clamp(20rem, 42vw, 34rem); padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r); overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 30% 10%, #2A5754 0%, #1C433F 55%, #163633 100%); box-shadow: 0 40px 80px -40px rgba(19, 23, 22, 0.55); }
.nt-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40rem 20rem at var(--mx, 70%) var(--my, 30%), rgba(222, 127, 83, 0.16), transparent 70%); pointer-events: none; }
.nt-logo { display: block; height: auto; overflow: visible; }
.nt-brand__logo { position: relative; width: min(100%, 34rem); }
.nt-brand__payoff { position: absolute; left: clamp(1.25rem, 4vw, 3rem); bottom: clamp(1.25rem, 4vw, 2.75rem); max-width: 28ch; font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem); line-height: 1.4; color: #cfdcda; }
.nt-brand__type { position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: clamp(1.25rem, 4vw, 2.75rem); display: grid; gap: 0.3rem; text-align: right; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9FAAA8; }
@media (max-width: 40em) {
  .nt-brand { min-height: 0; gap: 2rem; padding: 3.5rem 1.5rem 1.5rem; }
  .nt-brand__logo { width: 88%; }
  .nt-brand__payoff, .nt-brand__type { position: static; justify-self: stretch; text-align: left; }
  .nt-brand__type { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
}

/* Palette: le fasce si allargano al passaggio, un tocco copia il codice */
.nt-palette { display: flex; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; height: clamp(9rem, 16vw, 12rem); }
.nt-palette li { flex: 1 1 0; min-width: 0; transition: flex-grow 600ms var(--ease-expo); }
.nt-palette li:first-child { flex-grow: 2.2; }
.nt-palette li:nth-child(3) { flex-grow: 1.5; }
.nt-palette li:hover, .nt-palette li:focus-within { flex-grow: 3; }
.nt-palette .nt-palette__sw { box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.15rem; width: 100%; height: 100%; padding: 0.9rem 1rem; border-radius: var(--r); background: var(--c); color: #fff; overflow: hidden; box-shadow: var(--shadow-card); }
.nt-palette .is-light .nt-palette__sw { color: #131716; }
.nt-palette .nt-palette__sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nt-palette b { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-palette span { font-size: 0.8rem; font-variant-numeric: tabular-nums; opacity: 0.85; }
.nt-palette small { font-size: 0.72rem; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-palette button.is-copied span::after { content: " · copiato"; }
@media (max-width: 48em) {
  .nt-palette { display: grid; grid-template-columns: repeat(3, 1fr); height: auto; }
}
@media (max-width: 30em) {
  .nt-palette { grid-template-columns: 1fr 1fr; }
  .nt-palette b, .nt-palette small { white-space: normal; }
  .nt-palette .nt-palette__sw { min-height: 6.5rem; }
}

/* Griglia costruttiva */
.nt-construct { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-top: clamp(3rem, 8vw, 6rem); }
.nt-construct__text .lead { margin: 1rem 0 0.75rem; }
.nt-construct__fig { margin: 0; overflow: hidden; border-radius: var(--r); background: #ebebed; box-shadow: var(--shadow-card); aspect-ratio: 16 / 10; }
.nt-grid { display: block; width: 100%; height: 100%; color: rgba(19, 23, 22, 0.42); }
.nt-grid__lines path { stroke-width: 1; }
.nt-grid__half { fill: #4F6E70; }
@media (max-width: 48em) { .nt-construct { grid-template-columns: 1fr; } }

/* Il manuale applicato: si sfoglia in orizzontale */
.nt-tour { padding-block: var(--section); }
.nt-tour__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.nt-tour__head .h-sm { margin-top: 0.75rem; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.6rem); }
.nt-tour__count { white-space: nowrap; font-family: var(--font-display); font-stretch: 125%; font-size: 0.95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nt-tour__count b { color: var(--ink); }
.nt-tour__track { display: flex; gap: clamp(1rem, 2.5vw, 2rem); margin: 0; padding: 0 var(--margin); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nt-tour__track::-webkit-scrollbar { display: none; }
.nt-tour__slide { flex: 0 0 min(88vw, 62rem); scroll-snap-align: center; }
.nt-tour__slide figure { margin: 0; overflow: hidden; border-radius: var(--r); box-shadow: 0 30px 60px -32px rgba(50, 45, 41, 0.45); }
.nt-tour__slide img { display: block; width: 100%; height: auto; transform: scale(var(--zoom, 1)); transition: transform 900ms var(--ease-soft); }
.nt-tour__cap { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.25rem; margin-top: 1rem; max-width: 46ch; }
.nt-tour__cap span { grid-row: span 2; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; color: var(--accent); }
.nt-tour__cap h3 { font-size: 1rem; }
.nt-tour__cap p { color: var(--muted); font-size: 0.95rem; }
.nt-tour__bar { height: 2px; margin-top: clamp(1.25rem, 3vw, 2rem); background: var(--line); border-radius: 2px; overflow: hidden; }
.nt-tour__bar i { display: block; height: 100%; width: 100%; background: var(--accent-fill); transform-origin: left; transform: scaleX(var(--p, 0.25)); }
/* su schermi larghi lo scorrimento verticale fa avanzare le tavole */
.nt-tour.is-pinned { padding-block: 0; height: var(--tour-h, 300vh); }
.nt-tour.is-pinned .nt-tour__stick { position: sticky; top: 0; height: 100vh; padding-top: var(--header-h, 4.5rem); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.nt-tour.is-pinned .nt-tour__track { overflow: visible; scroll-snap-type: none; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.nt-tour.is-pinned .nt-tour__slide { flex-basis: min(64vw, 58rem); }
.nt-tour.is-pinned .nt-tour__slide img { max-height: 56vh; width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

/* card in Casi studio */
.nt-card-fig { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 10%, #2A5754 0%, #1C433F 60%, #163633 100%); color: #fff; }
.nt-card-fig__logo { width: 62%; transition: transform 700ms var(--ease-expo); }
a.card:hover .nt-card-fig__logo { transform: scale(1.06); }

@media (prefers-reduced-motion: no-preference) {
  /* il marchio si compone: le due metà della N scorrono al loro posto, poi la scritta */
  .js .nt-brand .nt-logo__half { transition: transform 1100ms var(--ease-expo), opacity 600ms ease; }
  .js .nt-brand:not(.is-in) .nt-logo__half--0 { transform: translateY(-26px); opacity: 0; }
  .js .nt-brand:not(.is-in) .nt-logo__half--1 { transform: translateY(26px); opacity: 0; }
  .js .nt-brand .nt-logo__word { clip-path: inset(0 0 0 0); transition: clip-path 1200ms var(--ease-in-out) 450ms; }
  .js .nt-brand:not(.is-in) .nt-logo__word { clip-path: inset(0 100% 0 0); }
  .js .nt-brand .nt-brand__payoff, .js .nt-brand .nt-brand__type { transition: opacity 800ms ease 1100ms, transform 800ms var(--ease-expo) 1100ms; }
  .js .nt-brand:not(.is-in) .nt-brand__payoff, .js .nt-brand:not(.is-in) .nt-brand__type { opacity: 0; transform: translateY(10px); }
  .js .nt-brand[data-reveal] { transform: none; }
  /* la griglia si traccia, poi i due moduli entrano */
  .js [data-draw] .nt-grid__lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease-in-out); transition-delay: calc(var(--i) * 90ms); }
  .js [data-draw].is-in .nt-grid__lines path { stroke-dashoffset: 0; }
  .js [data-draw] .nt-grid__half { transition: transform 1200ms var(--ease-expo) 1200ms, opacity 700ms ease 1200ms; }
  .js [data-draw]:not(.is-in) .nt-grid__half--0 { transform: translateY(-60px); opacity: 0; }
  .js [data-draw]:not(.is-in) .nt-grid__half--1 { transform: translateY(60px); opacity: 0; }
  /* palette: le fasce salgono una dopo l'altra */
  .js .nt-palette[data-reveal] { transform: none; opacity: 1; }
  .js .nt-hero[data-reveal] { opacity: 1; transform: none; clip-path: inset(6% 5% round var(--r)); transition: clip-path 1300ms var(--ease-in-out); }
  .js .nt-hero[data-reveal].is-in { clip-path: inset(0 round var(--r)); }
  .js .nt-palette li { transition: flex-grow 600ms var(--ease-expo), transform 800ms var(--ease-expo), opacity 500ms ease; transition-delay: 0s, calc(var(--i) * 70ms), calc(var(--i) * 70ms); }
  .js .nt-palette:not(.is-in) li { transform: translateY(30px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .nt-hero img { transform: none; } }

/* Home: il Metodo VOLTA come cruscotto di progetto, su fascia scura */
.vd-band { --ink: #f3eee8; --muted: #cfc4ba; --accent-text: #e3b3b7; padding-block: clamp(4rem, 9vw, 7.5rem); color: var(--ink); background: radial-gradient(80% 60% at 50% 0%, #4a3f39 0%, #322d29 55%, #2a2522 100%); overflow: clip; }
.vd-band__head { max-width: 46rem; margin: 0 auto; text-align: center; }
.vd-band { margin-top: clamp(3.5rem, 8vw, 7rem); }
.vd-band .label { color: #e3b3b7; }
.vd-band__title { font-size: clamp(1.9rem, 1rem + 3.4vw, 4rem); line-height: 0.95; letter-spacing: -0.02em; color: #fff; }
.vd-band__title em { display: block; font-style: normal; color: #e3b3b7; }
.vd-band__head p { margin: 1.25rem auto 0; max-width: 52ch; color: #ddd3ca; }
.vd-band__more { margin-top: 2rem; display: flex; justify-content: center; max-width: none; }
.vd-band .more { color: #fff; }
.vd { margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 72rem; border-radius: calc(var(--r) * 1.2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.vd__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8rem; color: #cfc4ba; }
.vd__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.vd__bar span { margin-left: 0.5rem; }
.vd__bar em, .qdoc__head em { margin-left: auto; padding: 0.2rem 0.6rem; border-radius: 99px; font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.08); color: #e3c6c8; }
.vd__grid { display: grid; grid-template-columns: 1.5fr 1fr; }
.vd__gantt { padding: 1.1rem 1.1rem 1.25rem; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.vd__title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #bcb0a5; margin-bottom: 0.8rem; }
.vd__rows { position: relative; display: grid; gap: 0.45rem; margin-top: 1.9rem; }
.vd__row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: 0.6rem; padding: 0.3rem; border-radius: 8px; cursor: pointer; transition: background 300ms ease; }
.vd__row:hover { background: rgba(255, 255, 255, 0.05); }
.vd__row:focus-visible { outline: 2px solid #e3b3b7; outline-offset: 1px; }
.vd__l { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-family: var(--font-display); font-stretch: 125%; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transition: background 300ms ease, box-shadow 300ms ease; }
.vd__track { position: relative; height: 1.9rem; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px calc(100% / 12)); }
.vd__fill { position: absolute; top: 0.3rem; bottom: 0.3rem; left: var(--x); width: var(--w); display: flex; align-items: center; padding-left: 0.7rem; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.8); font-size: 0.75rem; font-weight: 600; white-space: nowrap; transform-origin: left; transition: background 300ms ease; }
.vd__row.is-on .vd__fill { background: #8d4a50; color: #fff; }
.vd__row.is-on .vd__l { background: #8d4a50; box-shadow: none; }
.vd__now { position: absolute; top: -0.2rem; bottom: -0.2rem; left: calc(3rem + (100% - 3rem) * var(--now, 0.12)); width: 1px; background: #e3b3b7; pointer-events: none; transition: left 900ms var(--ease-expo); }
.vd__now::before { content: "Oggi"; position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #e3b3b7; }
.vd__phase { padding: 1.1rem 1.25rem 1.25rem; }
.vd__panel + .vd__panel { margin-top: 1.5rem; }
.vd__panel h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); color: #fff; }
.vd__panel dl { display: grid; gap: 0.9rem; margin: 1rem 0 0; }
.vd__panel dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #e3b3b7; }
.vd__panel dd { margin: 0.25rem 0 0; color: #ebe4dc; font-size: 0.95rem; line-height: 1.5; }
.js .vd__panel:not(.is-on) { display: none; }
.js .vd__panel + .vd__panel { margin-top: 0; }
.vd__kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.vd__kpis .vd__title { grid-column: 1 / -1; margin: 0; padding: 0.9rem 1.1rem 0; }
.vd__kpis div { padding: 0.6rem 1.1rem 1rem; border-right: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8rem; color: #cfc4ba; }
.vd__kpis div:last-child { border-right: 0; }
.vd__kpis svg { display: block; width: 100%; height: 2.2rem; margin-top: 0.4rem; overflow: visible; }
.vd__kpis path { fill: none; stroke: #e3b3b7; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@media (max-width: 52em) {
  .vd__grid { grid-template-columns: 1fr; }
  .vd__gantt { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .vd__kpis { grid-template-columns: 1fr 1fr; }
  .vd__kpis div:nth-child(3) { border-right: 0; }
  .vd__kpis div:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .vd__fill span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .vd[data-reveal] { transform: translateY(40px); }
  .js .vd .vd__fill { transform: scaleX(0); transition: transform 1100ms var(--ease-expo), background 300ms ease; transition-delay: calc(var(--k) * 140ms + 350ms), 0s; }
  .js .vd.is-in .vd__fill { transform: none; }
  .js .vd .vd__kpis path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease-in-out) 1200ms; }
  .js .vd.is-in .vd__kpis path { stroke-dashoffset: 0; }
  .js .vd__panel.is-on { animation: vd-in 500ms var(--ease-expo); }
  @keyframes vd-in { from { opacity: 0; transform: translateY(8px); } }
}

/* Home: il preventivo vivo */
.qcalc .calc__intro { align-self: center; }
.qcalc > div:last-child { grid-column: 7 / -1; }
@media (max-width: 64em) { .qcalc > div:last-child { grid-column: 1 / -1; } }
.qdoc { padding: clamp(1.25rem, 3vw, 2rem); border-radius: calc(var(--r) * 1.2); background: #fff; box-shadow: 0 2px 4px rgba(50, 45, 41, 0.05), 0 50px 80px -40px rgba(50, 45, 41, 0.45); transform: perspective(1400px) rotateY(var(--ry, -5deg)) rotateX(var(--rx, 2deg)); transition: transform 900ms var(--ease-expo); }
.qdoc__head { display: flex; align-items: start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.qdoc__head b { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; }
.qdoc__head small { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.qdoc__head em { background: rgba(114, 56, 61, 0.1); color: var(--accent); }
.qdoc__rows { margin: 0; padding: 0.4rem 0; list-style: none; }
.qdoc__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.qdoc__rows b, .qdoc__sum b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qdoc__sum { display: grid; gap: 0.3rem; padding: 0.9rem 0; font-size: 0.92rem; }
.qdoc__sum div { display: flex; justify-content: space-between; gap: 1rem; }
.qdoc__sum .is-big { font-size: 1.05rem; }
.qdoc__sum .is-margin b { color: var(--accent); }
.qdoc__bar { display: flex; height: 0.7rem; margin: 0.4rem 0 0.9rem; overflow: hidden; border-radius: 99px; background: var(--line); }
.qdoc__bar i { display: block; height: 100%; transition: flex-basis 500ms var(--ease-expo); }
.qdoc__bar .c { background: #cfc5bb; }
.qdoc__bar .m { background: var(--accent-fill); }
.qdoc__bar .s { background: repeating-linear-gradient(135deg, #e8b9b9 0 4px, #f6e3e3 4px 8px); }
.qdoc__ctl { padding: 1rem; border-radius: var(--r); background: var(--bg); }
.qdoc__ctl label { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 600; }
.qdoc__ctl output { color: var(--accent); font-variant-numeric: tabular-nums; }
.qdoc__ctl input { width: 100%; height: 1.75rem; margin: 0.6rem 0 0.2rem; accent-color: var(--accent); }
.qdoc__say { min-height: 2.8em; margin-top: 0.75rem; font-size: 0.92rem; }
.qdoc__say b { color: var(--accent); }
@media (max-width: 64em) { .qdoc { --ry: 0deg; --rx: 0deg; } }
@media (prefers-reduced-motion: no-preference) {
  .js .qdoc .qdoc__rows li { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 700ms var(--ease-expo); }
  .js .qdoc .qdoc__rows li.is-on { opacity: 1; transform: none; }
}

.intro-hero .kicker { max-width: none; margin-inline: auto; }

/* ==========================================================================
   Tavole d'atelier: materiali e disegni in SVG al posto delle fotografie
   ========================================================================== */
.plate-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.plate { position: relative; overflow: hidden; isolation: isolate; width: 100%; height: 100%; background: var(--ivory); container-type: inline-size; }
.plate > svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: hidden; }
.plate > .plate__draw { inset: 7%; width: 86%; height: 86%; overflow: visible; }
.plate--mappa > .plate__draw, .plate--notte > .plate__draw, .plate--campionario > .plate__draw { inset: 0; width: 100%; height: 100%; }
.plate--campionario > .plate__draw { inset: 4%; width: 92%; height: 92%; }
.plate::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(55% 60% at var(--mx, 28%) var(--my, 18%), rgba(255, 252, 245, 0.34), transparent 70%); mix-blend-mode: soft-light; }
.plate--velluto::after, .plate--trama::after, .plate--noce::after, .plate--boiserie::after, .plate--proposta::after { background: radial-gradient(50% 55% at var(--mx, 28%) var(--my, 18%), rgba(255, 236, 214, 0.3), transparent 70%); mix-blend-mode: screen; }
.plate text { font-family: var(--font-text); }
.plate .lbl { font-size: 18px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; fill: #322d29; }
.plate .lbl--em { fill: #72383d; font-weight: 700; }
.plate .lbl--light { fill: #efe9e1; }
.plate .lbl--soft { fill: #8f8174; }
.plate .trama__l { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 46px; fill: #efe9e1; }
.plate .doc__brand { font-size: 14px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; fill: #322d29; }
.plate .doc__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 46px; text-transform: uppercase; fill: #322d29; }
.plate .doc__sign { font-family: Allura, cursive; font-size: 64px; fill: #72383d; }
.plate .metro__n { font-size: 13px; font-weight: 700; fill: #322d29; }
.plate .targa__t { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 92px; text-transform: uppercase; letter-spacing: 0.06em; }
.plate .targa__s { font-size: 24px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; }
@container (max-width: 24rem) { .plate .lbl, .plate .metro__n { visibility: hidden; } }
.plate__tag { position: absolute; z-index: 3; left: 0.6rem; bottom: 0.6rem; display: grid; padding: 0.4rem 0.6rem 0.42rem; border-radius: 6px; background: rgba(251, 248, 243, 0.92); color: #322d29; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.25; box-shadow: 0 6px 16px -10px rgba(50, 45, 41, 0.5); }
.plate__tag b { font-weight: 700; }
.plate__cap { position: absolute; z-index: 3; left: 0.75rem; bottom: 0.75rem; padding: 0.35rem 0.6rem; border-radius: 999px; background: rgba(251, 248, 243, 0.92); color: #322d29; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* Proporzioni dei riquadri che prima avevano le foto */
.wide-photo .plate { aspect-ratio: 21 / 9; }
.quote-block__photo .plate, .photo-pair .plate { aspect-ratio: 3 / 4; height: auto; }
.split .plate { aspect-ratio: 5 / 4; height: auto; }
.trio .plate { height: auto; }
.trio figure:nth-child(1) .plate { aspect-ratio: 4 / 3; }
.trio figure:nth-child(2) .plate { aspect-ratio: 3 / 4; }
.trio figure:nth-child(3) .plate { aspect-ratio: 1; }
.origin__photo .plate { min-height: 22rem; border-radius: var(--r); }
.post__img .plate, .card__fig .plate { aspect-ratio: 4 / 3; height: auto; }
.apply__side .plate { aspect-ratio: 4 / 3; height: auto; margin-top: 2rem; border-radius: var(--r); }
.finale > .plate { position: absolute; inset: 0; border-radius: 0; }
.finale > .plate::after { display: none; }
.wide-photo .plate, .quote-block__photo .plate, .split .plate, .trio .plate, .thumbs .plate, .curve .plate, .post__img .plate { border-radius: inherit; }
@media (max-width: 64em) { .origin__photo .plate { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 48em) { .wide-photo .plate { aspect-ratio: 4 / 3; } }

/* Il metro e i fili: a riposo sono già al loro posto; con lo script si disegnano all'ingresso */
.plate .grow { transform-box: fill-box; transform-origin: left center; }
.plate .firma { transform-box: fill-box; transform-origin: left center; }
.plate .sigillo, .plate .mappa__qui circle:first-child { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .js .plate .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease-in-out) calc(150ms + var(--k, 0) * 110ms); }
  .js .plate .fd { opacity: 0; transition: opacity 900ms var(--ease-out) calc(350ms + var(--k, 0) * 110ms); }
  .js .plate .grow { transform: scaleX(0); transition: transform 1500ms var(--ease-expo) calc(250ms + var(--k, 0) * 170ms); }
  .js .plate .firma { transform: scaleX(0); transition: transform 2200ms cubic-bezier(0.45, 0.05, 0.4, 1) 1100ms; }
  .js .plate .sigillo { opacity: 0; transform: scale(1.5); transition: opacity 300ms ease 2900ms, transform 520ms cubic-bezier(0.3, 1.6, 0.5, 1) 2900ms; }
  .js .plate .penna { opacity: 0; transform: translate(120px, 80px); transition: opacity 700ms ease 600ms, transform 1400ms var(--ease-expo) 600ms; }
  .js .plate .trama__ago { transform: translateX(-640px); opacity: 0; transition: transform 2200ms var(--ease-expo) 500ms, opacity 600ms ease 500ms; }
  .js .plate .metro { opacity: 0; transform: translateY(40px); transition: opacity 800ms ease 900ms, transform 1400ms var(--ease-expo) 900ms; }
  .js .plate.is-in .ln { stroke-dashoffset: 0; }
  .js .plate.is-in .fd { opacity: 1; }
  .js .plate.is-in :is(.grow, .firma, .penna, .trama__ago, .metro) { transform: none; opacity: 1; }
  .js .plate.is-in .sigillo { opacity: 1; transform: none; }
  .plate .luce__fascio { animation: sole 22s ease-in-out infinite alternate; }
  .plate .mappa__qui circle:first-child { animation: qui 2.8s var(--ease-out) infinite; }
  .js .shutter[data-reveal] .plate__mat { transform: scale(1.1); transition: transform 1600ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in .plate__mat { transform: none; }
  .js .thumbs .plate__mat { scale: 1.12; animation: settle 1400ms var(--ease-soft) forwards; animation-delay: calc(300ms + var(--i, 0) * 70ms); }
}
@keyframes sole { from { transform: translateX(-70px); opacity: 0.85; } to { transform: translateX(90px); opacity: 1; } }
@keyframes qui { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .thumbs figure .plate__mat { transition: transform 900ms var(--ease-soft); }
  .thumbs figure:hover .plate__mat { transform: scale(1.06); }
  .post .plate__mat, .card__fig .plate__mat { transition: transform 700ms var(--ease-soft); }
  a.post:hover .plate__mat, a.card:hover .plate__mat { transform: scale(1.05); }
}
.plate .doc__sign { font-size: 54px; }
.plate .cm__tag { font-size: 17px; }
.plate--luce > .plate__draw, .plate--campionario > .plate__draw { inset: 0; width: 100%; height: 100%; }
.intro-hero h1 .kicker { font-stretch: 100%; }

/* Logo in stampatello: lo stesso grotesk largo dei titoli, senza simbolo */
.wordmark { gap: 0.45em; font-family: var(--font-display); font-stretch: 125%; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.wordmark .w2 { font-weight: 500; color: var(--taupe); }
.plate .sigillo__ae { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 32px; letter-spacing: 0.02em; }

/* ==========================================================================
   Le due linee: Brand & Marketing (velluto bordeaux) e Gestione & Numeri (ottone)
   ========================================================================== */
:root { --brand-swatch: linear-gradient(135deg, #a4555c 0%, #72383d 55%, #4c2226 100%); --gest-swatch: linear-gradient(120deg, #7a5b34 0%, #c9a46a 40%, #f0dbad 52%, #b48c55 70%, #8a6a3e 100%); --gest-ink: #6b5023; }
.line-badge { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.38em 0.8em 0.38em 0.45em; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-family: var(--font-text); font-stretch: 100%; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; color: var(--ink); white-space: nowrap; vertical-align: middle; }
.line-badge i { width: 1.15em; height: 1.15em; border-radius: 50%; flex: none; }
.line-badge--brand i { background: var(--brand-swatch); }
.line-badge--gestione i { background: var(--gest-swatch); }
.line-badge--both i { background: var(--brand-swatch); }
.line-badge--both i + i { background: var(--gest-swatch); margin-left: -0.75em; box-shadow: 0 0 0 2px var(--surface); }

/* Home: le due schede affiancate */
.lines__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.line-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; background: var(--surface-grad); box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); }
.line-card__plate { aspect-ratio: 16 / 9; overflow: hidden; }
.line-card__body { display: grid; align-content: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-top: 4px solid transparent; }
.line-card--brand .line-card__body { border-image: var(--brand-swatch) 1; }
.line-card--gestione .line-card__body { border-image: var(--gest-swatch) 1; }
.line-card .line-badge { justify-self: start; }
.line-card__name { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); line-height: 0.95; letter-spacing: -0.02em; }
.line-card__claim { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.line-card--brand .line-card__claim { color: var(--accent); }
.line-card--gestione .line-card__claim { color: var(--gest-ink); }
.line-card__list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.line-card__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.line-card__list small { font-weight: 400; color: var(--muted); font-size: var(--step-small); text-align: right; }
.line-card .more { margin-top: 0.5rem; }
.lines__start { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .line-card { transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
  .line-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(50, 45, 41, 0.05), 0 26px 50px -24px rgba(50, 45, 41, 0.35); }
  .line-card .plate__mat { transition: transform 900ms var(--ease-soft); }
  .line-card:hover .plate__mat { transform: scale(1.04); }
}
@media (max-width: 56em) { .lines__grid { grid-template-columns: 1fr; } }

/* Servizi raggruppati per linea */
.svc-group + .svc-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.svc-group__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 0.25rem; padding-bottom: 0.75rem; }
.svc-group .rows { margin-top: 0; }
.line-back { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-top: 1.5rem; color: var(--muted); }
.line-back span:last-child { max-width: 60ch; }

/* Pagine di linea */
.line-svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.line-svc { display: grid; align-content: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r); background: var(--surface-grad); box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); border-top: 4px solid transparent; }
.line-svc--brand { border-image: var(--brand-swatch) 1; }
.line-svc--gestione { border-image: var(--gest-swatch) 1; }
.line-svc .line-badge { justify-self: start; }
.line-svc p { color: var(--muted); }
.line-svc__meta { font-size: var(--step-small); font-weight: 700; }
.line-head--gestione .label { color: var(--gest-ink); }
.line-bridge { display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; border-radius: var(--r); overflow: hidden; background: var(--surface-grad); box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); }
.line-bridge > div:first-child { padding: clamp(1.75rem, 4vw, 3.5rem); }
.line-bridge__plate { min-height: 16rem; }
.line-bridge__plate .plate { border-radius: 0; }
@media (max-width: 48em) { .line-bridge { grid-template-columns: 1fr; } .line-bridge__plate { min-height: 11rem; order: -1; } }
.team-lines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.team-line .rows { margin-top: 0; }
@media (max-width: 56em) { .team-lines { grid-template-columns: 1fr; } }
.map-table--lati td { min-width: 14rem; }
.map-table--lati th[scope="row"] { white-space: nowrap; }

/* Tendine del menu: in testa la pagina della linea */
.nav__menu a.nav__hub { gap: 0.45rem; margin-bottom: 0.35rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); border-radius: var(--r-s) var(--r-s) 0 0; }
.nav__menu a.nav__hub .line-badge { justify-self: start; }
.lines__start { max-width: none; } .svc-group__head { max-width: none; } .line-back { max-width: none; }
/* Le pagine della linea Gestione prendono l'ottone al posto del bordeaux negli accenti dei titoli */
.line-page--gestione :is(.label, .rows__meta) { color: var(--gest-ink); }
.line-svc h3 { font-size: clamp(1.25rem, 0.8rem + 1.2vw, 2rem); overflow-wrap: anywhere; hyphens: none; }
.line-card__sub { margin-top: -0.6rem; font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Home sulla struttura della reference: sottotitolo, garanzie, citazione ed evento,
   nuvola dei mestieri, le quattro vie con i pannelli che si aprono
   ========================================================================== */
.hero-sub { margin-top: clamp(0.75rem, 1.6vw, 1.25rem); font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.05rem, 0.8rem + 1.1vw, 1.7rem); letter-spacing: 0.14em; color: var(--ink); }
.hero-sub > span[aria-hidden] { font-family: "Allura", cursive; text-transform: none; font-weight: 400; font-size: 1.5em; letter-spacing: 0; color: var(--taupe); margin-inline: 0.25em; vertical-align: -0.12em; }
.hero-sub__f { color: var(--accent); }
.hero-tag { margin: 0.6rem auto 0; max-width: none; font-size: var(--step-small); color: var(--muted); letter-spacing: 0.02em; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.25rem; border-block: 1px solid var(--rule); text-align: center; }
.trust li { display: grid; gap: 0.25rem; }
.trust b { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.trust span { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 48em) { .trust { grid-template-columns: 1fr; gap: 1rem; } }
.hero-extra { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: stretch; margin-top: clamp(2rem, 4vw, 3rem); text-align: left; }
.hero-quote { display: grid; align-content: center; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.75rem); border-radius: var(--r); background: var(--ivory); }
.hero-quote p { max-width: 40ch; font-size: clamp(1.2rem, 0.9rem + 1vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; }
.event-card { display: grid; align-content: start; gap: 0.8rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r); background: var(--surface-grad); box-shadow: var(--shadow-card); border-top: 4px solid transparent; border-image: var(--brand-swatch) 1; text-decoration: none; color: var(--ink); }
.event-card__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); line-height: 1; }
.event-card__meta { font-size: var(--step-small); font-weight: 700; }
.event-card > span:not(.label):not(.more):not(.event-card__meta) { color: var(--muted); }
@media (max-width: 56em) { .hero-extra { grid-template-columns: 1fr; } }

.pull { margin-top: 2rem; padding-left: 1.25rem; border-left: 2px solid var(--sand); }
.pull p { font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.5rem); line-height: 1.3; max-width: 36ch; }
.photo-pair .plate { aspect-ratio: 4 / 3; height: auto; border-radius: var(--r); }
.niches__title { text-align: center; margin-top: clamp(4rem, 8vw, 6rem); }
.niches { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 62rem; margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; }
.niches li { padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: var(--step-small); }
.niches li:nth-child(5n+2) { box-shadow: inset 0 0 0 1px rgba(50, 45, 41, 0.28); }
.niches li:nth-child(5n+4) { box-shadow: inset 0 0 0 1px rgba(156, 122, 71, 0.45); }

.vie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.via { display: grid; align-content: start; gap: 0.75rem; height: 100%; padding: clamp(1.5rem, 2.5vw, 2rem); border-radius: var(--r); background: var(--surface-grad); box-shadow: var(--shadow-card); border-top: 4px solid var(--sand); text-decoration: none; color: var(--ink); }
.via--brand { border-image: var(--brand-swatch) 1; }
.via--gestione { border-image: var(--gest-swatch) 1; }
.via--both { border-image: linear-gradient(90deg, #72383d 0 50%, #b8925a 50% 100%) 1; }
.via__n { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 2.6rem; line-height: 0.9; color: var(--sand); }
.via__name { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.7rem); line-height: 1; }
.via__sub { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.via p { color: var(--muted); }
.via .more { margin-top: 0.5rem; }
@media (max-width: 64em) { .vie { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36em) { .vie { grid-template-columns: 1fr; } }
@media (hover: hover) and (pointer: fine) {
  .via { transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
  .via:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(50, 45, 41, 0.05), 0 26px 50px -24px rgba(50, 45, 41, 0.35); }
}
.vie__panels { display: grid; gap: 0.75rem; margin-top: clamp(2rem, 4vw, 3rem); }
.via-panel { border-radius: var(--r); background: var(--ivory); }
.via-panel summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; padding: 1.2rem 1.5rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1.05rem; }
.via-panel summary::-webkit-details-marker { display: none; }
.via-panel summary::after { content: "+"; margin-left: auto; font-family: var(--font-text); font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.via-panel[open] summary::after { transform: rotate(45deg); }
.via-panel summary span { font-family: var(--font-text); font-stretch: 100%; font-weight: 400; text-transform: none; font-size: var(--step-small); color: var(--muted); }
.via-panel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0.75rem; padding: 0 1.5rem 1.5rem; }
.via-svc { display: grid; align-content: start; gap: 0.6rem; padding: 1.25rem; border-radius: var(--r-s); background: var(--surface); text-decoration: none; color: var(--ink); }
.via-svc .line-badge { justify-self: start; }
.via-svc b { font-size: 1.05rem; }
.via-svc span:not(.line-badge) { font-size: var(--step-small); color: var(--muted); }
.via-svc em { font-style: normal; font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 30em) { .btn { white-space: normal; text-align: center; } }


/* ==========================================================================
   ATELIER · sistema visivo "come lo progetterebbe Apple", con la palette LUXE.
   Superfici morbide e profonde, rigore e pulizia. Archivo Expanded per i titoli,
   Helvetica per il testo. Questo livello ha l'ultima parola sui precedenti.
   ========================================================================== */
:root {
  --bg: #faf8f5;
  --bay: #f3eee7;
  --card: #ffffff;
  --ink: #322d29;
  --ink-2: #6b6058;
  --muted: #6b6058;
  --accent: #72383d;
  --accent-deep: #5a2a2f;
  --accent-text: #72383d;
  --accent-fill: #72383d;
  --brass: #8a6a3e;
  --brass-deep: #5c4426;
  --rule: rgba(50, 45, 41, 0.1);
  --r: 28px;
  --r-s: 18px;
  --r-xl: 34px;
  --sh-1: 0 1px 2px rgba(50, 45, 41, 0.05), 0 10px 30px -14px rgba(50, 45, 41, 0.18);
  --sh-2: 0 2px 6px rgba(50, 45, 41, 0.06), 0 34px 70px -30px rgba(50, 45, 41, 0.38);
  --shadow-card: var(--sh-1);
  --surface: var(--card);
  --surface-grad: var(--card);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --header-h: 3.5rem;
  --section: clamp(6.5rem, 11vw, 10rem);
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scrollbar-color: rgba(50, 45, 41, 0.3) transparent; }
body { background: var(--bg); color: var(--ink); font-size: 1.0625rem; letter-spacing: -0.003em; caret-color: var(--accent); }
::selection { background: rgba(114, 56, 61, 0.18); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.tone { background: var(--bay); }

/* Titoli: Archivo Expanded maiuscolo, tracking stretto, la riga accesa in bordeaux pieno */
.h-sec { font-size: clamp(2rem, var(--fit, 6cqi), var(--max, 5.25rem)); line-height: 0.95; letter-spacing: -0.025em; }
.h-sec .em, .h-mid .em, .rows__term b, .letters5 b, .stair h3 b, .volta__phase h3 b, .mega, .tile-num--accent b {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor;
}
.h-sec .em, .h-mid .em, .rows__term b, .letters5 b, .stair h3 b, .volta__phase h3 b { color: var(--accent); }
.line-page--gestione :is(.h-sec .em, .letters5 b, .stair h3 b, .rows__term b) { background: none; color: var(--brass); -webkit-text-fill-color: currentColor; }
.mega { color: var(--accent); }
.h-mid { letter-spacing: -0.02em; }
.lead { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.38; letter-spacing: -0.01em; font-weight: 500; color: var(--ink); }
.bracket { gap: 1.25rem; }
.bracket p:not(.lead) { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.section { padding-block: calc(var(--section) / 2); }
.label, .orn, .star { display: none; }

/* Testata di vetro, come una barra di sistema */
.site-header { height: var(--header-h); background: rgba(250, 248, 245, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.site-header::after { border-bottom: 1px solid rgba(50, 45, 41, 0.08); }
.wordmark { font-size: 0.95rem; }
.nav__link, .nav__drop > button { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(50, 45, 41, 0.82); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after, .nav__link::after { display: none; }
.nav__cta { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.95rem; border-radius: 999px; background: var(--accent); color: #fff !important; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: none; }
.nav__cta::before { display: none; }
.nav__menu { border-radius: 22px; background: rgba(255, 255, 255, 0.86); box-shadow: var(--sh-2), inset 0 0 0 1px rgba(50, 45, 41, 0.06); }
.nav__menu a { border-radius: 14px; }

/* Pulsanti a pillola e link con chevron disegnata */
.btn { min-height: 3rem; padding: 0 1.5rem; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: none; font-size: 1rem; font-weight: 500; letter-spacing: -0.005em; text-transform: none; transition: background-color 240ms var(--ease-apple), transform 160ms var(--ease-apple); }
.btn::before, .btn::after { display: none; content: none; }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.form-card .btn, .finale .btn { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .form-card .btn:hover { background: var(--accent-deep); color: #fff; box-shadow: none; }
  .btn--ghost:hover { background: rgba(114, 56, 61, 0.08); color: var(--accent); }
}
.btn:active { transform: scale(0.98); }
.chev, .more { display: inline-flex; align-items: center; gap: 0.15em; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em; text-transform: none; text-decoration: none; color: var(--accent); }
.more .arrow { display: none; }
.chev::after, .more::after { content: ""; width: 0.42em; height: 0.42em; margin-left: 0.3em; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg) translateY(1px); transition: transform 300ms var(--ease-apple); }
@media (hover: hover) and (pointer: fine) {
  .chev:hover, .more:hover, a:hover > .chev, a:hover .more { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  a:hover > .chev::after, .chev:hover::after, .more:hover::after, a:hover .more::after { transform: translateX(3px) rotate(45deg) translateY(1px); }
}
.line-page--gestione .chev, .line-page--gestione .more { color: var(--brass-deep); }

/* Superfici: oggetti bianchi, angoli morbidi, ombra con offset e sfumatura */
.tile-num, .case-plate, .review, .origin, .resource-band, .calc__tool, .facts > div, .invest__side, .contacts__list > div, .note-signed, .timeline li, .recognise li, .letters5 li, .svc-card, .case-card, .review-card, .box, .problems-check label, .form-card, .apply__form, .line-card, .line-svc, .via-svc, .line-bridge, .event-card, .hero-quote, .deliver__doc {
  border-radius: var(--r) !important; background: var(--card); box-shadow: var(--sh-1); outline: none; border-image: none;
}
.mock { border-radius: var(--r); }
.tile-num--accent, .facts div.is-accent, .recognise li:nth-child(2), .problems li:nth-child(2), .timeline li:last-child, .cases__main, .invest__price, .in-pratica, .calc__result div.is-accent, .mock--accent { background: var(--accent) !important; color: #fff; }
.line-page--gestione :is(.facts div.is-accent, .recognise li:nth-child(2), .invest__price) { background: #5c4426 !important; }
.letters5 { background: none; gap: 1rem; }
.via-svc { box-shadow: none; background: var(--bay); }
.line-card__body, .line-svc, .event-card { border-top: 0 !important; }
.wide-photo, .wide-photo .plate { border-radius: var(--r-xl); }
.shutter, .thumbs figure, .quote-block__photo, .trio figure, .photo-pair figure, .post__img, .origin__photo .plate, .card__fig, .split .plate, .curve figure, .line-bridge__plate .plate { border-radius: var(--r) !important; overflow: hidden; }
.rows__item { border-radius: 0; }
.input { border-radius: 12px; }
.qdoc { font-variant-numeric: tabular-nums; }
.line-badge { background: none; box-shadow: none; padding: 0; letter-spacing: 0.08em; }

/* ---------- Apertura: il nome, l'offerta, due oggetti sul palco ---------- */
.ap-hero { padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) var(--margin) 0; text-align: center; }
.ap-hero__title { display: grid; gap: clamp(0.5rem, 1.2vw, 1rem); justify-items: center; }
.ap-hero__name { font-size: clamp(2.6rem, 8.6vw, 6rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.ap-hero__sub { font-family: var(--font-text); font-stretch: 100%; text-transform: none; font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.5vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--accent); }
.ap-hero__lead { margin: clamp(1rem, 2vw, 1.5rem) auto 0; max-width: 40ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3rem); line-height: 1.45; color: var(--ink-2); }
.ap-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.75rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.ap-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.85rem, 1.6vw, 1.5rem); max-width: 88rem; margin: clamp(3rem, 6vw, 5rem) auto 0; text-align: left; perspective: 1600px; }
.ap-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(26rem, 34vw, 33rem); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); text-decoration: none; transition: transform 600ms var(--ease-apple), box-shadow 600ms var(--ease-apple); }
.ap-tile__mat { position: absolute; inset: 0; z-index: -2; }
.ap-tile__mat .plate { border-radius: 0; }
.ap-tile__mat .plate__tag { display: none; }
.ap-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ap-tile--firma { color: #fff; }
.ap-tile--firma::before { background: linear-gradient(180deg, rgba(38, 14, 17, 0.55) 0%, rgba(38, 14, 17, 0.1) 52%, rgba(38, 14, 17, 0.35) 100%); }
.ap-tile--controllo { color: var(--ink); }
.ap-tile--controllo::before { background: linear-gradient(180deg, rgba(255, 248, 232, 0.62) 0%, rgba(255, 248, 232, 0.08) 55%, rgba(92, 68, 38, 0.18) 100%); }
.ap-tile__copy { display: grid; gap: 0.55rem; justify-items: start; padding: clamp(1.75rem, 3.4vw, 3rem); }
.ap-tile__name { font-size: clamp(2.4rem, 1.4rem + 3vw, 4.25rem); line-height: 0.92; letter-spacing: -0.03em; }
.ap-tile__claim { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; max-width: 18ch; }
.ap-tile__what { font-size: 1.0625rem; line-height: 1.45; max-width: 30ch; opacity: 0.86; }
.ap-tile--controllo .ap-tile__what { opacity: 1; color: #4a3519; }
.ap-tile .chev { margin-top: 0.5rem; }
.chev--light { color: #f6dfe2; }
.ap-tile--controllo .chev { color: #4a3519; }
.ap-chip { display: grid; gap: 0.6rem; align-self: flex-start; margin: 0 clamp(1.75rem, 3.4vw, 3rem) clamp(1.75rem, 3.4vw, 3rem); padding: 1rem 1.15rem; min-width: 15rem; border-radius: 20px; background: rgba(255, 255, 255, 0.74); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 12px 34px -16px rgba(30, 18, 12, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.6); color: var(--ink); transition: transform 700ms var(--ease-apple); }
.ap-chip--firma { grid-auto-flow: column; align-items: center; justify-content: start; gap: 1rem; }
.ap-chip__sw { display: flex; }
.ap-chip__sw i { width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 6px 14px -6px rgba(0, 0, 0, 0.5); }
.ap-chip__sw i + i { margin-left: -0.7rem; }
.ap-chip__sw .plate__tag { display: none; }
.ap-chip b { display: block; font-size: 1rem; font-weight: 600; }
.ap-chip small { display: block; font-size: 0.8125rem; color: var(--ink-2); }
.ap-chip__row { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; font-variant-numeric: tabular-nums; }
.ap-chip__row small { margin: 0; }
.ap-chip__row--m b { color: var(--accent); }
.ap-chip__bar { display: flex; gap: 3px; height: 6px; }
.ap-chip__bar i { flex-basis: var(--w); border-radius: 3px; background: #c9bdb1; }
.ap-chip__bar i + i { background: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .ap-tile:hover { transform: translateY(-6px); box-shadow: 0 4px 10px rgba(50, 45, 41, 0.08), 0 50px 90px -36px rgba(50, 45, 41, 0.5); }
  .ap-tile:hover .ap-chip { transform: translateY(-4px); }
  .ap-tile .plate__mat { transition: transform 1400ms var(--ease-apple); }
  .ap-tile:hover .plate__mat { transform: scale(1.04); }
}
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 72rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0; border: 0; text-align: center; }
.trust li { display: grid; gap: 0.2rem; padding: 0.4rem 1rem; }
.trust li + li { border-left: 1px solid var(--rule); }
.trust b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; text-transform: none; }
.trust span { font-size: 0.9375rem; color: var(--ink-2); }
.hero-extra { max-width: 88rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; gap: clamp(0.85rem, 1.6vw, 1.5rem); }
.hero-quote { background: var(--card); padding: clamp(1.75rem, 3.4vw, 3rem); }
.hero-quote p { font-size: clamp(1.35rem, 1rem + 1.1vw, 2rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.event-card { padding: clamp(1.75rem, 3vw, 2.5rem); gap: 0.6rem; }
.event-card__kind { font-size: 0.9375rem; color: var(--ink-2); }
.event-card__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.3vw, 2.2rem); letter-spacing: -0.02em; line-height: 0.95; }
.event-card__meta { font-weight: 600; }
@media (max-width: 56em) {
  .ap-stage { grid-template-columns: 1fr; }
  .ap-tile { min-height: 30rem; }
}
@media (max-width: 47.99em) {
  .ap-hero__name { white-space: normal; font-size: 13.5vw; }
  .trust { grid-template-columns: 1fr; gap: 0.5rem; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--rule); padding-top: 0.9rem; }
  .ap-chip { min-width: 0; }
}

/* ---------- Le vie dell'atelier: riquadri di misure diverse ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.85rem, 1.6vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.bento__tile { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--card); box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); transition: transform 600ms var(--ease-apple), box-shadow 600ms var(--ease-apple); }
.bento__tile--firma, .bento__tile--controllo { grid-column: span 3; }
.bento__tile--wide { grid-column: span 4; flex-direction: row; align-items: stretch; }
.bento__tile--small { grid-column: span 2; background: var(--bay); box-shadow: none; }
.bento__mat { aspect-ratio: 16 / 10; overflow: hidden; }
.bento__mat .plate, .bento__side .plate { border-radius: 0; }
.bento__side { flex: 0 0 42%; min-height: 15rem; }
.bento__copy { display: grid; align-content: start; justify-items: start; gap: 0.5rem; padding: clamp(1.5rem, 2.8vw, 2.5rem); }
.bento__tile--wide .bento__copy { flex: 1; align-content: center; }
.bento__copy h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.4rem); line-height: 0.95; letter-spacing: -0.025em; }
.bento__copy p { color: var(--ink-2); max-width: 38ch; }
.bento__copy .chev { margin-top: 0.4rem; }
.bento__tile--controllo .chev { color: var(--brass-deep); }
.dot { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.dot::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--taupe, #ac9c8d); }
.dot--firma::before { background: var(--accent); }
.dot--controllo::before { background: var(--brass); }
.dot--both::before { background: linear-gradient(90deg, var(--accent) 50%, var(--brass) 50%); }
@media (hover: hover) and (pointer: fine) {
  .bento__tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
  .bento__tile .plate__mat { transition: transform 1400ms var(--ease-apple); }
  .bento__tile:hover .plate__mat { transform: scale(1.04); }
}
@media (max-width: 56em) {
  .bento { grid-template-columns: 1fr; }
  .bento__tile--firma, .bento__tile--controllo, .bento__tile--wide, .bento__tile--small { grid-column: auto; }
  .bento__tile--wide { flex-direction: column-reverse; }
  .bento__side { min-height: 12rem; }
}
.via-panel { border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1); }
.via-panel summary { font-size: 1.15rem; padding: 1.35rem 1.6rem; }
.via-panel__grid { padding: 0 1.6rem 1.6rem; }
.niches li { border-radius: 999px; background: var(--card); box-shadow: 0 1px 2px rgba(50, 45, 41, 0.06), inset 0 0 0 1px var(--rule); }
.niches li:nth-child(5n+2), .niches li:nth-child(5n+4) { box-shadow: 0 1px 2px rgba(50, 45, 41, 0.06), inset 0 0 0 1px var(--rule); }

/* ---------- Movimento: regia da pagina prodotto ----------
   Un momento d'autore (l'apertura: il nome, poi la materia che si solleva dal piano e prende luce),
   un secondo momento sulla fascia del Metodo (le parole si accendono, il cruscotto si alza),
   e una grammatica sobria per il resto: titoli da maschera, tavole a sipario, schede dalla profondità.
   Senza JavaScript o con movimento ridotto tutto è già al suo posto. */
:root { --ease-cine: cubic-bezier(0.19, 1, 0.22, 1); --ease-lift: cubic-bezier(0.16, 1, 0.3, 1); }

@media (prefers-reduced-motion: no-preference) {
  /* Base: blocchi generici, solo opacità e un breve spostamento */
  .js [data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1000ms var(--ease-lift), transform 1200ms var(--ease-lift); transition-delay: calc(min(var(--i, 0), 4) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Titoli: il blocco resta fermo, ogni riga sale da sotto il suo filo */
  .js [data-reveal]:has(> .h-sec), .js [data-reveal]:has(> .vd-band__title) { opacity: 1; transform: none; }
  .js .h-sec .line { overflow: clip; overflow-clip-margin: 0.12em; padding-bottom: 0.04em; }
  .js .h-sec .line > span { display: inline-block; transform: translate3d(0, 108%, 0) rotate(2.5deg); transform-origin: 0 100%; transition: transform 1300ms var(--ease-cine); transition-delay: calc(var(--l, 0) * 110ms + 60ms); }
  .js .is-in .h-sec .line > span { transform: none; }
  .js [data-reveal]:has(> .h-sec) > :not(.h-sec) { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 900ms var(--ease-lift) 380ms, transform 1100ms var(--ease-lift) 380ms; }
  .js [data-reveal].is-in:has(> .h-sec) > :not(.h-sec) { opacity: 1; transform: none; }

  /* Tavole e immagini: si aprono come un sipario, la materia si assesta */
  .js .shutter[data-reveal], .js .split__b.shutter { opacity: 1; transform: none; clip-path: inset(14% 10% 14% 10% round var(--r)); transition: clip-path 1500ms var(--ease-cine); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r)); }
  .js .shutter .plate > svg, .js .shutter > img { transform: scale(1.18); transition: transform 2200ms var(--ease-cine); }
  .js .shutter.is-in .plate > svg, .js .shutter.is-in > img { transform: none; }

  /* Schede del bento, casi, articoli: salgono dalla profondità, l'ombra si apre con loro */
  .js :is(.bento__tile, .post, .review, .case-plate, .cases__main)[data-reveal] { transform: translate3d(0, 64px, 0) scale(0.955); box-shadow: 0 0 0 rgba(50, 45, 41, 0); transition: opacity 1000ms var(--ease-lift), transform 1400ms var(--ease-cine), box-shadow 1400ms var(--ease-cine); transition-delay: calc(min(var(--i, 0), 4) * 110ms); }
  .js :is(.bento__tile, .post, .review, .case-plate, .cases__main)[data-reveal].is-in { transform: none; box-shadow: var(--sh-1); }

  /* ---- Apertura ---- */
  .js .ap-hero__name { animation: ap-name 1600ms var(--ease-cine) 80ms both; }
  .js .ap-hero__sub { animation: ap-rise 1300ms var(--ease-cine) 380ms both; }
  .js .ap-hero__lead { animation: ap-rise 1200ms var(--ease-cine) 520ms both; }
  .js .ap-hero__actions { animation: ap-rise 1200ms var(--ease-cine) 640ms both; }
  .js .ap-stage { animation: ap-stage 1800ms var(--ease-cine) 700ms both; }
  /* Il palco è inclinato all'indietro come un oggetto posato sul tavolo; lo scroll lo raddrizza (--p da 0 a 1) */
  .js .ap-stage { --p: 1; transform-style: preserve-3d; }
  .js .ap-tile { transform: perspective(1800px) rotateX(calc((1 - var(--p)) * 16deg)) translate3d(calc((1 - var(--p)) * var(--dx, 0px)), calc((1 - var(--p)) * 40px), 0) scale(calc(0.93 + var(--p) * 0.07)); transform-origin: 50% 100%; will-change: transform; }
  .js .ap-tile--firma { --dx: 28px; }
  .js .ap-tile--controllo { --dx: -28px; }
  /* La luce attraversa la materia mentre l'oggetto si alza */
  .js .ap-tile::after { content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.16) 47%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0.16) 53%, transparent 62%); transform: translate3d(calc(-70% + var(--p) * 140%), 0, 0); mix-blend-mode: soft-light; }
  .js .ap-tile--controllo::after { mix-blend-mode: overlay; }
  .js .ap-tile__copy, .js .ap-chip { position: relative; z-index: 1; }
  /* Le schede di vetro si posano sopra la materia; il vetro si appanna mentre arriva */
  .js .ap-chip { animation: ap-chip 1300ms var(--ease-cine) both; animation-delay: 1500ms; }
  .js .ap-tile--controllo .ap-chip { animation-delay: 1680ms; }
  .js .ap-chip__sw i { animation: ap-swatch 900ms var(--ease-cine) both; animation-delay: calc(1750ms + var(--s, 0) * 120ms); }
  .js .ap-chip__sw i:nth-child(2) { --s: 1; } .js .ap-chip__sw i:nth-child(3) { --s: 2; }
  .js .ap-chip__bar i { transform-origin: 0 50%; animation: ap-bar 1200ms var(--ease-cine) both; animation-delay: 1950ms; }
  .js .ap-chip__bar i + i { animation-delay: 2350ms; }

  /* ---- Fascia del Metodo ---- */
  .js .vd-band__title .w { opacity: var(--o, 0.14); transition: opacity 200ms linear; }
  .js .vd { transform: perspective(2000px) rotateX(calc((1 - var(--p, 1)) * 22deg)) scale(calc(0.9 + var(--p, 1) * 0.1)); transform-origin: 50% 0; opacity: 1; transition: none; }
  .js .vd .vd__now { opacity: 0; transition: opacity 600ms ease 1100ms, left 700ms var(--ease-cine); }
  .js .vd.is-in .vd__now { opacity: 1; }
  .js .vd .vd__kpis svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease-cine); transition-delay: calc(900ms + var(--k, 0) * 120ms); }
  .js .vd.is-in .vd__kpis svg path { stroke-dashoffset: 0; }
  .js .vd .vd__kpis > div:nth-of-type(2) { --k: 1; } .js .vd .vd__kpis > div:nth-of-type(3) { --k: 2; } .js .vd .vd__kpis > div:nth-of-type(4) { --k: 3; }

  /* Pannelli che cambiano: dissolvenza incrociata con un filo di profondità */
  .vd__panel.is-on { animation: ap-panel 600ms var(--ease-lift) both; }
}
@keyframes ap-name { from { opacity: 0; letter-spacing: 0.06em; filter: blur(14px); transform: translate3d(0, 0.18em, 0) scale(0.96); } to { opacity: 1; letter-spacing: -0.03em; filter: blur(0); transform: none; } }
@keyframes ap-rise { from { opacity: 0; filter: blur(8px); transform: translate3d(0, 22px, 0); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes ap-stage { from { opacity: 0; transform: translate3d(0, 120px, 0); } to { opacity: 1; transform: none; } }
@keyframes ap-chip { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.94); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } to { opacity: 1; transform: none; } }
@keyframes ap-swatch { from { opacity: 0; transform: translate3d(-14px, 0, 0) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes ap-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ap-panel { from { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) {
  .ap-tile::after { display: none; }
  .vd-band__title .w { opacity: 1; }
}
/* Correzioni dai controlli: contrasti, interlinea, testo minimo */
.wordmark .w2 { color: #7d6f63; }
.quote-block blockquote p .dim { color: #75695f; }
.ap-hero__title { font-size: clamp(2.6rem, 8.6vw, 6rem); }
.ap-hero__name { font-size: 1em; }
.ap-tile__claim { line-height: 1.28; }
.mobile-bar .tab { font-size: 0.75rem; }
.via-panel { background: transparent; box-shadow: none; border-radius: 0; border-top: 1px solid var(--rule); }
.via-panel:last-child { border-bottom: 1px solid var(--rule); }
.via-panel summary, .via-panel__grid { padding-inline: 0.25rem; }
.via-svc { background: var(--card); box-shadow: var(--sh-1); }
.dots i { color: #7d6f63; }
.ap-tile__claim, .hero-quote p, .quote-block blockquote p, .pull p { line-height: 1.3; }
.ap-chip .plate__tag { display: none; }
.curve-band { --ink: #322d29; --muted: #6b6058; color: var(--ink); background: var(--bay); }
.curve-band .h-sec .em { color: var(--accent); }
.curve-band .bracket p:not(.lead) { color: var(--ink-2); }

/* Revisione finale: velluto come superficie, proposta ferma, link centrati, registro di footer e casi */
.ap-tile__velvet { background:
  radial-gradient(120% 90% at 18% 8%, rgba(255, 214, 220, 0.22), transparent 55%),
  radial-gradient(90% 70% at 85% 100%, rgba(20, 6, 8, 0.55), transparent 70%),
  linear-gradient(160deg, #8a464c 0%, #72383d 42%, #4f2428 100%); }
p:has(> .more:only-child), p:has(> .chev:only-child) { max-width: none; }
.site-footer__cols { align-items: start; }
.site-footer__nav, .site-footer__contact { align-content: start; }
.case-plate__meta { margin-top: 0.75rem; font-size: 1.0625rem; opacity: 0.86; }
.origin--plain { display: block; margin-top: clamp(3rem, 6vw, 5rem); }
.origin--plain .origin__text { padding: clamp(2rem, 4vw, 3.5rem); max-width: none; }
.post h3 + small { display: block; margin-top: 0.6rem; }
/* Nanotec: la foto sotto il testo, mai dietro; citazione a tutta riga; Appunti come schede di testo */
.cases__main.has-photo { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.25rem); }
.cases__main.has-photo > img { position: static; order: 2; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: 1; mix-blend-mode: normal; border-radius: calc(var(--r) - 8px); }
.hero-extra { grid-template-columns: 1fr; }
.hero-quote { justify-items: center; text-align: center; }
.hero-quote p { max-width: 46ch; margin-inline: auto; }
.post:not(:has(.post__img)) { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1); }
.invest__label { font-size: 1.0625rem; opacity: 0.86; }
@media (prefers-reduced-motion: no-preference) {
  .js .ap-tile { transition: box-shadow 600ms var(--ease-apple); }
  .js .ap-tile:hover { transform: perspective(1800px) translate3d(0, -6px, 0); transition: transform 700ms var(--ease-lift), box-shadow 700ms var(--ease-lift); }
}
@media (max-width: 56em) { .js .ap-tile--firma, .js .ap-tile--controllo { --dx: 0px; } }

/* ---------- Oggetti 3D: la bottega (assets/js/atelier3d.js) ----------
   Il fondo è uno studio fotografico: carta avorio curva, luce dall'alto. L'immagine fissa con trasparenza
   è sempre presente; il canvas vivo la sostituisce in dissolvenza quando l'oggetto si avvicina. */
.obj { position: relative; overflow: hidden; isolation: isolate; width: 100%; height: 100%; aspect-ratio: 4 / 3; border-radius: inherit;
  background: radial-gradient(120% 95% at 50% 14%, #fefcf8 0%, #f4eee6 52%, #e8dfd3 100%); }
.obj__poster, .obj__gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.obj__gl { opacity: 0; transition: opacity 700ms var(--ease-lift); }
.obj.is-live .obj__gl { opacity: 1; }
.obj.is-live .obj__poster { opacity: 0; transition: opacity 700ms var(--ease-lift); }
.wide-photo .obj { aspect-ratio: 21 / 9; }
.quote-block__photo .obj { aspect-ratio: 3 / 4; height: auto; }
.split .obj { aspect-ratio: 5 / 4; height: auto; }
.trio .obj { height: auto; }
.trio figure:nth-child(1) .obj { aspect-ratio: 4 / 3; }
.trio figure:nth-child(2) .obj { aspect-ratio: 3 / 4; }
.trio figure:nth-child(3) .obj { aspect-ratio: 1; }
.post__img .obj, .card__fig .obj { aspect-ratio: 4 / 3; height: auto; }
.apply__side .obj { aspect-ratio: 4 / 3; height: auto; margin-top: 2rem; border-radius: var(--r); }
.origin__photo .obj { min-height: 22rem; }
.bento__mat .obj { border-radius: 0; aspect-ratio: auto; }
.bento__side .obj { border-radius: 0; aspect-ratio: auto; position: absolute; inset: 0; }
.bento__side { position: relative; }
@media (max-width: 48em) { .wide-photo .obj { aspect-ratio: 4 / 3; } }
@media (max-width: 64em) { .origin__photo .obj { min-height: 0; aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: no-preference) {
  .js .shutter .obj > .obj__poster, .js .shutter .obj > .obj__gl { transform: scale(1.12); transition: transform 2200ms var(--ease-cine), opacity 700ms var(--ease-lift); }
  .js .shutter.is-in .obj > .obj__poster, .js .shutter.is-in .obj > .obj__gl { transform: none; }
}

/* Cruscotto LEVA: indicatori leggibili (valore, variazione, curva con area, asse dei mesi) */
.vd__kpis div.vd__kpi { display: grid; gap: 0.35rem; padding: 0.9rem 1.1rem 1.1rem; font-size: inherit; }
.vd__kpi-t { margin: 0; font-size: 0.8125rem; line-height: 1.3; color: #cfc4ba; }
.vd__kpi-v { display: flex; align-items: baseline; gap: 0.55rem; margin: 0; }
.vd__kpi-v b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); line-height: 1; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.vd__kpi-v span { font-size: 0.8125rem; font-weight: 600; color: #e3b3b7; }
.vd__kpi-plot { position: relative; height: 2.75rem; margin: 0.35rem 0.3rem 0; }
.vd__kpis svg.vd__kpi-c { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; overflow: visible; }
.vd__kpis .vd__kpi-base { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vd__kpis .vd__kpi-area { fill: rgba(227, 179, 183, 0.14); stroke: none; }
.vd__kpis .vd__kpi-line { fill: none; stroke: #e3b3b7; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vd__kpi-dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #e3b3b7; box-shadow: 0 0 0 3px rgba(43, 37, 34, 0.9); }
.vd__kpi-dot--a { background: #8f8178; }
.vd__kpi-ax { display: flex; justify-content: space-between; margin: 0.15rem 0 0; font-size: 0.6875rem; letter-spacing: 0.02em; color: #a2968c; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .js .vd .vd__kpis .vd__kpi-area { opacity: 0; transition: opacity 900ms ease calc(1700ms + var(--k, 0) * 120ms); }
  .js .vd.is-in .vd__kpis .vd__kpi-area { opacity: 1; }
  .js .vd .vd__kpi-dot:not(.vd__kpi-dot--a) { opacity: 0; transform: scale(0.4); transition: opacity 400ms ease, transform 600ms var(--ease-lift); transition-delay: calc(2400ms + var(--k, 0) * 120ms); }
  .js .vd.is-in .vd__kpi-dot { opacity: 1; transform: none; }
}
.js .vd .vd__kpis .vd__kpi-area, .js .vd .vd__kpis .vd__kpi-base { stroke-dasharray: none; stroke-dashoffset: 0; }
.vd__kpi-v { flex-wrap: wrap; row-gap: 0.2rem; }
.vd__kpi-v b { white-space: nowrap; }
.js .vd .vd__kpis .vd__kpi-line { stroke-dasharray: none; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .vd .vd__kpi-c { clip-path: inset(-20% 100% -20% 0); transition: clip-path 1800ms var(--ease-cine) calc(900ms + var(--k, 0) * 140ms); }
  .js .vd.is-in .vd__kpi-c { clip-path: inset(-20% -2% -20% 0); }
}

/* ===== Atelier Edile 2026-11: struttura servizi, AI e cruscotto ===== */
/* Elenco dei servizi */
.svc-list { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.svc-list a { display: grid; grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 0.5rem var(--gutter); align-items: baseline; padding: clamp(1.1rem, 2vw, 1.6rem) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: padding var(--t-ui, 240ms) var(--ease-out, ease); }
.svc-list__n { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; color: var(--accent-text); }
.svc-list__name { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.9rem); line-height: 1; letter-spacing: -0.01em; }
.svc-list__short { color: var(--muted); }
.svc-list__time { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .svc-list a:hover { padding-left: 0.75rem; } .svc-list a:hover .svc-list__name { color: var(--accent-text); } }
@media (max-width: 48em) {
  .svc-list a { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .svc-list__short, .svc-list__time { grid-column: 2; }
}

/* Schede affiancate */
.ae-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.ae-tile { display: grid; align-content: start; gap: 0.9rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r); background: var(--surface-grad); box-shadow: var(--shadow-card); }
.ae-tile p { color: var(--muted); }
.ae-tile__n { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; color: var(--accent-text); }
.ae-tile__foot { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ae-tiles--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.ae-tiles--dark .ae-tile { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #f3eee8; }
.ae-tiles--dark .ae-tile p { color: #cfc4ba; }

/* Blocchi della pagina Servizi */
.svc-block { scroll-margin-top: 6rem; border-top: 1px solid var(--rule); padding-block: clamp(3.5rem, 7vw, 6rem); }
.svc-block__head { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.75rem var(--gutter); max-width: 62rem; }
.svc-block__head > :not(.svc-block__n) { grid-column: 2; }
.svc-block__n { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; color: var(--accent-text); padding-top: 0.6rem; }
.svc-block__head .lead { max-width: 58ch; }
.svc-block__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2rem, 4vw, 3rem); padding-left: calc(3rem + var(--gutter)); }
.svc-block__cols--wide { padding-left: 0; margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc-block__cols > div { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--r); background: var(--surface-grad); box-shadow: var(--shadow-card); }
.svc-block__cols h3 { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-family: var(--font-text, inherit); }
.svc-block__cols ul { display: grid; gap: 0.6rem; }
.svc-block__cols li { position: relative; padding-left: 1.1rem; line-height: 1.4; }
.svc-block__cols li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 1px; background: var(--accent); }
.svc-block__time { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); line-height: 1.05; margin-bottom: 1.25rem; }
@media (max-width: 64em) {
  .svc-block__cols { grid-template-columns: 1fr; padding-left: 0; }
  .svc-block__head { grid-template-columns: 1fr; }
  .svc-block__head > :not(.svc-block__n) { grid-column: 1; }
}

/* Esempio del resoconto del cruscotto */
.report { border-radius: var(--r); background: var(--surface-grad); box-shadow: var(--shadow-card); overflow: hidden; font-size: 0.9rem; }
.report__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.report__bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--rule); }
.report__bar span { margin-left: 0.5rem; }
.report__bar em { margin-left: auto; font-style: normal; color: var(--accent-text); }
.report__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.report__kpis div { display: grid; gap: 0.2rem; padding: 1rem 1.1rem; }
.report__kpis div + div { border-left: 1px solid var(--rule); }
.report__kpis small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.report__kpis b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 1.6rem; line-height: 1; }
.report__kpis span { font-size: 0.75rem; color: var(--muted); }
.report__kpis span.up { color: #3d7a4f; font-weight: 700; }
.report__table { width: 100%; border-collapse: collapse; }
.report__table th, .report__table td { padding: 0.6rem 1.1rem; text-align: right; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.report__table th:first-child, .report__table td:first-child { text-align: left; }
.report__table th { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.report__table tr.is-low td:last-child { color: var(--accent-text); font-weight: 700; }
.report__todo { padding: 1rem 1.1rem 1.2rem; background: rgba(114, 56, 61, 0.05); }
.report__todo small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.report__todo p { margin-top: 0.35rem; line-height: 1.45; }
@media (max-width: 40em) {
  .report__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report__kpis div:nth-child(3) { border-left: 0; }
  .report__kpis div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .report__table th:nth-child(3), .report__table td:nth-child(3), .report__table th:nth-child(4), .report__table td:nth-child(4) { display: none; }
}

/* Contatti: modulo a sinistra, recapiti a destra */
.contacts .contacts__form:first-child { grid-column: 1 / 8; }
.contacts__list--side { grid-column: 9 / 13; }
.contacts__list--side dd { font-family: inherit; font-stretch: normal; font-weight: 400; font-size: 1rem; line-height: 1.45; }
.contacts__list--side div:first-child dd, .contacts__list--side div:nth-child(2) dd { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 1.1rem; }
@media (max-width: 64em) { .contacts .contacts__form:first-child, .contacts__list--side { grid-column: 1 / -1; } }
.f span i, .f legend i { font-style: normal; color: var(--muted); font-weight: 400; }

/* Nuvola dei mestieri: l'ultima voce invita a scrivere */
.niches li:has(> a) { padding: 0; box-shadow: none; background: var(--accent-fill); }
.niches li > a { display: block; padding: 0.6rem 1.1rem; color: #fff; text-decoration: none; }

/* Lavori in arrivo */
.card__fig--soon { display: grid; place-items: center; border-radius: var(--r); background: var(--surface-grad); box-shadow: inset 0 0 0 1px var(--rule); }
.card__fig--soon span { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); color: var(--muted); }


/* ===== Liquid glass, stile Apple (2026-11) ===== */
:root { --ok: #34a853; --glass-ease: cubic-bezier(0.22, 1, 0.36, 1); }
body { background: radial-gradient(1200px 700px at 15% -10%, rgba(227, 179, 183, 0.28), transparent 60%), radial-gradient(1000px 600px at 95% 10%, rgba(201, 164, 106, 0.16), transparent 60%), var(--bg); }

/* Hero */
.tx-hero { position: relative; padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) var(--margin) 0; text-align: center; }
.tx-hero__glow { position: absolute; z-index: -1; top: -12%; left: 50%; width: min(1100px, 120vw); aspect-ratio: 1.6; translate: -50% 0; border-radius: 50%; background: radial-gradient(38% 45% at 30% 40%, rgba(141, 74, 80, 0.2), transparent 70%), radial-gradient(35% 42% at 70% 35%, rgba(227, 179, 183, 0.32), transparent 70%), radial-gradient(40% 40% at 55% 70%, rgba(201, 164, 106, 0.2), transparent 70%); opacity: 0.8; pointer-events: none; }
@keyframes lg-spin { to { rotate: 360deg; } }
.tx-hero__status { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: var(--ink); background: linear-gradient(140deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35)); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 24px -14px rgba(50, 45, 41, 0.35); }
.tx-hero__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.18); }
.tx-hero__title { display: grid; gap: clamp(0.5rem, 1.2vw, 1rem); justify-items: center; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.tx-hero__name { font-size: clamp(2.6rem, 8.6vw, 6rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--ink); }
.tx-hero__sub { font-family: var(--font-text); font-stretch: 100%; text-transform: none; font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.5vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); min-height: 2.3em; }
.tx-rotate { display: inline-block; color: var(--accent); white-space: nowrap; transition: opacity 450ms var(--glass-ease), transform 450ms var(--glass-ease), filter 450ms var(--glass-ease); }
.tx-rotate.is-out { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
.tx-hero__lead { margin: clamp(1rem, 2vw, 1.5rem) auto 0; max-width: 52ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--ink-2, var(--muted)); }
.tx-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.75rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.tx-hero__demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); max-width: 76rem; margin: clamp(3rem, 6vw, 4.5rem) auto 0; text-align: left; }
.tx-demo { display: grid; gap: 1rem; text-decoration: none; color: var(--ink); }
.tx-demo__cap { display: block; font-size: 1rem; color: var(--muted); padding-inline: 0.5rem; }
.tx-demo__cap b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.2rem; }
.tx-demo__cap .arrow { display: inline-block; transition: transform 300ms var(--glass-ease); color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) { .tx-demo:hover .arrow { transform: translateX(4px); } }
@media (max-width: 56em) { .tx-hero__demos { grid-template-columns: 1fr; } }

/* Il palco: uno sfondo colorato morbido che si vede attraverso il vetro */
.lg-stage { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; min-height: 24rem; box-shadow: 0 1px 2px rgba(50, 45, 41, 0.06), 0 30px 60px -36px rgba(50, 45, 41, 0.45); transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--glass-ease); }
.lg-wall { position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, #f3ece5, #e7dbd1); }
.lg-wall i { position: absolute; border-radius: 50%; filter: blur(38px); }
.lg-wall i:nth-child(1) { width: 62%; aspect-ratio: 1; left: -12%; top: -18%; background: radial-gradient(circle at 40% 40%, #a4555c, #72383d 70%); }
.lg-wall i:nth-child(2) { width: 54%; aspect-ratio: 1; right: -14%; top: 22%; background: radial-gradient(circle at 50% 50%, #e8bfc2, #d39aa0 70%); animation-duration: 19s; animation-delay: -6s; }
.lg-wall i:nth-child(3) { width: 48%; aspect-ratio: 1; left: 24%; bottom: -26%; background: radial-gradient(circle at 50% 50%, #e2c48f, #c9a46a 70%); animation-duration: 22s; animation-delay: -11s; }
.lg-wall--warm i:nth-child(1) { background: radial-gradient(circle at 40% 40%, #d8a36a, #b07a45 70%); }
.lg-wall--warm i:nth-child(3) { background: radial-gradient(circle at 50% 50%, #a4555c, #72383d 70%); }
.lg-wall--cool { background: linear-gradient(140deg, #efe9e1, #ded4ca); }
.lg-wall--cool i:nth-child(1) { background: radial-gradient(circle at 40% 40%, #c9b9ab, #ac9c8d 70%); }
.lg-wall--cool i:nth-child(2) { background: radial-gradient(circle at 50% 50%, #e3b3b7, #c98d92 70%); }
@keyframes lg-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.08); } 100% { transform: translate(-6%, 10%) scale(0.95); } }

/* Il vetro */
.lg { position: absolute; border-radius: 24px; color: var(--ink); background: linear-gradient(140deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.32)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(255, 255, 255, 0.35), 0 1px 2px rgba(50, 45, 41, 0.08), 0 20px 44px -20px rgba(50, 45, 41, 0.45); }
.lg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.15) 35%, rgba(255, 255, 255, 0.05) 65%, rgba(255, 255, 255, 0.75)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 70% at var(--hx, 20%) var(--hy, 0%), rgba(255, 255, 255, 0.45), transparent 55%); mix-blend-mode: soft-light; }
.lg-float { animation: lg-float 7s ease-in-out infinite; animation-delay: calc(var(--f, 0) * -1.8s); }
@keyframes lg-float { 50% { translate: 0 -8px; } }

/* Immagine: marchio, palette, telefono */
.lg-card { left: 7%; top: 12%; width: 46%; aspect-ratio: 1.6; padding: clamp(1rem, 2.4vw, 1.5rem); display: grid; align-content: end; gap: 0.15rem; }
.lg-mono { position: absolute; top: clamp(0.9rem, 2vw, 1.25rem); left: clamp(1rem, 2.4vw, 1.5rem); width: clamp(2.4rem, 4vw, 3rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: clamp(0.8rem, 1.2vw, 1rem); color: #efe9e1; background: linear-gradient(140deg, #a4555c, #5a2a2f); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4); }
.lg-card__name { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(0.85rem, 1.5vw, 1.15rem); letter-spacing: 0.02em; }
.lg-card__sub { font-size: 0.8rem; color: rgba(50, 45, 41, 0.7); }
.lg-swatches { left: 9%; bottom: 11%; display: flex; gap: 0.5rem; padding: 0.6rem; border-radius: 999px; }
.lg-swatches i { width: clamp(1.6rem, 2.6vw, 2.1rem); aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(50, 45, 41, 0.2); }
.lg-phone { right: 8%; top: 7%; width: 31%; aspect-ratio: 9 / 18; border-radius: clamp(20px, 3vw, 30px); padding: 0.7rem 0.6rem; display: grid; grid-auto-rows: min-content; gap: 0.45rem; }
.lg-phone__notch { justify-self: center; width: 34%; height: 0.55rem; border-radius: 999px; background: rgba(50, 45, 41, 0.75); }
.lg-phone__hero { height: 4.5rem; border-radius: 14px; background: linear-gradient(150deg, #a4555c, #5a2a2f); margin-top: 0.2rem; }
.lg-phone__line { height: 0.45rem; width: 80%; border-radius: 999px; background: rgba(50, 45, 41, 0.35); }
.lg-phone__line--s { width: 55%; background: rgba(50, 45, 41, 0.2); }
.lg-phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin-top: 0.2rem; }
.lg-phone__grid i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(209, 199, 189, 0.85)); }
.lg-pill { right: 6%; bottom: 9%; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.95rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.2); }

/* Automazioni: notifiche come su iPhone */
.lg-notes { position: relative; display: grid; gap: 0.6rem; padding: clamp(1rem, 3vw, 1.75rem); }
.lg-note { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0.75rem; padding: 0.8rem 0.95rem; border-radius: 22px; }
.lg-note__icon { width: 2.4rem; aspect-ratio: 1; border-radius: 0.65rem; display: grid; place-items: center; font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 0.72rem; color: #efe9e1; background: linear-gradient(140deg, #a4555c, #5a2a2f); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35); }
.lg-note__body { display: grid; gap: 0.1rem; min-width: 0; }
.lg-note__body b { font-size: 0.92rem; font-weight: 600; }
.lg-note__body span { font-size: 0.85rem; line-height: 1.35; color: rgba(50, 45, 41, 0.78); }
.lg-note__time { font-size: 0.75rem; color: rgba(50, 45, 41, 0.6); }

/* Chat in stile Messaggi */
.lg-stage--chat { min-height: 0; padding: clamp(1rem, 3vw, 1.75rem); }
.lg-chat { position: relative; display: grid; gap: 0.35rem; padding: clamp(1rem, 2.5vw, 1.4rem); border-radius: 28px; }
.lg-bubble { max-width: 86%; padding: 0.7rem 1rem; border-radius: 20px; font-size: 0.95rem; line-height: 1.4; transition: opacity 450ms var(--glass-ease), transform 450ms var(--glass-ease), filter 450ms var(--glass-ease); }
.lg-bubble--you { justify-self: end; color: #fff; background: linear-gradient(160deg, #8d4a50, #5a2a2f); border-bottom-right-radius: 6px; margin-bottom: 0.6rem; }
.lg-bubble--gen { justify-self: start; color: rgba(50, 45, 41, 0.7); background: rgba(255, 255, 255, 0.55); border-bottom-left-radius: 6px; margin-bottom: 0.6rem; }
.lg-bubble--ae { justify-self: start; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 1.5px rgba(114, 56, 61, 0.35); border-bottom-left-radius: 6px; }
.lg-chat__who { font-size: 0.75rem; font-weight: 600; color: rgba(50, 45, 41, 0.6); padding-left: 0.5rem; }
.lg-chat__who--ae { color: var(--accent); }
.lg-chat__dots { display: flex; justify-content: center; gap: 0.35rem; margin-top: 0.8rem; }
.lg-chat__dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(50, 45, 41, 0.2); transition: width 300ms ease, background-color 300ms ease; }
.lg-chat__dots i.is-on { width: 18px; background: var(--accent); }
.lg-chat.is-out .lg-bubble { opacity: 0; transform: translateY(6px) scale(0.98); filter: blur(4px); }

/* Cruscotto come widget */
.lg-stage--report { min-height: 0; padding: clamp(1rem, 3vw, 1.75rem); }
.lg-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.lg-widget { position: relative; display: grid; gap: 0.2rem; padding: 1rem 1.15rem; border-radius: 24px; }
.lg-widget--wide { grid-column: 1 / -1; }
.lg-widget small { font-size: 0.8rem; font-weight: 600; color: rgba(50, 45, 41, 0.65); }
.lg-widget b { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.lg-widget > span { font-size: 0.82rem; color: rgba(50, 45, 41, 0.65); }
.lg-widget > span.is-up { color: #23863f; font-weight: 600; }
.lg-rank { display: grid; margin-top: 0.4rem; }
.lg-rank li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(50, 45, 41, 0.1); font-size: 0.92rem; }
.lg-rank em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-rank em.is-up { color: #23863f; }
.lg-rank em.is-low { color: var(--accent); }
.lg-widget__tip { margin-top: 0.7rem; padding: 0.7rem 0.85rem; border-radius: 14px; background: rgba(255, 255, 255, 0.6); font-size: 0.88rem; line-height: 1.4; }

/* Scheda del fondatore */
.profile { margin-top: 1.75rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: 28px; display: grid; gap: 1rem; background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55)); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 1px #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 24px 50px -28px rgba(50, 45, 41, 0.4); }
.profile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); }
.profile__head b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1.15rem; }
.profile__head span { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.profile dl { display: grid; gap: 0.7rem; }
.profile dl div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
.profile dt { font-size: 0.85rem; color: var(--muted); }

/* Schede della fascia AI in vetro scuro */
.ae-tiles--dark .ae-tile { background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #f3eee8; }
.ae-tiles--dark .ae-tile p { color: #cfc4ba; }

/* Notifiche: entrano una alla volta */
@media (prefers-reduced-motion: no-preference) {
  .js [data-notes] .lg-note { opacity: 0; transform: translateY(-18px) scale(0.94); filter: blur(6px); transition: opacity 600ms var(--glass-ease), transform 700ms var(--glass-ease), filter 600ms var(--glass-ease); }
  .js [data-notes] .lg-note.is-on { opacity: 1; transform: none; filter: none; }
}
@media (max-width: 40em) {
  .lg-stage { min-height: 21rem; border-radius: 26px; }
  .lg-card { width: 54%; }
  .lg-phone { width: 34%; }
  .lg-note__time { display: none; }
  .lg-note { grid-template-columns: auto minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-hero__glow, .lg-wall i, .lg-float { animation: none; }
  .lg-stage { transform: none; }
}
.lg-stage .lg-notes { min-height: 24rem; align-content: center; padding: clamp(1.25rem, 3vw, 2rem); margin: 0; }
.lg-stage .lg-phone { aspect-ratio: 9 / 16; top: 9%; }
@media (max-width: 40em) { .lg-stage .lg-notes { min-height: 21rem; } }
.lg-done li span { display: grid; gap: 0.1rem; }
.lg-done li span b { font-weight: 600; }
.lg-done li { align-items: center; }
@media (max-width: 40em) { .tx-rotate { white-space: normal; } }
.tx-hero__lead strong { display: block; margin-top: 0.35rem; color: var(--ink); font-weight: 600; }
/* Elenchi dei servizi: niente lineetta, un pallino discreto */
.svc-block__cols ul { list-style: none; padding: 0; margin: 0; }
.svc-block__cols li { padding-left: 1.1rem; }
.svc-block__cols li::before { content: ""; left: 0.1rem; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
/* Parole chiave in grassetto nei testi esplicativi */
main p strong, main li strong, main dd strong, .finale strong { font-weight: 600; color: var(--ink); }
.ae-tiles--dark .ae-tile strong, .vd-band strong { color: #fff; }
.rows__desc strong { display: inline; margin: 0; }
.lead strong { font-weight: 700; }

/* ===== Lavori ===== */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.work { display: grid; grid-template-rows: auto 1fr; border-radius: 32px; overflow: hidden; text-decoration: none; color: var(--ink); background: linear-gradient(180deg, #fff, #fcfaf7); box-shadow: 0 1px 2px rgba(50, 45, 41, 0.05), 0 24px 50px -30px rgba(50, 45, 41, 0.4); transition: transform 600ms var(--glass-ease), box-shadow 600ms var(--glass-ease); }
.work__img { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1714; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--glass-ease); }
.work__body { display: grid; align-content: start; gap: 0.75rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.work__sector { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.work__name { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1; }
.work__text { color: var(--muted); max-width: 52ch; }
.work__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0.5rem; padding: 0; list-style: none; }
.work__tags li { padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 500; background: rgba(114, 56, 61, 0.07); box-shadow: inset 0 0 0 1px rgba(114, 56, 61, 0.12); }
@media (hover: hover) and (pointer: fine) {
  .work:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(50, 45, 41, 0.05), 0 40px 70px -36px rgba(50, 45, 41, 0.5); }
  .work:hover .work__img img { transform: scale(1.04); }
  .work:hover .more .arrow { transform: translateX(4px); }
}
@media (max-width: 56em) { .works { grid-template-columns: 1fr; } }

.work-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 32px; background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55)); box-shadow: inset 0 1px 1px #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 24px 50px -30px rgba(50, 45, 41, 0.35); }
.work-cta > div { max-width: 46rem; display: grid; gap: 0.75rem; }
.work-cta p { color: var(--muted); }

/* Caso studio: schermate del sito */
.case-shot { margin: 0; display: grid; gap: 0.9rem; }
.case-shot img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 1px 2px rgba(50, 45, 41, 0.08), 0 30px 60px -34px rgba(50, 45, 41, 0.55); }
.case-shot--hero { margin: clamp(2.5rem, 5vw, 4rem) var(--margin) 0; }
.case-shot--hero img { border-radius: 32px; }
/* Finestra del browser in vetro con il sito che si muove dentro (caso Esperia) */
.browser { max-width: 82rem; margin-inline: auto; border-radius: 26px; overflow: hidden; background: #0d0b0a; border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.browser__bar { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(2.25rem, 3.4vw, 2.85rem); background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); border-bottom: 1px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.browser__dots { position: absolute; left: clamp(0.8rem, 1.6vw, 1.15rem); display: flex; gap: 0.45rem; }
.browser__dots i { width: clamp(0.55rem, 0.9vw, 0.75rem); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.browser__url { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(241, 235, 228, 0.78); font-size: clamp(0.7rem, 1vw, 0.82rem); letter-spacing: 0.01em; }
.browser__url svg { width: 0.8em; height: 0.8em; opacity: 0.7; }
.browser__screen { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 40em) { .browser { border-radius: 18px; } .browser__url { padding-inline: 0.7rem; } }
.case-shot figcaption { display: grid; gap: 0.2rem; font-size: 0.95rem; color: var(--muted); padding-inline: 0.25rem; }
.case-shot figcaption b { color: var(--ink); font-weight: 600; }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 56em) { .case-gallery { grid-template-columns: 1fr; } }
.finale .form-card strong, .finale .form-card__intro strong { color: #322d29; }

/* ===== Banner del consenso ai cookie, in vetro ===== */
.consent { --ink: #322d29; --muted: #6b6058; --accent-text: #72383d; position: fixed; z-index: 90; left: max(1rem, env(safe-area-inset-left)); bottom: calc(1rem + env(safe-area-inset-bottom)); width: min(26rem, calc(100vw - 2rem)); padding: 1.25rem 1.35rem; border-radius: 24px; display: grid; gap: 0.75rem; font-size: 0.92rem; line-height: 1.45; color: var(--ink); background: linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 1px 1px #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 30px 60px -24px rgba(50, 45, 41, 0.5); }
.consent[hidden] { display: none; }
.consent__title { font-weight: 700; letter-spacing: -0.01em; font-size: 1rem; }
.consent__actions { display: flex; gap: 0.5rem; }
.consent__actions { align-items: center; }
.consent__actions button { min-height: 2.9rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease; }
.consent__actions button:active { transform: scale(0.97); }
.consent__yes { flex: 1.7; border: 0; color: #fff; background: linear-gradient(180deg, #8d4a50, #72383d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px -12px rgba(114, 56, 61, 0.75); }
.consent__yes:hover { background: linear-gradient(180deg, #9a5259, #7c3f44); }
.consent__no { flex: 1; color: #322d29; background: transparent; border: 1px solid rgba(50, 45, 41, 0.22); }
.consent__no:hover { background: rgba(50, 45, 41, 0.06); }
.consent__actions button:focus-visible { outline: 2px solid #72383d; outline-offset: 2px; }
.consent__x { position: absolute; top: 0.6rem; right: 0.75rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(50, 45, 41, 0.06); font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; }
@media (max-width: 48em) { .consent { bottom: calc(5.5rem + env(safe-area-inset-bottom)); } }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* Pagine legali */
.policy h2 { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); margin-top: 2.75rem; }
.policy ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.policy li { list-style: disc; }
.policy__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 1.25rem; }
.policy__table th, .policy__table td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.policy__table th { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 40em) { .policy__table { display: block; overflow-x: auto; } }

/* ===== Pagine servizio come landing page: fasce a tutta larghezza, contenuto stretto e centrato ===== */
.lp-band { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) var(--margin); }
.lp-band--flush { padding-top: 0; }
.lp-in { position: relative; max-width: 44rem; margin-inline: auto; }
.lp-in--wide { max-width: 64rem; }
.lp-in + .lp-in { margin-top: 2rem; }
.lp p strong, .lp li strong { color: var(--ink); font-weight: 600; }
.lp-eyebrow { margin: 0; font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.lp-h2 { margin: 0.75rem 0 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.lp-in > p, .lp-split p { margin: 1.25rem 0 0; color: var(--muted); }
.lp h3 { margin: 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1rem; line-height: 1.2; letter-spacing: 0; color: var(--ink); }
.lp-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 64rem; }
.lp-split--top { align-items: start; }

/* Apertura */
.lp-hero { text-align: center; padding-top: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.lp-hero .tx-hero__glow { inset: -10% -20% auto; height: 80%; }
.lp-h1 { margin: 1.25rem auto 0; max-width: 17ch; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(2.1rem, 1.2rem + 4vw, 4.2rem); line-height: 0.98; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.lp-lead { margin: 1.5rem auto 0; max-width: 40rem; font-size: var(--step-lead); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lp-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.lp-hero__scene { max-width: 46rem; margin: clamp(3rem, 6vw, 4.5rem) auto 0; text-align: left; }
.lp-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.lp-trust li { padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--surface-grad); box-shadow: var(--shadow-card); font-size: var(--step-small); color: var(--muted); }
.lp-trust b { margin-right: 0.35rem; color: var(--ink); font-weight: 600; }

/* Scene in vetro */
.lp-scene { min-height: clamp(20rem, 42vw, 26rem); }
.lp-lines { display: grid; gap: 0.4rem; }
.lp-lines i { display: block; height: 0.42rem; border-radius: 999px; background: rgba(50, 45, 41, 0.22); }
.lp-toast { right: 5%; bottom: 8%; display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem 0.7rem 0.7rem; border-radius: 20px; }
.lp-toast b { display: block; font-size: 0.88rem; font-weight: 600; }
.lp-toast small { display: block; font-size: 0.78rem; color: rgba(50, 45, 41, 0.7); }
.lp-browser { left: 6%; top: 10%; width: 60%; padding: 0.8rem; display: grid; gap: 0.7rem; border-radius: 20px; }
.lp-browser__bar { display: flex; align-items: center; gap: 0.3rem; }
.lp-browser__bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(50, 45, 41, 0.25); }
.lp-browser__bar span { margin-left: 0.6rem; padding: 0.15rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-size: 0.7rem; color: rgba(50, 45, 41, 0.7); }
.lp-browser__hero { display: grid; align-items: end; height: clamp(5rem, 11vw, 7.5rem); padding: 0.8rem; border-radius: 12px; background: linear-gradient(150deg, #a4555c, #4c2226); }
.lp-browser__hero b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(0.7rem, 1.4vw, 0.95rem); color: #f6eee7; }
.lp-browser__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.lp-browser__grid i { aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(209, 199, 189, 0.85)); }
.lp-scene__phone { right: 7%; top: 9%; width: 24%; }
.lp-scene--sito .lp-toast { left: 22%; right: auto; bottom: 7%; }
.lp-ad { left: 7%; top: 9%; width: 44%; padding: 0.9rem; display: grid; gap: 0.55rem; border-radius: 22px; }
.lp-ad small { font-size: 0.7rem; font-weight: 600; color: rgba(50, 45, 41, 0.6); }
.lp-ad__img { display: block; aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(180deg, #d9c2a5 0%, #b99572 45%, #6e4e3a 100%); }
.lp-ad b { font-size: 0.92rem; font-weight: 600; }
.lp-ad__btn { justify-self: start; padding: 0.4rem 0.8rem; border-radius: 999px; background: #72383d; color: #fff; font-size: 0.75rem; font-weight: 600; }
.lp-stat { right: 7%; top: 11%; width: 34%; padding: 1rem 1.15rem; display: grid; gap: 0.1rem; border-radius: 22px; }
.lp-stat small { font-size: 0.75rem; font-weight: 600; color: rgba(50, 45, 41, 0.65); }
.lp-stat b { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.lp-stat span { font-size: 0.78rem; color: #23863f; font-weight: 600; }
.lp-stat--2 { top: auto; bottom: 26%; }
.lp-doc { left: 26%; top: 9%; width: 42%; padding: 1.1rem; display: grid; align-content: start; gap: 0.6rem; border-radius: 16px; }
.lp-doc small { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(50, 45, 41, 0.6); }
.lp-doc b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(0.8rem, 1.5vw, 1rem); }
.lp-doc__img { display: block; height: 3.5rem; border-radius: 10px; background: linear-gradient(160deg, #e2c48f, #a4555c); }
.lp-doc__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.5rem; border-top: 1px solid rgba(50, 45, 41, 0.15); font-size: 0.8rem; }
.lp-doc__total b { font-family: var(--font-text); text-transform: none; font-size: 1rem; font-weight: 700; }
.lp-doc--back { left: 38%; top: 14%; height: 68%; transform: rotate(7deg); opacity: 0.8; }
.lp-scene--doc .lg-pill { right: 8%; bottom: 10%; }
.lp-photo { padding: 0.5rem 0.5rem 0.6rem; display: grid; gap: 0.45rem; border-radius: 18px; }
.lp-photo i { display: block; border-radius: 12px; }
.lp-photo small { padding-left: 0.3rem; font-size: 0.72rem; font-weight: 600; color: rgba(50, 45, 41, 0.7); }
.lp-photo--1 { left: 6%; top: 12%; width: 40%; }
.lp-photo--1 i { aspect-ratio: 4 / 3; background: linear-gradient(115deg, #f4e6d2 0%, #d8b98f 40%, #8a6448 75%, #4d3527 100%); }
.lp-photo--2 { left: 50%; top: 7%; width: 22%; }
.lp-photo--2 i { aspect-ratio: 3 / 4; background: radial-gradient(circle at 40% 35%, #f0dbad, #c9a46a 40%, #7a5b34 85%); }
.lp-photo--3 { right: 5%; top: 30%; width: 26%; }
.lp-photo--3 i { aspect-ratio: 1; background: linear-gradient(160deg, #efe9e1 0%, #c9b9ab 50%, #72383d 100%); }
.lp-scene--photo .lg-pill { left: 8%; right: auto; bottom: 9%; }
.lp-cal { left: 8%; top: 9%; width: 58%; padding: 1rem; border-radius: 22px; }
.lp-cal__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.lp-cal__head b { font-size: 0.95rem; font-weight: 700; }
.lp-cal__head small { font-size: 0.72rem; color: rgba(50, 45, 41, 0.6); }
.lp-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; }
.lp-cal__grid i { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, 0.45); }
.lp-cal__grid i.is-post { background: linear-gradient(150deg, #a4555c, #5a2a2f); animation: lp-post 8s var(--glass-ease) infinite; animation-delay: calc(var(--p) * 0.6s); }
@keyframes lp-post { 0%, 8% { opacity: 0.25; transform: scale(0.85); } 14%, 100% { opacity: 1; transform: none; } }
.lp-scene--cal .lp-toast { right: 6%; bottom: 12%; }

/* Chat dei problemi */
.lp-chat { min-height: 0; }
.lp .lg-bubble--gen { color: var(--ink); background: rgba(255, 255, 255, 0.78); }
.lp .lg-chat__who { margin-top: 0.25rem; }

/* Frase grande */
.lp-big { margin: 1rem 0 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(2rem, 1rem + 4.6vw, 5rem); line-height: 0.98; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.lp-prose p { margin: 1rem 0 0; color: var(--muted); font-size: var(--step-lead); line-height: 1.55; }

/* Prima e dopo */
.lp-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.lp-vs__col { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r); }
.lp-vs__col ul { display: grid; gap: 0.9rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.lp-vs__col li { position: relative; padding-left: 2rem; line-height: 1.4; }
.lp-vs__col li::before { position: absolute; left: 0; top: 0.05em; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; font-size: 0.75rem; font-weight: 700; }
.lp-vs__col--no { border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); color: var(--muted); }
.lp-vs__col--no h3 { color: var(--muted); }
.lp-vs__col--no li { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.lp-vs__col--no li::before { content: "✕"; background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.lp-vs__col--yes { background: linear-gradient(150deg, #8d4a50, #4c2226); color: #f6eee7; box-shadow: 0 30px 60px -30px rgba(76, 34, 38, 0.6); }
.lp-vs__col--yes h3 { color: #fff; }
.lp-vs__col--yes li::before { content: "✓"; background: rgba(255, 255, 255, 0.92); color: #72383d; }

/* Vantaggi */
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.lp-card { display: grid; align-content: start; gap: 0.75rem; padding: 1.6rem; border-radius: var(--r); background: var(--surface-grad); box-shadow: var(--shadow-card); }
.lp-card p { margin: 0; color: var(--muted); font-size: var(--step-small); line-height: 1.5; }
.lp-card__n { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--accent); }

/* Metodo */
.lp-steps { display: grid; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.lp-steps li { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; padding-bottom: 1.75rem; }
.lp-steps li:not(:last-child)::before { content: ""; position: absolute; left: calc(1.25rem - 0.5px); top: 2.75rem; bottom: 0.25rem; width: 1px; background: var(--rule); }
.lp-steps__n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface-grad); box-shadow: var(--shadow-card); font-weight: 700; font-size: var(--step-small); color: var(--accent-text); }
.lp-steps h3 { padding-top: 0.6rem; }
.lp-steps p { margin: 0.45rem 0 0; color: var(--muted); }
#come { scroll-margin-top: 6rem; }

/* Offerta su fascia scura */
.lp-band--dark { background: radial-gradient(70% 60% at 50% 0%, rgba(164, 85, 92, 0.35), transparent 70%), #2a2321; color: #f3eee8; }
.lp-offer { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: calc(var(--r) * 1.4); background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.lp-band--dark .lp-eyebrow { color: #e8bfc2; }
.lp-band--dark .lp-h2 { color: #fff; }
.lp-check { display: grid; gap: 0.8rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.lp-check li { position: relative; padding-left: 2rem; }
.lp-check li::before { content: "✓"; position: absolute; left: 0; top: 0.05em; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #e8bfc2; color: #4c2226; font-size: 0.75rem; font-weight: 700; }
.lp-offer__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.lp-offer__facts dt { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cfc4ba; }
.lp-offer__facts dd { margin: 0.35rem 0 0; font-size: var(--step-small); color: #fff; }
.lp-cta { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-top: 2rem; text-align: center; }
.lp-cta p { margin: 0; font-size: var(--step-tiny); color: #cfc4ba; }

/* Perché noi */
.lp-why { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.lp-why li { padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.lp-why p { margin: 0.4rem 0 0; color: var(--muted); }
.lp-work { display: grid; gap: 1rem; }

/* Domande */
.lp-faq { margin-top: 1.5rem; }
.lp-faq details { border-bottom: 1px solid var(--rule); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-weight: 600; font-size: var(--step-body); color: var(--ink); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform var(--t-ui) var(--ease-out); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0 0 1.25rem; color: var(--muted); }

@media (max-width: 760px) {
  .lp-split, .lp-vs, .lp-cards, .lp-offer__facts { grid-template-columns: 1fr; }
  .lp-scene { min-height: 19rem; }
  .lp-browser { width: 70%; } .lp-scene__phone { width: 30%; } .lp-ad { width: 52%; } .lp-stat { width: 38%; } .lp-doc { left: 18%; width: 54%; } .lp-cal { width: 74%; }
  .lp-toast { left: 6% !important; right: 6% !important; }
  .lp-scene--doc .lg-pill, .lp-scene--ads .lg-pill { display: none; }
  .lp-doc { left: 10%; width: 62%; }
}
@media (prefers-reduced-motion: reduce) { .lp-cal__grid i.is-post { animation: none; } }

/* Prestazioni: tavole come immagini, animazioni ferme fuori dallo schermo */
.plate > img.plate__mat { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.is-off, .is-off * { animation-play-state: paused !important; }

/* Domande: il testo della risposta entra con una leggera dissolvenza */
details.is-opening > :not(summary) { animation: faq-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* La croce gira insieme all'apertura e alla chiusura */
details.is-closing > summary::after { transform: none !important; }
.faq summary::after, .lp-faq summary::after { transition-duration: 380ms !important; }

/* Tendina Servizi: due colonne */
.nav__menu--svc { width: min(38rem, 92vw); display: none; grid-template-columns: 1fr 1fr; gap: 0.15rem; }
.nav__drop.is-open .nav__menu--svc { display: grid; }
.nav__menu--svc a[aria-current="page"] { background: var(--ivory); }
.nav__menu--svc a span:first-child { font-size: 0.85rem; }
.nav__menu--svc a span + span { font-size: 0.8rem; line-height: 1.35; }
.nav__menu--svc { background: rgba(255, 255, 255, 0.97); }

/* Menu mobile: Servizi si apre come un toggle */
.mobile-menu__drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mobile-menu__drop summary::-webkit-details-marker { display: none; }
.mobile-menu__drop summary::after { content: "+"; font-family: var(--font-text); font-weight: 400; font-size: 1.8rem; line-height: 1; color: var(--accent); transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1); }
.mobile-menu__drop[open] summary::after { transform: rotate(45deg); }
.mobile-menu__sub { display: grid; padding: 0.25rem 0 0.5rem; }

/* ===== Sezione contatti di chiusura ===== */
.fx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; max-width: 68rem; margin-inline: auto; justify-items: stretch; text-align: left; }
.fx__intro { display: grid; gap: 1.25rem; justify-items: start; }
.fx__intro .h-sec { --max: 4rem; }
.fx__text { margin: 0; max-width: 34rem; font-size: var(--step-lead); line-height: 1.5; color: var(--muted); }
.fx__steps { display: grid; gap: 1.1rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.fx__steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; align-items: start; }
.fx__n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); font-weight: 700; font-size: 0.9rem; color: #f3dcdd; }
.fx__steps b { display: block; padding-top: 0.35rem; font-weight: 600; color: #fff; }
.fx__steps p { margin: 0.2rem 0 0; font-size: var(--step-small); color: var(--muted); }
.fx__card { width: 100% !important; padding: clamp(1.5rem, 3vw, 2.25rem); }
.fx__card-title { margin: 0 0 1rem; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1.15rem; color: #322d29; }
.fx__card .form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.fx__card .full { grid-column: 1 / -1; }
.fx__card .f em { font-style: normal; opacity: 0.6; }
.fx__card textarea { resize: vertical; min-height: 4.5rem; }
.fx__card .check { font-size: 0.8rem; line-height: 1.4; color: #6b625b; }
.fx__card .form-error:empty { display: none; }
.fx__card .form-error { margin: 0; font-size: 0.85rem; color: #a3262f; }

/* Gli altri servizi, dopo il modulo */
.fx-more { max-width: 68rem; margin: clamp(4rem, 8vw, 6rem) auto 0; }
.fx-more__title { margin: 0 0 1.25rem; font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #e8bfc2; }
.fx-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.fx-more__item { position: relative; display: grid; gap: 0.3rem; padding: 1.15rem 2.75rem 1.15rem 1.25rem; border-radius: 18px; text-decoration: none; color: #fff; background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: background-color var(--t-hover) ease, transform var(--t-hover) ease; }
.fx-more__item:hover { background-color: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.fx-more__item b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }
.fx-more__item span { font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.fx-more__item i { position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%; font-style: normal; color: #e8bfc2; transition: translate var(--t-hover) ease; }
.fx-more__item:hover i { translate: 4px -50%; }

@media (max-width: 860px) {
  .fx { grid-template-columns: 1fr; }
  .fx-more__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .fx__card .form { grid-template-columns: 1fr; } }
.fx-more__grid { grid-auto-rows: 1fr; } .fx-more__item { align-content: start; min-height: 6.5rem; }

/* Icone nella tendina Servizi */
.nav__menu--svc a { grid-template-columns: 2.25rem minmax(0, 1fr); align-items: start; column-gap: 0.8rem; }
.nav__ico { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 9%, #fff); color: var(--accent); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.nav__ico svg { width: 1.15rem; height: 1.15rem; }
.nav__menu--svc a:hover .nav__ico, .nav__menu--svc a[aria-current="page"] .nav__ico { background: var(--accent); color: #fff; }
.nav__txt { display: grid; gap: 0.2rem; }
.nav__menu--svc { width: min(44rem, 94vw); } .nav__ico svg { width: 1.25rem !important; height: 1.25rem !important; }

/* ===== Landing AI ===== */
.ai { --ai-1: #a4555c; --ai-2: #e8bfc2; --ai-3: #e2c48f; --ai-4: #b9a2e8; --ai-5: #9cc4f0; }
.ai-hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 7rem) var(--margin) clamp(4rem, 8vw, 6rem); text-align: center; background: #1c1716; color: #f3eee8; }
.ai-hero__sky { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 35% at 20% 10%, rgba(164, 85, 92, 0.35), transparent 70%), radial-gradient(35% 30% at 85% 20%, rgba(185, 162, 232, 0.18), transparent 70%), radial-gradient(50% 40% at 50% 85%, rgba(226, 196, 143, 0.14), transparent 70%); }
.ai-pill { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.ai-pill i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: conic-gradient(var(--ai-1), var(--ai-4), var(--ai-5), var(--ai-3), var(--ai-1)); box-shadow: 0 0 10px rgba(185, 162, 232, 0.8); }
.ai-h1 { margin: 1.25rem auto 0; max-width: 16ch; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.6rem); line-height: 0.98; letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.ai-h1 span { background: linear-gradient(100deg, var(--ai-2), var(--ai-4) 45%, var(--ai-5) 70%, var(--ai-3)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: ai-sheen 8s ease-in-out infinite alternate; }
@keyframes ai-sheen { to { background-position: 100% 0; } }
.ai-lead { margin: 1.5rem auto 0; max-width: 40rem; font-size: var(--step-lead); line-height: 1.5; color: #cfc4ba; }
.ai .ai-lead strong, .ai-hero strong { color: #fff; }
.ai-chev { color: #e8bfc2 !important; }

/* La sfera */
.ai-orb { position: relative; width: min(30rem, 86vw); aspect-ratio: 1; margin: clamp(3rem, 6vw, 4.5rem) auto 0; display: grid; place-items: center; }
.ai-orb__glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(185, 162, 232, 0.35), rgba(164, 85, 92, 0.2) 45%, transparent 70%); animation: ai-breathe 5s ease-in-out infinite; }
.ai-orb__ring { position: absolute; inset: 22%; border-radius: 50%; background: conic-gradient(from 0deg, var(--ai-1), var(--ai-4), var(--ai-5), var(--ai-3), var(--ai-2), var(--ai-1)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: ai-spin 6s linear infinite; }
.ai-orb__core { position: relative; width: 52%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; gap: 0.3rem; padding: 1rem; background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 45%), radial-gradient(circle at 70% 80%, rgba(185, 162, 232, 0.25), transparent 55%), rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px -30px rgba(164, 85, 92, 0.7); }
.ai-orb__core b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1; color: #fff; }
.ai-orb__core small { max-width: 12rem; margin-inline: auto; font-size: 0.78rem; line-height: 1.35; color: #cfc4ba; }
.ai-orb__orbit { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; animation: ai-spin 60s linear infinite; }
.ai-orb__orbit li { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translateY(calc(-1 * min(14.5rem, 42vw))) rotate(calc(-1 * var(--a))); }
.ai-orb__orbit span { display: block; translate: -50% -50%; padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap; font-size: 0.8rem; font-weight: 600; color: #f3eee8; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1); animation: ai-spin 60s linear infinite reverse; }
@keyframes ai-spin { to { rotate: 360deg; } }
@keyframes ai-breathe { 50% { scale: 1.08; opacity: 0.8; } }

/* Esempio dal vivo */
.ai-demo { display: grid; gap: 0.75rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 28px; background: linear-gradient(150deg, #f6f0ea, #ede3da); box-shadow: var(--shadow-card); }
.ai-demo__label { display: block; margin-bottom: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ai-demo__label--ae { color: var(--accent); }
.ai-demo__in, .ai-demo__out { padding: 1rem 1.1rem; border-radius: 18px; background: #fff; }
.ai-demo__in { background: rgba(255, 255, 255, 0.6); }
.ai-demo__raw { margin: 0; font-size: 0.92rem; color: var(--muted); font-style: italic; }
.ai-demo__spark { justify-self: center; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #fff; background: linear-gradient(100deg, #8d4a50, #7a63b8, #5f86c4); background-size: 200% 100%; animation: ai-sheen 3s ease-in-out infinite alternate; }
.ai-demo__spark i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; animation: ai-breathe 1.4s ease-in-out infinite; }
.ai-demo__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.ai-demo__tags span { padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(114, 56, 61, 0.2); }
.ai-demo__out { box-shadow: 0 0 0 1.5px rgba(122, 99, 184, 0.35), 0 14px 30px -18px rgba(122, 99, 184, 0.6); }
.ai-write { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink); }
.js .ai-write span { opacity: 0.08; filter: blur(3px); transition: opacity 400ms ease, filter 400ms ease; transition-delay: calc(var(--w) * 55ms + 300ms); }
.js .ai-write.is-in span { opacity: 1; filter: none; }
.ai-demo__ok { display: inline-block; margin-top: 0.8rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #fff; background: var(--accent); }

/* Gara dei tempi */
.ai-race { display: grid; gap: 1.75rem; margin-top: 2rem; }
.ai-race__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ai-race__head b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 0.95rem; }
.ai-race__head span { color: var(--muted); }
.ai-race__head strong { font-family: var(--font-display); font-stretch: 125%; font-size: 2rem; color: var(--ink); }
.ai-race__bar { height: 0.9rem; margin-top: 0.6rem; border-radius: 999px; background: rgba(50, 45, 41, 0.08); overflow: hidden; }
.ai-race__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #b5a99e; transform-origin: left; }
.ai-race__row--ai .ai-race__bar i { background: linear-gradient(90deg, #8d4a50, #7a63b8, #5f86c4); }
.ai-race__row--ai .ai-race__head strong { color: var(--accent); }
.ai-race p { margin: 0.6rem 0 0; font-size: var(--step-small); color: var(--muted); }
.js .ai-race .ai-race__bar i { transform: scaleX(0); transition: transform 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s; }
.js .ai-race .ai-race__row--ai .ai-race__bar i { transition-duration: 0.6s; }
.js .ai-race.is-in .ai-race__bar i { transform: none; }

/* Giornata tipo */
.ai-day { display: grid; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.ai-day li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.ai-day time { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 1.05rem; color: var(--accent); padding-top: 0.05rem; }
.ai-day p { margin: 0.4rem 0 0; color: var(--muted); font-size: var(--step-small); }
.ai-day__save { padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; color: #fff; background: linear-gradient(100deg, #8d4a50, #7a63b8); }
.ai-total { display: grid; gap: 0.4rem; justify-items: center; margin-top: 1.5rem; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 26px; text-align: center; background: linear-gradient(150deg, #8d4a50, #4c2226); color: #f3dcdd; box-shadow: 0 30px 60px -30px rgba(76, 34, 38, 0.6); }
.ai-total b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem); line-height: 1.05; color: #fff; }
.ai-total strong { color: #fff; }

/* Calcolatore */
.ai-calc-band .lp-in > p, .ai-calc__intro { color: #cfc4ba; }
.ai-calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 30px; background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ai-calc__inputs { display: grid; gap: 1.4rem; }
.ai-calc__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: end; }
.ai-calc__label { font-weight: 600; color: #fff; }
.ai-calc__label small { display: block; margin-top: 0.15rem; font-weight: 400; font-size: 0.78rem; color: #b8aca2; }
.ai-calc__row output { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 1.3rem; color: #e8bfc2; }
.ai-calc__row input { grid-column: 1 / -1; width: 100%; height: 1.6rem; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ai-calc__row input::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #e8bfc2 var(--p, 50%), rgba(255, 255, 255, 0.15) var(--p, 50%)); }
.ai-calc__row input::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #e8bfc2 var(--p, 50%), rgba(255, 255, 255, 0.15) var(--p, 50%)); }
.ai-calc__row input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.4rem; height: 1.4rem; margin-top: -0.45rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(232, 191, 194, 0.3); }
.ai-calc__row input::-moz-range-thumb { width: 1.4rem; height: 1.4rem; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(232, 191, 194, 0.3); }
.ai-calc__row input:focus-visible { outline: 2px solid #e8bfc2; outline-offset: 4px; border-radius: 6px; }
.ai-calc__result { display: grid; align-content: center; justify-items: center; gap: 0.75rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: 24px; text-align: center; background: linear-gradient(160deg, #8d4a50, #4c2226 60%, #3a2a4a); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.ai-calc__result > span { color: #f3dcdd; }
.ai-calc__result > b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); line-height: 1; color: #fff; }
.ai-calc__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; width: 100%; margin: 0.5rem 0 0.75rem; }
.ai-calc__facts div { display: grid; gap: 0.2rem; padding: 0.8rem; border-radius: 16px; background: rgba(255, 255, 255, 0.1); }
.ai-calc__facts strong { font-size: 1.3rem; color: #fff; }
.ai-calc__facts span { font-size: 0.78rem; color: #f3dcdd; }
.ai-calc__result .btn { background: #fff; color: #4c2226; }
.ai-note { margin-top: 1.25rem !important; margin-inline: auto !important; max-width: 44rem; font-size: var(--step-small); color: #b8aca2 !important; text-align: center; }
.ai-calc-band strong { color: #fff; }
.ai-why { margin-top: 2.5rem !important; max-width: 44rem; margin-inline: auto !important; text-align: center; }

@media (max-width: 860px) {
  .ai-calc { grid-template-columns: 1fr; }
  .ai-day li { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .ai-day__save { grid-column: 2; justify-self: start; }
  .ai-orb__orbit span { font-size: 0.7rem; padding: 0.35rem 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-orb__ring, .ai-orb__orbit, .ai-orb__orbit span, .ai-orb__glow, .ai-h1 span, .ai-demo__spark, .ai-demo__spark i { animation: none; }
}
.lp .ai-calc-band p strong, .lp .ai-hero p strong { color: #fff; }
.ai-hero .ai-lead { color: #d8cec5; }
.ai-hero .ai-pill { margin: 0; color: #f3eee8; }
@media (max-width: 600px) {
  .ai-orb__orbit li { transform: rotate(var(--a)) translateY(-37vw) rotate(calc(-1 * var(--a))); }
  .ai-orb__core { width: 56%; }
}

/* ===== Pulsante modalità scura ===== */
.theme-toggle { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-left: 0.25rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); background: rgba(50, 45, 41, 0.06); transition: background-color var(--t-hover) ease, transform var(--t-press) ease; }
.theme-toggle:hover { background: rgba(50, 45, 41, 0.12); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { grid-area: 1 / 1; width: 1.15rem; height: 1.15rem; transition: opacity 300ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }
.theme-toggle__sun { opacity: 0; transform: rotate(-60deg) scale(0.6); }
[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(60deg) scale(0.6); }
[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, box-shadow 400ms ease !important; }

/* ===== Modalità scura ===== */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161312; --bay: #1d1917; --card: #231e1c; --surface: #231e1c; --surface-2: #2c2623;
  --surface-grad: linear-gradient(180deg, #27211f 0%, #211c1a 100%);
  --ivory: #2a2421; --sand: #4a413b; --taupe: #8f8174; --line: #3a332f;
  --ink: #f1ebe4; --ink-2: #c9bfb6; --muted: #b3a89e; --stone: #998b7f;
  --rule: rgba(241, 235, 228, 0.12);
  --accent: #b35f66; --accent-deep: #8d4a50; --accent-strong: #8d4a50; --accent-text: #e2a9ae; --accent-fill: #a4555c;
  --paper: #231e1c; --paper-ink: #f1ebe4; --paper-muted: #b3a89e;
  --todo-bg: #3a2427; --todo-ink: #f0c4c8;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --sh-2: 0 2px 6px rgba(0, 0, 0, 0.4), 0 34px 70px -30px rgba(0, 0, 0, 0.8);
  --shadow-card: var(--sh-1);
}
[data-theme="dark"] body { background: radial-gradient(1200px 700px at 15% -10%, rgba(164, 85, 92, 0.18), transparent 60%), radial-gradient(1000px 600px at 95% 10%, rgba(201, 164, 106, 0.08), transparent 60%), var(--bg); }
[data-theme="dark"] .site-header { background: rgba(22, 19, 18, 0.72); }
[data-theme="dark"] .site-header::after { border-bottom-color: rgba(241, 235, 228, 0.1); }
[data-theme="dark"] .theme-toggle { background: rgba(241, 235, 228, 0.08); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(241, 235, 228, 0.16); }
[data-theme="dark"] html { scrollbar-color: rgba(241, 235, 228, 0.3) transparent; }
[data-theme="dark"] .nav__link, [data-theme="dark"] .nav__drop > button { color: rgba(241, 235, 228, 0.82); }
[data-theme="dark"] .nav__link[aria-current="page"], [data-theme="dark"] .nav__link:hover, [data-theme="dark"] .nav__drop > button:hover { color: #fff; }
[data-theme="dark"] .menu-toggle, [data-theme="dark"] .wordmark { color: var(--ink); }
[data-theme="dark"] .nav__menu, [data-theme="dark"] .nav__menu--svc { background: rgba(35, 30, 28, 0.97); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(241, 235, 228, 0.08); }
[data-theme="dark"] .nav__menu a:hover, [data-theme="dark"] .nav__menu a:focus-visible, [data-theme="dark"] .nav__menu--svc a[aria-current="page"] { background: rgba(241, 235, 228, 0.07); }
[data-theme="dark"] .nav__ico { background: rgba(179, 95, 102, 0.2); color: #e2a9ae; }
[data-theme="dark"] .work { background: linear-gradient(180deg, #27211f, #211c1a); box-shadow: var(--sh-1), inset 0 0 0 1px rgba(241, 235, 228, 0.06); }
[data-theme="dark"] .work__sector { color: var(--accent-text); }
[data-theme="dark"] .work__tags li { background: rgba(226, 169, 174, 0.1); box-shadow: inset 0 0 0 1px rgba(226, 169, 174, 0.2); }
[data-theme="dark"] .work-cta { background: linear-gradient(140deg, #2a2421, #211c1a); box-shadow: var(--sh-1); }
[data-theme="dark"] .vd-band { background: radial-gradient(80% 60% at 50% 0%, #3d2a2c 0%, #241d1c 60%, #1c1716 100%); }
[data-theme="dark"] .h-sec .em, [data-theme="dark"] .h-mid .em { color: var(--accent-text); }
[data-theme="dark"] .btn { background: var(--accent); color: #fff; }
[data-theme="dark"] .more, [data-theme="dark"] .chev, [data-theme="dark"] .link { color: var(--accent-text); }
/* Le scene in vetro restano illustrazioni chiare: testo scuro al loro interno */
[data-theme="dark"] .lg-stage, [data-theme="dark"] .ai-demo { --ink: #322d29; --muted: #6b6058; --rule: rgba(50, 45, 41, 0.12); color: #322d29; }
[data-theme="dark"] .lg-stage .lg-chat__who--ae, [data-theme="dark"] .ai-demo__label--ae { color: #72383d; }
[data-theme="dark"] .lg-wall { background: linear-gradient(140deg, #d9cfc6, #c9bcb0); }
[data-theme="dark"] .tx-hero__status { background: rgba(241, 235, 228, 0.07); box-shadow: inset 0 0 0 1px rgba(241, 235, 228, 0.14); color: var(--ink); }

[data-theme="dark"] .profile { background: linear-gradient(140deg, rgba(241, 235, 228, 0.08), rgba(241, 235, 228, 0.03)); box-shadow: var(--sh-1), inset 0 0 0 1px rgba(241, 235, 228, 0.1); color: var(--ink); }
/* Il modulo di chiusura resta una scheda chiara sulla fascia scura */
[data-theme="dark"] .finale .form-card { --ink: #322d29; --muted: #6b6058; --stone: #8f8174; --rule: rgba(50, 45, 41, 0.14); --bg: #faf8f5; --surface: #ffffff; --card: #ffffff; --ivory: #efe9e1; --accent: #72383d; --accent-text: #72383d; --paper: #ffffff; --paper-ink: #322d29; color-scheme: light; background: #fff; color: #322d29; }
[data-theme="dark"] .finale .form-card .link { color: #72383d; }
[data-theme="dark"] .finale .form-card .btn { background: #72383d; }
[data-theme="dark"] .mobile-menu { background: rgba(22, 19, 18, 0.94); }
[data-theme="dark"] .mobile-bar { background: rgba(35, 30, 28, 0.86) !important; box-shadow: inset 0 0 0 1px rgba(241, 235, 228, 0.1), 0 18px 40px -16px rgba(0, 0, 0, 0.7) !important; }
[data-theme="dark"] .mobile-bar .tab[aria-current="page"] { background: rgba(241, 235, 228, 0.08); color: var(--accent-text); }
[data-theme="dark"] .finale .form-card .f > span { color: #6b6058; }
@media (max-width: 900px) { .theme-toggle { margin-left: auto; } .theme-toggle + .menu-toggle { margin-left: 0.75rem !important; } }

/* Niente scorrimento orizzontale della pagina: solo gli elenchi a scorrimento restano scorrevoli */
html { overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
.tx-hero { overflow-x: clip; }

.mobile-bar button.tab { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; font-size: 0.68rem; font-weight: 500; color: var(--ink); cursor: pointer; }

/* ===== Menu su telefono, in stile app iOS ===== */
.mobile-bar { display: none !important; }
@media (max-width: 47.99em) { body { padding-bottom: 0 !important; } }
.menu-toggle { position: relative; z-index: 2; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; place-items: center; -webkit-tap-highlight-color: transparent; }
@media (max-width: 64em) { .menu-toggle { display: grid; } }
.burger { position: relative; display: block; width: 22px; height: 14px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: top 260ms cubic-bezier(0.22, 1, 0.36, 1) 160ms, transform 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .burger i { top: 6px; transition: top 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 340ms cubic-bezier(0.34, 1.4, 0.64, 1) 180ms; }
.menu-toggle[aria-expanded="true"] .burger i:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:last-child { transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 45; display: flex !important; flex-direction: column; padding: calc(var(--header-h) + 1.75rem) var(--margin) calc(1.5rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: rgba(250, 248, 245, 0.82); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); opacity: 0; visibility: hidden; transition: opacity 280ms ease, visibility 0s linear 420ms; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 280ms ease, visibility 0s; }
.mobile-menu nav { display: grid; gap: 0.2rem; margin: 0 0 2rem; }
.mobile-menu nav > *, .mobile-menu__cta { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 260ms ease, transform 260ms ease; }
.mobile-menu.is-open nav > *, .mobile-menu.is-open .mobile-menu__cta { opacity: 1; transform: none; transition: opacity 420ms ease calc(80ms + var(--k, 0) * 40ms), transform 620ms cubic-bezier(0.22, 1, 0.36, 1) calc(80ms + var(--k, 0) * 40ms); }
.mobile-menu__cta { margin-top: auto; flex: none; min-height: 3.2rem; display: grid; place-items: center; }
html.menu-open { overflow: hidden; }
html.menu-open .site-header { transform: none !important; background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 50; }
html.menu-open .site-header::after { opacity: 0; }
[data-theme="dark"] .mobile-menu { background: rgba(22, 19, 18, 0.84); }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu nav > *, .mobile-menu__cta, .burger i { transition-duration: 0s !important; transition-delay: 0s !important; }
}
.mobile-menu .mobile-menu__cta { margin-top: auto !important; }
@media (max-width: 64em) { .theme-toggle { margin-left: auto !important; } .theme-toggle + .menu-toggle { margin-left: 0.35rem !important; margin-right: -0.6rem; } }

/* Il menu si apre come un cerchio che si espande dal pulsante */
.mobile-menu { opacity: 1; clip-path: circle(0 at var(--cx, calc(100% - 2rem)) var(--cy, 1.75rem)); transition: clip-path 520ms cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 520ms; }
.mobile-menu.is-open { opacity: 1; clip-path: circle(150vmax at var(--cx, calc(100% - 2rem)) var(--cy, 1.75rem)); transition: clip-path 640ms cubic-bezier(0.65, 0, 0.35, 1), visibility 0s; }
.mobile-menu.is-open nav > *, .mobile-menu.is-open .mobile-menu__cta { transition-delay: calc(220ms + var(--k, 0) * 40ms); }
@media (prefers-reduced-motion: reduce) { .mobile-menu, .mobile-menu.is-open { transition: none; } }
.mobile-menu { background: rgba(250, 248, 245, 0.97); } [data-theme="dark"] .mobile-menu { background: rgba(22, 19, 18, 0.97); }

/* Menu su telefono: voci più grandi, righe ampie che riempiono lo schermo */
.mobile-menu { padding-top: calc(var(--header-h) + 1rem); }
.mobile-menu nav { gap: 0; margin-bottom: 1.5rem; }
.mobile-menu nav > a, .mobile-menu__drop summary { display: flex; align-items: center; justify-content: space-between; padding: clamp(0.85rem, 2.2vh, 1.25rem) 0; border-bottom: 1px solid var(--rule); font-size: clamp(1.6rem, 7.4vw, 2.1rem) !important; line-height: 1.1 !important; letter-spacing: -0.01em; }
.mobile-menu nav > a::after { content: "→"; font-family: var(--font-text); font-weight: 400; font-size: 1.3rem; color: var(--accent-text); opacity: 0.8; }
.mobile-menu__drop summary::after { font-size: 2rem !important; }
.mobile-menu__drop { border-bottom: 1px solid var(--rule); }
.mobile-menu__drop summary { border-bottom: 0; }
.mobile-menu__sub { padding: 0 0 1rem; gap: 0.1rem; }
.mobile-menu__sub .sub { padding: 0.45rem 0 0.45rem 0.1rem !important; font-size: 1.15rem !important; line-height: 1.35 !important; }

/* Hero: la parola che gira come un rullo */
.tx-rotate.tx-reel { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: bottom; transition: none; -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.tx-reel__strip { display: block; will-change: transform; }
.tx-reel__i { display: block; height: 1.2em; line-height: 1.2em; white-space: nowrap; }
@media (max-width: 40em) {
  .tx-hero__sub { white-space: nowrap; }
  .tx-rotate, .tx-rotate.tx-reel { display: block; margin-inline: auto; white-space: nowrap; }
}
.tx-reel__i { text-align: left; } @media (max-width: 40em) { .tx-reel__i { text-align: center; } }

/* Su computer la parola ha larghezza fissa e parte subito dopo "per" */
@media (min-width: 40.01em) { .tx-rotate { text-align: left; } }

/* La parola che cambia sta sempre sulla sua riga, centrata */
.tx-rotate, .tx-rotate.tx-reel { display: block; margin-inline: auto; text-align: center !important; white-space: nowrap; }
.tx-hero__sub { white-space: nowrap; }
.tx-reel__i { text-align: center !important; }

/* ===== Chi siamo: pagina a racconto, diversa dalle altre ===== */
.ab-eyebrow { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.25rem; }
.ab-hero { max-width: 90rem; margin-inline: auto; padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) var(--margin) clamp(3rem, 6vw, 5rem); }
.ab-hero__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(2.6rem, 0.6rem + 8.4vw, 9.5rem); line-height: 0.88; letter-spacing: -0.035em; color: var(--ink); }
.ab-hero__title span { display: block; }
.ab-hero__title .em { color: var(--accent-text); padding-left: 0.6em; }
.ab-hero__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--rule); }
.ab-hero__lead { font-size: var(--step-lead); line-height: 1.42; color: var(--ink); font-weight: 500; text-wrap: pretty; }
.ab-hero__sub { line-height: 1.55; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.ab-hero__sub strong { color: var(--ink); }

.ab-facts { max-width: 90rem; margin-inline: auto; }
.ab-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.ab-facts dl > div { padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.5rem, 2vw, 2rem); display: grid; gap: 0.6rem; align-content: start; }
.ab-facts dl > div + div { border-left: 1px solid var(--rule); }
.ab-facts dt { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(2.6rem, 1.4rem + 4vw, 5.5rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--accent-text); }
.ab-facts dd { margin: 0; max-width: 26ch; color: var(--muted); line-height: 1.4; }

.ab-story { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); max-width: 90rem; margin-inline: auto; padding-block: clamp(5rem, 10vw, 9rem); }
.ab-story__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; container-type: inline-size; }
.ab-story__intro { margin-top: 1.5rem; max-width: 30ch; color: var(--muted); line-height: 1.5; }
.ab-story__intro strong { color: var(--ink); }
.ab-steps { position: relative; list-style: none; margin: 0; padding: 0; }
.ab-steps::before, .ab-steps::after { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; width: 2px; border-radius: 2px; }
.ab-steps::before { bottom: 0.6rem; background: var(--rule); }
.ab-steps::after { height: calc((100% - 1.2rem) * var(--p, 1)); background: linear-gradient(180deg, var(--accent-text), var(--accent)); box-shadow: 0 0 12px var(--accent); }
.ab-step { position: relative; padding: 0 0 clamp(3.5rem, 9vw, 7.5rem) clamp(2.25rem, 4vw, 3.5rem); }
.ab-step:last-child { padding-bottom: 0; }
.ab-step__dot { position: absolute; left: calc(0.45rem - 6px); top: 0.25rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-text); transition: background 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.ab-step.is-on .ab-step__dot { background: var(--accent-text); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.ab-step__k { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ab-step__k b { color: var(--accent-text); }
.ab-step__big { margin-top: 1rem; max-width: 22ch; font-size: clamp(1.7rem, 1rem + 2.6vw, 3.25rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.ab-step__txt { margin-top: 1.25rem; max-width: 46ch; font-size: var(--step-body); line-height: 1.55; color: var(--muted); }
.ab-step__txt strong { color: var(--ink); }
.js .ab-step { opacity: 0.28; transition: opacity 600ms var(--ease-out); }
.js .ab-step.is-on { opacity: 1; }
.ab-story__end { margin-top: clamp(3rem, 6vw, 5rem); margin-left: clamp(2.25rem, 4vw, 3.5rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; background: var(--surface); display: grid; gap: 1rem; max-width: 46rem; line-height: 1.55; color: var(--muted); }
.ab-story__end strong { color: var(--ink); }

.ab-quote { padding: clamp(5rem, 10vw, 9rem) var(--margin); text-align: center; background: radial-gradient(60% 80% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.ab-quote__title { margin: 0 auto; max-width: 18ch; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1.9rem, 0.9rem + 3.6vw, 4.5rem); line-height: 0.98; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.ab-quote__title em { font-style: normal; color: var(--accent-text); }
.ab-quote__text { margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; max-width: 54ch; font-size: var(--step-lead); line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.ab-quote__text strong { color: var(--ink); }
.ab-h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1rem, 0.8rem + 0.6vw, 1.3rem); letter-spacing: 0.02em; color: var(--muted); text-align: center; }

.ab-pillars { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.ab-pillars li { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem) 0 0; display: grid; gap: 1rem; align-content: start; }
.ab-pillars li + li { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--rule); }
.ab-pillars__n { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 1.2px var(--accent-text); }
.ab-pillars h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.25rem); line-height: 1.1; color: var(--ink); }
.ab-pillars p { color: var(--muted); line-height: 1.5; }
.ab-pillars p strong { color: var(--ink); }

.ab-founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 90rem; margin-inline: auto; }
.ab-founder__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: clamp(2rem, 1rem + 3.4vw, 4.25rem); line-height: 0.92; letter-spacing: -0.03em; color: var(--ink); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.ab-founder__title span { display: block; color: var(--accent-text); }
.ab-founder__text > p:not(.ab-eyebrow):not(.lead) { margin-top: 1rem; color: var(--muted); line-height: 1.6; max-width: 58ch; }
.ab-founder__text strong { color: var(--ink); }
.ab-founder__facts { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ab-founder__facts > div { padding-top: 0.9rem; border-top: 1px solid var(--rule); display: grid; gap: 0.35rem; }
.ab-founder__facts dt { font-size: var(--step-tiny); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.ab-founder__facts dd { margin: 0; font-size: 0.95rem; line-height: 1.4; color: var(--ink); }
.ab-portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 15%, #8d4a50 0%, #4c2226 45%, #1d1715 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.ab-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-portrait__mono { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: clamp(5rem, 13vw, 11rem); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(246, 238, 231, 0.45); transform: translateY(-8%); }
.ab-portrait__tag { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: 0.15rem; padding: 0.9rem 1.1rem; border-radius: 18px; color: #f6eee7; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.ab-portrait__tag b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.01em; }
.ab-portrait__tag span { font-size: 0.85rem; opacity: 0.78; }

@media (max-width: 64em) {
  .ab-hero__intro, .ab-story, .ab-founder { grid-template-columns: 1fr; }
  .ab-story__head { position: static; }
  .ab-pillars { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .ab-pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ab-portrait { max-width: 26rem; }
}
@media (max-width: 40em) {
  .ab-facts dl, .ab-pillars, .ab-founder__facts { grid-template-columns: 1fr; }
  .ab-facts dl > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .ab-pillars li + li { padding-left: 0; border-left: 0; }
  .ab-hero__title .em { padding-left: 0; }
  .ab-story__end { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .js .ab-step { opacity: 1; } }
.ab-quote .ab-eyebrow { margin-inline: auto; max-width: none; text-align: center; }


/* Progetti riservati (NDA): schede oscurate */
.work--nda { cursor: default; }
.nda__img { display: grid; place-items: center; aspect-ratio: 16 / 10; background:
  radial-gradient(60% 70% at calc(25% + var(--h) * 25%) 30%, rgba(209, 99, 49, 0.55), transparent 70%),
  radial-gradient(70% 80% at calc(80% - var(--h) * 20%) 80%, rgba(114, 56, 61, 0.75), transparent 70%),
  linear-gradient(135deg, #2c2623, #171413); filter: saturate(0.9); }
.nda__img::after { content: ""; position: absolute; inset: 0; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px); }
.nda__lock { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nda__lock svg { width: 1rem; height: 1rem; }
.nda__bars { display: grid; gap: 0.5rem; margin: 0.25rem 0; max-width: none; }
.nda__bars i { display: block; height: 0.85rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 14%, transparent); filter: blur(1.5px); }
.nda__bars i:first-child { height: 1.6rem; }
