:root {
  --bg: #08080a; --bg2: #0e0e11; --ink: #f3efe6; --muted: #a29d92; --line: #26262b;
  --gold: #d4af5a; --gold2: #f2d58f; --gold3: #8a6a1f;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.progress { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold3), var(--gold2)); }

/* barra */
.top { position: fixed; z-index: 50; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 44px);
  background: linear-gradient(#08080ae6, #08080a00); backdrop-filter: blur(2px); }
.logo { font: 400 22px/1 var(--serif); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.logo b { color: var(--gold); font-weight: 700; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); }
.top nav a { text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fffc; transition: color .2s; }
.top nav a:hover { color: var(--gold2); }
.top nav .nav-cta { border: 1px solid var(--gold); padding: 8px 16px; border-radius: 99px; color: var(--gold2); }
.top nav .nav-cta:hover { background: var(--gold); color: #000; }
@media (max-width: 820px) { .top nav a:not(.nav-cta) { display: none; } }

/* hero */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; touch-action: pan-y;
  background: radial-gradient(ellipse at 50% 38%, #1a1508 0%, var(--bg) 62%); }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: translate3d(0, calc(var(--hp, 0) * 90px), 0) scale(calc(1 - var(--hp, 0) * .06)); opacity: calc(1 - var(--hp, 0) * 1.1); will-change: transform, opacity; }
.hero-copy { transform: translate3d(0, calc(var(--hp, 0) * -40px), 0); opacity: calc(1 - var(--hp, 0) * 1.6); position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(56px, 11vh, 110px); text-align: center; padding: 0 20px; pointer-events: none; }
.hero-copy .cta { pointer-events: auto; }
.kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.lead { margin: 0 auto 26px; max-width: 30ch; font: 400 clamp(22px, 3.2vw, 36px)/1.25 var(--serif); }
.lead em { color: var(--gold2); font-style: italic; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact .cta { justify-content: flex-start; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 99px; border: 1.5px solid var(--gold); background: var(--gold); color: #0a0a0a; font: 700 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; will-change: transform; }
.btn span { display: inline-block; pointer-events: none; will-change: transform; }
.btn:hover { background: var(--gold2); border-color: var(--gold2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #ffffff40; }
.btn.ghost:hover { background: #ffffff14; border-color: #fff; }
.hint { position: absolute; z-index: 2; right: clamp(16px, 4vw, 44px); top: 84px; margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff8; pointer-events: none; transition: opacity .8s; }
.hint i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; }
.hero.touched .hint { opacity: 0; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 #d4af5a99; } 50% { box-shadow: 0 0 0 9px #d4af5a00; } }
@media (max-width: 820px) { .hint { display: none; } }

/* sezioni */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section.alt { background: var(--bg2); }
.wrap { width: min(1180px, 100% - clamp(32px, 8vw, 88px)); margin: 0 auto; }
.section h2 { margin: 0 0 18px; font: 400 clamp(38px, 6.4vw, 78px)/1.02 var(--serif); letter-spacing: -.01em; }
.sub { margin: 0 0 44px; max-width: 62ch; color: var(--muted); }
.fineprint { margin: 30px 0 0; font-size: 14px; color: var(--muted); max-width: 70ch; }

/* comparsa allo scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
.ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.in .ch { opacity: 1; transform: none; }
.wd { display: inline-block; white-space: nowrap; }
.sp { display: inline-block; width: .28em; }

/* percorsi */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; margin-top: 40px; }
.card { position: relative; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, #141418, #0c0c0f); transform-style: preserve-3d; }
.card .num { font: 400 15px var(--serif); color: var(--gold); letter-spacing: .1em; }
.card h3 { margin: 10px 0 12px; font: 400 32px/1.1 var(--serif); }
.card p { margin: 0 0 16px; color: #cfcac0; font-size: 16px; }
.tick { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 7px; font-size: 15px; color: var(--muted); }
.tick li { padding-left: 24px; position: relative; }
.tick li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg) scale(.9); }
.more { color: var(--gold2); text-decoration: none; font-weight: 700; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* luce che segue il mouse + inclinazione */
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), #d4af5a2b, transparent 60%); }
.spot:hover::after { opacity: 1; }
.tilt { transition: transform .25s var(--ease), border-color .25s; will-change: transform; }
.tilt:hover { border-color: #d4af5a66; }

/* fascia scorrevole */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: #0b0b0e; }
.marquee div { display: flex; gap: 48px; width: max-content; animation: slide 32s linear infinite; font: 400 clamp(24px, 4vw, 44px)/1 var(--serif); color: #ffffff30; text-transform: uppercase; letter-spacing: .04em; }
.marquee span::after { content: "✦"; margin-left: 48px; color: var(--gold3); }
@keyframes slide { to { transform: translateX(-50%); } }

/* prima e dopo */
.ba { position: relative; aspect-ratio: 16 / 10; max-width: 980px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); container-type: inline-size; user-select: none; }
.ba-page { position: absolute; inset: 0; overflow: hidden; }
.ba-old { background: #fff; color: #000; font-family: "Times New Roman", Times, serif; padding: 2cqw 3cqw; font-size: 2.1cqw; line-height: 1.35; }
.ba-old .o-bar { background: #d4d0c8; border: 1px solid #888; padding: .4cqw 1cqw; font: 1.6cqw Arial, sans-serif; margin: -2cqw -3cqw 1.6cqw; color: #333; }
.ba-old h4 { margin: .5cqw 0; text-align: center; font-size: 4.2cqw; color: #c00; text-shadow: .2cqw .2cqw #ffd400; }
.ba-old marquee-fake { display: block; text-align: center; color: #00c; font-weight: bold; margin-bottom: 1cqw; }
.ba-old table { width: 100%; border: 1px solid #00c; margin-bottom: 1.2cqw; background: #eef; }
.ba-old td { text-align: center; color: #00c; padding: .5cqw; border: 1px solid #99c; }
.ba-old p { margin: 0 0 1cqw; max-width: 60%; }
.ba-old .o-img { position: absolute; right: 3cqw; bottom: 3cqw; width: 28cqw; height: 18cqw; background: #ddd; border: 2px inset #999; display: grid; place-items: center; font: 1.8cqw Arial, sans-serif; color: #666; }
.ba-new { clip-path: inset(0 0 0 var(--p)); background: radial-gradient(ellipse at 70% 20%, #231b09, #0a0a0c 70%); color: var(--ink); font-family: var(--sans); padding: 2.4cqw 3.4cqw; }
.n-top { display: flex; gap: 3cqw; align-items: center; font-size: 1.7cqw; color: var(--muted); }
.n-top b { margin-right: auto; font: 700 2.6cqw var(--serif); color: var(--gold2); }
.n-hero { margin-top: 6cqw; max-width: 55%; }
.n-hero small { letter-spacing: .24em; font-size: 1.4cqw; color: var(--gold); }
.n-hero h4 { margin: 1.4cqw 0; font: 400 6.4cqw/1.02 var(--serif); }
.n-hero p { margin: 0 0 2.2cqw; font-size: 2cqw; color: #cfcac0; }
.n-btn { display: inline-block; padding: 1.2cqw 3cqw; border-radius: 99px; background: var(--gold); color: #0a0a0a; font-weight: 700; font-size: 1.6cqw; letter-spacing: .08em; text-transform: uppercase; }
.n-row { position: absolute; right: 3.4cqw; bottom: 3cqw; display: flex; gap: 1.2cqw; }
.n-row i { width: 11cqw; height: 15cqw; border-radius: 1.6cqw; background: linear-gradient(160deg, #3a2d10, #15110a); border: 1px solid #d4af5a55; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.ba-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: var(--gold2); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); box-shadow: 0 4px 20px #000a; }
.ba-handle i::before, .ba-handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; transform: translateY(-50%); }
.ba-handle i::before { left: 8px; border-right-color: #111; border-left: 0; }
.ba-handle i::after { right: 8px; border-left-color: #111; border-right: 0; }
.ba:focus-within .ba-handle i { outline: 2px solid #fff; outline-offset: 3px; }
.ba-tag { position: absolute; z-index: 3; bottom: 12px; padding: 4px 12px; border-radius: 99px; background: #000b; color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }

/* configuratore */
.conf { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 28px; align-items: start; }
.conf-ctl { display: grid; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
legend { padding: 0; margin-bottom: 8px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
fieldset label { cursor: pointer; display: block; }
fieldset input { position: absolute; opacity: 0; }
fieldset span { display: block; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
fieldset label:hover span { border-color: #d4af5a80; }
fieldset input:checked + span { border-color: var(--gold); background: #d4af5a1a; }
fieldset input:focus-visible + span { outline: 2px solid var(--gold2); outline-offset: 2px; }
.preview { --pbg: #0b0b0d; --pfg: #f3efe6; --pac: #d4af5a; --pfont: var(--serif); --pdur: 6s; position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--pbg); color: var(--pfg); padding: 18px 24px; transition: background .5s, color .5s; container-type: inline-size; }
.preview[data-mood="luminoso"] { --pbg: #f6f3ee; --pfg: #1b1b1d; --pac: #2f6f5e; }
.preview[data-mood="audace"] { --pbg: #17153b; --pfg: #ffffff; --pac: #ff5d73; }
.preview[data-font="sans"] { --pfont: var(--sans); }
.preview[data-font="tech"] { --pfont: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.preview[data-motion="vivace"] { --pdur: 1.6s; }
.pv-nav { display: flex; gap: 3cqw; align-items: center; font: 1.9cqw var(--pfont); opacity: .85; }
.pv-nav b { margin-right: auto; color: var(--pac); font-size: 2.6cqw; }
.pv-hero { position: relative; margin-top: 8cqw; max-width: 56%; font-family: var(--pfont); }
.pv-hero h4 { margin: 0 0 1.4cqw; font: 700 6.2cqw/1.04 var(--pfont); }
.pv-hero p { margin: 0 0 2.4cqw; font-size: 2.1cqw; opacity: .8; }
.pv-btn { display: inline-block; padding: 1.2cqw 3cqw; border-radius: 99px; background: var(--pac); color: var(--pbg); font: 700 1.8cqw var(--pfont); transition: background .5s, color .5s; }
.pv-orb { position: absolute; right: -52%; top: -30%; width: 38cqw; height: 38cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--pac), transparent 68%); opacity: .85; animation: orb var(--pdur) ease-in-out infinite alternate; }
.preview[data-mood="audace"] .pv-orb { border-radius: 38% 62% 55% 45%; }
.preview[data-motion="nessuno"] .pv-orb { animation: none; }
@keyframes orb { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3cqw, 4cqw) scale(1.12); } }
.conf-sum { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.conf-sum b { color: var(--gold2); font-weight: 600; }
@media (max-width: 820px) { .conf { grid-template-columns: 1fr; } .conf-view { order: -1; position: sticky; top: 62px; z-index: 6; padding: 10px 0 6px; background: var(--bg2); } .conf-sum { font-size: 13px; margin-top: 8px; } }

/* contatti */
.contact-box { margin-top: 10px; }
.path-note { margin: 0 0 16px; padding: 10px 16px; display: inline-block; border: 1px solid #d4af5a66; border-radius: 99px; color: var(--gold2); font-size: 15px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px clamp(16px, 4vw, 44px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .ch { opacity: 1 !important; transform: none !important; }
  .marquee div { transform: none; }
}

/* ---------- cursore ad anello (solo con mouse) ---------- */
.ring { position: fixed; z-index: 90; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid #d4af5a99; border-radius: 50%; pointer-events: none; opacity: 0; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, opacity .3s, border-color .25s; will-change: transform; }
.ring.on { opacity: 1; }
.ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #d4af5a1c; border-color: var(--gold2); }
@media (hover: none), (pointer: coarse) { .ring { display: none; } }

/* ---------- Come lavoro: la pagina si trasforma mentre scorri ---------- */
.site { position: relative; width: min(560px, 100%); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; container-type: inline-size; border: 1px solid #ffffff22; padding: 3cqw 4cqw;
  background: #fff; color: #000; font-family: "Times New Roman", Times, serif; font-size: 2.6cqw; transition: background .7s var(--ease), color .7s var(--ease), box-shadow .7s, border-radius .7s; box-shadow: 0 30px 80px #0008; }
.site > * { transition: all .7s var(--ease); }
.s-bar { margin: -3cqw -4cqw 2.4cqw; padding: .8cqw 2cqw; background: #d4d0c8; border-bottom: 1px solid #888; font: 2cqw Arial, sans-serif; color: #333; }
.s-head { display: flex; gap: 3cqw; font-size: 2.4cqw; color: #00c; text-decoration: underline; }
.s-head b { margin-right: auto; text-decoration: none; color: inherit; }
.s-title { margin: 3cqw 0 1.6cqw; font-size: 7cqw; line-height: 1; color: #c00; text-shadow: .3cqw .3cqw #ffd400; text-align: center; }
.s-text { margin: 0; text-align: center; font-size: 2.8cqw; }
.s-cards { display: flex; gap: 2cqw; margin-top: 3cqw; justify-content: center; opacity: 0; transform: translateY(2cqw); height: 0; }
.s-cards i { width: 15cqw; height: 15cqw; border-radius: 2cqw; background: #e2dfd8; }
.s-btn { position: absolute; left: 4cqw; bottom: 4cqw; padding: 1.4cqw 3.6cqw; border-radius: .6cqw; background: #ccc; color: #666; font: 700 2.4cqw Arial, sans-serif; opacity: 0; transform: translateY(2cqw); }
.s-flag { position: absolute; padding: .8cqw 2cqw; border-radius: 99px; background: #e53935; color: #fff; font: 700 2.2cqw Arial, sans-serif; opacity: 0; transform: scale(.7); white-space: nowrap; box-shadow: 0 .6cqw 2cqw #0005; }
.s-flag.f1 { right: 3cqw; top: 18cqw; } .s-flag.f2 { left: 3cqw; top: 34cqw; } .s-flag.f3 { right: 6cqw; bottom: 8cqw; }
.s-ok { position: absolute; padding: .8cqw 2cqw; border-radius: 99px; background: #1f8a5b; color: #fff; font: 700 2.2cqw Arial, sans-serif; opacity: 0; transform: scale(.7); white-space: nowrap; }
.s-ok.k1 { right: 4cqw; top: 14cqw; } .s-ok.k2 { right: 4cqw; bottom: 4cqw; } .s-ok.k3 { right: 25cqw; bottom: 4cqw; }

/* passo 1: segno i difetti */
.site[data-step="0"] .s-flag { opacity: 1; transform: none; }
.site[data-step="0"] .s-flag.f2 { transition-delay: .15s; } .site[data-step="0"] .s-flag.f3 { transition-delay: .3s; }
/* passo 2: riordino */
.site[data-step="1"], .site[data-step="2"], .site[data-step="3"] { font-family: var(--sans); }
.site[data-step="1"] { background: #f1efe9; }
.site[data-step="1"] .s-bar { opacity: 0; height: 0; margin-bottom: 0; padding: 0; }
.site[data-step="1"] .s-head { color: #333; text-decoration: none; }
.site[data-step="1"] .s-title { color: #222; text-shadow: none; text-align: left; font-size: 6cqw; font-weight: 700; }
.site[data-step="1"] .s-text { text-align: left; max-width: 70%; color: #444; }
.site[data-step="1"] .s-cards { opacity: 1; transform: none; height: 15cqw; justify-content: flex-start; }
.site[data-step="1"] .s-btn { opacity: 1; transform: none; }
/* passo 3: stile */
.site[data-step="2"], .site[data-step="3"] { background: radial-gradient(ellipse at 80% 0%, #2a210c, #0a0a0c 65%); color: var(--ink); border-color: #d4af5a55; border-radius: 22px; }
.site[data-step="2"] .s-bar, .site[data-step="3"] .s-bar { opacity: 0; height: 0; margin-bottom: 0; padding: 0; }
.site[data-step="2"] .s-head, .site[data-step="3"] .s-head { color: var(--muted); text-decoration: none; }
.site[data-step="2"] .s-head b, .site[data-step="3"] .s-head b { color: var(--gold2); font-family: var(--serif); font-size: 3.4cqw; }
.site[data-step="2"] .s-title, .site[data-step="3"] .s-title { color: var(--ink); text-shadow: none; text-align: left; font: 400 8.6cqw/1 var(--serif); margin-top: 7cqw; max-width: 60%; }
.site[data-step="2"] .s-text, .site[data-step="3"] .s-text { text-align: left; max-width: 52%; color: #cfcac0; }
.site[data-step="2"] .s-cards, .site[data-step="3"] .s-cards { opacity: 1; transform: none; height: 15cqw; justify-content: flex-end; position: absolute; right: 4cqw; bottom: 4cqw; margin: 0; }
.site[data-step="2"] .s-cards i, .site[data-step="3"] .s-cards i { background: linear-gradient(160deg, #3a2d10, #15110a); border: 1px solid #d4af5a55; }
.site[data-step="2"] .s-btn, .site[data-step="3"] .s-btn { opacity: 1; transform: none; background: var(--gold); color: #0a0a0a; border-radius: 99px; bottom: auto; top: 50cqw; }
/* passo 4: controllo */
.site[data-step="3"] { box-shadow: 0 30px 90px #000a, 0 0 0 1px #d4af5a66, 0 0 60px #d4af5a22; }
.site[data-step="3"] .s-ok { opacity: 1; transform: none; }
.site[data-step="3"] .s-ok.k2 { transition-delay: .15s; } .site[data-step="3"] .s-ok.k3 { transition-delay: .3s; }
.site.pop { animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.985); } 60% { transform: scale(1.012); } 100% { transform: none; } }

/* sfondi che respirano piano nelle sezioni scure */
#laboratorio, #stile { position: relative; overflow: hidden; }
#laboratorio::before, #stile::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -18vw; top: -12vw; border-radius: 50%; background: radial-gradient(circle, #d4af5a1c, transparent 65%); animation: breathe 14s ease-in-out infinite alternate; pointer-events: none; }
#stile::before { right: auto; left: -20vw; top: auto; bottom: -22vw; animation-delay: -6s; }
#laboratorio .wrap, #stile .wrap { position: relative; }
@keyframes breathe { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4vw, 3vw, 0) scale(1.18); } }

/* campioni di colore nel configuratore */
fieldset input[value="elegante"] + span::before, fieldset input[value="luminoso"] + span::before, fieldset input[value="audace"] + span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%; vertical-align: -2px; border: 1px solid #ffffff55; }
fieldset input[value="elegante"] + span::before { background: linear-gradient(135deg, #0b0b0d 50%, #d4af5a 50%); }
fieldset input[value="luminoso"] + span::before { background: linear-gradient(135deg, #f6f3ee 50%, #2f6f5e 50%); }
fieldset input[value="audace"] + span::before { background: linear-gradient(135deg, #17153b 50%, #ff5d73 50%); }
fieldset input[value="serif"] + span { font-family: var(--serif); } fieldset input[value="tech"] + span { font-family: ui-monospace, Menlo, Consolas, monospace; }
.path-note[hidden] { display: none; }

/* ---------- Come lavoro: quattro mosse da cliccare ---------- */
.method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 60px); align-items: center; margin-top: 36px; }
.method-steps { display: grid; gap: 10px; }
.method-steps button { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; text-align: left; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #0c0c0f; color: var(--ink); cursor: pointer; overflow: hidden; transition: border-color .35s, background .35s, transform .35s var(--ease); font: inherit; }
.method-steps button:hover { border-color: #d4af5a66; transform: translateX(4px); }
.method-steps i { grid-row: 1 / 3; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font: 400 20px var(--serif); font-style: normal; color: var(--muted); transition: all .35s; }
.method-steps b { font: 400 22px var(--serif); } .method-steps span { color: var(--muted); font-size: 15px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.method-steps button.on { border-color: var(--gold); background: linear-gradient(160deg, #1a1508, #0c0c0f); }
.method-steps button.on i { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
.method-steps button.on span { max-height: 90px; opacity: 1; }
.method-steps .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--gold3), var(--gold2)); transform: scaleX(0); transform-origin: 0 50%; }
.method.play .method-steps button.on .bar { animation: fill 4.6s linear forwards; } @keyframes fill { to { transform: scaleX(1); } }
.method.paused .method-steps button.on .bar { animation: none; transform: scaleX(1); opacity: .35; }
.site-wrap { display: grid; gap: 12px; justify-items: center; }
.method-nav { display: flex; gap: 10px; }
.method-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #d4af5a66; background: transparent; color: var(--gold2); font: 18px var(--sans); cursor: pointer; transition: all .25s; } .method-nav button:hover { background: var(--gold); color: #0a0a0a; }
.site-cap { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } .method-steps { grid-template-columns: 1fr 1fr; } .method-steps button { grid-template-columns: 1fr; padding: 12px; } .method-steps i { display: none; } .method-steps span { display: none; } .method-steps b { font-size: 17px; } .site-wrap { order: -1; } }

/* ---------- comparse diverse ---------- */
[data-reveal="left"] { transform: translateX(-46px); } [data-reveal="right"] { transform: translateX(46px); }
[data-reveal="zoom"] { transform: scale(.92); } [data-reveal="blur"] { filter: blur(12px); transform: scale(1.02); }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) var(--d, 0ms); }
[data-reveal].in { filter: none; } [data-reveal="clip"].in { clip-path: inset(0 0 0 0); }
[data-reveal] { transition-property: opacity, transform, filter, clip-path; }

/* ---------- barra che si nasconde e si rimpicciolisce ---------- */
.top { transition: transform .45s var(--ease), padding .3s, background .3s; }
.top.hide { transform: translateY(-110%); } .top.solid { background: #08080af0; backdrop-filter: blur(10px); padding-block: 10px; border-bottom: 1px solid var(--line); }
.top nav a { position: relative; } .top nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); } .top nav a:not(.nav-cta):hover::after, .top nav a.cur::after { transform: scaleX(1); } .top nav a.cur { color: var(--gold2); }

/* ---------- cursore con etichetta ---------- */
.ring { display: grid; place-items: center; } .ring span { font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #0a0a0a; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.ring.label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--gold); border-color: var(--gold); } .ring.label span { opacity: 1; }

/* ---------- apertura: indicatore di scorrimento ---------- */
.scrollcue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 24px; height: 40px; margin-left: -12px; border: 1.5px solid #ffffff55; border-radius: 14px; pointer-events: none; } .scrollcue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold2); animation: cue 1.8s var(--ease) infinite; } @keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-copy .lead, .hero-copy .kicker, .hero-copy .cta { animation: heroIn 1.1s var(--ease) both; } .hero-copy .kicker { animation-delay: 4.1s; } .hero-copy .lead { animation-delay: 4.25s; } .hero-copy .cta { animation-delay: 4.45s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }

/* ---------- fascia scorrevole: reagisce alla velocità dello scroll ---------- */
.marquee div { animation: none; will-change: transform; }

/* ---------- carte dei percorsi: bordo che si accende ---------- */
@property --bang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card { isolation: isolate; } .card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--bang), transparent 0 70%, #d4af5a 90%, transparent); opacity: 0; transition: opacity .4s; animation: ang2 4s linear infinite; padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); } .card:hover::before { opacity: 1; } @keyframes ang2 { to { --bang: 360deg; } }

/* ---------- scritta gigante in fondo ---------- */
.foot-wrap { border-top: 1px solid var(--line); overflow: hidden; }
.giant { font: 700 clamp(46px, 13.2vw, 210px)/1 var(--serif); letter-spacing: -.02em; text-align: center; padding: 40px 0 0; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #d4af5a66; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% var(--fill, 0%) no-repeat; -webkit-background-clip: text; background-clip: text; user-select: none; }
.foot-wrap .foot { border-top: 0; }

/* ---------- scorrimento morbido tra le sezioni: separatori ---------- */
.section + .section:not(.alt)::before { content: ""; display: block; width: min(1180px, 100% - 64px); height: 1px; margin: calc(-1 * clamp(72px, 10vw, 130px)) auto clamp(72px, 10vw, 130px); background: linear-gradient(90deg, transparent, #d4af5a55, transparent); }

/* ---------- guadagno di fluidità dove il browser lo permette ---------- */
@supports (animation-timeline: view()) {
  .kicker { animation: kickIn linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes kickIn { from { letter-spacing: .6em; opacity: 0; } to { letter-spacing: .28em; opacity: 1; } }
  .card .num { animation: numIn linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  @keyframes numIn { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .hero-copy .lead, .hero-copy .kicker, .hero-copy .cta { animation: none; } [data-reveal="clip"] { clip-path: none; } }

/* ---------- stelle dietro il nome, shader nei contatti ---------- */
#stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; transform: translate3d(0, calc(var(--hp, 0) * 60px), 0); opacity: calc(1 - var(--hp, 0) * 1.2); }
#contatti { position: relative; overflow: hidden; background: #050505; }
#shaderBg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .9; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 78%, transparent); }
#contatti::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 80% at 22% 55%, #050505d9 0%, #050505a0 45%, transparent 80%); }
#contatti .wrap { position: relative; z-index: 2; }
#contatti.no-gl { background: radial-gradient(ellipse at 70% 40%, #2a210c, #050505 70%); } #contatti.no-gl #shaderBg { display: none; }
@media (max-width: 820px) { #shaderBg { opacity: .6; } #contatti::after { background: linear-gradient(#050505cc, #050505b0 50%, #050505cc); } }
