/* My Social Collection · design system web «La nicchia»
   Fonte unica: web/landings/src/shared/css/mysc.css → tools/build.py lo copia in ogni sito.
   Token da BRAND_IDENTITY/tokens.json (temi Gesso e Notte). */

/* ── Font ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans.woff2") format("woff2-variations"), url("../fonts/MonaSans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/MartianMono.woff2") format("woff2-variations"), url("../fonts/MartianMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ── Token ────────────────────────────────────────────────────────────── */
:root {
  --oltremare: #2B2BD9;
  --oltremare-100: #E1E1FB;
  --oltremare-300: #A09EF2;
  --oltremare-700: #1C1B90;
  --gesso: #F4F3EE;
  --inchiostro: #15133A;
  --notte: #0C0B22;
  --cinabro: #E5432A;
  --ambra: #F2A93B;
  --verderame: #1F9D7A;
  --holo: radial-gradient(circle at 36% 30%, #fff 0, #C4F6FF 20%, #C7B5FF 46%, #FFB5E3 72%, #FFE49C 100%);
  --holo-line: linear-gradient(90deg, #C4F6FF, #C7B5FF 35%, #FFB5E3 68%, #FFE49C);

  --f-sans: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s12: 48px; --s18: 72px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  --t-breve: 200ms; --t-medio: 320ms; --t-arrivo: 420ms;
  --c-standard: cubic-bezier(.2, 0, 0, 1);
  --c-arrivo: cubic-bezier(.2, .9, .25, 1.15);

  --ombra-primario: 0 6px 18px rgba(43, 43, 217, .28);

  --gutter: 24px;
  --max: 1180px;
  --header-h: 64px;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --sfondo: #F4F3EE;
  --superficie: #FFFFFF;
  --incassata: #ECEBF0;
  --linea: #DDDCE6;
  --linea-2: #C4C3D2;
  --testo: #15133A;
  --testo-2: #55536C;
  --testo-3: #6A6882;
  --primario-tenue: #E1E1FB;
  --su-primario-tenue: #1C1B90;
  --link: #2B2BD9;
  --cinabro-testo: #C2321B;
  --verderame-testo: #13775C;
  --ambra-testo: #8A5A00;
  --navigazione: #FFFFFF;
  --ombra-nicchia: 0 1px 2px rgba(21, 19, 58, .06), 0 10px 30px rgba(21, 19, 58, .08);
  --ombra-pezzo: 0 18px 40px rgba(21, 19, 58, .22);
  --logo-color: block;
  --logo-inverse: none;
}

[data-theme="dark"] {
  color-scheme: dark;
  --sfondo: #0C0B22;
  --superficie: #17163D;
  --incassata: #1D1C45;
  --linea: #2C2A55;
  --linea-2: #3B3967;
  --testo: #F4F3EE;
  --testo-2: #B9B7CC;
  --testo-3: #8C8AA6;
  --primario-tenue: #22215F;
  --su-primario-tenue: #C4C3F7;
  --link: #A09EF2;
  --cinabro-testo: #FF7A5E;
  --verderame-testo: #4FD8AE;
  --ambra-testo: #F2A93B;
  --navigazione: #1B1A44;
  --ombra-nicchia: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --ombra-pezzo: 0 18px 40px rgba(0, 0, 0, .45);
  --logo-color: none;
  --logo-inverse: block;
}

/* Sezioni sempre notte (hero, footer, bande): il tema scuro a prescindere. */
.on-notte {
  --sfondo: #0C0B22; --superficie: #17163D; --incassata: #1D1C45;
  --linea: #2C2A55; --linea-2: #3B3967;
  --testo: #F4F3EE; --testo-2: #B9B7CC; --testo-3: #8C8AA6;
  --primario-tenue: #22215F; --su-primario-tenue: #C4C3F7; --link: #A09EF2;
  --logo-color: none; --logo-inverse: block;
  background: var(--notte);
  color: var(--testo);
}
.on-oltremare {
  --testo: #F4F3EE; --testo-2: rgba(244, 243, 238, .82); --testo-3: rgba(244, 243, 238, .66);
  --linea: rgba(244, 243, 238, .22); --linea-2: rgba(244, 243, 238, .4); --link: #F4F3EE;
  --logo-color: none; --logo-inverse: block;
  background: var(--oltremare);
  color: var(--testo);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sfondo);
  color: var(--testo);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
::selection { background: var(--oltremare); color: #fff; }
:focus-visible { outline: 2px solid var(--oltremare-300); outline-offset: 3px; border-radius: 6px; }
.hidden, [hidden] { display: none !important; }
.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: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--oltremare); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

/* ── Tipografia ───────────────────────────────────────────────────────── */
.t-manifesto, .t-display, .t-headline, .t-expanded {
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: lowercase;
  text-wrap: balance;
}
.t-manifesto { font-size: clamp(44px, 7.4vw, 104px); line-height: .94; font-weight: 850; letter-spacing: -.025em; }
.t-display { font-size: clamp(32px, 4.6vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.t-headline { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.06; font-weight: 780; letter-spacing: -.015em; }
.t-title { font-size: 18px; line-height: 24px; font-weight: 700; }
.t-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--testo-2); text-wrap: pretty; }
.t-body { font-size: 15px; line-height: 22px; }
.t-small { font-size: 13px; line-height: 18px; color: var(--testo-2); }
.t-label { font-size: 13px; line-height: 16px; font-weight: 650; }
.t-registro, .registro {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--testo-3);
  font-variant-numeric: tabular-nums;
}
.t-prezzo { font-family: var(--f-mono); font-size: 19px; line-height: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.t-cifra { font-family: var(--f-mono); font-size: clamp(36px, 4vw, 44px); line-height: 1.05; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.muted { color: var(--testo-2); }
.accent { color: var(--link); }

/* ── Layout ───────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(780px + var(--gutter) * 2); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.stack > * + * { margin-top: var(--s4); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .pearl { width: 8px; height: 8px; }

/* ── Logo ─────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo img { height: 100%; width: auto; }
.logo .logo-color { display: var(--logo-color); }
.logo .logo-inverse { display: var(--logo-inverse); }

/* ── Header «loggia»: capsula flottante ───────────────────────────────── */
.mh {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}
.mh-bar {
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 22px;
  background: color-mix(in srgb, var(--navigazione) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid color-mix(in srgb, var(--linea) 70%, transparent);
  border-radius: var(--r-pill);
  box-shadow: var(--ombra-nicchia);
}
.mh-bar .logo { height: 22px; margin-right: auto; }
.mh-actions { display: flex; align-items: center; gap: 6px; }
.mh .btn { height: 44px; padding: 0 18px; font-size: 14px; }
.mh-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  color: var(--testo); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background var(--t-breve) var(--c-standard);
}
.mh-link:hover { background: var(--incassata); }
.mh-lang { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; font-weight: 600; }
.mh-menu-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--incassata); border: 0; cursor: pointer; color: var(--testo);
  transition: background var(--t-breve) var(--c-standard);
}
.mh-menu-btn:hover { background: var(--linea); }
.mh-menu-btn .i-close { display: none; }
.mh-menu-btn[aria-expanded="true"] .i-menu { display: none; }
.mh-menu-btn[aria-expanded="true"] .i-close { display: block; }

.mh-panel {
  pointer-events: auto;
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2));
  top: calc(var(--header-h) + 22px);
  width: min(360px, calc(100vw - var(--gutter) * 2));
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  box-shadow: var(--ombra-pezzo);
  padding: 10px;
  transform-origin: top right;
  animation: panel-in var(--t-medio) var(--c-standard);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.mh-panel nav { display: grid; gap: 6px; }
