/* =====================================================================
   Registro Italiano MINI Classica - foglio di stile
   Due vesti: "classic" (crema, verde inglese, cromo) e "modern" (nero, luce)
   ===================================================================== */

/* ---------- Font locali ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/playfair-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/playfair-display-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/playfair-display-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/barlow-condensed-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); }

/* ---------- Variabili comuni ---------- */
:root {
    --red: #d2231a;
    --red-2: #f0392d;
    --red-dark: #8f120c;
    --brg: #206b44;
    --brg-deep: #0f3d2a;
    --cream: #f4ecda;
    --fog: #f9d94a;
    --ok: #22a45a;
    --radius: 18px;
    --radius-sm: 12px;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --header-h: 78px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --chrome: linear-gradient(180deg, #fdfdfd 0%, #c9ced1 38%, #7d8589 52%, #dfe3e5 70%, #9aa1a5 100%);
}

/* ---------- Veste Classic (predefinita) ---------- */
:root, [data-veste="classic"] {
    --bg: #f4ecda;
    --bg-2: #ebe0c6;
    --card: #fffaee;
    --card-2: #f8f0dc;
    --line: rgba(15, 61, 42, .15);
    --line-2: rgba(15, 61, 42, .32);
    --text: #16271e;
    --soft: #2f4238;
    --muted: #5f6e64;
    --head: #0f3d2a;
    --accent: #c4201a;
    --accent-soft: rgba(196, 32, 26, .1);
    --tint: rgba(32, 107, 68, .1);
    --input: #fffdf6;
    --night: #0c2a1d;
    --night-2: #071a12;
    --shadow: 0 22px 50px -26px rgba(15, 61, 42, .55);
    --h-font: var(--serif);
    --h-weight: 900;
    --h-style: italic;
    --h-case: none;
    --h-track: -.015em;
    --h2-size: clamp(34px, 4.7vw, 60px);
    --h3-font: var(--serif);
    --h3-weight: 700;
    --h3-case: none;
    --h3-size: 25px;
    --hero-size: clamp(46px, 6vw, 88px);
    --btn-radius: 10px;
    --thumb: #a9a48f;
}

/* ---------- Veste Modern ---------- */
[data-veste="modern"] {
    --bg: #080c0a;
    --bg-2: #0d1310;
    --card: #131b17;
    --card-2: #19231e;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .17);
    --text: #f1f4f1;
    --soft: #d2dad4;
    --muted: #98a69d;
    --head: #ffffff;
    --accent: #f0392d;
    --accent-soft: rgba(240, 57, 45, .14);
    --tint: rgba(74, 222, 128, .09);
    --input: #0d1310;
    --night: #050807;
    --night-2: #020403;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
    --h-font: var(--cond);
    --h-weight: 800;
    --h-style: italic;
    --h-case: uppercase;
    --h-track: -.01em;
    --h2-size: clamp(40px, 5.8vw, 72px);
    --h3-font: var(--cond);
    --h3-weight: 800;
    --h3-case: uppercase;
    --h3-size: 27px;
    --hero-size: clamp(52px, 6.6vw, 100px);
    --btn-radius: 999px;
    --thumb: #34403a;
}

/* Zone sempre scure (apertura, sezione della Mini, piede): valgono in entrambe le vesti */
.hero, .sec--night, .foot, .lb {
    --card: rgba(255, 255, 255, .05);
    --card-2: rgba(255, 255, 255, .08);
    --line: rgba(255, 255, 255, .1);
    --line-2: rgba(255, 255, 255, .2);
    --text: #f3f1e8;
    --soft: #d9ddd3;
    --muted: #a4b0a6;
    --head: #ffffff;
    --accent: #f0392d;
    --accent-soft: rgba(240, 57, 45, .16);
    color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; scrollbar-color: var(--thumb) var(--bg); scrollbar-width: thin; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .5s, color .5s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

/* Barre di scorrimento a tema (niente grafica standard) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
::-webkit-scrollbar-corner { background: var(--bg); }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); font-weight: 500; }

/* ---------- Tipografia ---------- */
.eyebrow { margin: 0 0 12px; font: 800 15px/1 var(--cond); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 30px; height: 8px; background: linear-gradient(90deg, var(--brg) 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); border-radius: 1px; box-shadow: 0 0 0 1px var(--line); }
.h2 { margin: 0; font-family: var(--h-font); font-weight: var(--h-weight); font-style: var(--h-style); font-size: var(--h2-size); line-height: 1; letter-spacing: var(--h-track); text-transform: var(--h-case); color: var(--head); text-wrap: balance; }
.h3 { margin: 0 0 16px; font-family: var(--h3-font); font-weight: var(--h3-weight); font-size: var(--h3-size); line-height: 1.12; text-transform: var(--h3-case); color: var(--head); display: flex; align-items: center; gap: 10px; }
.h3 .ico { color: var(--accent); }
.prose p { margin: 0 0 1em; color: var(--soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--head); }
.prose--sm p { font-size: 15px; }

/* ---------- Pulsanti ---------- */
.btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: var(--btn-radius); border: 1.5px solid var(--b); background: transparent; font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); --b: var(--red); color: #fff; box-shadow: 0 10px 28px -12px rgba(210, 35, 26, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--red:hover { background: var(--red-2); --b: var(--red-2); }
.btn--ghost { --b: var(--line-2); background: var(--card); color: var(--text); }
.btn--ghost:hover { --b: var(--head); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.roundbtn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.roundbtn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 700 11px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); border: 1px solid currentColor; white-space: nowrap; }
.chip--clubaffiliati { background: var(--tint); color: var(--brg); }
.chip--internazionale { background: rgba(59, 130, 246, .12); color: #2f6fd0; }
.chip--solidariet { background: rgba(217, 119, 6, .13); color: #b86a05; }
[data-veste="modern"] .chip--clubaffiliati { color: #6fdc9c; }
[data-veste="modern"] .chip--internazionale { color: #8db7ff; }
[data-veste="modern"] .chip--solidariet { color: #f5b451; }

.tricolore { display: inline-flex; gap: 3px; transform: skewX(-20deg); }
.tricolore i { width: 14px; height: 4px; background: #2fa565; }
.tricolore i:nth-child(2) { background: #fff; }
.tricolore i:nth-child(3) { background: var(--red-2); }

/* ---------- Avviso in testa ---------- */
.banner { position: relative; z-index: 60; background: linear-gradient(90deg, var(--red-dark), var(--red)); color: #fff; font-size: 14px; font-weight: 600; }
.banner__in { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 0; }
.banner__in p { margin: 0; flex: 1; }
.banner__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: pulse 2s infinite; flex: none; }
.banner__cta { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .22); white-space: nowrap; }
.banner__cta:hover { background: rgba(0, 0, 0, .38); }
.banner__x { border: 0; background: transparent; padding: 6px; cursor: pointer; display: grid; place-items: center; border-radius: 8px; opacity: .85; }
.banner__x:hover { opacity: 1; background: rgba(0, 0, 0, .2); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* ---------- Testata: chiara sopra l'apertura, a tema dopo lo scorrimento ---------- */
.top { --t: #f3f1e8; --t-soft: #d5dbd2; --t-line: rgba(255, 255, 255, .22); position: sticky; top: 0; z-index: 50; height: var(--header-h); color: var(--t); transition: background .3s, border-color .3s, color .3s; border-bottom: 1px solid transparent; }
.top.is-solid { --t: var(--text); --t-soft: var(--soft); --t-line: var(--line-2); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 78px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt small { font: 800 11px/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--t-soft); margin-bottom: 4px; }
.brand__txt b { font: 900 21px/1 var(--serif); letter-spacing: .01em; }
.brand__txt b i { font-weight: 800; color: var(--red-2); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) { position: relative; padding: 10px 11px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--t-soft); border-radius: 999px; transition: color .2s, background .2s; }
.nav a:not(.btn):hover { color: var(--t); background: color-mix(in srgb, var(--t) 9%, transparent); }
.nav a.is-active { color: var(--t); }
.nav a.is-active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--red-2); border-radius: 2px; }
.nav__cta { margin-left: 8px; min-height: 42px; }
.top__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--t-line); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--t); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Leva Classic / Modern, come gli interruttori a levetta del cruscotto */
.veste { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--t-line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--t-soft); }
.veste__lab { font: 800 12px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; transition: color .25s; }
.veste[aria-checked="false"] .veste__lab--a, .veste[aria-checked="true"] .veste__lab--b { color: var(--t); }
.veste__plate { position: relative; width: 30px; height: 26px; border-radius: 6px; background: linear-gradient(180deg, #2a2f2c, #0e1210); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(0, 0, 0, .5); }
.veste__plate::before { content: ""; position: absolute; left: 50%; bottom: 5px; width: 12px; height: 6px; margin-left: -6px; border-radius: 50%; background: #050706; box-shadow: inset 0 1px 2px #000; }
.veste__lever { position: absolute; left: 50%; bottom: 7px; width: 7px; height: 21px; margin-left: -3.5px; border-radius: 4px 4px 2px 2px; background: var(--chrome); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); transform-origin: 50% 100%; transform: rotate(-26deg); transition: transform .35s cubic-bezier(.5, 1.8, .5, 1); }
.veste[aria-checked="true"] .veste__lever { transform: rotate(26deg); }
.veste:hover .veste__plate { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 0 4px color-mix(in srgb, var(--red-2) 30%, transparent); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brg) 0 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); background-size: 100vw 100%; }

/* ---------- Apertura: la Mini sulla pedana girevole ---------- */
.hero { position: relative; min-height: 100svh; display: flex; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 22px) 0 34px; overflow: hidden; isolation: isolate; background: radial-gradient(80% 62% at 50% 70%, #1c5f43 0%, var(--night) 50%, var(--night-2) 100%); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Union Jack vera (assets/img/jack.svg), attenuata e sfumata ai bordi */
.hero__jack { position: absolute; inset: 0; background: url("img/jack.svg") center / cover no-repeat; opacity: .16; -webkit-mask: radial-gradient(75% 80% at 50% 55%, #000 30%, transparent 100%); mask: radial-gradient(75% 80% at 50% 55%, #000 30%, transparent 100%); animation: jack-in 2.2s .2s ease both; }
@keyframes jack-in { from { opacity: 0; transform: scale(1.08); } }
/* faro da studio dall'alto e riflesso a terra */
.hero__spot { position: absolute; left: 50%; top: 0; width: min(1100px, 120%); height: 82%; transform: translateX(-50%); background: conic-gradient(from 180deg at 50% 0%, transparent 152deg, rgba(255, 248, 214, .1) 168deg, rgba(255, 248, 214, .16) 180deg, rgba(255, 248, 214, .1) 192deg, transparent 208deg); -webkit-mask: linear-gradient(180deg, #000 30%, transparent 100%); mask: linear-gradient(180deg, #000 30%, transparent 100%); animation: fade-in 2.4s .3s ease both; }
.hero__floor { position: absolute; left: 50%; bottom: 4%; width: min(900px, 96%); height: 26%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(249, 217, 74, .16), rgba(249, 217, 74, 0) 100%); }
@keyframes fade-in { from { opacity: 0; } }
.hero__in { display: flex; flex-direction: column; }
.hero__head { display: grid; justify-items: center; text-align: center; opacity: calc(1 - var(--hp, 0) * 1.4); }
.hero__badge { position: relative; width: clamp(130px, 11.5vw, 170px); margin-bottom: 14px; animation: logoIn 1.3s .1s var(--ease) both; }
.hero__badge img { position: relative; width: 100%; }
/* cornice cromata dell'emblema */
.hero__ring { position: absolute; inset: -3.4% -2.2%; border-radius: 50%; background: conic-gradient(from 210deg, #f7f7f7, #8b9296, #ffffff, #6f777b, #e9ecee, #9aa1a5, #f7f7f7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 18px 40px -8px rgba(0, 0, 0, .8); }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); font: 800 14px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: #e6e9df; }
.kicker__txt { display: inline-block; clip-path: inset(0 100% 0 0); animation: typeIn 1.3s .35s steps(40) forwards; }
@keyframes typeIn { to { clip-path: inset(0 -2% 0 0); } }
.hero__title { position: relative; margin: 0; max-width: 16ch; font-family: var(--h-font); font-weight: var(--h-weight); font-style: var(--h-style); font-size: clamp(44px, 6.1vw, 100px); line-height: .94; text-transform: var(--h-case); letter-spacing: var(--h-track); color: #fff; text-wrap: balance; animation: rise .9s var(--ease) both; }
.hero__title strong { display: inline-block; padding: 0 .1em .3em 0; margin: 0 -.1em -.3em 0; color: var(--fog); background: linear-gradient(100deg, var(--fog) 0 38%, #fffbe0 50%, var(--fog) 62% 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: miniShine 5s 2.4s ease-in-out infinite; }
@keyframes miniShine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }
.hero__title.is-split { animation: none; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .32em 0; margin: 0 -.08em -.32em 0; }
.hero__title .w > span { display: inline-block; transform: translateY(110%) skewY(6deg); animation: wordUp 1s var(--ease) forwards; }
.hero__title.is-reset .w > span { animation: none; transform: translateY(110%) skewY(6deg); }
@keyframes wordUp { to { transform: none; } }
.hero__deck { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; align-items: end; margin-top: -34px; }
.hero__side { position: relative; z-index: 3; padding-bottom: 26px; animation: rise .9s .25s var(--ease) both; }
.hero__lead { margin: 0; font-size: clamp(15px, 1.2vw, 17px); color: #cfd6cc; }
.hero__cta { display: grid; gap: 10px; margin-top: 22px; }
.hero__side--b { display: grid; justify-items: end; }
.garage__stage { position: relative; z-index: 2; height: clamp(280px, 40vh, 520px); }
.garage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.2s ease; }
.garage.has-3d .garage__canvas { opacity: 1; }
.garage.is-grab .garage__canvas { cursor: grabbing; }
.garage__still { position: absolute; inset: 16% 20% 14%; display: none; place-items: center; }
.garage__still img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }
.garage.no-3d .garage__still { display: grid; }
.garage.no-3d .garage__canvas, .garage.no-3d .garage__hint, .garage.no-3d .garage__bar, .garage.no-3d .hero__badge { display: none; }
.garage__hint { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 800 13px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .6s 1s; }
.garage.has-3d .garage__hint { opacity: 1; }
.garage__bar { display: grid; justify-items: center; gap: 10px; width: min(100%, 230px); padding: 18px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(5, 14, 10, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.garage__label { margin: 0; font: 800 12.5px/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.garage__paint { display: flex; align-items: center; gap: 6px; }
.swatch { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, transform .2s var(--ease); }
.swatch span { width: 27px; height: 27px; border-radius: 50%; box-shadow: inset 0 2px 3px rgba(255, 255, 255, .45), inset 0 -3px 4px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .25); }
.swatch:hover { transform: scale(1.1); }
.swatch.is-on { border-color: #fff; }
[data-colore="originale"] { background: linear-gradient(180deg, #f4f4f2 0 34%, #17181a 34%); }
[data-colore="rossa"] { background: #b5121b; }
[data-colore="verde"] { background: #1f5a3c; }
[data-colore="azzurra"] { background: #3f78b5; }
.garage__paintname { margin: 0; font: 800 15px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.garage__lights { width: 100%; margin-top: 4px; }
.garage__lights[aria-pressed="true"] { --b: var(--fog); color: var(--fog); box-shadow: 0 0 26px -4px rgba(249, 217, 74, .6); }
.stats { display: flex; justify-content: center; margin: 0; border-top: 1px solid var(--line); animation: rise .9s .35s var(--ease) both; }
.stats__item { display: flex; align-items: baseline; gap: 12px; padding: 16px 34px 0; border-right: 1px solid var(--line); }
.stats__item:last-child { border-right: 0; }
.stats dt { font: 800 italic 34px/1 var(--cond); color: var(--fog); }
.stats dd { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes logoIn { 0% { opacity: 0; transform: translateY(-30px) scale(.6) rotate(-10deg); filter: blur(10px) brightness(3); } 60% { opacity: 1; filter: blur(0) brightness(1.4); } 100% { opacity: 1; transform: none; filter: none; } }

/* ---------- Pellicola: foto dei raduni che scorrono ---------- */
.film { position: relative; overflow: hidden; background: #0a0d0b; padding: 26px 0; }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-conic-gradient(#f3ead7 0 25%, #0a0d0b 0 50%) 0 0 / 12px 12px; }
.film::before { top: 0; }
.film::after { bottom: 0; }
.film__track { display: inline-flex; animation: film 70s linear infinite; }
.film__set { display: inline-flex; align-items: center; }
.film__ph { flex: none; width: 210px; aspect-ratio: 3 / 2; margin: 0 22px; border-radius: 4px; overflow: hidden; border: 5px solid #f3ead7; transform: rotate(-1.5deg); }
.film__ph:nth-of-type(even) { transform: rotate(1.5deg); }
.film__ph img { width: 100%; height: 100%; object-fit: cover; }
.film__w { font: 800 italic 34px/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; color: #f3ead7; white-space: nowrap; }
@keyframes film { to { transform: translateX(-50%); } }

/* ---------- Effetto luce sulle schede ---------- */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 45%); }
.spot:hover::after { opacity: 1; }

/* ---------- Sezioni ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec--night { background: radial-gradient(90% 70% at 72% 40%, #164a35 0%, var(--night) 55%, var(--night-2) 100%); }
.sec__head { margin-bottom: 52px; }
.sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px 60px; flex-wrap: wrap; }
.sec__intro { max-width: 470px; margin: 0; color: var(--muted); }

/* ---------- Il Registro ---------- */
.club { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.club__text .h2 { margin-bottom: 26px; }
.club__text .prose p { font-size: 17px; }
.plates { position: relative; display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .74; }
.plates__ph { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); border: 7px solid #fffdf5; outline: 1px solid var(--line); }
[data-veste="modern"] .plates__ph { border: 1px solid var(--line-2); border-radius: var(--radius); outline: 0; }
.plates__ph img { width: 100%; height: 100%; object-fit: cover; }
.plates__ph--1 { grid-row: span 2; }
.plates__stamp { position: absolute; left: 55%; top: 44%; z-index: 3; width: 112px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--red); color: #fff; transform: rotate(-10deg); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--red), var(--shadow); }
.plates__stamp b { font: 800 13px/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; }
.plates__stamp i { font: 900 italic 34px/1 var(--serif); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 90px; }
.value { padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.value:hover { transform: translateY(-4px); border-color: var(--accent); }
.value__ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--brg-deep); color: var(--cream); margin-bottom: 18px; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line-2); }
.value__ico .ico { width: 24px; height: 24px; }
.value h3 { margin: 0 0 8px; font-family: var(--h3-font); font-weight: var(--h3-weight); font-size: 22px; line-height: 1.15; text-transform: var(--h3-case); color: var(--head); }
.value p { margin: 0; color: var(--muted); font-size: 15px; }
.story { margin-top: 90px; }
.story__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.story__head .h3 { margin: 0; }
.story__nav { display: flex; gap: 8px; }
.timeline { list-style: none; margin: 0; padding: 22px 0 10px; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; position: relative; }
.timeline::-webkit-scrollbar { display: none; }
.timeline__item { position: relative; flex: 0 0 clamp(230px, 24%, 290px); padding: 0 26px 0 0; scroll-snap-align: start; }
.timeline__item::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 14px, transparent 14px 24px); }
.timeline__year { display: inline-block; position: relative; font: 800 italic 42px/1 var(--cond); color: var(--accent); background: var(--bg); padding-right: 14px; margin-bottom: 16px; }
.timeline__item h4 { margin: 0 0 6px; font-weight: 800; font-size: 16.5px; color: var(--head); }
.timeline__item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- La Mini ---------- */
.pitch { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.pitch__body .prose { margin-bottom: 30px; }
.pitch__body .prose p { font-size: 17.5px; }
.specs { margin: 70px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.spec { padding: 26px 16px; border-right: 1px solid var(--line); text-align: center; }
.spec:last-child { border-right: 0; }
.spec dt { font: 800 italic clamp(34px, 3.6vw, 50px)/1 var(--cond); color: var(--fog); white-space: nowrap; }
.spec dd { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.4; }

/* ---------- Club affiliati: l'Italia e l'elenco ---------- */
.atlas { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.atlas__map { position: relative; max-width: 440px; width: 100%; margin-inline: auto; }
.italia { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 26px 30px rgba(15, 61, 42, .28)); }
.italia__land { fill: var(--brg-deep); stroke: var(--brg); stroke-width: 1.2; stroke-linejoin: round; }
[data-veste="modern"] .italia__land { fill: #12261c; stroke: #2f8a5b; }
.pin { cursor: pointer; }
.pin__dot { fill: var(--red-2); stroke: #fff; stroke-width: 2; transition: r .25s var(--ease), fill .2s; }
.pin__pulse { fill: none; stroke: var(--red-2); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin__n { font: 800 10px/1 var(--body); fill: #fff; pointer-events: none; }
.pin.is-on .pin__dot { r: 13; fill: var(--fog); }
.pin.is-on .pin__n { fill: #111; }
.pin.is-on .pin__pulse { animation: ping 1.4s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.atlas__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.clubrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.clubrow.is-on, .clubrow:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow); }
.clubrow__n { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 800 19px/1 var(--cond); transition: background .2s, color .2s; }
.clubrow.is-on .clubrow__n { background: var(--fog); color: #111; }
.clubrow__body { flex: 1; min-width: 0; }
.clubrow h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--head); }
.clubrow p { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- Eventi ---------- */
.next { display: grid; gap: 18px; margin-bottom: 70px; }
.event { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.event--main { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), transparent 55%), var(--card); }
.event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: var(--red); color: #fff; padding: 16px 8px; text-align: center; align-self: start; }
.event__d { font: 900 58px/.9 var(--cond); }
.event__m { font: 700 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }
.event__body h3 { margin: 10px 0 10px; font-family: var(--h-font); font-weight: var(--h-weight); font-style: var(--h-style); font-size: clamp(26px, 3vw, 38px); line-height: 1.05; text-transform: var(--h-case); color: var(--head); }
.event__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; color: var(--soft); font-weight: 600; font-size: 15px; }
.event__meta span { display: inline-flex; align-items: center; gap: 7px; }
.event__meta .ico { color: var(--accent); }
.event__body .btn { margin-top: 18px; }
.countdown { display: flex; gap: 10px; margin-top: 18px; }
.countdown div { min-width: 74px; padding: 10px 6px; border-radius: 12px; background: var(--brg-deep); color: #fff; text-align: center; }
.countdown b { display: block; font: 800 30px/1 var(--cond); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #b9c6bd; font-weight: 700; }
.empty { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 28px; margin-bottom: 70px; border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: var(--card); }
.empty > div { flex: 1; min-width: 240px; }
.empty h3 { margin: 0 0 4px; font-size: 19px; color: var(--head); }
.empty p { margin: 0; color: var(--muted); }
.empty__ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--brg-deep); color: var(--cream); }
.empty__ico .ico { width: 26px; height: 26px; }
.archive__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.archive__head .h3 { margin: 0; }
.archive__head .muted { font: 600 15px/1 var(--body); text-transform: none; letter-spacing: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters--bar { margin: -22px 0 28px; }
.filter { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--soft); transition: background .2s, border-color .2s, color .2s; }
.filter:hover { border-color: var(--head); color: var(--head); }
.filter.is-on { background: var(--head); border-color: var(--head); color: var(--bg); }
.archive__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); position: relative; }
.archive__list.is-collapsed { max-height: 560px; overflow: hidden; }
.archive__list.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--bg-2)); pointer-events: none; }
.archive__year { padding: 26px 0 8px; font: 800 italic 32px/1 var(--cond); color: var(--accent); }
.archive__row { display: grid; grid-template-columns: 190px 1fr 250px 130px; gap: 18px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); transition: background .2s; }
.archive__row:hover { background: var(--tint); }
.archive__date { color: var(--muted); font-weight: 600; font-size: 14px; }
.archive__title { font-weight: 700; color: var(--head); }
.archive__title small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.archive__place { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-size: 14px; }
.archive__place .ico { color: var(--muted); }
.archive__row .chip { justify-self: end; }
.archive__more { margin: 24px auto 0; display: flex; }
.archive__more .ico { transition: transform .3s; }
.archive__more[aria-expanded="true"] .ico { transform: rotate(180deg); }
.archive.is-filtered .archive__list { max-height: none; }
.archive.is-filtered .archive__list::after, .archive.is-filtered .archive__more { display: none; }

/* ---------- Convenzioni ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.partner { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.partner:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.partner.is-out { display: none; }
.partner__logo { flex: none; width: 84px; height: 84px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.partner__logo img { max-width: 88%; max-height: 88%; object-fit: contain; }
.partner__mono { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brg), var(--brg-deep)); color: #fff; font: 900 italic 32px/1 var(--cond); }
.partner__body { min-width: 0; }
.partner__cat { margin: 0 0 2px; font: 800 13px/1.3 var(--cond); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.partner h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--head); }
.partner__body > p:not(.partner__cat):not(.partner__perk) { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.partner__perk { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--tint); color: var(--brg); font-weight: 700; font-size: 13.5px; line-height: 1.4; }
.partner__perk .ico { margin-top: 2px; }
[data-veste="modern"] .partner__perk { color: #7fe0a8; }
.aci { display: flex; gap: 30px; align-items: center; margin-top: 30px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.aci::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, var(--brg) 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); }
.aci__logo { flex: none; width: 200px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.aci__body { min-width: 0; }
.aci__body .prose { margin-bottom: 14px; }

/* ---------- Galleria ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item a { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--card); }
.gallery__item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(7n+1) a { aspect-ratio: auto; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; display: flex; flex-direction: column; transform: translateY(8px); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.gallery__cap b { font-size: 14.5px; }
.gallery__cap small { font-size: 12px; color: #d3d8d0; }
.gallery__item a:hover img, .gallery__item a:focus-visible img { transform: scale(1.06); }
.gallery__item a:hover .gallery__cap, .gallery__item a:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__item.is-out { display: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(3, 9, 6, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .25s both; }
.lb__fig { margin: 0; max-width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; }
.lb__img { max-height: 78vh; width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); touch-action: pan-y; }
.lb__cap { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; text-align: center; }
.lb__cap small { color: var(--muted); }
.lb__count { color: var(--fog); font-weight: 700; font-size: 13px; }
.lb__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); cursor: pointer; transition: background .2s, border-color .2s; }
.lb__btn:hover { background: var(--red); border-color: var(--red); }
.lb__btn .ico { width: 24px; height: 24px; }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Affiliazione e contatti ---------- */
.join { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.perks, .pay { padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); }
.ticks .ico { color: #fff; background: var(--brg); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 1px; stroke-width: 3; }
.pay__txt { margin: 0 0 18px; color: var(--soft); }
.mails { list-style: none; margin: 22px 0 0; padding: 0; }
.mails li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); }
.mails span { font: 800 12.5px/1.4 var(--cond); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.mails a, .mails b { font-weight: 700; text-decoration: none; word-break: break-all; color: var(--head); }
.mails a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; color: var(--text); transition: background .2s, border-color .2s, color .2s; }
.social:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social .ico { width: 21px; height: 21px; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: flex; gap: 18px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--card-2); }
.step__n { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 900 24px/1 var(--cond); box-shadow: 0 0 0 3px var(--card-2), 0 0 0 4.5px var(--red); }
.step h4 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--head); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.board { margin-top: 60px; }
.board__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.person { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.person__av { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brg-deep); color: var(--cream); border: 2px solid var(--red); font: 800 italic 26px/1 var(--cond); }
.person__body { min-width: 0; }
.person h4 { margin: 0; font-size: 18px; font-weight: 800; color: var(--head); }
.person__role { margin: 0; color: var(--accent); font: 800 13.5px/1.4 var(--cond); text-transform: uppercase; letter-spacing: .12em; }
.person__ref { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.person__links { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.person__links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--soft); min-width: 0; }
.person__links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__links a:hover { color: var(--head); }
.person__links .ico { color: var(--accent); }

/* Modulo */
.form-card { margin-top: 20px; padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--brg) 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); }
.form-card__head { margin-bottom: 26px; }
.form-card__head .h3 { font-size: clamp(27px, 3vw, 36px); margin-bottom: 6px; }
.form-card__head p { margin: 0; color: var(--muted); }
.form__alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__tipo { border: 0; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form__tipo legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 14px; color: var(--soft); }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--input); transition: border-color .2s, background .2s; }
.radio span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); flex: none; transition: border-color .2s, background .2s; }
.radio b { flex: 1; color: var(--head); }
.radio input:checked + span { border-color: var(--red); background: var(--accent-soft); }
.radio input:checked + span::before { border-color: var(--red); background: radial-gradient(circle, var(--red) 45%, transparent 50%); }
.radio input:focus-visible + span { outline: 2px solid var(--red-2); outline-offset: 2px; }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: 13.5px; font-weight: 700; color: var(--soft); }
.field input, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--input); color: var(--text); font: 500 16px/1.4 var(--body); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; scrollbar-width: thin; scrollbar-color: var(--thumb) transparent; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--red-2); }
.field__err { color: var(--accent); font-size: 13px; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; font-size: 14.5px; color: var(--soft); cursor: pointer; flex-wrap: wrap; }
.check > span:not(.field__err) { flex: 1; min-width: 200px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 2px solid var(--muted); background: var(--input); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check.has-error input { border-color: var(--red-2); }
.check a { color: var(--head); font-weight: 700; }
.check .field__err { flex: 1 1 100%; padding-left: 34px; }
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.form__actions .muted { margin: 0; font-size: 13px; }
.form-ok { text-align: center; padding: 20px 0 8px; animation: rise .6s var(--ease) both; }
.form-ok__ico { width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; }
.form-ok__ico .ico { width: 36px; height: 36px; stroke-width: 3; }
.form-ok h4 { margin: 0 0 8px; font-family: var(--h-font); font-weight: var(--h-weight); font-style: var(--h-style); font-size: 34px; line-height: 1.05; text-transform: var(--h-case); color: var(--head); }
.form-ok p { margin: 0 auto 6px; max-width: 520px; color: var(--muted); }

/* ---------- Piede ---------- */
.foot { position: relative; background: var(--night-2); padding-bottom: 30px; }
.foot__stripe { display: flex; height: 6px; }
.foot__stripe i { flex: 1; background: var(--brg); }
.foot__stripe i:nth-child(2) { background: #fff; }
.foot__stripe i:nth-child(3) { background: var(--red); }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 50px 0 30px; }
.foot .wrap { padding-right: 120px; }
.foot__brand { display: flex; align-items: center; gap: 18px; }
.foot__brand img { width: 130px; }
.foot__brand p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot__nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--soft); }
.foot__nav a:hover { color: #fff; }
.foot__social { display: flex; gap: 10px; }
.foot__legal { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 40px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: #8c998f; font-size: 13px; }
.foot__legal p { margin: 0; }
.foot__copy { display: grid; gap: 6px; max-width: 720px; }
.foot__one { color: #d9ddd3; font-weight: 700; }
.foot__tm { color: #74817a; font-size: 12px; line-height: 1.5; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__links a { color: #b8c2ba; font-weight: 600; text-decoration: none; }
.foot__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__credit { margin-top: 14px; color: #5f6b64; font-size: 12px; }

/* ---------- Pulsante sempre presente: privacy, cookie, note legali ---------- */
.legalfab { position: fixed; left: 16px; bottom: 16px; z-index: 45; }
.legalfab__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 26, 18, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #d5dbd2; cursor: pointer; box-shadow: 0 10px 30px -10px #000; transition: background .2s, border-color .2s, color .2s; }
.legalfab__btn .ico { width: 20px; height: 20px; }
.legalfab:hover .legalfab__btn, .legalfab.is-open .legalfab__btn, .legalfab__btn:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.legalfab__menu { position: absolute; left: 0; bottom: 100%; padding-bottom: 10px; display: grid; gap: 2px; min-width: 230px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.legalfab__menu::before { content: ""; position: absolute; inset: 0 0 10px 0; z-index: -1; border-radius: 16px; background: rgba(10, 26, 18, .97); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 20px 50px -15px #000; }
.legalfab__menu a { display: flex; align-items: center; gap: 10px; margin: 0 6px; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: #e6e9df; }
.legalfab__menu a:first-child { margin-top: 6px; }
.legalfab__menu a:last-child { margin-bottom: 6px; }
.legalfab__menu a:hover, .legalfab__menu a:focus-visible { background: rgba(240, 57, 45, .2); color: #fff; }
.legalfab__menu .ico { color: var(--fog); }
.legalfab:hover .legalfab__menu, .legalfab:focus-within .legalfab__menu, .legalfab.is-open .legalfab__menu { opacity: 1; visibility: visible; transform: none; }

/* ---------- Strumento centrale: la lancetta segue lo scorrimento ---------- */
.dial { --face: #f6efdc; --ink: #14201a; --needle: #d2231a; --arc: #d2231a; position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 104px; display: grid; justify-items: center; gap: 4px; text-decoration: none; opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
[data-veste="modern"] .dial { --face: #050807; --ink: #f1f4f1; --needle: #ffffff; --arc: #f9d94a; }
.dial.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dial svg { width: 104px; height: 104px; display: block; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); transition: transform .3s var(--ease); }
.dial:hover svg { transform: scale(1.06); }
.dial__rim { fill: #c9ced1; stroke: #6f777b; stroke-width: 1; }
[data-veste="modern"] .dial__rim { fill: #1b2420; stroke: #3a4a41; }
.dial__face { fill: var(--face); stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.dial__ticks line { stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; opacity: .75; }
.dial__ticks line.is-big { stroke-width: 2.2; opacity: 1; }
.dial__arc { fill: none; stroke: var(--arc); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .9; }
[data-veste="modern"] .dial__arc { filter: drop-shadow(0 0 4px var(--arc)); }
.dial__needle path { fill: var(--needle); }
.dial__hub { fill: #15191a; stroke: #8b9296; stroke-width: 1.5; }
.dial__num { font: 800 17px/1 var(--cond); fill: var(--ink); font-variant-numeric: tabular-nums; }
.dial__unit { font: 800 7px/1 var(--cond); letter-spacing: .12em; fill: var(--ink); opacity: .6; }
.dial__lab { max-width: 104px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 26, 18, .9); color: #f3f1e8; font: 800 11.5px/1.2 var(--cond); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Finestre legali ---------- */
html.is-locked { overflow: hidden; }
.legal { width: min(760px, calc(100% - 32px)); max-height: min(84vh, 900px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); color: var(--text); box-shadow: 0 40px 100px -20px #000; overflow: hidden; }
.legal[open] { display: flex; flex-direction: column; animation: legalIn .35s var(--ease); }
.legal::backdrop { background: rgba(3, 9, 6, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.legal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); position: relative; }
.legal__head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brg) 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); }
.legal__head h2 { margin: 0; font-family: var(--h-font); font-weight: var(--h-weight); font-style: var(--h-style); font-size: 28px; line-height: 1.05; text-transform: var(--h-case); color: var(--head); }
.legal__x { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; flex: none; }
.legal__x:hover { background: var(--red); border-color: var(--red); color: #fff; }
.legal__body { padding: 22px 24px 28px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--thumb) transparent; }
.legal__body p { margin-bottom: 1.1em; }
.legal__body strong { display: inline-block; margin-bottom: 2px; font-size: 15.5px; }
@keyframes legalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }

/* ---------- Comparsa allo scorrimento ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal .h2 { clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.1s .15s var(--ease); }
.js .reveal.is-in .h2 { clip-path: inset(-20% -10% -20% 0); }
.js .reveal .eyebrow::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s .1s var(--ease); }
.js .reveal.is-in .eyebrow::before { transform: none; }

/* Cambio di veste: una passata di luce da sinistra a destra */
.swipe { position: fixed; inset: 0; z-index: 400; pointer-events: none; background: linear-gradient(100deg, transparent 0%, rgba(249, 217, 74, .0) 30%, rgba(255, 251, 224, .85) 50%, rgba(249, 217, 74, 0) 70%, transparent 100%); transform: translateX(-110%); }
.swipe.is-go { animation: swipe .7s ease-in-out; }
@keyframes swipe { to { transform: translateX(110%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
    .veste__lab { display: none; }
    .veste { padding: 6px; border-radius: 10px; }
    .nav a:not(.btn) { padding: 10px 9px; font-size: 14px; }
    .brand__txt { display: none; }
}

@media (max-width: 1100px) {
    .values { grid-template-columns: repeat(2, 1fr); }
    .specs { grid-template-columns: repeat(3, 1fr); }
    .spec:nth-child(3) { border-right: 0; }
    .spec:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .archive__row { grid-template-columns: 170px 1fr 220px; }
    .archive__row .chip { display: none; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .board__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .burger { display: block; }
    .brand__txt { display: flex; }
    .top { --t: var(--text); --t-soft: var(--soft); --t-line: var(--line-2); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
    .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 14px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav a:not(.btn) { padding: 14px 12px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav a.is-active::after { display: none; }
    .nav a.is-active { color: var(--accent); }
    .nav__cta { margin: 14px 0 0; min-height: 52px; }
    .brand img { width: 64px; }
    .hero { min-height: auto; padding-top: calc(var(--header-h) + 20px); }
    .hero__jack { inset: 0 0 auto 0; height: clamp(520px, 150vw, 680px); background-size: auto 100%; }
    .hero__deck { grid-template-columns: 1fr; gap: 18px; margin-top: -10px; }
    .garage__stage { height: clamp(260px, 62vw, 420px); }
    .hero__side { padding-bottom: 0; }
    .hero__side--a { order: 3; text-align: center; }
    .hero__side--b { order: 2; justify-items: center; }
    .hero__lead { max-width: 560px; margin-inline: auto; }
    .hero__cta { max-width: 420px; margin-inline: auto; }
    .garage__bar { width: auto; grid-template-columns: auto auto; justify-items: start; align-items: center; gap: 8px 16px; padding: 12px 16px; }
    .garage__label { display: none; }
    .garage__lights { grid-column: 1 / -1; }
    .stats { flex-wrap: wrap; margin-top: 26px; }
    .club { grid-template-columns: 1fr; gap: 50px; }
    .plates { max-width: 620px; width: 100%; margin: 0 auto; }
    .pitch { grid-template-columns: 1fr; gap: 26px; }
    .atlas { grid-template-columns: 1fr; gap: 36px; }
    .atlas__map { max-width: 360px; }
    .join, .steps { grid-template-columns: 1fr; }
    .aci { flex-direction: column; align-items: flex-start; }
    .foot__in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .foot .wrap { padding-right: 0; }
    .foot__brand { flex-direction: column; }
}

@media (max-width: 680px) {
    .wrap { width: min(1200px, 100% - 32px); }
    .brand__txt b { font-size: 18px; }
    .brand__txt small { font-size: 10px; letter-spacing: .22em; }
    .kicker { font-size: 11.5px; letter-spacing: .1em; padding: 7px 12px 7px 10px; gap: 8px; }
    .kicker .tricolore i { width: 9px; }
    .stats__item { flex: 1 1 100%; justify-content: center; border-right: 0; padding: 12px 0 0; }
    .stats dt { font-size: 28px; }
    .film__ph { width: 150px; margin: 0 14px; }
    .film__w { font-size: 24px; }
    .values { grid-template-columns: 1fr; margin-top: 60px; }
    .story { margin-top: 64px; }
    .timeline__item { flex-basis: 78%; }
    .plates__stamp { width: 84px; }
    .plates__stamp i { font-size: 25px; }
    .specs { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
    .spec { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 10px; }
    .spec:nth-child(odd) { border-right: 1px solid var(--line); }
    .spec:nth-last-child(-n+2) { border-bottom: 0; }
    .atlas__list { grid-template-columns: 1fr; }
    .event { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
    .event__date { flex-direction: row; gap: 12px; justify-content: flex-start; padding: 12px 16px; align-self: stretch; }
    .event__d { font-size: 40px; }
    .event__m { margin: 0; }
    .countdown div { min-width: 0; flex: 1; }
    .archive__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 2px; }
    .archive__list.is-collapsed { max-height: 720px; }
    .perks, .pay { padding: 24px; }
    .form__grid { grid-template-columns: 1fr; }
    .form__actions .btn { width: 100%; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    #galleria .filters, .archive .filters, .filters--bar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    #galleria .filters::-webkit-scrollbar, .archive .filters::-webkit-scrollbar, .filters--bar::-webkit-scrollbar { display: none; }
    .filter { white-space: nowrap; flex: none; }
    .gallery__cap { display: none; }
    .partners { grid-template-columns: 1fr; }
    .partner { padding: 20px; gap: 16px; }
    .partner__logo { width: 64px; height: 64px; }
    .aci { padding: 24px; }
    .aci__logo { width: 150px; }
    .board__grid { grid-template-columns: 1fr; }
    .lb__prev, .lb__next { top: auto; bottom: 20px; transform: none; }
    .lb__prev { left: calc(50% - 64px); }
    .lb__next { right: calc(50% - 64px); }
    .lb__img { max-height: 66vh; }
    .banner__in { font-size: 13px; }
    .dial { width: 76px; right: 10px; bottom: 10px; }
    .dial svg { width: 76px; height: 76px; }
    .dial__lab { display: none; }
    .foot__legal { flex-direction: column; align-items: center; text-align: center; }
    .foot__links { justify-content: center; }
    .foot { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .reveal .h2 { clip-path: none; }
    .hero__title .w > span { transform: none; }
}
