/* Equal Studio: stesso linguaggio della pagina madre (fondo nero, bagliore, angoli stondati),
   con il primario di Studio (#2E6B4A su fondo nero) come accento.
   Senza JavaScript o con «riduci movimento» tutto è visibile e fermo: le scene esistono solo sotto html.motion. */

@font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/font/montserrat-400.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/font/montserrat-500.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/font/montserrat-600.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/font/montserrat-700.woff2) format("woff2"); }

:root {
  --bg: #000;
  --card: #111113;
  --card-2: #17171a;
  --line: rgba(255, 255, 255, .12);
  --text: #f5f5f7;
  --soft: #c7c7cc;
  --muted: #a1a1a6;
  --v: #2E6B4A;          /* Equal Studio su fondo nero */
  --v-scuro: #183425;    /* Equal Studio */
  --v-luce: 46, 107, 74;
  --carta: #F5F1EC;
  --ink: #121212;
  --sabbia: #DDBFA7;
  --radius: 28px;        /* schede */
  --radius-l: 36px;      /* riquadri grandi */
  --wrap: min(1240px, 100% - 48px);
  --font: Montserrat, Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--font); }
::selection { background: var(--v); color: #fff; }
:focus-visible { outline: 2px solid #DDBFA7; outline-offset: 3px; border-radius: 8px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--text); color: #000; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

.st-label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #DDBFA7; }
.st-h2 { font-size: clamp(36px, 5.4vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; max-width: 16ch; }
.st-testa { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.st-testa > p { color: var(--soft); font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; }
@media (max-width: 860px) { .st-testa { grid-template-columns: 1fr; } }
.st-sezione { padding: clamp(96px, 13vw, 180px) 0 0; }
.st-didascalia { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* Pulsanti a pillola */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--verde { background: var(--v); color: #fff; box-shadow: 0 10px 40px rgba(var(--v-luce), .35); }
.btn--verde:hover { background: #183425; box-shadow: 0 14px 50px rgba(var(--v-luce), .5); }
.btn--ghost { color: var(--text); border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { border-color: var(--text); }

/* Navigazione */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  height: 60px; padding: 0 max(24px, calc((100% - 1240px) / 2));
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px;
}
.nav__group img { width: 32px; height: 32px; border-radius: 22%; }
.nav__brand img { width: 112px; height: auto; }
/* In alto solo i loghi, l'azione e il bottone del menu: le sezioni stanno nel menu a tutto schermo. */
.nav__cta { margin-left: auto; text-decoration: none; background: var(--v); color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; transition: transform .18s; }
.nav__cta:active { transform: scale(.97); }

/* ============ HERO ============ */
.st-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; padding: 140px 0 clamp(56px, 8vh, 96px); }
.st-hero__luce { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-hero__alone {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 55% at 78% 30%, rgba(46,107,74,.55), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(46,107,74,.30), transparent 70%);
}
.js .st-hero__luce[data-viva] + .st-hero__alone { opacity: .35; }
.st-hero__dentro { position: relative; z-index: 2; }
.st-hero__titolo {
  margin-top: 22px;
  font-size: clamp(46px, min(9vw, 15vh), 148px); line-height: .96; font-weight: 700; letter-spacing: -.05em;
}
.st-hero__titolo span { display: block; }
.st-hero__titolo span + span { color: transparent; -webkit-text-stroke: 0; background: linear-gradient(90deg, #fff 0%, #DDBFA7 100%); -webkit-background-clip: text; background-clip: text; }
.st-hero__piede { display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: space-between; align-items: end; gap: 28px 48px; margin-top: clamp(28px, 4vh, 48px); }
.st-hero__frase { color: var(--soft); font-size: clamp(17px, 1.5vw, 20px); }
.st-hero__azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.st-hero__nota { position: absolute; right: max(24px, calc((100% - 1240px) / 2)); top: 90px; z-index: 3; color: var(--muted); font-size: 13px; max-width: 30ch; text-align: right; opacity: 0; transition: opacity .6s; }
.motion .st-hero__nota[data-on] { opacity: 1; }
@media (max-width: 860px) {
  .st-hero__piede { grid-template-columns: 1fr; }
  .st-hero__nota { display: none; }
  .st-hero__titolo { font-size: clamp(34px, 9.4vw, 72px); }
  .st-hero .st-label { font-size: 11px; }
}

/* La lente: il primo schermo «in cantiere». Esiste solo con il movimento. */
.st-lente { display: none; }
.motion .st-lente {
  display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  --lx: 70%; --ly: 40%; --lr: 0px;
  clip-path: circle(var(--lr) at var(--lx) var(--ly));
  background:
    linear-gradient(rgba(221,191,167,.10) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(221,191,167,.10) 1px, transparent 1px) 0 0 / 40px 40px,
    rgba(4, 18, 10, .38); /* il titolo sotto resta leggibile: la lente aggiunge le misure, non lo copre */
}
.st-lente__anello {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  width: calc(var(--lr) * 2); height: calc(var(--lr) * 2);
  transform: translate(calc(var(--lx-px) - var(--lr)), calc(var(--ly-px) - var(--lr)));
  border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(221,191,167,.7), 0 0 60px rgba(var(--v-luce), .35);
}
.st-lente__box {
  position: absolute; border: 1.5px dashed rgba(221,191,167,.85); border-radius: 14px;
  background: rgba(46,107,74,.12);
}
.st-lente__box b {
  position: absolute; left: 12px; top: -12px; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: #DDBFA7; color: #04120a;
  font: 600 11px/1 var(--font); letter-spacing: .02em;
}
.st-lente__col { position: absolute; top: 0; bottom: 0; background: rgba(221,191,167,.07); border-inline: 1px solid rgba(221,191,167,.18); }

/* Nastro delle discipline */
/* La fascia sta dentro i margini della pagina, come il resto: il testo che scorre non tocca il bordo dello schermo. */
.st-nastro { width: var(--wrap); margin-inline: auto; overflow: hidden; padding: 26px 0; border-radius: var(--radius-l, 36px); background: var(--v-scuro); }
.st-nastro__riga { display: flex; width: max-content; gap: 0; }
.st-nastro__riga span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.st-nastro__riga span::after { content: ""; width: 12px; height: 12px; border-radius: 4px; background: #DDBFA7; }
.motion .st-nastro__riga { animation: nastro 40s linear infinite; }
@keyframes nastro { to { transform: translateX(-50%); } }

/* ============ PAGINA A STRATI (scena fissata) ============ */
.st-strati { padding: clamp(96px, 13vw, 180px) 0 0; }
.st-strati__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.st-strati__intro { margin-top: 18px; color: var(--soft); font-size: clamp(17px, 1.4vw, 19px); max-width: 44ch; }
.st-strati__barra { display: none; }
.st-passi { margin-top: 36px; display: grid; gap: 22px; counter-reset: p; }
.st-passi h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
.st-passi p { margin-top: 8px; color: var(--soft); max-width: 46ch; }
.st-strati__figura { position: relative; }
.st-strati__scena { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-l); overflow: hidden; background: radial-gradient(70% 60% at 50% 40%, rgba(46,107,74,.45), transparent 70%), #07100b; }
.st-strati__scena canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.st-strati__scena canvas[data-viva] { opacity: 1; }
.st-strati__ferma { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: cover; border-radius: var(--radius); }
.st-strati__scena canvas[data-viva] ~ .st-strati__ferma { display: none; }
.st-strati__nome { position: absolute; left: 22px; top: 20px; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.5); color: #DDBFA7; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html:not(.motion) .st-strati__nome { display: none; }
@media (max-width: 860px) { .st-strati__griglia { grid-template-columns: 1fr; } }

.motion .st-strati { height: 640vh; padding: 0; }
.motion .st-strati__palco { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 60px; }
.motion .st-strati__griglia { width: var(--wrap); }
.motion .st-strati__barra { display: flex; gap: 6px; margin-top: 26px; max-width: 280px; }
.motion .st-strati__barra i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.motion .st-strati__barra i::before { content: ""; display: block; height: 100%; background: #DDBFA7; transform-origin: left; transform: scaleX(var(--k, 0)); }
.motion .st-passi { position: relative; min-height: 200px; margin-top: 30px; }
/* I passaggi stanno uno sull'altro: quelli non attivi spariscono del tutto (visibility), così nessun titolo
   resta coperto sotto quello che si sta leggendo. */
.motion .st-passi li { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; transform: translateY(30px); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s linear .55s; }
.motion .st-passi li.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.motion .st-passi li.past { transform: translateY(-30px); }
.motion .st-passi h3 { font-size: clamp(28px, 3vw, 44px); }
.motion .st-passi p { font-size: clamp(16px, 1.4vw, 19px); }
.motion .st-strati__scena { aspect-ratio: auto; height: min(78vh, 720px); }
@media (max-width: 860px) {
  .motion .st-strati__palco { align-items: stretch; padding: 72px 0 20px; }
  .motion .st-strati__griglia { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: stretch; gap: 16px; }
  .motion .st-strati__scena { height: 44svh; }
  .motion .st-strati__figura figcaption { display: none; }
  .motion .st-strati .st-h2 { font-size: 30px; }
  .motion .st-strati__intro { display: none; }
  .motion .st-strati__barra { margin-top: 14px; }
  .motion .st-passi { margin-top: 16px; }
  .motion .st-passi h3 { font-size: 24px; }
  .motion .st-passi p { font-size: 15.5px; }
}
/* Con «riduci movimento» (classe strati-passi, da studio.js): la stessa scena fissata, che cambia a passi
   mentre si scorre. Nessuna transizione: il passo nuovo prende il posto del vecchio. */
.strati-passi .st-strati { height: 640vh; padding: 0; }
.strati-passi .st-strati__palco { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 60px; }
.strati-passi .st-strati__griglia { width: var(--wrap); }
.strati-passi .st-strati__barra { display: flex; gap: 6px; margin-top: 26px; max-width: 280px; }
.strati-passi .st-strati__barra i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.strati-passi .st-strati__barra i::before { content: ""; display: block; height: 100%; background: #DDBFA7; transform-origin: left; transform: scaleX(var(--k, 0)); }
.strati-passi .st-passi { position: relative; min-height: 200px; margin-top: 30px; }
.strati-passi .st-passi li { position: absolute; inset: 0 0 auto; visibility: hidden; }
.strati-passi .st-passi li.on { visibility: visible; }
.strati-passi .st-passi h3 { font-size: clamp(28px, 3vw, 44px); }
.strati-passi .st-strati__scena { aspect-ratio: auto; height: min(78vh, 720px); }
html.strati-passi .st-strati__nome { display: block; }
@media (max-width: 860px) {
  .strati-passi .st-strati__palco { align-items: stretch; padding: 72px 0 20px; }
  .strati-passi .st-strati__griglia { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: stretch; gap: 16px; }
  .strati-passi .st-strati__scena { height: 44svh; }
  .strati-passi .st-strati__figura figcaption, .strati-passi .st-strati__intro { display: none; }
  .strati-passi .st-strati .st-h2 { font-size: 30px; }
  .strati-passi .st-passi { margin-top: 16px; }
  .strati-passi .st-passi h3 { font-size: 24px; }
}

/* ============ SEI BANCHI ============ */
.st-banchi__corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.st-voci { display: grid; gap: 10px; }
.st-voci button {
  width: 100%; text-align: left; cursor: pointer; display: grid; gap: 6px;
  padding: 22px 26px; border-radius: 24px; border: 0; background: var(--card); color: var(--text);
  font: inherit; transition: background .3s, transform .3s var(--ease);
}
.st-voci button:hover { background: var(--card-2); transform: translateX(4px); }
.st-voci b { font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.st-voci b::after { content: "→"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 16px; transition: background .3s, transform .3s var(--ease); }
.st-voci span, .st-voci small { display: none; color: var(--soft); font-size: 16px; }
.st-voci small { color: #DDBFA7; font-size: 14px; font-weight: 600; }
.st-voci button[aria-pressed="true"] { background: var(--v-scuro); }
.st-voci button[aria-pressed="true"] b::after { background: var(--v); transform: rotate(90deg); }
.st-voci button[aria-pressed="true"] span, .st-voci button[aria-pressed="true"] small { display: block; }
html:not(.js) .st-voci span, html:not(.js) .st-voci small { display: block; }

.st-vista {
  position: sticky; top: 90px; min-height: 520px; border-radius: var(--radius-l); overflow: hidden;
  background: radial-gradient(80% 70% at 80% 10%, rgba(46,107,74,.5), transparent 70%), #0b120e;
  padding: clamp(24px, 4vw, 48px); display: grid; align-content: center;
}
.st-vista > .st-didascalia { position: absolute; left: 28px; bottom: 20px; margin: 0; }
.js .st-v { display: none; }
html:not(.js) .st-v + .st-v { margin-top: 32px; }
.js .st-vista[data-scelta="marchio"] .st-v--marchio, .js .st-vista[data-scelta="sito"] .st-v--sito,
.js .st-vista[data-scelta="campagne"] .st-v--campagne, .js .st-vista[data-scelta="dati"] .st-v--dati,
.js .st-vista[data-scelta="software"] .st-v--software, .js .st-vista[data-scelta="stampa"] .st-v--stampa { display: grid; animation: vista .6s var(--ease) both; }
@keyframes vista { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 860px) { .st-banchi__corpo { grid-template-columns: 1fr; } .st-vista { position: relative; top: 0; min-height: 420px; } }

.st-v--marchio { gap: 30px; }
.st-v__logo { font-size: clamp(64px, 8vw, 110px); font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.st-v__logo small { display: block; margin-top: 14px; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--sabbia); }
.st-v__palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.st-v__palette li { aspect-ratio: 1; border-radius: 20px; background: var(--k); display: flex; align-items: flex-end; padding: 12px; font-size: 12px; font-weight: 600; }
.st-v__palette li:nth-child(n+3) { color: var(--ink); }
.st-v__aa { display: flex; align-items: center; gap: 20px; color: var(--soft); font-size: 14px; }
.st-v__aa b { font-size: 64px; letter-spacing: -.04em; color: var(--text); }

.st-v--sito { gap: 16px; }
.st-v__prodotto { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--carta); color: var(--ink); }
.st-v__foto { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.st-v__scheda { padding: 26px; display: grid; gap: 10px; align-content: center; }
.st-v__scheda small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #6b5a4a; }
.st-v__scheda b { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.st-v__prezzo { font-size: 30px; font-weight: 700; color: var(--v-scuro); }
.st-v__varianti { display: flex; gap: 8px; }
.st-v__varianti i { width: 26px; height: 26px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 3px var(--carta), 0 0 0 4.5px var(--v); }
.st-v__varianti i + i { background: var(--sabbia); box-shadow: none; }
.st-v__varianti i + i + i { background: #1b1b1b; }
.st-v__carrello { justify-self: start; padding: 12px 20px; border-radius: 999px; background: var(--v-scuro); color: #fff; font-weight: 600; font-size: 14px; }
.st-v__piede { color: var(--muted); font-size: 13px; }

.st-v--campagne { grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.st-v__post { border-radius: var(--radius); background: #fff; color: var(--ink); overflow: hidden; font-size: 14px; }
.st-v__post img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.st-v__post > p { padding: 12px 16px 4px; }
.st-v__acc { display: flex; align-items: center; gap: 8px; padding: 12px 16px !important; }
.st-v__acc i { width: 30px; height: 30px; border-radius: 50%; background: var(--v-scuro); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.st-v__acc small { margin-left: auto; color: #777; font-size: 11px; }
.st-v__cta { display: block; margin: 8px 16px 16px; padding: 10px; border-radius: 12px; background: #eef1ef; text-align: center; font-weight: 600; }
.st-v__serp { border-radius: var(--radius); background: #fff; color: var(--ink); padding: 22px; display: grid; gap: 6px; font-size: 14px; }
.st-v__serp small { color: #333; font-size: 12px; }
.st-v__serp b { color: #1a4fd6; font-size: 19px; font-weight: 600; line-height: 1.25; }
@media (max-width: 600px) { .st-v--campagne { grid-template-columns: 1fr; } .st-v__serp { order: -1; } }

.st-v--dati { gap: 18px; }
.st-v__codice { margin: 0; padding: 22px 24px; border-radius: 20px; background: #050a07; color: #EEE8DA; font-size: 15px; line-height: 1.6; white-space: pre; overflow-x: auto; }
.st-v__codice em { font-style: normal; color: #DDBFA7; }
.st-v__conteggio { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 15px; }
.st-v__conteggio th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 0 14px; }
.st-v__conteggio td { padding: 14px; background: rgba(255,255,255,.05); }
.st-v__conteggio td:first-child { border-radius: 14px 0 0 14px; }
.st-v__conteggio td:last-child { border-radius: 0 14px 14px 0; }
.st-v__conteggio td b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--v); color: #fff; }

.st-v--software { gap: 14px; }
.st-v__titolo { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.st-v__ordini { display: grid; gap: 8px; }
.st-v__ordini li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.05); font-size: 15px; }
.st-v__ordini li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-v__stato { font-style: normal; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); }
.st-v__stato--a { background: rgba(221,191,167,.18); color: var(--sabbia); }
.st-v__stato--ok { background: rgba(46,107,74,.35); color: #DDBFA7; }

.st-v--stampa { justify-items: center; gap: 22px; }
.st-v__biglietto { width: min(100%, 420px); aspect-ratio: 85 / 55; border-radius: 18px; background: var(--carta); color: var(--v-scuro); display: grid; align-content: end; padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: rotate(-4deg); }
.st-v__biglietto b { font-size: 46px; letter-spacing: -.05em; line-height: 1; }
.st-v__biglietto span { margin-top: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #6b5a4a; }

/* ============ UN TAVOLO SOLO ============ */
.st-frase { position: relative; margin-top: clamp(96px, 13vw, 180px); min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.st-frase__foto { position: absolute; inset: 0; }
.st-frase__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.st-frase__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%); }
.st-frase__testo { position: relative; }
.st-frase__corpo { margin-top: 22px; max-width: 18ch; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.st-frase__nota { margin-top: 28px; max-width: 40ch; color: var(--soft); font-size: clamp(17px, 1.4vw, 19px); }
.motion .st-frase__foto img { transform: scale(calc(1.18 - var(--f, 0) * .18)); will-change: transform; }
.motion .st-frase__corpo .p { opacity: .62; transition: opacity .4s var(--ease); }
.motion .st-frase__corpo .p.on { opacity: 1; }
@media (max-width: 860px) {
  .st-frase { align-items: end; padding-bottom: 72px; }
  .st-frase__foto::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.1) 100%); }
}

/* ============ VIAGGIO DI UN CONTATTO ============ */
.st-viaggio__griglia { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.st-viaggio__testa { position: sticky; top: 100px; }
.st-viaggio__testa > p { margin-top: 22px; color: var(--soft); max-width: 46ch; font-size: clamp(17px, 1.4vw, 19px); }
.st-foto { border-radius: var(--radius); overflow: hidden; background: var(--card); }
.st-foto img { width: 100%; height: 100%; object-fit: cover; }
.st-viaggio__foto { margin-top: 32px; aspect-ratio: 3 / 2; }
.st-scontrino__carta {
  position: relative; background: var(--carta); color: var(--ink); padding: 36px clamp(24px, 3vw, 40px) 48px;
  border-radius: var(--radius) var(--radius) 0 0;
  -webkit-mask: radial-gradient(10px at 50% 100%, #0000 98%, #000) 50% / 20px 100% repeat-x;
  mask: radial-gradient(10px at 50% 100%, #0000 98%, #000) 50% / 20px 100% repeat-x;
}
.st-scontrino__testa { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 2px dashed rgba(18,18,18,.25); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.st-scontrino__testa span { color: #6b5a4a; }
.st-scontrino__righe { counter-reset: r; }
.st-scontrino__righe li { counter-increment: r; padding: 24px 0; border-bottom: 2px dashed rgba(18,18,18,.18); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.st-scontrino__righe h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.2; }
.st-scontrino__righe code, .st-scontrino__dato { align-self: start; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--v-scuro); color: #F5F1EC; white-space: nowrap; }
.st-scontrino__righe p { grid-column: 1 / -1; color: #3b3b3b; font-size: 16px; }
.st-scontrino__totale { border-bottom: 0 !important; }
.st-scontrino__totale h3 { font-size: 24px; text-wrap: balance; }
@media (max-width: 560px) {
  .st-scontrino__totale h3 { font-size: 20px; }
  .st-frase__corpo { max-width: none; font-size: 26px; }
}
.motion .st-scontrino__righe li { opacity: .12; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.motion .st-scontrino__righe li.on { opacity: 1; transform: none; }
@media (max-width: 860px) { .st-viaggio__griglia { grid-template-columns: 1fr; } .st-viaggio__testa { position: relative; top: 0; } }

/* ============ LAVORI ============ */
.st-testa > p a { color: var(--text); font-weight: 600; }
.st-lavori__griglia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 12px; }
.st-lavoro { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: var(--radius); overflow: hidden; background: var(--card); text-decoration: none; transition: transform .35s var(--ease), background-color .3s; }
.st-lavoro:hover { transform: translateY(-4px); background: var(--card-2); }
.st-lavoro:active { transform: translateY(-1px) scale(.995); }
.st-lavoro img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 22px; transition: transform .6s var(--ease); }
.st-lavoro:hover img { transform: scale(1.04); }
.st-lavoro > span { display: grid; gap: 4px; padding: 16px 22px 20px; color: var(--soft); font-size: 15px; }
.st-lavoro b { color: var(--text); font-size: 19px; letter-spacing: -.01em; }
.st-lavoro--grande { grid-column: span 2; grid-row: span 2; }
.st-lavoro--grande img { object-fit: cover; object-position: top; padding: 0; }
.st-lavoro--carta { background: var(--carta); }
.st-lavoro--avorio { background: #EEE8DA; }
.st-lavoro--carta > span, .st-lavoro--avorio > span { color: #3b3b3b; }
.st-lavoro--carta b, .st-lavoro--avorio b { color: var(--ink); }
.st-lavoro--marchio img { padding: 34px 40px; }
.st-lavoro--largo { grid-column: span 2; }
.st-lavoro--grande.st-lavoro--carta img { object-fit: contain; object-position: center; padding: 36px; }
@media (max-width: 960px) { .st-lavori__griglia { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; } }
@media (max-width: 600px) { .st-lavori__griglia { grid-template-columns: 1fr; } .st-lavoro--grande { grid-column: auto; grid-row: span 1; } .st-lavoro--largo { grid-column: auto; } }

/* ============ OFFICINA ============ */
.st-officina__corpo { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.st-officina__foto { min-height: 520px; }
.motion .st-officina__foto img { transform: scale(1.15) translateY(var(--sale, 0px)); will-change: transform; }
.st-officina__destra { display: grid; gap: 22px; align-content: start; }
.st-officina__destra > p { color: var(--soft); font-size: 17px; max-width: 62ch; }
.st-regola { padding: 22px 26px; border-radius: 24px; background: var(--v-scuro); color: #F5F1EC !important; }
.st-sistemi { border-radius: var(--radius); background: var(--card); padding: 10px; overflow-x: auto; }
.st-sistemi table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; min-width: 560px; }
.st-sistemi th, .st-sistemi td { text-align: left; vertical-align: top; padding: 14px 16px; }
.st-sistemi thead th { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.st-sistemi tbody tr { transition: background .3s; }
.st-sistemi tbody tr:hover { background: rgba(255,255,255,.04); }
.st-sistemi tbody th { white-space: nowrap; }
.st-sistemi tbody td:last-child { color: #DDBFA7; font-weight: 500; }
.st-sistemi tbody tr + tr > * { border-top: 1px solid rgba(255,255,255,.06); }
@media (max-width: 860px) { .st-officina__corpo { grid-template-columns: 1fr; } .st-officina__foto { min-height: 0; aspect-ratio: 4 / 3; } }

/* ============ MISURA ============ */
.st-cifre { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.st-cifre > div { grid-column: span 2; padding: 26px 28px; border-radius: var(--radius); background: var(--card); }
.st-cifre > .st-cifre__grande { grid-column: span 3; background: radial-gradient(90% 120% at 100% 0%, rgba(46,107,74,.45), transparent 70%), var(--card); }
.st-cifre dt { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.st-cifre dd { margin-top: 10px; font-size: clamp(40px, 4.4vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.st-cifre__grande dd { font-size: clamp(56px, 8vw, 120px); color: #DDBFA7; }
.st-cifre dd small { margin-left: 8px; font-size: .32em; letter-spacing: 0; color: var(--muted); }
@media (max-width: 760px) { .st-cifre > div, .st-cifre > .st-cifre__grande { grid-column: span 6; } }
.st-peso { margin-top: 12px; padding: 26px 28px; border-radius: var(--radius); background: var(--card); }
.st-peso[hidden] { display: none; }
.st-peso__titolo { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.st-peso__barra { margin-top: 16px; display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); gap: 2px; }
.st-peso__barra i { height: 100%; transform-origin: left; }
.st-peso__voci { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--soft); }
.st-peso__voci li { display: flex; align-items: center; gap: 8px; }
.st-peso__voci i { width: 12px; height: 12px; border-radius: 4px; }
.st-controlli { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st-controlli > div { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.035); }
.st-controlli dt { font-weight: 700; font-size: 17px; }
.st-controlli dd { margin-top: 8px; color: var(--soft); font-size: 15px; }
@media (max-width: 960px) { .st-controlli { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .st-controlli { grid-template-columns: 1fr; } }

/* ============ METODO ============ */
.st-fasi { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.st-fasi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); }
.st-fasi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: #DDBFA7; transform-origin: left; transform: scaleX(var(--fill, 1)); }
.st-fasi li { padding: 34px 24px 26px; margin-top: 18px; border-radius: 24px; background: var(--card); }
.st-fasi h3 { font-size: 22px; letter-spacing: -.02em; }
.st-fasi p { margin-top: 10px; color: var(--soft); font-size: 15.5px; }
.st-fasi__qui { background: var(--v) !important; }
.st-fasi__qui p { color: #F5F1EC; }
.motion .st-fasi li { opacity: .25; transform: translateY(20px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.motion .st-fasi li.on { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .st-fasi { grid-template-columns: 1fr; }
  .st-fasi::before, .st-fasi::after { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; transform-origin: top; transform: scaleY(var(--fill, 1)); }
  .st-fasi::before { transform: none; }
  .st-fasi li { margin: 0 0 0 22px; }
}

/* ============ PREVENTIVO ============ */
.st-preventivo { overflow-x: clip; }
.st-preventivo__griglia { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.st-preventivo__testo > p { margin-top: 22px; color: var(--soft); max-width: 46ch; font-size: clamp(17px, 1.4vw, 19px); }
.st-foglio { background: var(--carta); color: var(--ink); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.motion .st-foglio { transform: rotate(calc(-5deg * (1 - var(--g, 1)))) translateY(calc(60px * (1 - var(--g, 1)))); will-change: transform; }
.st-foglio__testa { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.st-foglio__testa b { font-size: 28px; letter-spacing: -.03em; }
.st-foglio__testa span { font-size: 12px; color: #6b5a4a; text-align: right; }
.st-foglio__voci li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(18,18,18,.14); font-size: 15px; }
.st-foglio__voci b { color: var(--v-scuro); }
.st-foglio__firma { margin-top: 22px; display: flex; justify-content: space-between; align-items: end; gap: 12px; font-size: 13px; color: #6b5a4a; }
.st-foglio__firma b { font-size: 17px; color: var(--ink); padding: 8px 14px; border-radius: 999px; background: var(--sabbia); }
@media (max-width: 860px) { .st-preventivo__griglia { grid-template-columns: 1fr; } .st-preventivo__testo { order: -1; } .st-foglio__voci li { grid-template-columns: 1fr; gap: 4px; } }

/* ============ DOMANDE ============ */
.st-domande__griglia { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.st-faq { display: grid; gap: 10px; }
.st-faq details { border-radius: 24px; background: var(--card); transition: background .3s; }
.st-faq details:hover, .st-faq details[open] { background: var(--card-2); }
.st-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 20px; transition: transform .3s var(--ease), background .3s; }
.st-faq details[open] summary::after { transform: rotate(45deg); background: var(--v); }
.st-faq details p { padding: 0 26px 24px; color: var(--soft); }
@media (max-width: 860px) { .st-domande__griglia { grid-template-columns: 1fr; } }

/* ============ CHIUSURA ============ */
.st-chiusura { padding: clamp(96px, 13vw, 180px) 16px 0; }
.st-chiusura__riquadro { position: relative; overflow: hidden; border-radius: var(--radius-l); background: radial-gradient(70% 90% at 50% 110%, rgba(46,107,74,.9), transparent 70%), #07100b; padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.st-chiusura__luce { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-chiusura__dentro { position: relative; }
.st-chiusura__titolo { font-size: clamp(36px, 7.4vw, 112px); line-height: 1; font-weight: 700; letter-spacing: -.05em; max-width: 12ch; margin: 0 auto; text-wrap: balance; }
.st-chiusura__dentro > p { max-width: 56ch; margin: 28px auto 0; color: #e8e8ed; font-size: clamp(17px, 1.5vw, 20px); }
.st-chiusura__azioni { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.st-chiusura__nota { margin-top: 26px !important; font-size: 15px !important; color: var(--soft) !important; }
.st-chiusura .btn--verde { background: #fff; color: var(--ink); box-shadow: none; }

/* ============ FAMIGLIA E PIEDE ============ */
.st-famiglia { padding-bottom: 96px; }
.st-famiglia__griglia { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.st-famiglia__griglia a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: var(--card); text-decoration: none; transition: background .3s, transform .3s var(--ease); }
.st-famiglia__griglia a:hover { background: var(--card-2); transform: translateY(-2px); }
.st-famiglia__griglia img { width: 44px; height: 44px; border-radius: 22%; flex: none; }
.st-famiglia__griglia span { display: grid; font-weight: 600; font-size: 15px; line-height: 1.25; }
.st-famiglia__griglia small { color: var(--muted); font-weight: 400; font-size: 13px; }
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.footer__brand { color: var(--text); font-weight: 600; font-size: 16px; display: grid; gap: 16px; justify-items: start; }
.footer__brand img { width: 148px; height: auto; }
.footer__legal { margin-top: 12px; font-style: normal; line-height: 1.7; }
.footer__legal a, .footer__links a { text-decoration: none; }
.footer__legal a:hover, .footer__links a:hover { color: var(--text); }
.footer__head { color: var(--text); font-weight: 600; margin-bottom: 12px; }
.footer__links { display: grid; gap: 8px; }
.footer__copy { margin-top: 40px; color: #a1a1a6; font-size: 13px; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }

/* Titoli che si compongono (SplitText): con il movimento le parole salgono dalla loro riga. */
.motion [data-compone] .riga { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