.mh-panel nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 13px 16px; border-radius: var(--r-md);
  color: var(--testo); text-decoration: none; font-weight: 600; font-size: 15px;
}
.mh-panel nav a:hover { background: var(--incassata); }
.mh-panel nav a[aria-current="page"] { background: var(--primario-tenue); color: var(--su-primario-tenue); }
.mh-panel nav a[aria-current="page"]::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--holo);
}
.mh-panel-foot {
  margin-top: 8px; padding: 12px 14px 6px; border-top: 1px solid var(--linea);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.socials { display: flex; gap: 6px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--testo-2); background: var(--incassata); transition: color var(--t-breve), background var(--t-breve);
}
.socials a:hover { color: var(--testo); background: var(--linea); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.theme-switch {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--incassata);
}
.theme-switch button {
  border: 0; background: transparent; cursor: pointer; height: 34px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 650; color: var(--testo-2);
}
.theme-switch button[aria-pressed="true"] { background: var(--superficie); color: var(--testo); box-shadow: var(--ombra-nicchia); }

/* Capsula: le voci testuali escono quando non ci stanno più accanto al logo (restano nel menu). */
.mh-link { white-space: nowrap; }
@media (max-width: 960px) { .mh-hide-md { display: none !important; } }
@media (max-width: 760px) { .mh-link.mh-hide-sm { display: none !important; } }

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 58px; }
  .mh-bar { padding-left: 18px; }
  .mh-bar .logo { height: 19px; }
  .mh-hide-sm { display: none !important; }
}

/* ── Pulsanti ─────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--superficie);
  --btn-fg: var(--testo);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-sans); font-size: 16px; line-height: 20px; font-weight: 650;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-breve) var(--c-standard), background var(--t-breve) var(--c-standard),
    box-shadow var(--t-breve) var(--c-standard), border-color var(--t-breve) var(--c-standard);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: var(--oltremare); --btn-fg: #fff; box-shadow: var(--ombra-primario); }
.btn--primary:hover { --btn-bg: #3535e6; }
.btn--primary:active { --btn-bg: var(--oltremare-700); }
.on-notte .btn--primary, [data-theme="dark"] .btn--primary { box-shadow: none; }
.btn--secondary { --btn-bg: transparent; border-color: var(--linea-2); }
.btn--secondary:hover { --btn-bg: var(--incassata); }
.btn--gesso { --btn-bg: var(--gesso); --btn-fg: var(--inchiostro); }
.btn--gesso:hover { --btn-bg: #fff; }
.btn--ghost { --btn-bg: transparent; padding: 0 14px; }
.btn--ghost:hover { --btn-bg: var(--incassata); }
.btn--block { width: 100%; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn .icon { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; color: var(--link);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t-breve) var(--c-standard); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Badge ufficiali degli store */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a {
  display: block; height: 52px; border-radius: 12px; line-height: 0;
  transition: transform var(--t-breve) var(--c-standard), opacity var(--t-breve);
}
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 100%; width: auto; }
.stores--center { justify-content: center; }

/* ── Perla, nicchia, Registro ─────────────────────────────────────────── */
.pearl {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--holo); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.pearl--lg { width: 18px; height: 18px; }
.pearl--live { animation: pearl-arrive var(--t-arrivo) var(--c-arrivo) both; }
@keyframes pearl-arrive { from { transform: translateY(-14px) scale(.6); opacity: 0; } }

