/* ═══════════════════════════════════════════════════════════
   dCreativo · stile del sito
   Palette: scuro #08080f · lime #b5f241 · blu #4285F4 · arancio #ff6b2b
   Nessuno stile inline: la CSP del sito lo vieta (vedi vercel.json).
═══════════════════════════════════════════════════════════ */

/* ── Font (self-hosted) ───────────────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Variabili ────────────────────────────────────────── */
:root {
    --dark: #08080f;
    --dark-2: #0f0f1a;
    --surface: #14141e;
    --white: #fff;
    --off: #f3f4f8;
    --light: #e8eaf0;
    --gray: #8892a4;
    --ink: #14141e;
    --ink-soft: #5a6375;

    --blue: #4285F4;
    --blue-dk: #0d47a1;
    --lime: #b5f241;
    --lime-dk: #7cb800;
    --orange: #ff6b2b;
    --logo-navy: #0b2e5c;
    --logo-orange: #ff7a1a;

    --ease: cubic-bezier(.16, 1, .3, 1);
    --pop: cubic-bezier(.2, 1.4, .4, 1);
    --r: 20px;
    --header-h: 72px;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--dark); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 300; background: var(--lime); color: var(--dark); font-weight: 700; padding: .7rem 1.1rem; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

/* ── Bottoni, chip, titoletti ─────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
    padding: 1rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-sm { font-size: .88rem; padding: .7rem 1.15rem; }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--dark); box-shadow: 0 0 0 0 rgba(181, 242, 65, .0); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(181, 242, 65, .35); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--white); border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }

.chip {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(181, 242, 65, .1); border: 1px solid rgba(181, 242, 65, .25); color: var(--lime);
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: .5rem 1rem; border-radius: 999px;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.eyebrow-blue { color: #1a56c4; }

/* ── Rivelazione allo scroll ──────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }
.reduced .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ═══════════════ HEADER ═══════════════ */
.hdr {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0 var(--pad);
    border-bottom: 1px solid transparent;
    transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.hdr.on, .nav-open .hdr { background: rgba(8, 8, 15, .8); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border-bottom-color: rgba(255, 255, 255, .07); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); transition: transform .4s var(--pop); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-list a:not(.btn) { position: relative; display: block; padding: .6rem .9rem; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .3s; }
.nav-list a:not(.btn)::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-list a:not(.btn):hover, .nav-list a.active { color: var(--white); }
.nav-list a:not(.btn):hover::after, .nav-list a.active::after { transform: scaleX(1); }
.nav-cta-item { margin-left: .6rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, .08); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .4s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ═══════════════ HERO · SCENA ═══════════════ */
.story { position: relative; background: #05060d; }
.story-stage {
    --s: 1.1;          /* scala del mondo (altezza stage / 800) */
    --dawn: 0;         /* 0 notte → 1 alba */
    --copy: 0;         /* 0 testo visibile → 1 nascosto */
    --hud: 0;
    --p: 0;
    position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #05060d; isolation: isolate;
}
.js:not(.reduced) .story { height: calc(100vh + min(420vh, 3800px)); height: calc(100svh + min(420vh, 3800px)); }
.js:not(.reduced) .story-stage { position: sticky; top: 0; }
.reduced .story, .no-js .story { height: auto; }

.scene { position: absolute; inset: 0; overflow: hidden; }
.sky { position: absolute; inset: 0; }
.sky-night { background: linear-gradient(180deg, #04050c 0%, #0a1230 52%, #13204a 76%, #1c2f66 100%); }
.sky-dawn { opacity: var(--dawn); background: linear-gradient(180deg, #0c1534 0%, #262b66 38%, #74406f 62%, #ff7a3d 86%, #ffb572 100%); }
.sun {
    position: absolute; right: 9%; bottom: 36%; width: calc(var(--s) * 150px); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, #fff6cf 0 32%, #ffc27a 45%, rgba(255, 150, 70, .0) 70%);
    opacity: var(--dawn); transform: translateY(calc((1 - var(--dawn)) * 90%));
}
.moon {
    position: absolute; left: 14%; top: 13%; width: calc(var(--s) * 64px); aspect-ratio: 1; border-radius: 50%;
    box-shadow: inset calc(var(--s) * -16px) calc(var(--s) * -3px) 0 0 #eaf0ff; filter: drop-shadow(0 0 18px rgba(150, 180, 255, .55));
    opacity: calc(1 - var(--dawn) * 1.5);
}
.layer { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--s) * 3000px); will-change: transform; pointer-events: none; }
.layer-front { width: calc(var(--s) * 3400px); }
.layer > svg { width: 100%; height: 100%; overflow: visible; }
.layer-stars { opacity: calc(1 - var(--dawn) * 1.15); }
.star { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.cloud { animation: drift 60s linear infinite alternate; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
.win-lit { animation: flicker 5s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .85; } 50% { opacity: .45; } 53% { opacity: .9; } }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 90% 80% at 50% 38%, transparent 55%, rgba(3, 4, 10, .6)); }

/* Livello principale: strada, percorso, tappe, negozio. 1em = 10 unità del mondo. */
.layer-main { font-size: calc(var(--s) * 10px); }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route .ground { fill: url(#gGround); }
.route .road-edge { fill: none; stroke: #2f4a86; stroke-opacity: .55; stroke-width: 66; stroke-linecap: round; }
.route .road { fill: none; stroke: #1a2a52; stroke-width: 58; stroke-linecap: round; }
.route .route-ghost { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 16; }
.route .route-line { fill: none; stroke: var(--blue); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(66, 133, 244, .85)); }

.poi {
    position: absolute; left: calc(var(--x) / 3000 * 100%); top: calc(var(--y) / 800 * 100%);
    transform: translate(-50%, -100%) scale(.6); transform-origin: 50% 100%; opacity: 0;
    transition: opacity .5s ease, transform .8s var(--pop);
}
.poi.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.poi::after { content: ''; position: absolute; left: 50%; top: 100%; width: 0; height: 10em; border-left: .25em dotted rgba(255, 255, 255, .5); }
.poi-search { --x: 760; --y: 452; }
.poi-maps { --x: 1370; --y: 462; }
.poi-site { --x: 1980; --y: 446; }
.poi-book { --x: 2420; --y: 456; }

.card {
    width: 30em; padding: 1.3em; border-radius: 1.5em; color: var(--ink); background: rgba(255, 255, 255, .97);
    box-shadow: 0 2em 5em rgba(0, 0, 0, .5), 0 0 0 .12em rgba(255, 255, 255, .5);
}
.poi-tag {
    display: block; width: max-content; margin: -1em auto 0; position: relative; z-index: 1; transform: rotate(-2deg);
    background: var(--lime); color: var(--dark); font-weight: 800; font-size: 1.35em; line-height: 1; padding: .55em 1.1em; border-radius: 99em;
    box-shadow: 0 .6em 1.8em rgba(0, 0, 0, .35);
}

/* card · ricerca */
.sbar { display: flex; align-items: center; gap: .7em; border: .12em solid #dfe3ec; border-radius: 99em; padding: .7em 1.1em; font-size: 1.4em; font-weight: 600; min-height: 2.5em; }
.sbar .i { width: 1.1em; height: 1.1em; color: #6b7585; }
.caret { width: .1em; height: 1.1em; background: var(--blue); animation: blink 1s steps(2) infinite; margin-left: -.5em; }
.sres { margin-top: .9em; display: grid; gap: .7em; }
.sres .hit b { display: block; color: #1a0dab; font-size: 1.35em; line-height: 1.2; }
.sres .hit span { color: #137333; font-size: 1.05em; }
.sres .skel { height: .9em; border-radius: .5em; background: #e9ebf1; }
.sres .skel.short { width: 62%; }

/* card · mappa */
.mapbit { position: relative; height: 9.5em; border-radius: 1em; overflow: hidden; margin-bottom: 1em; }
.mapbit svg:first-child { width: 100%; height: 100%; }
.m-bg { fill: #e8edf3; } .m-park { fill: #cfe8c3; }
.m-road { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; }
.m-road.thin { stroke-width: 2.5; stroke: #d6dce6; }
.mappin { position: absolute; left: 50%; top: 52%; width: 2.8em; height: auto; transform: translate(-50%, -100%); fill: #ea4335; filter: drop-shadow(0 .3em .4em rgba(0, 0, 0, .35)); }
.mappin circle { fill: #fff; }
.poi.on .mappin { animation: pinHop 1.4s var(--pop) .5s both; }
@keyframes pinHop { 0% { transform: translate(-50%, -260%); opacity: 0; } 60% { transform: translate(-50%, -80%); opacity: 1; } 100% { transform: translate(-50%, -100%); } }
.mapinfo { font-size: 1.15em; line-height: 1.35; }
.mapinfo strong { display: block; font-size: 1.3em; }
.stars { color: #f6a800; letter-spacing: .1em; font-size: 1.15em; }
.mapinfo small { display: block; color: #5f6877; font-size: .95em; }
.mapbtns { display: flex; gap: .5em; margin-top: .8em; }
.mapbtns span { flex: 1; text-align: center; font-size: .95em; font-weight: 700; color: #1a73e8; border: .1em solid #d5e3fb; border-radius: 99em; padding: .45em .2em; }

/* card · sito web */
.card-site { padding: 0; overflow: hidden; }
.card-site .bar { display: flex; align-items: center; gap: .5em; padding: .8em 1em; background: #eceff4; }
.card-site .bar i { width: .8em; height: .8em; border-radius: 50%; background: #c5cad6; }
.card-site .bar i:first-child { background: #ff6b6b; } .card-site .bar i:nth-child(2) { background: #ffcb47; } .card-site .bar i:nth-child(3) { background: #3ecf72; }
.card-site .bar span { margin-left: .6em; flex: 1; background: #fff; border-radius: 99em; padding: .3em .9em; font-size: 1.1em; color: #5f6877; }
.siteview { padding: 1.2em; display: grid; gap: .7em; }
.siteview .sh { height: 5.2em; border-radius: .9em; background: linear-gradient(120deg, var(--logo-navy), #1b4b97 60%, var(--logo-orange)); }
.siteview .sl { height: .9em; width: 80%; border-radius: .5em; background: #e3e6ee; }
.siteview .sl.s { width: 55%; }
.sbtn { justify-self: start; background: var(--lime); color: var(--dark); font-weight: 800; font-size: 1.2em; padding: .5em 1.1em; border-radius: 99em; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.sgrid i { height: 3em; border-radius: .7em; background: #eceff4; }

/* card · prenotazione */
.card-book .cal-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2em; margin-bottom: .8em; }
.card-book .cal-h span { font-size: .85em; color: #6b7585; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5em; }
.cal i { aspect-ratio: 1; border-radius: .6em; background: #eef0f5; }
.cal i.sel { background: var(--lime); box-shadow: 0 0 0 .25em rgba(181, 242, 65, .35); }
.poi.on .cal i.sel { animation: selPulse 1.8s ease-in-out .6s infinite; }
@keyframes selPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.pay { display: flex; align-items: center; gap: .6em; margin-top: 1em; padding: .8em 1em; border-radius: 1em; background: #eaf7ee; color: #137333; font-weight: 700; font-size: 1.25em; }
.pay .i { width: 1.2em; height: 1.2em; padding: .15em; border-radius: 50%; background: #137333; color: #fff; stroke-width: 3; }
.toast {
    position: absolute; right: -2.2em; top: -3.4em; z-index: 2; display: flex; align-items: center; gap: .5em;
    background: var(--dark); color: var(--white); font-weight: 700; font-size: 1.3em; padding: .65em 1.1em; border-radius: 99em;
    box-shadow: 0 .8em 2em rgba(0, 0, 0, .45), 0 0 0 .1em rgba(181, 242, 65, .6);
    opacity: 0; transform: translateY(1em) scale(.8); transition: opacity .4s ease 1s, transform .6s var(--pop) 1s;
}
.toast .i { width: 1.2em; height: 1.2em; color: var(--lime); stroke-width: 3; }
.poi.on .toast { opacity: 1; transform: none; }

/* negozio */
.shop { position: absolute; left: calc(2780 / 3000 * 100%); top: calc(626 / 800 * 100%); width: 30em; transform: translate(-50%, -100%); }
.shop svg { width: 100%; height: auto; overflow: visible; }
.shop-glow { fill: url(#gShopGlow); opacity: 0; transition: opacity 1.2s ease; }
.shop-body { fill: #172545; } .shop-roof { fill: #0e1a35; }
.awning path { fill: var(--logo-orange); } .awning path.alt { fill: #fff3e6; }
.shop-win { fill: #1a2b52; transition: fill 1s ease; }
.shop-door { fill: #0e1a35; } .shop-knob { fill: var(--lime); }
.shop-sign { fill: #0b1226; stroke: #2a3a66; stroke-width: 2; transition: stroke .6s, fill .6s; }
.shop-sign-t { font: 800 18px 'Inter', sans-serif; letter-spacing: .12em; fill: #3a4a74; transition: fill .6s; }
.shop-item { fill: #2c4a86; transition: fill 1s; } .shop-item.b { fill: #3a5da8; } .shop-item.c { fill: #4b72c4; }
.shop.open .shop-glow { opacity: 1; }
.shop.open .shop-win { fill: #ffd98a; }
.shop.open .shop-sign { fill: #0b1226; stroke: var(--lime); filter: drop-shadow(0 0 10px rgba(181, 242, 65, .8)); }
.shop.open .shop-sign-t { fill: var(--lime); filter: drop-shadow(0 0 6px rgba(181, 242, 65, .9)); }
.shop.open .shop-item { fill: #f0a93b; } .shop.open .shop-item.b { fill: #e8663a; } .shop.open .shop-item.c { fill: #fff3d0; }
.shop-notif {
    position: absolute; left: 50%; top: -3.4em; z-index: 2; display: flex; align-items: center; gap: .5em; white-space: nowrap;
    background: var(--lime); color: var(--dark); font-weight: 800; font-size: 1.4em; padding: .6em 1.1em; border-radius: 99em;
    box-shadow: 0 .8em 2.4em rgba(0, 0, 0, .4); transform: translate(-50%, 1em) scale(.7); opacity: 0; transition: opacity .4s, transform .6s var(--pop);
}
.shop-notif span { background: var(--dark); color: var(--lime); border-radius: 99em; padding: .1em .55em; }
.shop.open .shop-notif { opacity: 1; transform: translate(-50%, 0) scale(1); animation: bob 2.4s ease-in-out 1s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.5em; } }

/* segnaposto */
.marker { position: absolute; left: 0; top: 0; width: 6em; height: 8em; margin: -8em 0 0 -3em; will-change: transform; }
.marker svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 .5em .6em rgba(0, 0, 0, .5)) drop-shadow(0 0 1.4em rgba(181, 242, 65, .65)); animation: hover 1.6s ease-in-out infinite; }
.marker .pin { fill: var(--lime); } .marker .pin-dot { fill: var(--dark); }
.marker-ring { position: absolute; left: 50%; bottom: -.5em; width: 7em; height: 2.2em; margin-left: -3.5em; border-radius: 50%; border: .22em solid rgba(181, 242, 65, .8); animation: ring 1.8s ease-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.7em); } }
@keyframes ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* testo hero */
.hero-copy {
    position: absolute; inset: 0 0 auto 0; z-index: 5; text-align: center;
    padding: calc(var(--header-h) + clamp(1.5rem, 6vh, 4rem)) var(--pad) 0;
    opacity: calc(1 - var(--copy)); transform: translateY(calc(var(--copy) * -70px)); will-change: opacity, transform;
}
.hero-copy.gone { visibility: hidden; pointer-events: none; }
.hero-copy h1 { margin: 1.4rem auto 1.2rem; max-width: 18ch; font-size: clamp(2.3rem, 7vw, 5.6rem); font-weight: 900; line-height: .98; letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.hero-copy h1 em { font-style: normal; color: var(--lime); }
.hero-sub { max-width: 40rem; margin: 0 auto 2rem; font-size: clamp(1rem, 2.2vw, 1.25rem); color: rgba(255, 255, 255, .78); text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.hero-in { animation: heroIn 1s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .hero-copy .chip { animation: heroIn 1s var(--ease) .1s both; }
.js .hero-copy h1 { animation: heroIn 1s var(--ease) .22s both; }
.js .hero-copy .hero-sub { animation: heroIn 1s var(--ease) .36s both; }
.js .hero-copy .hero-cta { animation: heroIn 1s var(--ease) .5s both; }

/* sticker rotante */
.sticker { position: absolute; z-index: 4; right: max(1rem, 4vw); top: calc(var(--header-h) + 1rem); width: clamp(96px, 12vw, 150px); aspect-ratio: 1; display: grid; place-items: center; opacity: calc(1 - var(--copy) * 1.6); transform: rotate(10deg) scale(calc(1 - var(--copy) * .4)); }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker-burst { fill: var(--logo-orange); animation: spin 26s linear infinite reverse; transform-origin: 100px 100px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4)); }
.sticker-ring { animation: spin 14s linear infinite; transform-origin: 100px 100px; }
.sticker-ring text { font: 800 15px 'Inter', sans-serif; letter-spacing: .08em; fill: #fff; }
.sticker-core { position: relative; font-weight: 900; font-size: clamp(1.4rem, 3.2vw, 2.1rem); letter-spacing: -.04em; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tappe */
.hud { pointer-events: none; position: absolute; inset: auto 0 0 0; z-index: 6; padding: 4rem var(--pad) 1.4rem; background: linear-gradient(0deg, rgba(5, 6, 13, .92) 25%, rgba(5, 6, 13, .55) 65%, transparent); opacity: var(--hud); transition: opacity .3s; display: grid; }
.hud > * { grid-area: 1 / 1; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1100px; width: 100%; margin: 0 auto; transition: opacity .5s, transform .5s var(--ease); }
.step { display: grid; gap: .15rem; padding-top: .9rem; border-top: 2px solid rgba(255, 255, 255, .14); opacity: .72; transition: opacity .5s, border-color .5s; }
.step-n { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--lime); }
.step-t { font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 800; letter-spacing: -.01em; }
.step-d { font-size: .88rem; color: rgba(255, 255, 255, .78); line-height: 1.45; }
.step.on { opacity: .88; border-color: rgba(181, 242, 65, .45); }
.step.active { opacity: 1; border-color: var(--lime); }
.hud-end { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 1.6rem; text-align: center; opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; transition: opacity .5s, transform .5s var(--ease), visibility 0s .5s; }
.hud-end p { font-size: clamp(1.2rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.hud.is-end .steps { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.hud.is-end .hud-end { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--lime)); transform: scaleX(var(--p)); transform-origin: left; }
.reduced .step, .no-js .step { opacity: 1; }
.reduced .hud-end, .reduced .progress, .no-js .hud-end, .no-js .progress { display: none; }

.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); opacity: calc(1 - var(--hud) * 3); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--lime), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.6); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
.no-js .scroll-cue, .reduced .scroll-cue { display: none; }

/* senza JS / movimento ridotto: scena statica, senza pin */
.no-js .story-stage, .reduced .story-stage { --hud: 1; height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; }
.no-js .hero-copy, .reduced .hero-copy, .no-js .hud, .reduced .hud { position: relative; inset: auto; }
.no-js .scene, .reduced .scene { position: absolute; inset: 0; }
.no-js .scene { background: linear-gradient(180deg, #04050c, #13204a); }

/* ═══════════════ FASCIA PAROLE ═══════════════ */
.ticker { background: var(--lime); color: var(--dark); overflow: hidden; border-block: 1px solid rgba(8, 8, 15, .12); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 1.6rem; padding: 1rem 0 1rem 1.6rem; font-weight: 800; font-size: clamp(.95rem, 2vw, 1.15rem); letter-spacing: -.01em; white-space: nowrap; }
.ticker span::after { content: ''; width: .55rem; height: .55rem; background: var(--logo-orange); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ═══════════════ SEZIONI ═══════════════ */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-light { background: var(--off); color: var(--ink); }
.section-dark { background: var(--dark); }
.section-dark2 { background: var(--dark-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2, .about-text h2, .contact-intro h2 { margin-top: .9rem; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.07; letter-spacing: -.03em; text-wrap: balance; }
.section-head > p:last-child { margin-top: 1.2rem; font-size: 1.1rem; line-height: 1.75; color: rgba(255, 255, 255, .6); }
.section-light .section-head > p:last-child { color: var(--ink-soft); }
.lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.8; color: rgba(255, 255, 255, .72); }
.lead strong { color: var(--white); }

/* servizi */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
    position: relative; overflow: hidden; background: var(--white); border-radius: var(--r); padding: 2.2rem 2rem;
    box-shadow: 0 1px 0 rgba(8, 8, 15, .04); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(66, 133, 244, .12), transparent 45%); opacity: 0; transition: opacity .4s; }
.svc:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(13, 71, 161, .16); }
.svc:hover::before { opacity: 1; }
.svc h3 { position: relative; margin: 1.4rem 0 .6rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.svc p { position: relative; color: var(--ink-soft); font-size: .98rem; line-height: 1.7; }
.svc-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dk)); box-shadow: 0 8px 22px rgba(66, 133, 244, .3); }
.svc-ico .i { width: 22px; height: 22px; }

/* chi sono */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
/* logo in evidenza: anello conico che ruota, bagliore, orbite e icone dei servizi in movimento circolare */
.logo-stage { justify-self: center; display: grid; justify-items: center; gap: 1.1rem; width: min(100%, 440px); }
.logo-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: clip; contain: paint; }
.logo-core { position: relative; z-index: 2; width: 58%; aspect-ratio: 1; border-radius: 50%; animation: floaty 6s ease-in-out infinite; }
.logo-core img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 7px var(--dark), 0 30px 80px rgba(0, 0, 0, .6); transition: transform .8s var(--pop); }
.logo-core::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; background: conic-gradient(from 0deg, var(--lime), var(--blue), var(--logo-orange), var(--lime)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: spin 7s linear infinite; }
.logo-stage:hover .logo-core img { transform: scale(1.05) rotate(-4deg); }
.js .logo-stage.reveal .logo-core { opacity: 0; transform: scale(.55) rotate(-14deg); transition: opacity .8s var(--ease) .15s, transform 1.1s var(--pop) .15s; }
.js .logo-stage.reveal.visible .logo-core { opacity: 1; transform: none; }
.logo-glow { position: absolute; z-index: 0; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .38), rgba(66, 133, 244, .24) 46%, transparent 70%); filter: blur(22px); animation: glowPulse 4.5s ease-in-out infinite; }
.orbit-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit-ring-1 { inset: 11%; border: 2px dashed rgba(181, 242, 65, .45); animation: spin 48s linear infinite; }
.orbit-ring-2 { inset: 0; border: 1px solid rgba(255, 255, 255, .12); animation: spin 70s linear infinite reverse; }
.orbit-ring-2::after { content: ''; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--logo-orange); box-shadow: 0 0 16px var(--logo-orange); }
.orbit { position: absolute; inset: 7%; z-index: 3; animation: spin 28s linear infinite; pointer-events: none; }
.sat { position: absolute; inset: 0; transform: rotate(var(--a)); }
.sat-a { --a: 0deg; --c: var(--lime); }
.sat-b { --a: 90deg; --c: var(--logo-orange); }
.sat-c { --a: 180deg; --c: #7fb0ff; }
.sat-d { --a: 270deg; --c: var(--white); }
.sat-in { position: absolute; left: 50%; top: 0; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; color: var(--c); background: var(--surface); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); animation: counter 28s linear infinite; }
.sat-in .i { width: 24px; height: 24px; }
@keyframes counter { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes glowPulse { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
.about-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1.1rem; font-size: .8rem; font-weight: 700; white-space: nowrap; border-radius: 12px; background: rgba(8, 8, 15, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 2.4s infinite; }
.points { display: grid; gap: 1.2rem; margin: 2.2rem 0 2.6rem; }
.points li { display: flex; gap: 1rem; align-items: flex-start; }
.points h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.points p { color: rgba(255, 255, 255, .6); font-size: .96rem; line-height: 1.6; }

/* portfolio */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.proj { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid rgba(255, 255, 255, .07); border-radius: 26px; transition: transform .5s var(--ease), border-color .5s, box-shadow .5s var(--ease); }
.proj:hover { transform: translateY(-8px); border-color: rgba(181, 242, 65, .35); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.proj-media { position: relative; display: block; overflow: hidden; background: #0b0b14; text-decoration: none; }
.proj-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.proj:hover .proj-media img { transform: scale(1.05); }
.browser { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; background: rgba(8, 8, 15, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.browser i:first-child { background: #ff6b6b; } .browser i:nth-child(2) { background: #ffcb47; } .browser i:nth-child(3) { background: #3ecf72; }
.browser em { margin-left: .6rem; font-style: normal; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.proj-body { display: flex; flex-direction: column; flex: 1; padding: 1.8rem 1.8rem 2rem; }
.proj-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.proj-body h3 { margin: .5rem 0 .7rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.proj-body > p:not(.proj-kicker) { color: rgba(255, 255, 255, .72); line-height: 1.7; font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 1.5rem; }
.tags li { font-size: .76rem; font-weight: 600; padding: .4rem .8rem; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; width: max-content; font-weight: 700; color: var(--lime); text-decoration: none; }
.link-arrow .i { transition: transform .3s var(--ease); }
.link-arrow:hover .i { transform: translate(3px, -3px); }
.proj-wide { grid-column: 1 / -1; flex-direction: row; }
.proj-brand { display: grid; place-items: center; flex: 0 0 38%; background: radial-gradient(circle at 50% 40%, #1c1c26, #0a0a10); min-height: 280px; }
.proj-brand img { position: relative; width: min(55%, 190px); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 22%; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); transition: transform .8s var(--pop); }
.proj-wide:hover .proj-brand img { transform: scale(1.07) rotate(-3deg); }
.proj-brand .glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 177, 53, .35), transparent 70%); filter: blur(10px); animation: float 6s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-14px) scale(1.08); } }
.proj-wide .proj-body { justify-content: center; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 99px; background: var(--logo-orange); color: var(--dark); letter-spacing: .06em; vertical-align: 1px; }

/* manifesto */
.manifesto { position: relative; overflow: hidden; background: var(--lime); color: var(--dark); text-align: center; padding: clamp(5rem, 11vw, 9rem) var(--pad); }
.manifesto::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.manifesto-quote { position: relative; max-width: 1000px; margin: 0 auto; font-size: clamp(2.3rem, 7.4vw, 6rem); font-weight: 900; line-height: .95; letter-spacing: -.04em; }
.manifesto-quote em { font-style: italic; font-weight: 300; opacity: .45; }
.manifesto-sub { position: relative; margin: 2.4rem auto 0; max-width: 34rem; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; color: rgba(8, 8, 15, .62); }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq .section-head { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-list { display: grid; gap: .8rem; }
.faq details { background: var(--white); border-radius: 18px; border: 1px solid rgba(8, 8, 15, .06); transition: box-shadow .4s var(--ease); }
.faq details[open] { box-shadow: 0 18px 50px rgba(13, 71, 161, .12); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: var(--off); color: var(--blue); transition: transform .4s var(--ease), background .3s, color .3s; }
.faq details[open] summary .i { transform: rotate(135deg); background: var(--blue); color: #fff; }
.faq-a { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); line-height: 1.75; animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* contattami */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.checks { display: grid; gap: .8rem; margin-top: 2rem; }
.checks li { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.checks .i { width: 1.5rem; height: 1.5rem; padding: .3rem; border-radius: 50%; background: rgba(181, 242, 65, .14); color: var(--lime); stroke-width: 2.6; }
.form { position: relative; display: grid; gap: 1.15rem; padding: clamp(1.5rem, 4vw, 2.4rem); background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.field { display: grid; gap: .5rem; }
.field label { font-size: .86rem; font-weight: 700; color: rgba(255, 255, 255, .82); }
.opt { font-weight: 500; color: var(--gray); }
.field input:not([type='checkbox']), .field select, .field textarea {
    width: 100%; padding: .95rem 1.05rem; border-radius: 14px; background: #0c0c16; border: 1px solid rgba(255, 255, 255, .38); color: var(--white);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray) 50%), linear-gradient(135deg, var(--gray) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(181, 242, 65, .15); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.section-light :focus-visible { outline-color: var(--blue-dk); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 43, .12); }
.err { color: #ff9a6e; font-size: .84rem; font-weight: 600; }
.err:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: .8rem; }
.field-check input { width: 1.3rem; height: 1.3rem; margin-top: .15rem; accent-color: var(--lime); }
.field-check label { font-weight: 500; font-size: .88rem; line-height: 1.55; color: rgba(255, 255, 255, .65); }
.field-check label a { color: var(--lime); }
.field-check .err { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { position: relative; padding: 1.1rem 1.6rem; }
.spin { position: absolute; width: 1.2rem; height: 1.2rem; border: 3px solid rgba(8, 8, 15, .25); border-top-color: var(--dark); border-radius: 50%; opacity: 0; animation: spin .8s linear infinite; }
.form.sending .btn-t, .form.sending .btn .i { opacity: 0; }
.form.sending .spin { opacity: 1; }
.form.sending .btn { pointer-events: none; }
.form-status { min-height: 1.4rem; font-size: .92rem; font-weight: 600; text-align: center; }
.form-status.ok { color: var(--lime); }
.form-status.ko { color: #ff9a6e; }
.form-alt { text-align: center; font-size: .85rem; color: var(--gray); }
.form-alt a { color: var(--white); }
.form.done > :not(.thanks) { display: none; }
.thanks { display: grid; justify-items: center; gap: .8rem; text-align: center; padding: 2rem 0; animation: heroIn .8s var(--ease); }
.thanks-ico { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--lime); color: var(--dark); animation: pinHopX .8s var(--pop); }
.thanks-ico .i { width: 36px; height: 36px; stroke-width: 3; }
@keyframes pinHopX { from { transform: scale(.3); } to { transform: scale(1); } }
.thanks h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.thanks p { color: rgba(255, 255, 255, .68); max-width: 26rem; }

/* contatti */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; font-style: normal; }
.ccard { display: grid; gap: .3rem; align-content: start; padding: 1.6rem; border-radius: 22px; text-decoration: none; background: var(--surface); border: 1px solid rgba(255, 255, 255, .07); transition: transform .4s var(--ease), border-color .4s, background .4s; }
.ccard:hover { transform: translateY(-6px); border-color: rgba(181, 242, 65, .4); background: #191924; }
.ccard .svc-ico { margin-bottom: 1rem; }
.ccard-l { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--lime); }
.ccard-v { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.social { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.social p { font-size: .92rem; color: var(--gray); }
.social ul { display: flex; gap: .7rem; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .07); transition: background .3s, color .3s, transform .4s var(--pop); }
.social a:hover { background: var(--lime); color: var(--dark); transform: translateY(-4px) rotate(-6deg); }

/* footer */
.footer { background: var(--dark); border-top: 1px solid rgba(255, 255, 255, .07); padding: 3.5rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2.5rem; align-items: start; }
.footer-brand p { margin-top: 1rem; max-width: 24rem; font-size: .92rem; color: var(--gray); line-height: 1.7; }
.footer-nav { display: grid; gap: .5rem; }
.footer-nav a { width: max-content; text-decoration: none; font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .65); transition: color .25s, transform .3s var(--ease); }
.footer-nav a:hover { color: var(--lime); transform: translateX(4px); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .7rem; }
.footer-bottom { margin-top: 3rem; font-size: .8rem; color: var(--gray); }
.footer-bottom > span { display: block; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .06); }

/* finestra legale */
.dialog { border: 0; padding: 0; margin: auto; width: min(720px, 92vw); max-height: 88vh; background: transparent; color: var(--white); overflow: visible; }
.dialog::backdrop { background: rgba(3, 4, 10, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dialog[open] { animation: dlg .45s var(--ease); }
.dialog[open]::backdrop { animation: fade .35s ease; }
@keyframes dlg { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.dialog-card { display: flex; flex-direction: column; max-height: 88vh; background: var(--surface); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); overflow: hidden; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.dialog-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.dialog-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .25s, transform .3s var(--ease); }
.dialog-x:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.dialog-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.6rem 1.4rem; overscroll-behavior: contain; }
.dialog-foot { display: flex; justify-content: flex-end; padding: 1rem 1.6rem 1.3rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.legal-doc h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .5rem; }
.legal-doc h2 { margin: 1.6rem 0 .45rem; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; color: var(--lime); }
.legal-doc p, .legal-doc li { font-size: .96rem; line-height: 1.75; color: rgba(255, 255, 255, .74); }
.legal-doc p + p { margin-top: .6rem; }
.legal-doc ul { margin: .4rem 0 .4rem 1.1rem; list-style: disc; }
.legal-doc li::marker { color: var(--lime); }
.legal-doc a { color: var(--lime); }
.legal-doc .legal-meta { font-size: .82rem; color: var(--gray); }
.dialog-body .legal-doc h1 { display: none; }
.dialog-body .legal-doc h2:first-of-type { margin-top: 0; }

/* pagine /privacy e /termini */
.legal-page { background: var(--dark); }
.legal-page .hdr { background: rgba(8, 8, 15, .8); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border-bottom-color: rgba(255, 255, 255, .07); }
.legal-main { min-height: 80vh; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.legal-main .container { max-width: 760px; }
.legal-back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--lime); }
.legal-back .i { transform: rotate(180deg); }
.legal-nav-links { display: flex; align-items: center; gap: .3rem; }
.legal-nav-links a { padding: .5rem .8rem; font-size: .9rem; font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, .7); }
.legal-nav-links a:hover { color: var(--white); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (min-width: 601px) and (max-aspect-ratio: 5/4) {
    .moon { top: calc(var(--header-h) + 8px); width: calc(var(--s) * 38px); }
}
@media (max-height: 700px) {
    .hero-copy { padding-top: calc(var(--header-h) + .8rem); }
    .hero-copy h1 { margin: .9rem auto .7rem; font-size: clamp(1.9rem, 8.2vh, 3.6rem); }
    .hero-sub { margin-bottom: 1.1rem; font-size: 1rem; }
    .sticker { display: none; }
}
@media (max-height: 520px) {
    .hero-sub, .hero-copy .chip { display: none; }
}
@media (max-width: 960px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid, .faq { grid-template-columns: 1fr; }
    .faq .section-head { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .js:not(.reduced) .story { height: calc(100vh + min(340vh, 3200px)); height: calc(100svh + min(340vh, 3200px)); }
}
@media (max-width: 860px) {
    .burger { display: block; }
    .burger { margin-left: auto; }
    .nav { position: fixed; inset: var(--header-h) 0 auto 0; max-height: 0; overflow: hidden; visibility: hidden; background: rgba(8, 8, 15, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); transition: max-height .6s var(--ease), visibility 0s .6s; }
    .nav-open .nav { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; visibility: visible; transition-delay: 0s; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem var(--pad) 1.6rem; }
    .nav-list a:not(.btn) { padding: 1rem .2rem; font-size: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
    .nav-list a:not(.btn)::after { display: none; }
    .nav-cta-item { margin: 1.1rem 0 0; }
    .nav-cta-item .btn { width: 100%; padding: 1.05rem; font-size: 1rem; }
    .work { grid-template-columns: 1fr; }
    .proj-wide { flex-direction: column; }
    .proj-brand { flex-basis: auto; min-height: 220px; }
    .steps { grid-template-columns: 1fr; }
    .step:not(.active) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; }
    .step-d { font-size: .92rem; }
    .hud { padding-top: 3rem; padding-bottom: 1.1rem; }
    .sticker { display: none; }
    .reduced .step:not(.active), .no-js .step:not(.active) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; padding-top: .9rem; border-top: 2px solid rgba(255, 255, 255, .14); }
    .reduced .steps, .no-js .steps { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .reduced .step-d, .no-js .step-d { display: none; }
}
@media (max-width: 600px) {
    .logo-stage { width: min(100%, 340px); }
    .sat-in { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
    .sat-in .i { width: 20px; height: 20px; }
    .cards { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .brand-name { font-size: 1.05rem; }
    .hero-copy h1 { max-width: none; font-size: clamp(2rem, 8.6vw, 2.8rem); }
    .br-d { display: none; }
    .moon { left: auto; right: 7%; top: calc(var(--header-h) + 8px); width: calc(var(--s) * 38px); }
    .btn { padding: .95rem 1.3rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════ MOVIMENTO RIDOTTO ═══════════════ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .ticker-track { animation: none; }
}

/* blocco scroll con menu o finestra aperti */
html.nav-open, html.modal-open { overflow: hidden; }
.legal-nav-links a[aria-current='page'] { color: var(--lime); }
@media (max-width: 600px) { .legal-nav-links a:not(.btn) { display: none; } }

/* modulo senza JavaScript: si mostra solo l'indirizzo email */
.nojs-note { display: none; }
.no-js .nojs-note { display: block; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.no-js .nojs-note a { color: var(--lime); font-weight: 700; }
.no-js .form .field, .no-js .form .btn, .no-js .form .form-status, .no-js .form .form-alt, .no-js .form .hp { display: none; }

/* contrasto forzato (Windows) */
@media (forced-colors: active) {
    .burger { border: 1px solid ButtonText; }
    .burger span { background: ButtonText; }
}
