/* Handy — sito thatshandy.it
   Token dal tema dell'app (src/theme/tokens.ts). Caprasimo per i titoli, Figtree per il testo. */
:root {
  --bg: #f5ead8;
  --surface: #ebddc5;
  --card: #f9f4ed;
  --text: #201e1d;
  --muted: #645c50;
  --line: rgba(32, 30, 29, 0.16);
  --brown: #8c491a;
  --brown-deep: #643312;
  --accent: #c67139;
  --dot: #f08a3c;
  --sage: #7a8a5e;
  --sage-deep: #56633f;
  --night: #0e0c0b;
  --fire: #ff6b00;
  --cream: #f5ead8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sheet: cubic-bezier(0.3, 0.8, 0.2, 1);
  --r-lg: 28px;
  --r-md: 16px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.55 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .display {
  font-family: 'Caprasimo', 'Cooper Black', Georgia, serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.ico { width: 1em; height: 1em; display: inline-block; flex: none; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Pulsanti ---------- */
.btn {
  --b: var(--text); --f: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--b); color: var(--f); text-decoration: none;
  font: 700 16px/1 'Figtree', system-ui, sans-serif; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease);
}
.btn::after { /* cerchio che si espande dal punto toccato, come nell'app */
  content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%);
  width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--dot);
  transform: scale(0); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: scale(60); }
.btn:hover { color: var(--text); }
.btn:active { transform: scale(.97); }
.btn .ico { font-size: 18px; transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn.light { --b: var(--cream); --f: var(--brown); }
.btn.ghost { --b: transparent; --f: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }

/* ---------- Barra in alto ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
  color: var(--cream);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav.solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.nav.dark { background: color-mix(in srgb, var(--night) 70%, transparent); color: var(--cream); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav.hide { transform: translateY(-110%); }
.nav-links { display: flex; gap: 28px; font-weight: 700; font-size: 15px; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--dot); transform: scale(0); transition: transform .4s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scale(1); }
.nav { --nb: var(--cream); --nf: var(--brown); }
.nav.solid { --nb: var(--text); --nf: var(--cream); }
.nav.dark { --nb: var(--cream); --nf: var(--text); }
.nav .btn { height: 44px; padding: 0 18px; font-size: 14.5px; --b: var(--nb); --f: var(--nf); }
.nav .btn:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }

.mark { display: inline-flex; align-items: flex-start; text-decoration: none; font: 400 30px/1 'Caprasimo', Georgia, serif; }
.mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); margin: 3px 0 0 2px; transition: transform .8s var(--ease); }
.mark:hover i { transform: rotate(-360deg) scale(1.5); }

.home .nav:not(.solid):not(.dark) .mark { opacity: 0; transform: translateY(-6px); }
.nav .mark { transition: opacity .5s var(--ease), transform .6s var(--ease); }
@media (max-height: 760px) { .scroll-hint { display: none; } }

/* ---------- Apertura: «Il cacciavite» ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--brown); color: var(--cream);
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: calc(90px + env(safe-area-inset-top, 0px)) 0 60px;
}
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: radial-gradient(1200px 700px at 80% -10%, #a85a22 0%, transparent 60%), radial-gradient(900px 600px at -10% 110%, #6e3812 0%, transparent 60%); }
.hero-inner { text-align: center; display: grid; justify-items: center; gap: 34px; }
/* La scritta cresce davvero (font-size), non con un ingrandimento (transform: scale):
   così Safari la ridisegna a ogni passo e resta nitida, senza sgranature. */
.splash { --s: 1.7; font-size: calc(60px * var(--s)); height: 1em; margin: 19px 0 9px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .splash { --s: 1.15; margin: 25px 0 10px; } }
.vrow { display: flex; align-items: flex-start; font-size: 1em; animation: vrow 3.4s ease both; }
.vrow .h, .vrow .andy { font: 400 1em/1 'Caprasimo', Georgia, serif; color: var(--cream); }
.vrow .andy { overflow: hidden; white-space: nowrap; display: block; animation: vandy 3.4s ease both; }
.screw { flex: none; width: .1783em; height: .1783em; border-radius: 50%; background: var(--dot); margin: .25em 0 0 -.1433em;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; animation: vunscrew 3.4s ease both; }
.screw::before { content: ""; width: .1033em; height: max(1px, .0217em); border-radius: 1px; background: var(--brown); animation: vslot2 3.4s ease both; }
@keyframes vrow { 0%, 46% { font-size: 2.8em; animation-timing-function: cubic-bezier(.55,0,.2,1); } 76%, 100% { font-size: 1em; } }
@keyframes vandy { 0%, 48% { max-width: 0; opacity: 0; animation-timing-function: cubic-bezier(.55,0,.2,1); } 78%, 100% { max-width: 3em; opacity: 1; } }
@keyframes vunscrew {
  0%, 8% { transform: rotate(0) scale(1); margin: .25em 0 0 -.1433em; animation-timing-function: cubic-bezier(.65,0,.8,.4); }
  40% { transform: rotate(-900deg) scale(1.9); margin: .25em 0 0 -.1433em; }
  43% { transform: rotate(-900deg) scale(1.9); margin: .25em 0 0 -.1433em; animation-timing-function: cubic-bezier(.3,0,.2,1); }
  48% { margin: .25em 0 0 -.1433em; animation-timing-function: cubic-bezier(.55,0,.2,1); }
  52% { transform: rotate(-900deg) scale(1); }
  78%, 100% { transform: rotate(-900deg) scale(1); margin: .0833em 0 0 .0333em; }
}
@keyframes vslot2 { 0%, 42% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero h1 { font-size: clamp(42px, 7.4vw, 104px); max-width: 13ch; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin-bottom: -.12em; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); }
.hero.go h1 .w > span { animation: rise 1s var(--ease) both; animation-delay: calc(2.75s + var(--i) * 70ms); }
@keyframes rise { to { transform: none; } }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 58ch; color: color-mix(in srgb, var(--cream) 82%, transparent); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fade-late { opacity: 0; transform: translateY(18px); }
.hero.go .fade-late { animation: up .9s var(--ease) both; animation-delay: calc(3.25s + var(--d, 0s)); }
@keyframes up { to { opacity: 1; transform: none; } }
.scroll-hint { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: grid; justify-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.scroll-hint i { width: 22px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 2px currentColor; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--dot); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Il pallino che diventa la casa (scroll) ---------- */
.portal { height: 260vh; position: relative; background: var(--brown); }
.portal-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.portal-ring, .portal-fill { position: absolute; inset: 0; }
.portal-ring { background: var(--dot); clip-path: circle(var(--r2, 0px) at 50% 50%); }
.portal-fill { background: var(--bg); clip-path: circle(var(--r, 0px) at 50% 50%); }
.portal-copy { position: relative; text-align: center; padding: 0 var(--gutter); }
.portal-copy h2 { font-size: clamp(38px, 6.4vw, 92px); max-width: 15ch; margin: 0 auto; }
.portal-a { color: var(--cream); }
.portal-b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); will-change: transform; }
.portal-b h2 em { font-style: normal; color: var(--brown); }