/* Cornice a nicchia: sommità ad arco, base con raggio. Rapporto 4:5. */
.niche {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 40% 40% var(--r-lg) var(--r-lg);
  background: var(--oltremare);
}
.niche > img { width: 100%; height: 100%; object-fit: cover; }
.niche--square { aspect-ratio: 1; border-radius: 50% 50% var(--r-md) var(--r-md) / 50% 50% var(--r-md) var(--r-md); }
.niche--empty {
  background: transparent;
  border: 2px dashed var(--linea-2);
}
/* Avatar ad arco (rapporto 1:1,15) */
.avatar {
  --size: 44px;
  width: var(--size); height: calc(var(--size) * 1.15); flex: none;
  border-radius: 50% 50% calc(var(--size) * .22) calc(var(--size) * .22) / 43.5% 43.5% calc(var(--size) * .22) calc(var(--size) * .22);
  background: var(--oltremare); color: #fff; overflow: hidden;
  display: grid; place-items: center;
  font-weight: 750; font-size: calc(var(--size) * .4); font-stretch: 125%;
  text-transform: lowercase;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-medio); }
.avatar img.loaded { opacity: 1; }

.holo-bar { height: 4px; border-radius: 4px; background: var(--holo-line); }

/* ── Superfici ────────────────────────────────────────────────────────── */
.card {
  background: var(--superficie);
  border-radius: var(--r-lg);
  box-shadow: var(--ombra-nicchia);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--incassata); color: var(--testo);
  font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.chip--tenue { background: var(--primario-tenue); color: var(--su-primario-tenue); }
.chip--line { background: transparent; border: 1px solid var(--linea-2); }
.chip .icon { width: 16px; height: 16px; }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--primario-tenue); color: var(--su-primario-tenue);
  font-size: 14px; line-height: 20px;
}
.note .icon { width: 20px; height: 20px; margin-top: 0; }
.note--error { background: color-mix(in srgb, var(--cinabro) 12%, var(--superficie)); color: var(--cinabro-testo); }
.note--ok { background: color-mix(in srgb, var(--verderame) 12%, var(--superficie)); color: var(--verderame-testo); }
.note--warn { background: color-mix(in srgb, var(--ambra) 18%, var(--superficie)); color: var(--ambra-testo); }

/* ── Campi ────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 8px; text-align: left; }
.field + .field { margin-top: 16px; }
.field-label { font-size: 13px; font-weight: 650; color: var(--testo-2); }
.field-hint { font-size: 12px; color: var(--testo-3); }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 52px; padding: 0 52px 0 18px;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  background: var(--incassata); color: var(--testo);
  font-family: var(--f-sans); font-size: 16px;
  transition: border-color var(--t-breve), background var(--t-breve);
}
.input::placeholder { color: var(--testo-3); }
.input:hover { border-color: var(--linea-2); }
.input:focus { outline: none; border-color: var(--oltremare); background: var(--superficie); }
.input-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent;
  color: var(--testo-3); cursor: pointer; display: grid; place-items: center;
}
.input-toggle:hover { color: var(--testo); background: var(--linea); }
.input-toggle .i-hide { display: none; }
.input-toggle[aria-pressed="true"] .i-show { display: none; }
.input-toggle[aria-pressed="true"] .i-hide { display: block; }

/* ── Movimento ────────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--c-standard), transform 600ms var(--c-standard); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Caricamento: la perla rimbalza nella nicchia */
.pearl-loader { width: 44px; height: 54px; position: relative; margin: 0 auto; }
.pearl-loader::before {
  content: ""; position: absolute; inset: 0;
  border: 3px solid var(--linea-2); border-bottom: 0;
  border-radius: 22px 22px 0 0;
}
.pearl-loader::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--holo);
  animation: pearl-bounce 900ms var(--c-arrivo) infinite alternate;
}
@keyframes pearl-bounce { from { transform: translateY(-22px); } to { transform: translateY(0); } }

.skeleton {
  background: linear-gradient(100deg, var(--incassata) 30%, color-mix(in srgb, var(--incassata) 40%, var(--superficie)) 50%, var(--incassata) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Footer (sempre notte) ────────────────────────────────────────────── */
.mf { padding: clamp(56px, 7vw, 88px) 0 32px; margin-top: auto; }
.mf-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; align-items: start; }
.mf-brand .logo { height: 92px; }
.mf-firma { margin-top: 22px; font-size: 18px; font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: lowercase; letter-spacing: -.01em; }
.mf-brand .socials { margin-top: 22px; }
.mf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.mf-col h2 { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-3); margin-bottom: 14px; }
.mf-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.mf-col a, .mf .footer-link {
  color: var(--testo-2); text-decoration: none; font-size: 14px; font-weight: 500;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.mf-col a:hover, .mf .footer-link:hover { color: var(--testo); }
.mf-col address { font-style: normal; font-size: 14px; color: var(--testo-2); line-height: 1.6; }
.mf-bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--linea);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
}
.mf-bottom .footer-links-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mf-bottom .footer-link { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--testo-3); }
@media (max-width: 860px) {
  .mf-top { grid-template-columns: 1fr; gap: 40px; }
  .mf-brand .logo { height: 76px; }
}
@media (max-width: 680px) {
  .mf-cols { grid-template-columns: 1fr 1fr; }
  .mf-cols .mf-col:last-child { grid-column: 1 / -1; }
}
.mf-col { min-width: 0; }
.mf-col a, .mf-col address { overflow-wrap: anywhere; }
/* Footer compatto (pagine dell'app) */
.mf--compact { padding: 40px 0 28px; }
.mf--compact .mf-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.mf--compact .logo { height: 22px; }
.mf--compact nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mf--compact nav a { color: var(--testo-2); text-decoration: none; font-size: 13px; }
.mf--compact nav a:hover { color: var(--testo); }
.mf--compact .mf-bottom { margin-top: 24px; }

