/* Simone Zanoli – stile */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --carta: #f2f0eb;
  --carta-2: #e9e6df;
  --inchiostro: #111113;
  --testo-2: #55555c;
  --linea: rgba(17, 17, 19, .12);
  --accento: #2b48ff;
  --accento-chiaro: #8e9dff;
  --notte: #0d0d10;
  --notte-2: #18181d;
  --chiaro-2: #a4a4ad;
  --bordo: max(20px, 4vw);
  --max: 1360px;
  --curva: cubic-bezier(.22, 1, .36, 1);
  --curva-2: cubic-bezier(.65, 0, .35, 1);
  --t-corpo: clamp(16px, 1.05vw + 10px, 19px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font: 400 var(--t-corpo)/1.55 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accento); color: #fff; }
:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; border-radius: 4px; }

.salta { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--inchiostro); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.salta:focus { top: 12px; }

/* ---------- Testata ---------- */
.testa {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--bordo);
  transition: transform .5s var(--curva), background-color .4s, box-shadow .4s, padding .4s;
}
.testa.piena { background: rgba(242, 240, 235, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--linea); padding-block: 12px; }
.testa.nascosta { transform: translateY(-100%); }
.testa.su-scuro:not(.piena) { color: #fff; }
.marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.marchio-sz {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--inchiostro); color: var(--carta);
  font-size: 14px; font-stretch: 125%; letter-spacing: -.02em;
  transition: transform .6s var(--curva);
}
.marchio:hover .marchio-sz { transform: rotate(-12deg) scale(1.06); }
.menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; }
.menu > a:not(.pill) { text-decoration: none; position: relative; }
.menu > a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--curva); }
.menu > a:not(.pill):hover::after { transform: scaleX(1); transform-origin: left; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; background: var(--inchiostro); color: var(--carta); font-weight: 500;
  transition: background-color .3s, transform .3s var(--curva);
}
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--curva); }
.pill:hover { background: var(--accento); }
.pill:hover svg { transform: translateX(3px); }

/* ---------- Pulsanti e link ---------- */
.btn {
  --sfondo: var(--inchiostro); --colore: var(--carta); --riempi: var(--accento);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sfondo); color: var(--colore);
  font: 500 17px/1 "Archivo", sans-serif; text-decoration: none;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--riempi);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 100%));
  transition: clip-path .7s var(--curva);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 100%)); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .5s var(--curva); }
.btn:hover svg { transform: translateX(4px); }
.btn-chiaro { --sfondo: var(--carta); --colore: var(--inchiostro); --riempi: var(--accento-chiaro); }

.link { position: relative; font-weight: 500; text-decoration: none; padding-bottom: 4px; display: inline-block; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .5s var(--curva); }
.link:hover::after { transform: scaleX(0); }
.link::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accento); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--curva) .15s; }
.link:hover::before { transform: scaleX(1); }