/* ---------- Sezioni ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.sec-head h2 { font-size: clamp(36px, 5.4vw, 72px); }
.sec-head p { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 56ch; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.in .split-line > span, .split-line.in > span { transform: none; }

/* Mestieri: cerchio che si espande come nell'app */
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trades { grid-template-columns: minmax(0, 1fr); } }
.trade {
  --c: #ec7c0e; --hero: #aa4600; --t: #ffdcbd;
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg);
  background: var(--card); padding: 26px; min-height: 270px; display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; border: 0; text-align: left; font: inherit; color: var(--text);
  transition: color .45s var(--ease), transform .6s var(--ease);
}
.trade::before { content: ""; position: absolute; z-index: -1; left: 26px; top: 26px; width: 64px; height: 64px; border-radius: 50%; background: var(--hero);
  transform: scale(1); transform-origin: center; transition: transform .75s var(--sheet); }
.trade .bubble { width: 64px; height: 64px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 28px;
  transition: background .5s var(--ease), transform .7s var(--ease); }
.trade h3 { font-size: 30px; margin-top: auto; }
.trade p { color: var(--muted); font-size: 15.5px; transition: color .45s var(--ease); }
.trade .more { display: flex; gap: 8px; flex-wrap: wrap; max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .4s; }
.trade .chip { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; gap: 6px; }
.trade.open, .trade:hover { color: var(--cream); }
.trade.open::before, .trade:hover::before { transform: scale(14); }
.trade.open p, .trade:hover p { color: color-mix(in srgb, var(--cream) 85%, transparent); }
.trade.open .bubble, .trade:hover .bubble { background: rgba(255,255,255,.18); transform: rotate(-12deg) scale(1.06); }
.trade.open .more, .trade:hover .more { max-height: 80px; opacity: 1; }
@media (hover: none) { .trade:hover::before { transform: scale(1); } .trade:hover { color: var(--text); } .trade:hover .more { max-height: 0; opacity: 0; } .trade:hover p { color: var(--muted); } .trade:hover .bubble { background: var(--c); transform: none; }
  .trade.open::before { transform: scale(14); } .trade.open { color: var(--cream); } .trade.open .more { max-height: 80px; opacity: 1; } .trade.open p { color: color-mix(in srgb, var(--cream) 85%, transparent); } .trade.open .bubble { background: rgba(255,255,255,.18); } }

.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 980px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feats { grid-template-columns: minmax(0, 1fr); } }
.feat { background: var(--surface); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; }
.feat .ico { font-size: 26px; color: var(--brown); }
.feat h3 { font-size: 23px; }
.feat p { font-size: 15px; color: var(--muted); }

/* Nastro di parole */
.ribbon { background: var(--text); color: var(--cream); overflow: hidden; padding: 22px 0; transform: rotate(-2deg); margin: 0 -20px; position: relative; z-index: 2; }
.ribbon-track { display: flex; gap: 36px; white-space: nowrap; width: max-content; will-change: transform; font: 400 clamp(26px, 3.4vw, 42px)/1 'Caprasimo', Georgia, serif; }
.ribbon-track span { display: inline-flex; align-items: center; gap: 36px; }
.ribbon-track span::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--dot); }