/* ── Banda di download (riusata da home e pagine dell'app) ────────────── */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.cta-band .t-display { max-width: 14ch; }
.cta-band .t-lead { max-width: 46ch; }
.arcata-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='96' viewBox='0 0 72 96'%3E%3Cpath d='M14 84V36a22 22 0 0 1 44 0v48' fill='none' stroke='%23F4F3EE' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 72px 96px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0, transparent 70%);
}
.arcata-bg--ink {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='96' viewBox='0 0 72 96'%3E%3Cpath d='M14 84V36a22 22 0 0 1 44 0v48' fill='none' stroke='%2315133A' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E");
}
[data-theme="dark"] .arcata-bg--ink {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='96' viewBox='0 0 72 96'%3E%3Cpath d='M14 84V36a22 22 0 0 1 44 0v48' fill='none' stroke='%23F4F3EE' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E");
}

/* ══ HOME ═════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc((var(--header-h) + 12px) * -1);
  padding: calc(var(--header-h) + 12px + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 110px);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .t-manifesto { color: var(--gesso); }
.hero-copy .t-lead { max-width: 34ch; }
.hero-copy .registro { display: flex; gap: 10px; align-items: center; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero-niche {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--r-xl) var(--r-xl) / 40% 40% var(--r-xl) var(--r-xl);
  overflow: hidden;
  background: #2a28a8;
  box-shadow: 0 40px 120px rgba(43, 43, 217, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.hero-niche img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.18); }
.hero-tag {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--superficie) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--linea); border-radius: var(--r-pill);
  padding: 8px 16px 8px 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  font-size: 14px; font-weight: 650; color: var(--testo);
  animation: float 7s ease-in-out infinite;
}
.hero-tag .tag-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primario-tenue); color: var(--su-primario-tenue); }
.hero-tag .tag-ico .icon { width: 18px; height: 18px; }
.hero-tag--a { left: -8%; top: 16%; }
.hero-tag--b { right: -6%; top: 52%; animation-delay: -2.4s; }
.hero-tag--c { left: 2%; bottom: 8%; animation-delay: -4.6s; }
.hero-tag--b .tag-ico { background: color-mix(in srgb, var(--cinabro) 22%, transparent); color: #FF7A5E; }
.hero-tag--c .tag-ico { background: color-mix(in srgb, var(--verderame) 22%, transparent); color: #4FD8AE; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-glow {
  position: absolute; inset: auto -20% -40% 30%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43, 43, 217, .45), transparent);
  filter: blur(20px);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 400px; margin-top: 16px; }
  .hero-tag--a { left: -4%; }
  .hero-tag--b { right: -4%; }
}
@media (max-width: 480px) {
  .hero-tag { font-size: 13px; padding: 6px 12px 6px 6px; }
  .hero-tag .tag-ico { width: 28px; height: 28px; }
  .hero-tag--a { left: -2%; top: 10%; }
  .hero-tag--b { right: -2%; }
}

/* Promessa: tre nicchie */
.promise-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.promise-item { display: grid; gap: 18px; align-content: start; }
.promise-item .niche { box-shadow: var(--ombra-pezzo); }
.promise-item .niche img { transition: transform 900ms var(--c-standard); }
.promise-item:hover .niche img { transform: scale(1.04); }
.promise-item p { color: var(--testo-2); max-width: 32ch; }
@media (max-width: 760px) {
  .promise { grid-template-columns: 1fr; gap: 40px; }
  .promise-item { grid-template-columns: 132px 1fr; align-items: center; gap: 20px; }
  .promise-item .promise-text { display: grid; gap: 8px; }
}

/* Il nome: my → social → collection */
.name-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* Le colonne stanno sul contenitore: ogni riga le eredita con subgrid,
   così i testi a destra partono tutti dalla parola più lunga */
.name-steps { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; }
.name-step {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; row-gap: 6px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--linea);
}
.name-step:last-child { border-bottom: 1px solid var(--linea); }
.name-step .t-display { grid-row: span 2; min-width: 5.2ch; }
.name-step .registro { color: var(--testo-3); }
.name-step p { color: var(--testo-2); font-size: 15px; }
@media (max-width: 860px) { .name-band .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .name-steps { grid-template-columns: 1fr; } .name-step .t-display { grid-row: auto; } }