/* ---------- Filo che attraversa la pagina ---------- */
.filo { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.filo path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.filo-linea { stroke: var(--accento); stroke-width: 2.5; }
.filo-ombra { stroke: var(--accento); stroke-width: 14; opacity: .08; }
.filo-punta { fill: var(--accento); filter: drop-shadow(0 0 8px rgba(43, 72, 255, .7)); }
.filo-p { position: absolute; width: 1px; height: 1px; pointer-events: none; }
main { position: relative; z-index: 1; }
.filo { z-index: 2; }

/* ---------- Apertura ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: clamp(110px, 16vh, 170px) var(--bordo) 60px;
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column;
}
.occhiello { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-stretch: 112%; text-transform: uppercase; letter-spacing: .12em; color: var(--testo-2); }
.pallino { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accento); }
.pallino::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accento); animation: pulsa 2.4s var(--curva) infinite; }
@keyframes pulsa { from { transform: scale(1); opacity: .6; } to { transform: scale(3.4); opacity: 0; } }

.hero-titolo {
  margin-top: 26px;
  font-size: clamp(52px, 9.6vw, 156px); line-height: .9; font-weight: 600; font-stretch: 125%; letter-spacing: -.045em;
}
.riga { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.riga > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1.2s var(--curva); }
.pronto .riga > span { transform: none; }
.hero-titolo .riga:nth-child(2) > span { transition-delay: .1s; }
.hero-titolo .riga:nth-child(3) > span { transition-delay: .2s; }
.hero-titolo .riga:nth-child(2) { padding-left: 1.1em; }
.hero-titolo em {
  font-style: normal; font-stretch: 62%; font-weight: 300; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: .025em var(--inchiostro);
  background: linear-gradient(90deg, var(--accento) 0 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: background-position 1.4s var(--curva) 1.1s, -webkit-text-stroke-color 1s 1.4s;
}
.pronto .hero-titolo em { background-position: 0 0; -webkit-text-stroke-color: var(--accento); }
.punto { font-style: normal; color: var(--accento); position: relative; }

.hero-sotto {
  margin-top: clamp(32px, 5vh, 64px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start;
}
.hero-testo { position: relative; padding-top: 10px; }
.hero-testo p { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.45; color: var(--testo-2); max-width: 30ch; }
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }
.hero-testo .filo-p { left: 30px; top: calc(100% + 70px); }
@media (max-width: 1000px) { .hero-testo .filo-p { left: calc(var(--bordo) / -2); top: 100%; } .num .filo-p { display: none; } }

.entra { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--curva) .55s, transform 1.2s var(--curva) .55s; }
.pronto .entra { opacity: 1; transform: none; }
.hero-testo.entra { transition-delay: .7s; }

/* finto schermo */
.schermo-scena { position: relative; perspective: 1600px; opacity: 0; transform: translateY(60px); transition: opacity 1.2s var(--curva) .5s, transform 1.4s var(--curva) .5s; }
.pronto .schermo-scena { opacity: 1; transform: none; }
.schermo {
  --rx: 6deg; --ry: -8deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .9s var(--curva);
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 50px 100px -30px rgba(17, 17, 40, .35), 0 30px 60px -40px rgba(43, 72, 255, .4), 0 0 0 1px var(--linea);
}
.schermo-barra { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f7f6f3; border-bottom: 1px solid var(--linea); }
.schermo-barra > i { width: 10px; height: 10px; border-radius: 50%; background: #dcd9d2; }
.schermo-barra > i:first-child { background: #ff5f57; } .schermo-barra > i:nth-child(2) { background: #febc2e; } .schermo-barra > i:nth-child(3) { background: #28c840; }
.indirizzo { margin-left: 14px; flex: 0 1 280px; height: 26px; border-radius: 7px; background: #ebe9e4; display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; color: var(--testo-2); }
.indirizzo b { font-weight: 400; }
.indirizzo u { width: 1px; height: 13px; background: var(--inchiostro); margin-left: 1px; animation: cursore 1s steps(1) infinite; }
@keyframes cursore { 50% { opacity: 0; } }
.schermo-corpo { position: relative; aspect-ratio: 16 / 10; background: #f4f2ee; }
.scheletro { position: absolute; inset: 0; }
.sk { position: absolute; border-radius: 6px; background: #e3e0d9; transform: scale(.6); opacity: 0; transition: transform .8s var(--curva), opacity .5s; }
.sk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-100%); animation: luce 1.6s infinite; }
@keyframes luce { to { transform: translateX(100%); } }
.sk { overflow: hidden; }
.sk-logo { left: 4%; top: 4%; width: 6%; height: 7%; border-radius: 50%; }
.sk-nav { left: 13%; top: 5.5%; width: 26%; height: 4%; }
.sk-btn { right: 4%; top: 4%; width: 11%; height: 7%; border-radius: 99px; background: #f3c7cd; }
.sk-t1 { left: 4%; top: 14%; width: 40%; height: 14%; }
.sk-t2 { left: 4%; top: 31%; width: 34%; height: 14%; background: #f1c3c9; }
.sk-t3 { left: 4%; top: 48%; width: 38%; height: 14%; background: #c7d1f0; }
.sk-p1 { left: 4%; top: 68%; width: 32%; height: 4%; }
.sk-p2 { left: 4%; top: 75%; width: 26%; height: 4%; }
.sk-cta { left: 4%; top: 85%; width: 24%; height: 8%; border-radius: 99px; background: #f3c7cd; }
.sk-foto { right: 4%; top: 11%; width: 46%; height: 89%; border-radius: 10px 10px 0 0; }
.costruisce .sk { transform: none; opacity: 1; }
.costruisce .sk:nth-child(2) { transition-delay: .08s; } .costruisce .sk:nth-child(3) { transition-delay: .16s; }
.costruisce .sk:nth-child(4) { transition-delay: .24s; } .costruisce .sk:nth-child(5) { transition-delay: .32s; }
.costruisce .sk:nth-child(6) { transition-delay: .4s; } .costruisce .sk:nth-child(7) { transition-delay: .48s; }
.costruisce .sk:nth-child(8) { transition-delay: .56s; } .costruisce .sk:nth-child(9) { transition-delay: .64s; }
.costruisce .sk:nth-child(10) { transition-delay: .3s; }
.finto {
  position: absolute; inset: 0; container-type: inline-size; background: #fbfaf7; color: #1a1a1d;
  clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--curva-2);
  display: grid; grid-template-columns: 52% 1fr; grid-template-rows: auto 1fr; padding: 3.4cqw 4cqw 0; column-gap: 3cqw;
}
.finito .finto { clip-path: inset(0 0 0 0); }
.finto-nav { grid-column: 1 / -1; display: flex; align-items: center; gap: 4cqw; font-size: 1.9cqw; font-weight: 600; }
.finto-logo { display: flex; align-items: center; gap: 1.2cqw; }
.finto-logo i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: conic-gradient(from 200deg, var(--accento), #ff6b4a, var(--accento)); }
.finto-link { display: flex; gap: 2cqw; margin-left: auto; }
.finto-link i { width: 6cqw; height: .9cqw; border-radius: 1cqw; background: #dedad2; }
.finto-pill { padding: 1.1cqw 2.4cqw; border-radius: 9cqw; background: #1a1a1d; color: #fff; font-weight: 500; }
.finto-testo { align-self: center; padding-bottom: 6cqw; }
.finto-occ { font-size: 1.5cqw; text-transform: uppercase; letter-spacing: .14em; color: #77767c; }
.finto-tit { margin-top: 1.6cqw; font-size: 6.4cqw; line-height: .95; font-weight: 600; font-stretch: 125%; letter-spacing: -.045em; }
.finto-tit em { font-style: normal; color: var(--accento); }
.finto-p { margin-top: 2cqw; font-size: 1.8cqw; line-height: 1.4; color: #66656b; max-width: 30ch; }
.finto-btn { display: inline-block; margin-top: 3cqw; padding: 1.6cqw 3cqw; border-radius: 9cqw; background: var(--accento); color: #fff; font-size: 1.8cqw; font-weight: 500; }
.finto-arte { position: relative; margin-top: 2cqw; border-radius: 2cqw 2cqw 0 0; overflow: hidden; background: #1d1f3a; }
.finto-arte i { position: absolute; border-radius: 50%; filter: blur(.4cqw); }
.f1 { width: 34cqw; height: 34cqw; left: -8cqw; bottom: -12cqw; background: radial-gradient(circle at 35% 35%, #ff7a55, #e0364a 60%, transparent 61%); animation: fluttua 9s ease-in-out infinite; }
.f2 { width: 22cqw; height: 22cqw; right: -4cqw; top: 4cqw; background: radial-gradient(circle at 40% 40%, #8e9dff, var(--accento) 60%, transparent 61%); animation: fluttua 11s ease-in-out infinite reverse; }
.f3 { width: 9cqw; height: 9cqw; left: 16cqw; top: 8cqw; background: #f2f0eb; filter: none !important; animation: fluttua 7s ease-in-out infinite; }
@keyframes fluttua { 50% { transform: translate(2cqw, -2.4cqw) scale(1.05); } }
.finto-chip { position: absolute; left: 2.4cqw; bottom: 2.4cqw; display: flex; align-items: center; gap: 1cqw; padding: 1.2cqw 2cqw; border-radius: 9cqw; background: rgba(255,255,255,.92); font-size: 1.6cqw; font-weight: 500; }
.finto-chip b { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 .5cqw rgba(34,197,94,.2); }
.costruisce.finito .sk { opacity: 0; transition-delay: .9s; }
.schermo-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--curva-2); }
.finito .schermo-foto { clip-path: inset(0 0 0 0); }

.etichetta {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px; font-size: 14px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(17,17,40,.35), 0 0 0 1px var(--linea);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .8s var(--curva), transform .9s var(--curva);
}
.etichetta b { font-weight: 600; font-size: 12px; padding: 6px 10px; border-radius: 99px; background: var(--inchiostro); color: #fff; letter-spacing: .02em; }
.et-1 { left: -26px; bottom: 16%; }
.et-2 { right: -14px; top: 18%; }
.et-2 b { background: var(--accento); }
.finito ~ .etichetta { opacity: 1; transform: none; }
.finito ~ .et-2 { transition-delay: .25s; }
.etichetta { animation: galleggia 6s ease-in-out infinite; }
.et-2 { animation-delay: -3s; }
@keyframes galleggia { 50% { translate: 0 -8px; } }

.scorri { position: absolute; left: var(--bordo); bottom: 28px; display: flex; align-items: center; gap: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--testo-2); }
.scorri span { width: 1.5px; height: 40px; background: var(--linea); position: relative; overflow: hidden; }
.scorri span::after { content: ""; position: absolute; inset: 0; background: var(--inchiostro); animation: scende 2s var(--curva-2) infinite; }
@keyframes scende { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Nastro ---------- */
.nastro { position: relative; z-index: 3; background: var(--inchiostro); color: var(--carta); overflow: hidden; padding: clamp(18px, 2.4vw, 32px) 0; transform: rotate(-1.5deg) scale(1.02); margin: 40px 0 0; }
.nastro-riga { display: flex; width: max-content; align-items: center; will-change: transform; }
.nastro-riga span, .nastro-riga i {
  font-size: clamp(38px, 6vw, 92px); font-weight: 600; font-stretch: 125%; letter-spacing: -.04em; line-height: 1; white-space: nowrap; padding: 0 .35em;
}
.nastro-riga i { font-style: normal; color: var(--accento-chiaro); font-size: clamp(22px, 3vw, 44px); }
.nastro-riga .vuoto { color: transparent; -webkit-text-stroke: 1.5px var(--carta); font-weight: 400; }

/* ---------- Sezioni ---------- */
.sezione { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(100px, 14vw, 200px) var(--bordo) 0; }
.intesta { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vw, 90px); }
.etich { display: flex; align-items: center; gap: 12px; font-size: 14px; font-stretch: 112%; text-transform: uppercase; letter-spacing: .12em; color: var(--testo-2); align-self: start; padding-top: 1.1em; }
.etich span { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--linea); color: var(--inchiostro); letter-spacing: .04em; }
.titolo-2 { font-size: clamp(40px, 6.2vw, 96px); line-height: .95; font-weight: 600; font-stretch: 125%; letter-spacing: -.045em; }
.intesta .filo-p { left: calc(var(--bordo) / -2); top: 50%; }
.fp-caso { left: calc(var(--bordo) / -2); bottom: 0; top: auto !important; right: auto !important; }
.fp-margine { left: calc(var(--bordo) / 2) !important; top: 40px !important; }
.fp-destra { right: calc(var(--bordo) / 2); }

.svela { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--curva), transform 1.2s var(--curva); }
.svela.visto { opacity: 1; transform: none; }

/* ---------- Lavori ---------- */
.caso { position: relative; display: grid; grid-template-columns: minmax(0, 8.4fr) minmax(0, 3.6fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.caso-info { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; padding-bottom: 22px; border-bottom: 1px solid var(--linea); margin-bottom: 8px; }
.caso-info h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; font-stretch: 125%; letter-spacing: -.03em; }
.caso-info p { color: var(--testo-2); flex: 1; }

.vetrina { position: relative; padding-bottom: 12%; }
.finestra { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--linea), 0 50px 100px -40px rgba(17,17,40,.4); }
.finestra img { width: 100%; }
.finestra .indirizzo { flex-basis: 220px; }
.finestra-grande { position: relative; transition-property: opacity, transform, clip-path; clip-path: inset(0 0 12% 0 round 16px); }
.finestra-grande.visto { clip-path: inset(0 0 0 0 round 16px); }
.finestra-grande img { transform: scale(1.08); transform-origin: top; transition: transform 1.6s var(--curva); }
.finestra-grande.visto img { transform: none; }
.finestra-piccola { position: absolute; right: -4%; bottom: 0; width: 33%; transition-delay: .25s; box-shadow: 0 0 0 1px var(--linea), 0 40px 80px -30px rgba(17,17,40,.5); }
.finestra-piccola .schermo-barra { padding: 8px 11px; }
.finestra-piccola .schermo-barra > i { width: 8px; height: 8px; }
.finestra-piccola.visto { transform: translateY(var(--par, 0px)); }

.telefono { justify-self: center; width: min(100%, 300px); transition-delay: .15s; }
.telefono-vetro {
  position: relative; aspect-ratio: 9 / 19.2; border-radius: 44px; padding: 11px; background: #17171b;
  box-shadow: 0 0 0 1.5px #2c2c33 inset, 0 50px 90px -40px rgba(17,17,40,.55), 0 0 0 1px rgba(0,0,0,.1);
}
.telefono-isola { position: absolute; z-index: 2; top: 20px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 99px; background: #000; }
.telefono-scorre { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f4f2ee; }
.telefono-scorre img { width: 100%; animation: scorrimento 26s cubic-bezier(.45, 0, .55, 1) infinite; animation-play-state: paused; }
.telefono.visto .telefono-scorre img { animation-play-state: running; }
@keyframes scorrimento {
  0%, 8% { transform: translateY(0); }
  30%, 38% { transform: translateY(-28%); }
  60%, 68% { transform: translateY(-52%); }
  88%, 100% { transform: translateY(0); }
}

.numeri { list-style: none; margin: clamp(60px, 8vw, 110px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea); }
.numeri li { padding: 30px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.numeri li + li { padding-left: 28px; border-left: 1px solid var(--linea); }
.numeri li:nth-child(2) { transition-delay: .1s; } .numeri li:nth-child(3) { transition-delay: .2s; }
.numeri b { font-size: clamp(44px, 5vw, 76px); font-weight: 600; font-stretch: 125%; letter-spacing: -.05em; line-height: 1; }
.numeri span:not([data-conta]) { color: var(--testo-2); max-width: 26ch; }

/* ---------- Frase che si accende ---------- */
.frase { font-size: clamp(32px, 4.6vw, 72px); line-height: 1.08; font-weight: 500; font-stretch: 112%; letter-spacing: -.035em; max-width: 20ch; margin-left: auto; margin-right: auto; text-align: left; }
.frase .p { color: rgba(17,17,19,.14); transition: color .4s; }
.frase .p.acceso { color: var(--inchiostro); }
.frase .p.blu.acceso { color: var(--accento); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; border-radius: 26px; padding: 28px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: #fff; box-shadow: 0 0 0 1px var(--linea);
  transition: box-shadow .5s, transform .8s var(--curva), opacity 1s var(--curva);
}
.card:hover { box-shadow: 0 0 0 1px var(--linea), 0 30px 60px -30px rgba(17,17,40,.25); }
.card h3 { font-size: clamp(24px, 2vw, 30px); font-weight: 600; font-stretch: 125%; letter-spacing: -.03em; }
.card p { color: var(--testo-2); max-width: 32ch; }
.c-misura { grid-column: span 7; background: var(--inchiostro); color: var(--carta); }
.c-misura p { color: var(--chiaro-2); }
.c-tel { grid-column: span 5; transition-delay: .1s; }
.c-google { grid-column: span 5; }
.c-veloce { grid-column: span 7; transition-delay: .1s; background: var(--accento); color: #fff; }
.c-veloce p { color: rgba(255,255,255,.8); }
.vis { flex: 1; position: relative; margin: -4px -4px 18px; min-height: 180px; }

/* su misura: blocchi che si riorganizzano */
.vis-misura { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; }
.vis-misura i { border-radius: 12px; background: #26262c; transition: all .9s var(--curva); }
.vis-misura i:nth-child(1) { grid-area: 1 / 1 / 2 / 3; background: var(--accento); }
.vis-misura i:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.vis-misura i:nth-child(3) { grid-area: 1 / 4 / 3 / 5; }
.vis-misura i:nth-child(4) { grid-area: 2 / 1 / 3 / 2; }
.vis-misura i:nth-child(5) { grid-area: 2 / 2 / 3 / 3; background: #3a3a42; }
.vis-misura i:nth-child(6) { grid-area: 2 / 3 / 3 / 4; border-radius: 50%; background: var(--accento-chiaro); }
.c-misura.visto .vis-misura { animation: rimescola 7s var(--curva) infinite 1s; }
@keyframes rimescola { 0%, 40% { grid-template-columns: 1fr 1fr 1fr 1fr; } 50%, 90% { grid-template-columns: .5fr 1.5fr .7fr 1.3fr; } 100% { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.c-misura:hover .vis-misura i:nth-child(1) { border-radius: 40px; }
.c-misura:hover .vis-misura i:nth-child(3) { background: var(--accento); }

/* telefono che si gira */
.vis-tel { display: grid; place-items: center; }
.mini-tel { position: relative; width: 210px; height: 130px; border-radius: 18px; border: 3px solid var(--inchiostro); padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: all 1s var(--curva); }
.mini-tel i { height: 12px; border-radius: 4px; background: var(--carta-2); transition: all 1s var(--curva); }
.mini-tel i:first-child { width: 60%; background: var(--inchiostro); }
.mini-tel i:nth-child(2) { width: 80%; }
.mini-tel b { margin-top: auto; height: 22px; width: 50%; border-radius: 99px; background: var(--accento); transition: all 1s var(--curva); }
.c-tel.visto .mini-tel { animation: gira 6s var(--curva) infinite 1s; }
@keyframes gira { 0%, 35% { width: 210px; height: 130px; } 50%, 85% { width: 96px; height: 180px; border-radius: 20px; } 100% { width: 210px; height: 130px; } }

/* google */
.vis-google { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cerca { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 99px; background: var(--carta); box-shadow: 0 0 0 1px var(--linea); font-size: 16px; }
.cerca svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--testo-2); stroke-width: 2; }
.cerca b { font-weight: 400; white-space: nowrap; }
.cerca u { width: 1.5px; height: 20px; background: var(--accento); animation: cursore 1s steps(1) infinite; margin-left: -8px; }
.risultato { display: grid; gap: 7px; padding: 16px 18px; border-radius: 16px; background: var(--carta); box-shadow: 0 0 0 1px var(--linea); opacity: 0; transform: translateY(12px); transition: all .8s var(--curva); }
.risultato i { height: 10px; border-radius: 4px; background: var(--carta-2); }
.risultato i:first-child { width: 40%; height: 9px; background: #c9c5bc; }
.risultato i:nth-child(2) { width: 70%; height: 14px; background: var(--accento); }
.risultato i:nth-child(3) { width: 90%; }
.vis-google.trovato .risultato { opacity: 1; transform: none; }

/* veloce */
.vis-veloce { display: grid; place-items: center; }
.vis-veloce svg { width: min(100%, 300px); overflow: visible; }
.arco, .arco-pieno { fill: none; stroke-width: 9; stroke-linecap: round; }
.arco { stroke: rgba(255,255,255,.2); }
.arco-pieno { stroke: #fff; stroke-dasharray: 158; stroke-dashoffset: 158; }
.ago { stroke: #fff; stroke-width: 4; stroke-linecap: round; transform-origin: 60px 62px; transform: rotate(-90deg); }
.vis-veloce circle { fill: #fff; }
.c-veloce.visto .arco-pieno { animation: arco 4.5s var(--curva) infinite .6s; }
.c-veloce.visto .ago { animation: ago 4.5s var(--curva) infinite .6s; }
@keyframes arco { 0% { stroke-dashoffset: 158; } 40%, 80% { stroke-dashoffset: 14; } 100% { stroke-dashoffset: 158; } }
@keyframes ago { 0% { transform: rotate(-90deg); } 40%, 80% { transform: rotate(72deg); } 100% { transform: rotate(-90deg); } }

/* ---------- Metodo ---------- */
.passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.passi li { position: relative; padding-top: 26px; }
.passi li:nth-child(2) { transition-delay: .12s; } .passi li:nth-child(3) { transition-delay: .24s; }
.num { position: relative; display: block; font-size: clamp(80px, 10vw, 150px); line-height: .8; font-weight: 600; font-stretch: 125%; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--inchiostro); margin-bottom: 34px; transition: color .6s, -webkit-text-stroke-color .6s; }
.passi li:hover .num { color: var(--accento); -webkit-text-stroke-color: var(--accento); }
.num .filo-p { left: 0; top: -22px; }
.passi h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; font-stretch: 125%; letter-spacing: -.03em; margin-bottom: 10px; }
.passi p { color: var(--testo-2); max-width: 30ch; }

/* ---------- Contatti ---------- */
.contatti {
  position: relative; margin-top: clamp(120px, 15vw, 220px);
  background: var(--notte); color: var(--carta);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  overflow: hidden; isolation: isolate;
}
.contatti::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43,72,255,.38), transparent);
  animation: respiro 10s ease-in-out infinite;
}
@keyframes respiro { 50% { transform: translate(-60px, 40px) scale(1.1); } }
.contatti-in { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 11vw, 160px) var(--bordo) 80px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contatti-testa { grid-column: 1 / -1; }
.contatti-info { align-self: start; }
.etich-chiara { color: var(--chiaro-2); }
.etich-chiara span { color: var(--carta); border-color: rgba(255,255,255,.18); }
.grande { margin-top: 24px; font-size: clamp(38px, 11.4vw, 150px); line-height: .88; font-weight: 600; font-stretch: 125%; letter-spacing: -.055em; }
.grande .riga > span { transform: translateY(105%) rotate(4deg); }
.grande.visto .riga > span { transform: none; }
.grande .punto .filo-p { left: 50%; top: 70%; }
.contatti-sotto { margin-top: 28px; font-size: clamp(18px, 1.4vw, 22px); color: var(--chiaro-2); max-width: 28ch; }
.email { display: inline-block; margin-top: 34px; font-size: clamp(18px, 1.6vw, 24px); text-decoration: none; padding-bottom: 6px; background: linear-gradient(var(--accento-chiaro), var(--accento-chiaro)) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--curva), color .3s; }
.email:hover { color: var(--accento-chiaro); background-size: 0 1.5px; background-position: 100% 100%; }

.modulo { display: grid; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px rgba(255,255,255,.09) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.scelte { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.scelte legend { padding: 0; margin-bottom: 14px; font-size: 14px; color: var(--chiaro-2); }
.scelte label { cursor: pointer; }
.scelte input { position: absolute; opacity: 0; pointer-events: none; }
.scelte span { display: inline-block; padding: 10px 16px; border-radius: 99px; font-size: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; transition: background-color .3s, color .3s, box-shadow .3s; }
.scelte label:hover span { box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset; }
.scelte input:checked + span { background: var(--carta); color: var(--inchiostro); box-shadow: none; }
.scelte input:focus-visible + span { outline: 2px solid var(--accento-chiaro); outline-offset: 3px; }
.campo { position: relative; }
.campo input, .campo textarea {
  width: 100%; padding: 26px 0 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); border-radius: 0;
  background: transparent; color: var(--carta); font: inherit; resize: vertical; outline: none;
  transition: border-color .3s;
}
.campo textarea { min-height: 90px; }
.campo label { position: absolute; left: 0; top: 24px; color: var(--chiaro-2); pointer-events: none; transform-origin: left top; transition: transform .4s var(--curva), color .3s; }
.campo label small { font-size: .8em; opacity: .7; }
.campo input:focus + label, .campo input:not(:placeholder-shown) + label,
.campo textarea:focus + label, .campo textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.78); }
.campo input:focus + label, .campo textarea:focus + label { color: var(--accento-chiaro); }
.campo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accento-chiaro); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--curva); }
.campo:focus-within::after { transform: scaleX(1); }
.campo.sbagliato input { border-bottom-color: #ff8a8a; }
.errore { min-height: 1.4em; color: #ff9d9d; font-size: 15px; }
.modulo .btn { justify-self: start; margin-top: 4px; }
.nota { font-size: 14px; color: var(--chiaro-2); }

/* piede */
.piede { max-width: var(--max); margin: 0 auto; padding: 0 var(--bordo) 36px; }
.piede-nome {
  font-size: clamp(30px, 9.2vw, 150px); line-height: .8; font-weight: 600; font-stretch: 125%; letter-spacing: -.06em; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22);
  background: linear-gradient(180deg, var(--carta), var(--accento-chiaro)) 0 100% / 100% 0 no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.4s var(--curva);
  margin-bottom: 36px;
}
.piede-nome.visto { background-size: 100% 100%; }
.piede-riga { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: var(--chiaro-2); }
.piede-riga span { margin-right: auto; }
.piede-riga a { text-decoration: none; transition: color .3s; }
.piede-riga a:hover { color: var(--carta); }

/* finestra invio */
.invio { width: min(92vw, 440px); border: 0; border-radius: 26px; padding: 30px; background: var(--carta); color: var(--inchiostro); box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); }
.invio::backdrop { background: rgba(13,13,16,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.invio[open] { animation: apri .5s var(--curva); }
@keyframes apri { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.invio h2 { font-size: 26px; font-weight: 600; font-stretch: 125%; letter-spacing: -.03em; }
.invio > p { margin: 8px 0 20px; color: var(--testo-2); }
.invio-scelte { display: grid; gap: 8px; }
.invio-scelte a, .invio-scelte button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 18px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--linea); color: inherit; font: 500 16px/1.2 "Archivo", sans-serif; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s; }
.invio-scelte a::after, .invio-scelte button::after { content: "→"; transition: transform .4s var(--curva); }
.invio-scelte a:hover, .invio-scelte button:hover { background: var(--inchiostro); color: var(--carta); }
.invio-scelte a:hover::after, .invio-scelte button:hover::after { transform: translateX(4px); }
.invio-chiudi { margin-top: 16px; border: 0; background: none; font: inherit; color: var(--testo-2); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Schermi medi e piccoli ---------- */
@media (max-width: 1000px) {
  .hero-sotto { grid-template-columns: 1fr; }
  .schermo-scena { max-width: 720px; }
  .et-1 { left: 10px; } .et-2 { right: 10px; }
  .caso { grid-template-columns: 1fr; }
  .telefono { width: min(70vw, 280px); margin-top: 30px; }
  .c-misura, .c-tel, .c-google, .c-veloce { grid-column: span 12; }
  .c-tel, .c-google { grid-column: span 6; }
  .contatti-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .menu > a:not(.pill) { display: none; }
  .marchio-nome { display: none; }
  .hero { min-height: auto; padding-top: 110px; }
  .hero-titolo .riga:nth-child(2) { padding-left: 0; }
  .scorri { display: none; }
  .schermo { --rx: 0deg; --ry: 0deg; }
  .etichetta { font-size: 12.5px; padding: 7px 12px 7px 7px; }
  .etichetta b { font-size: 11px; padding: 5px 8px; }
  .et-1 { left: -6px; bottom: -18px; } .et-2 { right: -6px; top: -18px; }
  .intesta { grid-template-columns: 1fr; gap: 14px; }
  .etich { padding-top: 0; }
  .numeri { grid-template-columns: 1fr; }
  .numeri li, .numeri li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--linea); }
  .c-tel, .c-google { grid-column: span 12; }
  .card { min-height: 320px; padding: 24px; }
  .passi { grid-template-columns: 1fr; gap: 50px; }
  .num { margin-bottom: 18px; }
    .piede-riga span { width: 100%; }
  .finestra-piccola { right: -2px; width: 48%; }
  .vetrina { padding-bottom: 34%; }
  .vetrina { padding-bottom: 22%; }
  .telefono { width: min(64vw, 240px); }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .riga > span, .entra, .svela, .schermo-scena, .etichetta { opacity: 1 !important; transform: none !important; }
  .finto { clip-path: none; }
  .frase .p { color: var(--inchiostro); }
  .filo { display: none; }
  .piede-nome { background-size: 100% 100%; }
}

/* ---------- Pagina privacy ---------- */
.testo-lungo { max-width: 760px; margin: 0 auto; padding: 150px var(--bordo) 100px; }
.testo-lungo h1 { font-size: clamp(48px, 7vw, 96px); line-height: .95; font-weight: 600; font-stretch: 125%; letter-spacing: -.05em; }
.testo-lungo .agg { margin: 16px 0 50px; color: var(--testo-2); font-size: 15px; }
.testo-lungo h2 { margin: 44px 0 10px; font-size: 22px; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; }
.testo-lungo p { color: var(--testo-2); }
.testo-lungo p + p { margin-top: 14px; }
.testo-lungo a:not(.link) { color: var(--accento); }
.testo-lungo .link { margin-top: 50px; color: var(--inchiostro); }