/* ---------- Diagnosi (scuro, particelle) ---------- */
.diag { background: var(--night); color: var(--cream); height: 420vh; }
.diag-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.diag-stage diag-orb { position: absolute; inset: 0; }
.diag-grid { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 40px; padding-top: 72px; }
.diag-copy { display: grid; gap: 22px; text-shadow: 0 2px 24px rgba(14,12,11,.9); }
.diag-copy h2 { font-size: clamp(36px, 5vw, 70px); }
.diag-copy p { color: rgba(245,234,216,.7); font-size: 18px; max-width: 44ch; }
.diag-steps { display: flex; gap: 8px; }
.diag-steps i { height: 4px; flex: 1; max-width: 60px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; position: relative; }
.diag-steps i::after { content: ""; position: absolute; inset: 0; background: var(--fire); transform: scaleX(var(--p, 0)); transform-origin: left; }
.diag-card { background: rgba(20,17,15,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px; padding: 26px; min-height: 380px; position: relative; overflow: hidden; }
.dq { position: absolute; inset: 26px; display: grid; align-content: start; gap: 16px; opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease), transform .7s var(--ease); pointer-events: none; }
.dq.on { opacity: 1; transform: none; }
.dq.off { opacity: 0; transform: translateY(-24px); }
.dq small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--fire); }
.dq h3 { font-size: 27px; }
.opts { display: grid; gap: 10px; }
.opt { border-radius: 18px; padding: 15px 18px; background: rgba(255,255,255,.06); font-weight: 700; display: flex; align-items: center; justify-content: space-between; transition: background .4s, color .4s, transform .5s var(--ease); }
.opt.pick { background: var(--fire); color: #1a0d04; transform: scale(1.02); }
.photo { height: 150px; border-radius: 20px; background: linear-gradient(135deg, #2b2622, #171412); position: relative; overflow: hidden; display: grid; place-items: center; }
.photo .lcd { font: 700 34px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: #9fe6b0; letter-spacing: .08em; padding: 12px 18px; border-radius: 10px; background: #0b1a10; box-shadow: 0 0 30px rgba(111,208,135,.25); }
.photo::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; }
.dq.on .photo::after { animation: flash .9s ease .25s; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }
.ai { border-radius: 18px; padding: 15px 18px; background: rgba(255,107,0,.12); border: 1px solid rgba(255,107,0,.3); font-size: 15px; display: grid; gap: 4px; }
.ai b { color: var(--fire); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.wa { height: 56px; border-radius: 999px; background: #25d366; color: #052e12; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; }
.wa-msg { border-radius: 18px 18px 18px 6px; padding: 14px 16px; background: #1f2c22; font-size: 14.5px; color: #dfeee2; line-height: 1.45; }
@media (max-width: 860px) {
  .diag-grid { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 22px; padding-top: 80px; }
  .diag-copy h2 { font-size: 34px; }
  .diag-copy p { display: none; }
  .diag-card { min-height: 360px; }
}

/* ---------- Per i tecnici: telefono che si compila ---------- */
.pro { background: var(--bg); height: 480vh; }
.pro-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.pro-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 60px; padding-top: 72px; }
.pro-copy { position: relative; min-height: 320px; }
.pc { position: absolute; inset: 0 0 auto 0; display: grid; gap: 18px; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.pc.on { opacity: 1; transform: none; pointer-events: auto; }
.pc.off { opacity: 0; transform: translateY(-30px); }
.pc .num { font: 400 20px/1 'Caprasimo', Georgia, serif; color: var(--brown); display: flex; align-items: center; gap: 12px; }
.pc .num::after { content: ""; height: 2px; width: 60px; background: var(--line); }
.pc h2 { font-size: clamp(36px, 4.8vw, 66px); }
.pc p { color: var(--muted); font-size: 18px; max-width: 44ch; }

.phone { --w: min(330px, calc((100svh - 110px) / 2.05)); width: var(--w); height: calc(var(--w) * 2.05); border-radius: calc(var(--w) * .158); background: #1d1b1a; padding: calc(var(--w) * .033); box-shadow: 0 50px 100px -30px rgba(64,35,16,.45), 0 0 0 1px rgba(0,0,0,.2); position: relative; flex: none;
  transition: transform 1s var(--sheet); }
.phone[data-step="2"] { transform: rotate(-90deg) scale(.6); transition-delay: 1.5s; }
.screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .127); background: var(--bg); overflow: hidden; }
.island { position: absolute; z-index: 9; left: 50%; top: 3%; width: 30%; height: 4%; margin-left: -15%; border-radius: 20px; background: #000; }
/* Interfaccia disegnata a 308×654 e scalata col telefono (--k lo calcola main.js) */
.ui { position: absolute; left: 0; top: 0; width: 308px; height: 654px; transform-origin: 0 0; transform: scale(var(--k, 1)); font-size: 13px; color: var(--text); }
.scr { position: absolute; inset: 0; padding: 50px 16px 16px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .45s var(--ease); }
.scr.on { opacity: 1; }

.a-top { display: flex; align-items: center; gap: 11px; }
.a-back { width: 36px; height: 36px; border-radius: 50%; background: #eee7db; display: grid; place-items: center; font-size: 16px; flex: none; }
.a-tt { font: 400 17px/1.1 'Caprasimo', Georgia, serif; }
.a-ts { font-size: 11px; color: var(--muted); font-weight: 600; }
.a-hero { display: grid; justify-items: center; gap: 5px; text-align: center; padding: 2px 0; }
.a-mic { width: 80px; height: 80px; border-radius: 50%; background: var(--accent); color: var(--cream); display: grid; place-items: center; font-size: 30px; position: relative; }
.a-mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); z-index: -1; animation: ring 2.2s var(--ease) infinite; }
.a-h { font: 400 19px/1.1 'Caprasimo', Georgia, serif; margin-top: 4px; }
.a-s { font-size: 11.5px; color: var(--muted); line-height: 1.4; padding: 0 8px; }
.a-card { background: var(--surface); border-radius: 22px; padding: 12px 14px; display: grid; gap: 7px; }
.a-k { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.a-pick { display: flex; align-items: center; gap: 9px; background: var(--bg); border-radius: 999px; padding: 6px 12px 6px 6px; }
.a-ini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 400 14px/1 'Caprasimo', Georgia, serif; background: #ffe1d0; color: #8c491a; flex: none; }
.a-ini.q { background: var(--surface); color: var(--muted); }
.a-name { font-weight: 800; font-size: 12.5px; }
.a-addr { font-size: 10.5px; color: var(--muted); }
.a-badge { font-size: 9.5px; font-weight: 800; letter-spacing: 0; text-transform: none; padding: 3px 8px; border-radius: 999px; background: #ffe1d0; color: #643312; display: inline-flex; gap: 4px; align-items: center; }
.a-text { background: var(--bg); border-radius: 16px; padding: 9px 11px; font-size: 11.5px; line-height: 1.5; font-weight: 600; }
.a-text.ph { color: var(--muted); font-weight: 500; }
.a-mat { display: flex; gap: 6px; }
.a-mat span { background: var(--bg); border-radius: 12px; padding: 8px 10px; font-size: 11.5px; font-weight: 600; }
.a-mat span:first-child { flex: 1; }
.a-row { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 12.5px; }
.a-ctl { display: flex; align-items: center; gap: 9px; }
.a-ctl i { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 13px; font-style: normal; }
.a-ctl b { font: 400 15px/1 'Caprasimo', Georgia, serif; }
.a-rate { display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--bg); width: 104px; }
.a-rate b { font: 400 14px/1 'Caprasimo', Georgia, serif; }
.a-rate span { flex: 1; font-weight: 800; }
.a-rate small { font-size: 11px; color: var(--muted); }
.a-btn { height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 13px; background: var(--text); color: var(--cream); flex: none; }
.a-btn.acc { background: var(--accent); }
.a-btn.lite { background: var(--surface); color: var(--text); }
.a-small { font-size: 10.5px; line-height: 1.4; color: var(--muted); text-align: center; }

/* Dettatura a tutto schermo: il cerchio parte dal microfono */
.a-ov { position: absolute; inset: 0; z-index: 5; background: var(--accent); color: var(--cream); display: grid; justify-items: center; align-content: center; gap: 12px; padding: 30px 26px; text-align: center; clip-path: circle(0 at 50% 29%); }
.a-x { position: absolute; top: 50px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 17px; }
.a-big { width: 108px; height: 108px; border-radius: 50%; background: var(--bg); color: #8c491a; display: grid; place-items: center; font-size: 40px; position: relative; margin-bottom: 8px; }
.a-big .r { position: absolute; inset: 0; border-radius: 50%; background: var(--cream); opacity: .3; z-index: -1; animation: ring 2s var(--ease) infinite; }
.a-big .r + .r { animation-delay: .7s; }
.a-arc { position: absolute; inset: -9px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--cream); border-right-color: var(--cream); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-ovt { font: 400 24px/1.1 'Caprasimo', Georgia, serif; }
.a-ovs { font-size: 12.5px; color: #fff2eb; line-height: 1.45; min-height: 3.6em; }
.a-bars { display: flex; gap: 4px; height: 28px; align-items: center; }
.a-bars i { width: 4px; border-radius: 3px; background: #ffc6a5; height: 6px; animation: wv 1s ease-in-out infinite; animation-delay: calc(var(--j) * -110ms); }
@keyframes wv { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.a-dots { display: flex; gap: 6px; }
.a-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--cream); animation: dots 1.2s ease-in-out infinite; animation-delay: calc(var(--j) * 150ms); }
@keyframes dots { 0%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.a-wait { font-size: 12px; color: #fff2eb; font-weight: 700; margin-top: 8px; }
@keyframes ring { from { transform: scale(1); opacity: .4; } to { transform: scale(1.9); opacity: 0; } }
@keyframes ov-open { from { clip-path: circle(0 at 50% 29%); } to { clip-path: circle(150% at 50% 29%); } }
@keyframes ov-close { from { clip-path: circle(150% at 50% 29%); } to { clip-path: circle(0 at 50% 29%); } }
@keyframes press { 0%, 100% { transform: scale(1); } 50% { transform: scale(.88); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 1 · racconti */
.s1.on .a-mic { animation: press .35s ease .8s; }
.s1.on .a-ov { animation: ov-open .8s cubic-bezier(.3,.8,.2,1) 1s forwards; }
.s1 .a-live { opacity: 0; }
.s1.on .a-live { animation: fade-in .6s ease 2.6s forwards; }
.s1 .a-ovs.idle { position: absolute; }
/* 2 · l'IA compila */
.s2 .a-ov { clip-path: circle(150% at 50% 29%); }
.s2.on .a-ov { animation: ov-close .7s cubic-bezier(.3,.8,.2,1) 1.8s forwards; }
.s2 .a-fill { opacity: 0; }
.s2.on .a-fill { animation: rise-in .6s var(--ease) forwards; animation-delay: calc(2.3s + var(--i) * .18s); }
/* 3 · firma: prima il foglio, poi il telefono si gira */
.a-dim { position: absolute; inset: 0; z-index: 4; background: rgba(32,30,29,.38); opacity: 0; }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--bg); border-radius: 28px 28px 0 0; padding: 18px 16px 20px; display: grid; gap: 9px; justify-items: center; text-align: center; transform: translateY(105%); }
.a-sheet .gr { width: 36px; height: 4px; border-radius: 4px; background: #dcd3c4; margin-bottom: 4px; }
.a-sic { width: 48px; height: 48px; border-radius: 50%; background: #ffe1d0; color: #8c491a; display: grid; place-items: center; font-size: 22px; }
.a-sheet h4 { margin: 0; font: 400 19px/1.1 'Caprasimo', Georgia, serif; }
.a-sheet .a-btn { width: 100%; }
.s3.on .a-dim { animation: fade-in .4s ease .2s forwards, fade-out .3s ease 1.55s forwards; }
.s3.on .a-sheet { animation: sheet-up .55s cubic-bezier(.3,.8,.2,1) .25s forwards, fade-out .3s ease 1.55s forwards; }
.s3.on .a-sheet .a-btn.acc { animation: press .3s ease 1.2s; }
@keyframes sheet-up { to { transform: none; } }
.a-land { position: absolute; z-index: 6; left: 50%; top: 50%; width: 654px; height: 308px; margin: -154px 0 0 -327px; transform: rotate(90deg); background: var(--bg); display: flex; flex-direction: column; gap: 10px; padding: 16px 56px 16px 56px; opacity: 0; }
.s3.on .a-land { animation: fade-in .35s ease 1.6s forwards; }
.a-lh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.a-lh h4 { margin: 0; font: 400 19px/1.1 'Caprasimo', Georgia, serif; }
.a-lh span { display: flex; gap: 8px; }
.a-lh i { width: 34px; height: 34px; border-radius: 50%; background: #eee7db; display: grid; place-items: center; font-size: 15px; font-style: normal; }
.a-pad { flex: 1; border-radius: 22px; background: var(--card); border: 1.5px solid #dcd3c4; position: relative; overflow: hidden; display: grid; place-items: center; }
.a-pad .ln { position: absolute; left: 34px; right: 34px; bottom: 28%; height: 1.5px; background: #c0b6a5; }
.a-pad em { position: absolute; left: 34px; bottom: 14%; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.a-pad svg { width: 62%; overflow: visible; position: relative; top: -6%; }
.a-pad path { fill: none; stroke: var(--text); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s3.on .a-pad path { animation: draw 2.2s cubic-bezier(.6,.1,.3,1) 2.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.a-lf { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.a-lf .a-small { text-align: left; max-width: 300px; }
.a-lf .a-btn { padding: 0 24px; }
.s3.on .a-lf .a-btn { animation: press .35s ease 5.1s; }
/* 4 · PDF */
.a-pdf { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 16px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 -10px 40px -10px rgba(0,0,0,.25); display: grid; gap: 8px; transform: translateY(120%) rotate(-3deg); }
.s4.on .a-pdf { animation: pdf-up 1s var(--ease) 1.3s forwards; }
@keyframes pdf-up { to { transform: none; } }
.a-pdf .h { display: flex; justify-content: space-between; align-items: center; }
.a-pdf .h b { font: 400 15px/1 'Caprasimo', Georgia, serif; }
.a-pdf .h small { font-size: 9.5px; font-weight: 800; color: #82796a; }
.a-pdf .ln { height: 6px; border-radius: 4px; background: #eee7db; }
.a-pdf .sg { height: 38px; border-top: 1px dashed #dcd3c4; display: flex; align-items: flex-end; justify-content: space-between; }
.a-pdf .sg svg { height: 32px; width: auto; }
.a-pdf .sg path { fill: none; stroke: #201e1d; stroke-width: 3.4; stroke-linecap: round; }
.a-pdf .sg small { font-size: 9px; color: var(--muted); font-weight: 700; }
.a-pdf .foot { font-size: 9.5px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.a-pdf .foot i { width: 5px; height: 5px; border-radius: 50%; background: var(--dot); }

/* --- via di mezzo: pochi elementi, grandi --- */
.ui { width: 270px; height: 573px; font-size: 14px; }
.scr { padding: 46px 15px 15px; gap: 12px; }
.a-top { gap: 10px; }
.a-tt { font-size: 18px; }
.a-hero { padding: 26px 0 16px; gap: 8px; }
.a-mic { width: 96px; height: 96px; font-size: 36px; }
.a-h { font-size: 23px; }
.a-s { font-size: 13px; }
.a-card { padding: 14px; gap: 9px; border-radius: 24px; }
.a-k { font-size: 10.5px; }
.a-badge { font-size: 11px; padding: 4px 9px; }
.a-name { font-size: 15px; }
.a-addr { font-size: 12px; }
.a-ini { width: 38px; height: 38px; font-size: 17px; }
.a-pick { padding: 7px 14px 7px 7px; gap: 11px; }
.a-text { font-size: 14px; line-height: 1.45; padding: 11px 13px; border-radius: 18px; }
.a-row { font-size: 15px; }
.a-ctl b { font-size: 19px; }
.a-ctl i { width: 32px; height: 32px; font-size: 15px; }
.a-btn { height: 50px; font-size: 15px; }
.a-ov { gap: 14px; }
.a-big { width: 116px; height: 116px; font-size: 44px; }
.a-ovt { font-size: 28px; }
.a-ovs { font-size: 15px; }
.a-x { top: 44px; right: 14px; }
.a-sheet { gap: 11px; padding: 18px 15px 20px; }
.a-sheet h4 { font-size: 22px; margin-bottom: 4px; }
.a-sic { width: 54px; height: 54px; font-size: 25px; }
.a-land { width: 573px; height: 270px; margin: -135px 0 0 -286.5px; padding: 14px 48px; }
.a-lh h4 { font-size: 21px; }
.a-pad svg { width: 58%; }
.a-done { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-size: 30px; margin: 16px auto 0; transform: scale(0); }
.s4.on .a-done { animation: pop .7s var(--ease) .3s forwards; }
@keyframes pop { to { transform: none; } }
.s4 .a-h { margin-top: 2px; }
.a-pdf { position: relative; left: auto; right: auto; bottom: auto; margin-top: 6px; padding: 16px; gap: 9px; box-shadow: 0 24px 50px -18px rgba(64,35,16,.35); transform: translateY(60px) rotate(-4deg); opacity: 0; }
.s4.on .a-pdf { animation: pdf-up2 1s var(--ease) .7s forwards; }
@keyframes pdf-up2 { to { transform: rotate(-1.5deg); opacity: 1; } }
.a-pdf .h b { font-size: 18px; }
.a-pdf .pt { font-size: 12px; font-weight: 700; }
.a-pdf .sg { height: 46px; }
.a-pdf .sg svg { height: 40px; }
.s4 .a-btn { margin-top: auto; }

/* --- Timbratura --- */
.timb { background: var(--surface); height: 380vh; }
.t-head { background: #2e2b25; color: #f9f4ed; margin: -46px -15px 0; padding: 50px 18px 22px; display: grid; gap: 3px; }
.t-ditta { font-size: 11.5px; font-weight: 600; color: #c0b6a5; }
.t-hello { font: 400 27px/1.1 'Caprasimo', Georgia, serif; }
.t-punch { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.t-btn { width: 88px; height: 88px; border-radius: 50%; background: #ec7c0e; color: #f9f4ed; display: grid; place-items: center; font-size: 34px; flex: none; position: relative; }
.t-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: ring 2.2s var(--ease) infinite; }
.t-btn.on { background: #728157; }
.t-k { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c0b6a5; }
.t-pt { font: 400 24px/1.1 'Caprasimo', Georgia, serif; margin-top: 3px; }
.t-ps { font-size: 12px; font-weight: 600; color: #fcc494; margin-top: 3px; }
.t-body { display: grid; gap: 12px; margin-top: 6px; }
.t-create { background: #8c491a; color: #f9f4ed; border-radius: 28px; padding: 16px; display: flex; align-items: center; gap: 14px; overflow: hidden; position: relative; }
.t-create::before { content: ""; position: absolute; right: -50px; top: -70px; width: 160px; height: 160px; border-radius: 50%; background: #b2622d; }
.t-cmic { width: 58px; height: 58px; border-radius: 50%; background: #f9f4ed; color: #8c491a; display: grid; place-items: center; font-size: 24px; position: relative; flex: none; }
.t-create > div { position: relative; }
.t-ck { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffe1d0; }
.t-ct { font: 400 20px/1.1 'Caprasimo', Georgia, serif; margin-top: 2px; }
.t-week { display: flex; align-items: center; gap: 8px; background: #e1eecc; color: #3d472b; border-radius: 18px; padding: 13px 14px; font-size: 13.5px; font-weight: 600; }
.t1.on .t-btn { animation: press .35s ease 1.4s; }
.t-dim { position: absolute; inset: 0; z-index: 4; background: rgba(46,43,37,.5); opacity: 0; }
.t-dlg { position: absolute; z-index: 5; left: 14px; right: 14px; top: 120px; background: var(--bg); border-radius: 30px; padding: 46px 18px 12px; display: grid; gap: 6px; justify-items: center; text-align: center; opacity: 0; transform: scale(.9); }
.t-dic { position: absolute; top: -28px; left: 50%; margin-left: -28px; width: 56px; height: 56px; border-radius: 50%; background: #ec7c0e; color: #f9f4ed; display: grid; place-items: center; font-size: 24px; box-shadow: 0 0 0 4px var(--bg); }
.t-dlg h4 { margin: 0; font: 400 20px/1.15 'Caprasimo', Georgia, serif; }
.t-time { font: 400 44px/1 'Caprasimo', Georgia, serif; margin: 4px 0; }
.t-txt { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.t-dlg .a-btn { width: 100%; margin-top: 6px; }
.t-cancel { font-weight: 800; font-size: 13.5px; padding: 8px; }
.t-server { font-size: 10.5px; color: var(--muted); }
.t-after { position: absolute; inset: 0; z-index: 6; padding: 46px 15px 15px; opacity: 0; pointer-events: none; }
.t-after .t-head { margin-bottom: 0; }
.t2.on .t-dim { animation: fade-in .35s ease .2s forwards, fade-out .3s ease 2.6s forwards; }
.t2.on .t-dlg { animation: dlg-in .5s var(--ease) .25s forwards, fade-out .3s ease 2.6s forwards; }
.t2.on .t-dlg .a-btn { animation: press .35s ease 2.1s; }
.t2.on .t-after { animation: fade-in .4s ease 2.75s forwards; }
.t2.on .t-after .t-btn { animation: pop-g .8s var(--ease) 2.8s both; }
@keyframes dlg-in { to { opacity: 1; transform: none; } }
@keyframes pop-g { from { transform: scale(.6); } to { transform: none; } }
.t-sq { font: 400 30px/1.1 'Caprasimo', Georgia, serif; margin-top: 8px; }
.t-sqs { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.t-mem { background: var(--card); border-radius: 22px; padding: 13px; display: flex; gap: 12px; align-items: center; }
.t-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 400 19px/1 'Caprasimo', Georgia, serif; flex: none; }
.t-mi { flex: 1; min-width: 0; display: grid; gap: 4px; }
.t-mn { font-weight: 800; font-size: 15px; }
.t-ms { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.t-ms .live { width: 8px; height: 8px; border-radius: 50%; background: #6fd087; box-shadow: 0 0 0 0 rgba(111,208,135,.6); animation: live 1.8s infinite; }
.t-bar { height: 7px; border-radius: 7px; background: var(--surface); overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 0; border-radius: 7px; background: #728157; transition: width 1.4s var(--ease) 1s; }
.t3.on .t-bar i { width: var(--w); }
.t3 .a-fill { opacity: 0; }
.t3.on .a-fill { animation: rise-in .6s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * .15s); }
.t-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 6px 4px; }
.t-note .ico { color: var(--dot); font-size: 16px; }

@media (max-width: 860px) {
  .pro-grid { grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 18px; padding-top: 76px; }
  .pro-copy { order: 2; min-height: 150px; width: 100%; }
  .pc { text-align: center; justify-items: center; gap: 10px; }
  .pc h2 { font-size: 30px; }
  .pc p { font-size: 15px; }
  .pc .num { display: none; }
  .phone { --w: min(250px, 58vw, calc((100svh - 260px) / 2.05)); }
}
@media (max-height: 700px) and (max-width: 860px) { .pro-copy { min-height: 120px; } .pc p { display: none; } }

/* ---------- Squadra ---------- */
.team { background: var(--text); color: var(--cream); overflow: hidden; }
.team .sec-head p { color: rgba(245,234,216,.65); }
.team-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }
.tcard { border-radius: var(--r-lg); padding: 28px; background: #2e2b25; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.tcard h3 { font-size: 26px; }
.tcard p { color: rgba(245,234,216,.65); font-size: 15.5px; }
.clock { font: 400 clamp(64px, 8vw, 104px)/1 'Caprasimo', Georgia, serif; color: var(--cream); display: flex; align-items: baseline; gap: 4px; }
.clock .colon { animation: blink 1s steps(1) infinite; color: var(--dot); }
@keyframes blink { 50% { opacity: 0; } }
.clock-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #6fd087; }
.clock-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6fd087; box-shadow: 0 0 0 0 rgba(111,208,135,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(111,208,135,0); } 100% { box-shadow: 0 0 0 0 rgba(111,208,135,0); } }
.price-hide { display: grid; gap: 8px; }
.price-hide div { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); font-weight: 700; font-size: 14.5px; }
.price-hide em { font-style: normal; filter: blur(7px); transition: filter .6s var(--ease); user-select: none; }
.tcard:hover .price-hide em { filter: blur(9px); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal i { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.06); }
.cal i.f { background: var(--sage); }
.cal i.p { background: var(--accent); }

/* ---------- Prezzi ---------- */
.prices { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 980px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.plan { border-radius: 32px; padding: 30px; background: var(--card); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.plan h3 { font-size: 26px; }
.plan .amt { font: 400 clamp(46px, 4.4vw, 64px)/1 'Caprasimo', Georgia, serif; display: flex; align-items: flex-start; gap: 8px; white-space: nowrap; flex-wrap: wrap; }
.plan .amt small { white-space: normal; }
.plan .amt small { font: 700 16px/1.3 'Figtree', sans-serif; margin-top: 10px; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { color: var(--sage); font-size: 18px; margin-top: 3px; }
.plan.star { background: var(--brown); color: var(--cream); transform: translateY(-14px); }
.plan.star .amt small, .plan.star p { color: rgba(245,234,216,.75); }
.plan.star li .ico { color: var(--dot); }
.plan .badge { align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: var(--dot); color: var(--text); font-size: 12.5px; font-weight: 800; }
.plan .old { text-decoration: line-through; opacity: .55; font-size: 22px; margin-right: 6px; }
.seats { display: grid; gap: 8px; }
.seats-bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.14); overflow: hidden; }
.seats-bar i { display: block; height: 100%; width: 0; background: var(--dot); border-radius: 10px; transition: width 1.6s var(--ease); }
.in .seats-bar i { width: var(--w); }
.seats small { font-size: 13px; font-weight: 700; color: rgba(245,234,216,.75); }
.plan .btn { margin-top: auto; }
.price-note { margin-top: 26px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* ---------- Chiusura ---------- */
.final { background: var(--brown); color: var(--cream); text-align: center; overflow: hidden; }
.final .wrap { display: grid; justify-items: center; gap: 28px; }
.big-h { font: 400 clamp(160px, 26vw, 340px)/.8 'Caprasimo', Georgia, serif; position: relative; display: inline-flex; align-items: flex-start; user-select: none; }
.big-h i { width: .178em; height: .178em; border-radius: 50%; background: var(--dot); margin: .25em 0 0 -.143em; display: grid; place-items: center; cursor: grab; transition: transform 1.4s var(--ease); }
.big-h i::before { content: ""; width: 58%; height: 12%; border-radius: 4px; background: var(--brown); }
.big-h:hover i { transform: rotate(-720deg); }
.final h2 { font-size: clamp(34px, 5vw, 64px); max-width: 16ch; }
.final p { color: rgba(245,234,216,.75); max-width: 50ch; font-size: 18px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgba(245,234,216,.35); font-weight: 700; font-size: 14px; color: rgba(245,234,216,.8); }
.store b { display: block; font-size: 16px; color: var(--cream); }

/* ---------- Piede ---------- */
footer { background: var(--text); color: rgba(245,234,216,.7); padding: 46px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; font-weight: 700; color: var(--cream); }
footer a:hover { color: var(--dot); }
footer .mark { color: var(--cream); font-size: 26px; }

/* ---------- Pallino che segue il mouse ---------- */
.cursor { position: fixed; z-index: 100; left: 0; top: 0; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--dot); pointer-events: none; mix-blend-mode: multiply;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor.big { width: 54px; height: 54px; margin: -27px; opacity: .35; }
.cursor.dark { mix-blend-mode: normal; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Pagine interne ---------- */
.page-hero { background: var(--brown); color: var(--cream); padding: calc(140px + env(safe-area-inset-top, 0px)) 0 80px; position: relative; overflow: hidden; clip-path: circle(0 at calc(100% - 60px) 36px); animation: open 1.1s var(--sheet) .05s forwards; }
@keyframes open { to { clip-path: circle(150% at calc(100% - 60px) 36px); } }
.page-hero h1 { font-size: clamp(46px, 7vw, 96px); }
.page-hero p { margin-top: 18px; font-size: 19px; color: rgba(245,234,216,.78); max-width: 52ch; }
.page-hero .eyebrow { margin-bottom: 22px; }
.doc { padding: 70px 0 110px; }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 60px; align-items: start; }
@media (max-width: 900px) { .doc .wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; } .toc { display: none; } }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: 14.5px; font-weight: 700; }
.toc a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: background .3s, color .3s; }
.toc a.on { background: var(--surface); color: var(--text); }
.prose { max-width: 70ch; display: grid; gap: 18px; }
.prose h2 { font-size: 32px; margin-top: 30px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3b3732; }
.prose ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.todo { background: #ffe1d0; color: #8c491a; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.note { border-radius: 20px; background: var(--surface); padding: 18px 20px; font-size: 15px; }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.ccard { border-radius: var(--r-lg); padding: 26px; background: var(--card); display: grid; gap: 12px; align-content: start; }
.ccard .ico { font-size: 28px; color: var(--brown); }
.ccard h3 { font-size: 24px; }
.ccard p { color: var(--muted); font-size: 15.5px; }
.ccard .addr { font-weight: 800; font-size: 18px; user-select: all; word-break: break-all; }
.copy { justify-self: start; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); font: 700 14px/1 'Figtree', sans-serif; cursor: pointer; color: var(--text); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 22px; background: var(--card); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--brown); transition: background .4s var(--ease), transform .5s var(--ease); }
.faq details[open] summary::after { background: var(--dot); box-shadow: none; transform: scale(1.3); }
.faq .ans { padding: 0 22px 22px; color: #3b3732; display: grid; gap: 10px; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--card); border-radius: 22px; padding: 20px; }
.step::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; background: var(--brown); color: var(--cream); display: grid; place-items: center; font: 400 22px/1 'Caprasimo', Georgia, serif; }
.step h3 { font-size: 22px; margin-bottom: 4px; }
.step p { color: var(--muted); }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero h1 .w > span, .fade-late, .reveal, .split-line > span { transform: none !important; opacity: 1 !important; }
  .page-hero { clip-path: none; }
}

/* Telefono: carte dei mestieri più basse, niente «scorri» sopra i pulsanti */
@media (max-width: 600px) {
  .scroll-hint { display: none; }
  .hero .ctas .btn { width: 100%; max-width: 320px; }
}
@media (max-width: 520px) {
  .trade { min-height: 0; padding: 20px; gap: 10px; }
  .trade::before { left: 20px; top: 20px; width: 52px; height: 52px; }
  .trade .bubble { width: 52px; height: 52px; font-size: 23px; }
  .trade h3 { font-size: 26px; margin-top: 8px; }
}

/* Indice delle pagine lunghe: solo su schermi larghi */
@media (max-width: 900px) { .toc { display: none; } }

/* --- quadro elettrico (foto della diagnosi) --- */
.quadro { display: flex; gap: 7px; padding: 16px 16px 14px; border-radius: 12px; background: #ebe6de; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.4); }
.quadro i { width: 26px; height: 62px; border-radius: 5px; background: #fff; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.quadro i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 18px; border-radius: 3px; background: #3a3734; }
.quadro i.down { box-shadow: 0 0 0 3px var(--fire), 0 0 22px rgba(255,107,0,.7); }
.quadro i.down::after { top: auto; bottom: 8px; background: #2a6fdb; }