/* Funzioni con le schermate dell'app */
.features { display: grid; gap: clamp(72px, 10vw, 140px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature:nth-child(even) .feature-art { order: 2; }
.feature-copy { display: grid; gap: 18px; justify-items: start; max-width: 460px; }
.feature-copy ul { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 6px; }
.feature-copy li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--testo-2); font-size: 15px; }
.feature-copy li .icon { color: var(--link); width: 22px; height: 22px; }
.feature-art {
  position: relative; display: grid; place-items: center;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px) 0;
  border-radius: 50% 50% var(--r-xl) var(--r-xl) / 30% 30% var(--r-xl) var(--r-xl);
  overflow: hidden;
  background: var(--oltremare);
  min-height: 420px;
}
.feature-art--notte { background: #1B1A44; }
.feature-art--gesso { background: #E9E7DF; }
[data-theme="dark"] .feature-art--gesso { background: #1D1C45; }
.feature-art .phone {
  width: min(330px, 78%);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 30px 80px rgba(12, 11, 34, .45);
  align-self: end;
}
.feature-art .floating-piece {
  position: absolute; width: 30%; max-width: 160px; border-radius: var(--r-md);
  box-shadow: var(--ombra-pezzo);
  border-radius: 50% 50% var(--r-md) var(--r-md) / 40% 40% var(--r-md) var(--r-md);
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-art { min-height: 0; }
}

/* Celo / Mi manca */
.reactions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.reaction { padding: 28px; display: grid; gap: 14px; align-content: start; }
.reaction-mark { width: 56px; height: 64px; display: grid; place-items: center; }
.reaction-mark .niche-mini {
  width: 44px; height: 54px; border-radius: 22px 22px 8px 8px;
  display: grid; place-items: center;
}
.reaction--celo .niche-mini { background: var(--oltremare); }
.reaction--manca .niche-mini { border: 2px dashed var(--linea-2); }
.reaction .t-headline { font-size: 26px; }
@media (max-width: 640px) { .reactions { grid-template-columns: 1fr; } }

/* Arcata: la nicchia vuota */
.arcade-figure { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--ombra-nicchia); }
.arcade-figure img { width: 100%; aspect-ratio: 9 / 5; object-fit: cover; }
.arcade-figure figcaption {
  position: absolute; left: 50%; top: 9%; transform: translateX(-50%);
  background: var(--notte); color: var(--gesso); border-radius: var(--r-pill);
  padding: 8px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}

/* Fiducia: chiarezza da cassaforte */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.trust-item { padding: 24px; display: grid; gap: 10px; align-content: start; }
.trust-item .icon { width: 28px; height: 28px; color: var(--link); }
.trust-item p { color: var(--testo-2); font-size: 15px; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* Numeri */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.figure { padding: 22px 0; border-top: 1px solid var(--linea); display: grid; gap: 6px; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr 1fr; } }

.section-head { display: grid; gap: 16px; max-width: 720px; }
.section-head--center { justify-items: center; text-align: center; margin: 0 auto; }

/* ══ PAGINE DELL'APP (post, profilo, auth) ════════════════════════════ */
.app-main { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); position: relative; }
.app-main > .wrap { max-width: calc(600px + var(--gutter) * 2); }

/* Post condiviso */
.post { overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.post-head .who { min-width: 0; display: grid; gap: 2px; }
.post-head .who strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-reshare {
  display: flex; align-items: center; gap: 8px; margin: 0 20px 12px; padding: 8px 12px;
  border-radius: var(--r-md); background: var(--incassata); font-size: 13px; color: var(--testo-2);
}
.post-reshare .icon { width: 16px; height: 16px; }
.post-reshare strong { color: var(--testo); font-weight: 650; }
.post-text { padding: 0 20px 16px; font-size: 16px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.post-text .tag, .post-text .mention { color: var(--link); font-weight: 600; }
.post-media { padding: 0 12px; }
.post-gallery { display: grid; gap: 6px; border-radius: var(--r-md); overflow: hidden; }
.post-gallery.n2 { grid-template-columns: 1fr 1fr; }
.post-gallery.n3 { grid-template-columns: 1fr 1fr; }
.post-gallery.n3 img:first-child { grid-column: 1 / -1; }
.post-gallery.n4 { grid-template-columns: 1fr 1fr; }
.post-gallery img {
  width: 100%; height: 100%; object-fit: cover; background: var(--incassata);
  aspect-ratio: 1; opacity: 0; transition: opacity var(--t-medio);
}
.post-gallery.n1 img { aspect-ratio: auto; max-height: 620px; }
.post-gallery img.loaded { opacity: 1; }
.post-piece {
  display: flex; align-items: center; gap: 12px; margin: 14px 20px 0; padding: 10px 14px 10px 10px;
  border-radius: var(--r-md); border: 1px solid var(--linea);
}
.post-piece .piece-ico { width: 36px; height: 42px; border-radius: 18px 18px 6px 6px; background: var(--oltremare); color: #fff; display: grid; place-items: center; flex: none; }
.post-piece .piece-ico .icon { width: 18px; height: 18px; }
.post-piece strong { display: block; font-size: 14px; font-weight: 700; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 0; }
.post-actions {
  display: flex; align-items: center; gap: 4px; padding: 12px 12px 14px; margin-top: 10px;
  border-top: 1px solid var(--linea);
}
.post-actions .act {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border-radius: var(--r-pill); color: var(--testo-2);
  font-family: var(--f-mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.post-actions .act .icon { width: 22px; height: 22px; }
.post-actions .act--heart .icon { color: var(--cinabro); }
.post-actions .open { margin-left: auto; }

/* Profilo condiviso */
.profile { overflow: hidden; }
.profile-cover { height: 148px; background: var(--oltremare) center / cover no-repeat; position: relative; }
.profile-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='64' viewBox='0 0 48 64'%3E%3Cpath d='M9 58V24a15 15 0 0 1 30 0v34' fill='none' stroke='%23F4F3EE' stroke-opacity='.14' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 48px 64px;
}
.profile-cover.has-image::after { display: none; }
.profile-id { display: flex; align-items: flex-end; gap: 16px; padding: 0 22px; margin-top: -46px; position: relative; }
.profile-id .avatar { --size: 92px; box-shadow: 0 0 0 4px var(--superficie), var(--ombra-nicchia); }
.profile-id .names { padding-bottom: 6px; min-width: 0; display: grid; gap: 2px; }
.profile-id h1 { font-size: 22px; line-height: 1.15; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-seal {
  display: inline-flex; align-items: center; gap: 6px; margin: 14px 22px 0;
  height: 28px; padding: 0 12px 0 8px; border-radius: var(--r-pill);
  background: var(--primario-tenue); color: var(--su-primario-tenue); font-size: 12px; font-weight: 700;
}
.profile-seal .icon { width: 16px; height: 16px; }
.profile-bio { padding: 14px 22px 0; color: var(--testo-2); font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 22px 22px; border-radius: var(--r-md); background: var(--incassata); }
.profile-stats > div { padding: 14px 8px; display: grid; justify-items: center; gap: 4px; }
.profile-stats > div + div { border-left: 1px solid var(--linea); }
.profile-stats .num { font-family: var(--f-mono); font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Stato vuoto / errore: la nicchia vuota */
.empty { padding: 44px 28px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.empty-niche {
  width: 88px; height: 108px; border: 2.5px dashed var(--linea-2); border-bottom: 0;
  border-radius: 44px 44px 0 0; position: relative; margin-bottom: 8px;
}
.empty-niche::after {
  content: ""; position: absolute; left: -14px; right: -14px; bottom: 0; height: 2.5px; background: var(--linea-2); border-radius: 2px;
}
.empty p { color: var(--testo-2); max-width: 36ch; }

/* Scheletri */
.sk-line { height: 12px; }
.sk-avatar { width: 44px; height: 50px; border-radius: 22px 22px 10px 10px; }

/* Card centrale (auth, rimbalzi) */
.sheet { max-width: 460px; margin: 0 auto; padding: 36px 28px 30px; text-align: center; }
.sheet > * + * { margin-top: 14px; }
.sheet .t-headline { margin-top: 22px; }
.sheet .t-small { margin-top: 10px; }
.sheet form, .sheet .actions { margin-top: 26px; text-align: left; }
.sheet .actions { display: grid; gap: 10px; text-align: center; }
.sheet .stores { justify-content: center; margin-top: 22px; }
.sheet .stores a { height: 44px; }
.medal {
  width: 76px; height: 92px; margin: 0 auto;
  border-radius: 38px 38px 14px 14px;
  background: var(--oltremare); color: #fff;
  display: grid; place-items: center; position: relative;
  box-shadow: var(--ombra-primario);
}
.medal .icon { width: 32px; height: 32px; }
.medal::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  right: -3px; top: 8px; background: var(--holo); box-shadow: 0 0 0 3px var(--superficie);
  animation: pearl-arrive var(--t-arrivo) var(--c-arrivo) both 200ms;
}
.medal--ok { background: var(--verderame); box-shadow: 0 6px 18px rgba(31, 157, 122, .28); }
.medal--error { background: var(--cinabro); box-shadow: 0 6px 18px rgba(229, 67, 42, .25); }
.medal--error::after, .medal--plain::after { display: none; }
.medal--loading { background: transparent; box-shadow: none; }
.medal--loading::after { display: none; }
.code-box {
  margin-top: 22px; padding: 16px; border-radius: var(--r-md);
  border: 2px dashed var(--linea-2); display: grid; gap: 6px; justify-items: center;
}
.code-box strong { font-family: var(--f-mono); font-size: 26px; font-weight: 650; letter-spacing: .12em; color: var(--link); }
.sheet-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linea); }

/* Pagine piene (404, 401, risorse tecniche) */
.void { display: grid; place-items: center; padding: clamp(48px, 10vw, 120px) var(--gutter); text-align: center; }
.void-inner { display: grid; justify-items: center; gap: 18px; max-width: 560px; }
.void .empty-niche { width: 120px; height: 148px; border-radius: 60px 60px 0 0; }
.void .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }

/* ══ DOCUMENTI (legali, supporto, documentazione) ═════════════════════ */
.doc-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.doc-hero .wrap { display: grid; gap: 16px; justify-items: start; position: relative; z-index: 1; }
.doc-hero .t-lead { max-width: 56ch; }
.doc-hero .crumbs { display: flex; gap: 8px; align-items: center; }
.doc-hero .crumbs a { color: var(--testo-3); text-decoration: none; }
.doc-hero .crumbs a:hover { color: var(--testo); }
.lp-hero { display: grid; gap: 14px; justify-items: start; }
.lp-hero h1 {
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.02em;
  font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: lowercase; text-wrap: balance;
}
.lp-hero .lp-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--testo-2); max-width: 56ch; }
.lp-hero .lp-ver, .legal-updated {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--testo-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.lp-hero .lp-ver::before, .legal-updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--holo); }
.lp-badge { display: none; }

.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.lp-body { display: contents; }
.lp-back { display: none; }
.lp-toc {
  position: sticky; top: calc(var(--header-h) + 32px);
  padding: 20px 18px; border-radius: var(--r-lg); background: var(--superficie); box-shadow: var(--ombra-nicchia);
  max-height: calc(100vh - var(--header-h) - 64px); overflow: auto;
}
.lp-toc h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-3); margin-bottom: 10px; }
.lp-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.lp-toc li { counter-increment: toc; }
.lp-toc a {
  display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 7px 8px; border-radius: var(--r-sm);
  color: var(--testo-2); text-decoration: none; font-size: 14px; line-height: 1.35;
}
.lp-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; color: var(--testo-3); padding-top: 2px; }
.lp-toc a:hover { background: var(--incassata); color: var(--testo); }
.lp-toc a.is-active { background: var(--primario-tenue); color: var(--su-primario-tenue); }
.doc-content { min-width: 0; }
.doc-content > :first-child { margin-top: 0; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .lp-toc { position: static; max-height: none; }
}

.lp-sec { margin-bottom: 52px; scroll-margin-top: calc(var(--header-h) + 32px); }
.lp-sec h2 {
  font-size: clamp(22px, 2.2vw, 26px); line-height: 1.15; font-weight: 750; letter-spacing: -.01em;
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--linea);
}
.lp-sec h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.lp-sec p, .lp-sec ul, .lp-sec ol { font-size: 16px; line-height: 1.7; color: var(--testo-2); margin: 0 0 14px; }
.lp-sec ul, .lp-sec ol { padding-left: 22px; }
.lp-sec li { margin-bottom: 6px; }
.lp-sec li::marker { color: var(--link); }
.lp-sec strong { color: var(--testo); font-weight: 650; }
.lp-sec a { color: var(--link); }
.lp-info, .lp-warn, .lp-urgent {
  padding: 16px 18px; border-radius: var(--r-md); margin: 16px 0;
  background: var(--primario-tenue); color: var(--su-primario-tenue);
}
.lp-info p, .lp-warn p, .lp-urgent p { margin: 0; color: inherit; font-size: 15px; line-height: 1.6; }
.lp-info p + p, .lp-warn p + p { margin-top: 8px; }
.lp-info strong, .lp-warn strong, .lp-urgent strong { color: inherit; }
.lp-warn { background: color-mix(in srgb, var(--ambra) 18%, var(--superficie)); color: var(--ambra-testo); }
.lp-urgent { background: color-mix(in srgb, var(--cinabro) 10%, var(--superficie)); color: var(--testo); border: 1.5px solid color-mix(in srgb, var(--cinabro) 45%, transparent); }
.lp-urgent .u-title { font-weight: 750; color: var(--cinabro-testo); margin-bottom: 6px; }
.lp-urgent .u-desc { color: var(--testo-2); }
.lp-code {
  padding: 16px 18px; border-radius: var(--r-md); margin: 14px 0;
  background: var(--incassata); font-family: var(--f-mono); font-size: 13px; line-height: 1.7; letter-spacing: .02em; color: var(--testo);
  overflow-x: auto;
}
.lp-table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: var(--r-md); border: 1px solid var(--linea); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--superficie); }
.lp-sec > .lp-table { border: 1px solid var(--linea); border-radius: var(--r-md); overflow: hidden; display: block; overflow-x: auto; margin: 0 0 20px; }
.lp-table th {
  text-align: left; padding: 12px 14px; background: var(--incassata);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--testo-2);
}
.lp-table td { padding: 12px 14px; border-top: 1px solid var(--linea); color: var(--testo-2); vertical-align: top; line-height: 1.5; }
.lp-steps { list-style: none; padding: 0 !important; counter-reset: stp; }
.lp-steps li { counter-increment: stp; display: grid; grid-template-columns: 34px 1fr; gap: 14px; margin-bottom: 14px; }
.lp-steps li::before {
  content: counter(stp); width: 30px; height: 36px; border-radius: 15px 15px 6px 6px;
  background: var(--oltremare); color: #fff; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px; font-weight: 650;
}
.lp-cta-wrap { margin: 26px 0; }
.lp-cta {
  display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--oltremare); color: #fff !important; text-decoration: none !important; font-weight: 650;
  box-shadow: var(--ombra-primario);
}
.lp-cta:hover { background: #3535e6; }

/* Indice documenti */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-bottom: clamp(64px, 8vw, 112px); }
.doc-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 6px 18px; align-items: start;
  padding: 22px; border-radius: var(--r-lg); background: var(--superficie); box-shadow: var(--ombra-nicchia);
  color: var(--testo); text-decoration: none;
  transition: transform var(--t-medio) var(--c-standard), box-shadow var(--t-medio) var(--c-standard);
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--ombra-pezzo); }
.doc-card .doc-ico {
  grid-row: span 2; width: 48px; height: 56px; border-radius: 24px 24px 8px 8px;
  background: var(--primario-tenue); color: var(--su-primario-tenue); display: grid; place-items: center;
}
.doc-card .doc-ico .icon { width: 22px; height: 22px; }
.doc-card-title { font-size: 17px; font-weight: 700; }
.doc-card-copy { font-size: 14px; color: var(--testo-2); line-height: 1.5; }

/* Comunicati stampa */
.press-page { padding-bottom: clamp(64px, 8vw, 112px); }
.press-hero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
.press-page .empty p { text-wrap: balance; }
.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.press-item {
  display: grid; gap: 8px; padding: 22px; border-radius: var(--r-lg);
  background: var(--superficie); box-shadow: var(--ombra-nicchia); color: var(--testo); text-decoration: none;
  transition: transform var(--t-medio) var(--c-standard), box-shadow var(--t-medio) var(--c-standard);
}
.press-item:hover { transform: translateY(-3px); box-shadow: var(--ombra-pezzo); }
.press-item .registro { color: var(--testo-3); }
.press-item-title { font-size: 19px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.press-item-copy { font-size: 15px; color: var(--testo-2); line-height: 1.5; }
.press-body { margin-bottom: 0; }
.press-body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.press-foot {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--linea);
}
.press-foot h2 { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-3); margin: 0 0 10px; }
.press-foot p { font-size: 14px; line-height: 1.6; color: var(--testo-2); margin: 0; }
.press-foot a { color: var(--link); overflow-wrap: anywhere; }
@media (max-width: 640px) { .press-foot { grid-template-columns: 1fr; gap: 24px; } }

/* Supporto: domande frequenti */
.faq { display: grid; gap: 10px; padding-bottom: clamp(64px, 8vw, 112px); }
.faq details { border-radius: var(--r-lg); background: var(--superficie); box-shadow: var(--ombra-nicchia); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-size: 17px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 32px; height: 32px; border-radius: 50%; background: var(--incassata); display: grid; place-items: center; flex: none; transition: transform var(--t-medio) var(--c-standard), background var(--t-breve); }
.faq summary .plus .icon { width: 18px; height: 18px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--primario-tenue); color: var(--su-primario-tenue); }
.faq .answer { padding: 0 22px 22px; color: var(--testo-2); font-size: 16px; line-height: 1.65; }

/* Brand kit */
.kit-section { padding-bottom: clamp(48px, 6vw, 80px); }
.kit-section > h2 { margin-bottom: 20px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kit-card { padding: 14px; display: grid; gap: 14px; }
.kit-preview {
  height: 180px; border-radius: var(--r-md); display: grid; place-items: center; padding: 28px;
  background: var(--gesso); border: 1px solid var(--linea);
}
.kit-preview img { max-height: 100%; width: auto; max-width: 100%; }
.kit-preview--notte { background: var(--notte); border-color: transparent; }
.kit-preview--oltremare { background: var(--oltremare); border-color: transparent; }
.kit-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; }
.kit-meta strong { font-size: 15px; }
.kit-actions { display: flex; gap: 8px; padding: 0 6px 6px; }
.kit-actions .btn { flex: 1; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.swatch { padding: 0; overflow: hidden; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.swatch .chip-color { height: 96px; }
.swatch .swatch-meta { padding: 12px 14px 14px; display: grid; gap: 2px; }
.swatch .swatch-meta strong { font-size: 15px; text-transform: lowercase; }
.type-specimen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-specimen .card { padding: 26px; display: grid; gap: 12px; }
@media (max-width: 760px) { .type-specimen { grid-template-columns: 1fr; } }

/* ── Banner cookie ────────────────────────────────────────────────────── */
.mysc-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin-left: auto;
  background: var(--superficie); color: var(--testo);
  border: 1px solid var(--linea); border-radius: var(--r-lg); box-shadow: var(--ombra-pezzo);
  padding: 20px; animation: panel-in var(--t-medio) var(--c-standard);
}
.mysc-cookie-content { display: grid; gap: 16px; }
.mysc-cookie-title { font-weight: 750; font-size: 16px; margin: 0 0 4px; font-stretch: 125%; text-transform: lowercase; }
.mysc-cookie-body { font-size: 14px; line-height: 1.55; color: var(--testo-2); margin: 0; }
.mysc-cookie-body a { color: var(--link); }
.mysc-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mysc-cookie-button {
  flex: 1 1 160px; height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  font-family: var(--f-sans); font-size: 14px; font-weight: 650; cursor: pointer;
  border: 1.5px solid var(--linea-2); background: transparent; color: var(--testo);
}
.mysc-cookie-button:hover { background: var(--incassata); }
.mysc-cookie-button-primary { background: var(--oltremare); border-color: var(--oltremare); color: #fff; }
.mysc-cookie-button-primary:hover { background: #3535e6; }

/* Pittogrammi delle nicchie (maschera: prendono il colore del testo) */
.picto {
  display: inline-block; width: 20px; height: 20px; flex: none;
  background: currentColor;
  -webkit-mask: var(--picto) center / contain no-repeat;
  mask: var(--picto) center / contain no-repeat;
}
.niche-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.chip--niche { height: 40px; padding: 0 16px 0 12px; gap: 8px; background: var(--superficie); border: 1px solid var(--linea); font-size: 14px; }
.cta-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 40px rgba(12, 11, 34, .35); }

/* Ritocchi della home */
.name-step .t-display { font-size: clamp(30px, 3.6vw, 48px); }
.feature-copy .t-display { font-size: clamp(30px, 3.6vw, 46px); }
/* Nel tema notte le bande «notte» si staccano dal fondo con una tinta appena più chiara */
[data-theme="dark"] .section.on-notte:not(.hero) { background: #12113A; }
[data-theme="dark"] .mf { border-top: 1px solid var(--linea); }
[data-theme="dark"] .section.on-notte .chip--niche { background: var(--incassata); }

/* Sigilli del profilo: tinta per tipo, come nell'app (user_badge_icon.dart) */
.profile-seal[data-badge="verified"] { background: color-mix(in srgb, var(--verderame) 14%, var(--superficie)); color: var(--verderame-testo); }
.profile-seal[data-badge="founder"] { background: var(--inchiostro); color: var(--gesso); }
[data-theme="dark"] .profile-seal[data-badge="founder"] { background: var(--gesso); color: var(--inchiostro); }
.profile-seal[data-badge="hyper_seller"] { background: color-mix(in srgb, var(--cinabro) 12%, var(--superficie)); color: var(--cinabro-testo); }
.profile-seal[data-badge="hyper_collector"] { background: var(--ambra); color: var(--inchiostro); }

/* Ingresso delle card caricate */
#post-card.visible, #profile-card.visible, .rise { animation: rise var(--t-medio) var(--c-standard) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.sheet [data-state]:not(.hidden) { animation: rise var(--t-medio) var(--c-standard) both; }
.sheet-foot { display: flex; align-items: center; justify-content: center; gap: 8px; }
.sheet-foot .icon { width: 16px; height: 16px; }
.note > span { flex: 1; }
.post-gallery.n3 img:first-child { aspect-ratio: 4 / 3; }
.registro--keep { text-transform: none; }
.doc-layout > aside { align-self: stretch; }

/* Pezzo condiviso (/collectibles/:id) */
.piece { overflow: hidden; display: grid; }
.piece-media { padding: 22px 22px 0; display: grid; gap: 12px; justify-items: center; }
.piece-frame { width: min(100%, 360px); box-shadow: var(--ombra-pezzo); background: var(--incassata); }
.piece-frame img { opacity: 0; transition: opacity var(--t-medio); }
.piece-frame img.loaded { opacity: 1; }
.piece-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.piece-thumbs button {
  width: 52px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 26px 26px 10px 10px;
  overflow: hidden; background: var(--incassata); cursor: pointer;
}
.piece-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.piece-thumbs button.is-active { border-color: var(--oltremare); }
.piece-body { padding: 22px; display: grid; gap: 12px; }
.piece-title { text-transform: none; }
.piece-desc { color: var(--testo-2); white-space: pre-wrap; word-break: break-word; }
.piece-owner { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); margin: 4px 0 6px; }
.piece-owner .who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.piece-owner .act { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--testo-2); }
.piece-owner .act .icon { width: 20px; height: 20px; color: var(--cinabro); }
.owner-name { font-weight: 700; color: var(--testo); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.owner-name:hover { color: var(--link); }
#piece-card.visible { animation: rise var(--t-medio) var(--c-standard) both; }
.open-app-hint { margin: 14px 0 0; text-align: left; }
