/* Sirio — sito. Nessuna dipendenza, nessun servizio esterno. */

@font-face {
  font-family: "SirioDisplay";
  src: url("../fonts/Archivo-ExpandedExtraBold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "SirioSerif";
  src: url("../fonts/InstrumentSerif-Italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "SirioMono";
  src: url("../fonts/DMMono-Regular.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #070b1f;
  --bg-2: #0d1331;
  --panel: #10163a;
  --tile: #161d47;
  --ink: #f5f3ee;
  --dim: #a9b2d3;
  --muted: #8b95bb;
  --line: rgba(245, 243, 238, 0.12);
  --gold: #ffc24b;
  --magenta: #ff3d9a;
  --violet: #9b4dff;
  --azure: #39b7ff;
  --ink-light: #0b1030;
  --ring: linear-gradient(90deg, var(--gold), var(--magenta) 40%, var(--violet) 70%, var(--azure));
  --display: "SirioDisplay", "Arial Black", sans-serif;
  --serif: "SirioSerif", Georgia, serif;
  --mono: "SirioMono", ui-monospace, "Cascadia Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
::selection { background: var(--violet); color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 6px; }

/* Grana da pellicola sopra tutto. */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ───────────── Testata ───────────── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  padding-block: 12px;
  background: rgba(7, 11, 31, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--display); font-size: 18px; letter-spacing: 0.08em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-size: 15px; color: var(--dim);
  transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ───────────── Pulsanti ───────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; letter-spacing: 0.01em; overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), color 0.3s, border-color 0.3s;
}
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ring);
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn-solid:hover { color: var(--ink); }
.btn-solid:hover::before { transform: translateY(0); }
.btn-ghost { border: 1px solid rgba(245, 243, 238, 0.28); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: scale(0.97); }

/* ───────────── Apertura ───────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 140px var(--pad) 120px; overflow: hidden;
}
.hero-sky {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background:
    radial-gradient(60% 60% at 72% 40%, rgba(155, 77, 255, 0.28), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(57, 183, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-ring {
  position: absolute; left: 58%; top: 18%; width: 34vw; height: 34vw;
  pointer-events: none; overflow: visible;
}
.arc {
  /* Ogni tratto è lungo 1,494 (85,6° su un raggio di 1). */
  fill: none; stroke-width: 0.045; stroke-dasharray: 1.6; stroke-dashoffset: 1.6;
  animation: paint 0.62s var(--ease-io) forwards;
}
.arc-1 { stroke: var(--gold); animation-delay: 0.55s; }
.arc-2 { stroke: var(--magenta); animation-delay: 1.05s; }
.arc-3 { stroke: var(--violet); animation-delay: 1.55s; }
.arc-4 { stroke: var(--azure); animation-delay: 2.05s; }
@keyframes paint { to { stroke-dashoffset: 0; } }

.hero-copy { position: relative; z-index: 2; max-width: min(860px, 100%); }
.eyebrow, .label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { margin-bottom: 26px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--ring); }
.display {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(46px, 7.6vw, 150px); line-height: 0.94; letter-spacing: -0.025em;
}
.display em {
  font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: -0.01em; font-size: 1.16em; line-height: 0.8;
  background: var(--ring); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
.display.small { font-size: clamp(36px, 5vw, 92px); }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }
.lead { margin-top: 30px; max-width: 34em; font-size: clamp(17px, 1.35vw, 21px); color: var(--dim); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.scroll-hint {
  position: absolute; left: var(--pad); bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint i { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.scroll-hint i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink);
  animation: drip 2s var(--ease-io) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ───────────── Fila delle piattaforme ───────────── */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 38px; width: max-content; align-items: center;
  animation: marquee 38s linear infinite;
  font-family: var(--display); font-size: clamp(20px, 2.2vw, 34px); text-transform: uppercase; letter-spacing: 0.02em;
}
.marquee-track b { color: var(--violet); font-weight: 400; font-size: 0.7em; }
.marquee-track span:nth-of-type(even) { -webkit-text-stroke: 1px rgba(245, 243, 238, 0.6); color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────── Manifesto ───────────── */
.manifesto { padding: clamp(100px, 16vw, 220px) var(--pad); max-width: 1500px; }
.manifesto .label { margin-bottom: 40px; }
.manifesto-text {
  font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.3vw, 76px);
  line-height: 1.12; letter-spacing: -0.01em;
}
.manifesto-text .w { color: rgba(245, 243, 238, 0.16); transition: color 0.4s; }
.manifesto-text .w.on { color: var(--ink); }

/* ───────────── Film ───────────── */
.film { position: relative; height: 230vh; }
.film-sticky {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column;
  justify-content: center; gap: 30px; padding: 90px var(--pad) 40px; overflow: hidden;
}
.film-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.film-frame {
  --k: 0; position: relative; width: 100%; max-height: 72svh; aspect-ratio: 16 / 9; margin-inline: auto;
  border-radius: calc(40px - var(--k) * 26px); overflow: hidden; background: #03050f;
  transform: scale(calc(0.78 + var(--k) * 0.22));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line), 0 0 160px rgba(155, 77, 255, 0.18);
  will-change: transform;
}
.film-video { width: 100%; height: 100%; object-fit: cover; }
.film-sound {
  position: absolute; right: 18px; bottom: 18px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(245, 243, 238, 0.35); background: rgba(7, 11, 31, 0.6); color: var(--ink);
  font: 500 13px var(--sans); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.film-sound .on { display: none; }
.film-sound[aria-pressed="true"] .on { display: inline; }
.film-sound[aria-pressed="true"] .off { display: none; }
.film-note {
  position: absolute; left: 18px; bottom: 22px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 243, 238, 0.55);
}

/* ───────────── Sezioni ───────────── */
section { position: relative; }
.section-head { max-width: 980px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .label { margin-bottom: 22px; }
.section-lead { margin-top: 22px; max-width: 38em; color: var(--dim); font-size: clamp(17px, 1.3vw, 20px); }

/* Comparsa allo scorrere. */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: 0.45s; }
.hero .cta.reveal { transition-delay: 0.6s; }

/* ───────────── Funzioni ───────────── */
.features { padding: clamp(80px, 12vw, 180px) var(--pad); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 380px;
  padding: 26px; border-radius: 26px; background: linear-gradient(170deg, rgba(22, 29, 71, 0.85), rgba(10, 15, 39, 0.9));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transform-style: preserve-3d; transition: transform 0.6s var(--ease), border-color 0.4s, opacity 1s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(155, 77, 255, 0.22), transparent 60%);
}
.card:hover { border-color: rgba(245, 243, 238, 0.24); }
.card:hover::before { opacity: 1; }
.card-wide { grid-column: span 2; flex-direction: row; align-items: stretch; }
.card-wide .card-art { flex: 1.1; }
.card-wide .card-copy { flex: 1; align-self: flex-end; }
.card-art {
  position: relative; flex: 1; min-height: 170px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, rgba(57, 183, 255, 0.12), transparent 60%), rgba(7, 11, 31, 0.55);
  border: 1px solid rgba(245, 243, 238, 0.06);
}
.card h3 { font-family: var(--display); font-size: clamp(19px, 1.5vw, 24px); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1; }
.card p { margin-top: 10px; color: var(--dim); font-size: 15.5px; }

/* Disegni animati delle schede: partono quando la scheda è in vista. */
.art-numbers ol { list-style: none; margin: 0; padding: 18px; display: grid; gap: 8px; }
.art-numbers li {
  display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 10px; background: var(--tile);
  opacity: 0; transform: translateX(-18px) rotate(-1.5deg);
}
.art-numbers li b { font-family: var(--mono); font-weight: 400; width: 44px; color: var(--ink); }
.art-numbers li span { color: var(--dim); font-size: 14px; }
.art-numbers li:nth-child(4n + 1) b { color: var(--gold); }
.art-numbers li:nth-child(4n + 2) b { color: var(--magenta); }
.art-numbers li:nth-child(4n + 3) b { color: var(--violet); }
.art-numbers li:nth-child(4n) b { color: var(--azure); }
.in .art-numbers li { animation: slot 0.9s var(--ease) forwards; }
.in .art-numbers li:nth-child(2) { animation-delay: 0.08s; }
.in .art-numbers li:nth-child(3) { animation-delay: 0.16s; }
.in .art-numbers li:nth-child(4) { animation-delay: 0.24s; }
.in .art-numbers li:nth-child(5) { animation-delay: 0.32s; }
.in .art-numbers li:nth-child(6) { animation-delay: 0.4s; }
@keyframes slot { to { opacity: 1; transform: none; } }

.art-merge { display: grid; place-items: center; }
.art-merge span, .art-merge strong {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-family: var(--mono); font-size: 13px;
}
.art-merge span { border: 1px solid rgba(245, 243, 238, 0.3); color: var(--dim); animation: merge 4.2s var(--ease-io) infinite; }
.art-merge span:nth-child(1) { --x: -90px; --y: -48px; }
.art-merge span:nth-child(2) { --x: 86px; --y: -40px; animation-delay: 0.1s; }
.art-merge span:nth-child(3) { --x: -78px; --y: 46px; animation-delay: 0.2s; }
.art-merge span:nth-child(4) { --x: 80px; --y: 50px; animation-delay: 0.3s; }
.art-merge strong { background: var(--ink); color: var(--bg); font-weight: 400; animation: merged 4.2s var(--ease-io) infinite; }
@keyframes merge {
  0%, 15% { transform: translate(var(--x), var(--y)); opacity: 1; }
  45%, 80% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  100% { transform: translate(var(--x), var(--y)); opacity: 1; }
}
@keyframes merged { 0%, 35% { transform: scale(0.6); opacity: 0; } 50%, 80% { transform: none; opacity: 1; } 95%, 100% { transform: scale(0.6); opacity: 0; } }

.art-qr { display: grid; place-items: center; }
.art-qr::before {
  content: ""; width: 120px; height: 120px; border-radius: 12px; border: 10px solid var(--ink);
  background:
    conic-gradient(from 90deg at 50% 50%, var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 20px 20px;
  -webkit-mask: linear-gradient(#000, #000); mask: linear-gradient(#000, #000);
}
.art-qr i {
  position: absolute; left: calc(50% - 80px); width: 160px; height: 2px; background: var(--magenta);
  box-shadow: 0 0 18px 4px rgba(255, 61, 154, 0.7); animation: scan 2.4s var(--ease-io) infinite alternate;
}
@keyframes scan { from { top: calc(50% - 74px); } to { top: calc(50% + 72px); } }

.art-sync i { position: absolute; border-radius: 12px; border: 1px solid rgba(245, 243, 238, 0.4); background: var(--panel); }
.art-sync .d1 { left: 12%; top: 22%; width: 34%; height: 40%; }
.art-sync .d2 { right: 14%; top: 18%; width: 16%; height: 56%; border-radius: 14px; }
.art-sync .d3 { left: 40%; bottom: 12%; width: 22%; height: 30%; }
.art-sync .lock {
  left: calc(50% - 20px); top: calc(46% - 20px); width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--ink);
  box-shadow: 0 0 0 0 rgba(155, 77, 255, 0.6); animation: pulse 2.2s ease-out infinite;
}
.art-sync .lock::after {
  content: ""; position: absolute; left: 12px; top: 10px; width: 16px; height: 12px; border-radius: 3px; background: var(--bg);
  box-shadow: 0 -7px 0 -3px var(--bg);
}
@keyframes pulse { to { box-shadow: 0 0 0 26px rgba(155, 77, 255, 0); } }

.art-posters { display: flex; gap: 10px; align-items: flex-end; padding: 18px; }
.art-posters i { position: relative; flex: 1; height: 82%; border-radius: 10px; }
.art-posters i::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink) var(--p), rgba(245, 243, 238, 0.25) 0);
}
.art-posters .p1 { --p: 72%; background: linear-gradient(160deg, var(--azure), var(--violet)); }
.art-posters .p2 { --p: 35%; background: linear-gradient(160deg, var(--gold), var(--magenta)); height: 92%; }
.art-posters .p3 { --p: 90%; background: linear-gradient(160deg, var(--violet), var(--bg)); }
.in .art-posters i { animation: lift 1s var(--ease) both; }
.in .art-posters .p2 { animation-delay: 0.1s; }
.in .art-posters .p3 { animation-delay: 0.2s; }
@keyframes lift { from { transform: translateY(30px); opacity: 0; } }

.art-guide { display: grid; align-content: center; gap: 9px; padding: 16px; }
.art-guide i {
  height: 24px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--tile) 0 120px, transparent 120px 126px, rgba(57, 183, 255, 0.25) 126px 210px, transparent 210px 216px);
  animation: guide 14s linear infinite;
}
.art-guide i:nth-child(2) { animation-duration: 18s; opacity: 0.85; }
.art-guide i:nth-child(3) { animation-duration: 11s; opacity: 0.7; }
.art-guide i:nth-child(4) { animation-duration: 16s; opacity: 0.55; }
@keyframes guide { to { background-position: -432px 0; } }

.art-pin { display: flex; align-items: center; justify-content: center; gap: 18px; }
.art-pin i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); animation: pin 3.2s steps(1) infinite; }
.art-pin i:nth-child(2) { animation-delay: 0.4s; }
.art-pin i:nth-child(3) { animation-delay: 0.8s; }
.art-pin i:nth-child(4) { animation-delay: 1.2s; }
@keyframes pin { 0% { background: transparent; } 12%, 70% { background: var(--ink); } 85% { background: transparent; } }

.art-search { display: flex; align-items: center; padding: 0 22px; }
.art-search span {
  font-family: var(--display); font-size: 30px; text-transform: uppercase; overflow: hidden; white-space: nowrap;
  width: 0; animation: type 3.6s steps(4) infinite;
}
.art-search i { width: 3px; height: 34px; margin-left: 4px; background: var(--azure); animation: blink 0.9s steps(1) infinite; }
@keyframes type { 0%, 10% { width: 0; } 50%, 85% { width: 4.6ch; } 100% { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }

.art-light i {
  position: absolute; inset: 40% -20%; height: 20%;
  background: linear-gradient(90deg, transparent, var(--azure) 40%, #fff 50%, var(--magenta) 60%, transparent);
  filter: blur(6px); transform: translateX(-60%) skewX(-20deg); animation: beam 2.8s var(--ease-io) infinite;
}
@keyframes beam { to { transform: translateX(60%) skewX(-20deg); } }

/* ───────────── Piattaforme ───────────── */
.platforms { padding: clamp(80px, 12vw, 180px) var(--pad); border-top: 1px solid var(--line); }
.stores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.store {
  display: flex; flex-direction: column; padding: 28px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 22, 58, 0.9), rgba(7, 11, 31, 0.9)); min-height: 280px;
  transition: border-color 0.4s, transform 0.6s var(--ease), opacity 1s var(--ease);
}
.store:hover { border-color: rgba(245, 243, 238, 0.3); transform: translateY(-4px); }
.store svg { width: 54px; height: 54px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.store svg .fill { fill: rgba(155, 77, 255, 0.45); stroke: none; }
.store h3 { font-family: var(--display); font-size: 20px; text-transform: uppercase; line-height: 1.15; }
.store p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.store-link {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; transition: background 0.3s, border-color 0.3s;
}
.store-link .where { font-weight: 600; font-size: 15px; }
.store-link .state { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.store-link[aria-disabled="true"] { cursor: default; }
/* Badge ufficiali: stessa altezza visibile (48 px), margine di 1/4 attorno,
   nessuna modifica all'immagine. Il PNG di Google Play ha un bordo
   trasparente: l'immagine è più alta perché il badge resti uguale. */
[hidden] { display: none !important; }
.store-badge { display: inline-flex; align-self: flex-start; margin-top: auto; padding-top: 12px; border-radius: 9px; transition: transform 0.4s var(--ease); }
.store-badge img { height: 48px; width: auto; }
.store-badge img.badge-play { height: 62.5px; margin: -7.25px 0; }
.store-badge:hover { transform: translateY(-2px); }
.foot-badges { margin-top: 50px; }
.foot-badges-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.foot-badges .store-badge { margin-top: 0; padding-top: 0; }
.store-link:not([aria-disabled="true"]) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.store-link:not([aria-disabled="true"]) .state { color: var(--bg); }

/* ───────────── Fornitori (sezione chiara) ───────────── */
.providers { background: var(--ink); color: var(--ink-light); border-radius: clamp(24px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 24px); }
.providers-inner { padding: clamp(80px, 11vw, 160px) var(--pad); }
.providers .label { color: #59618a; }
.providers .section-lead { color: #3c4470; }
.providers .display em { background: linear-gradient(90deg, #f0a81a, #f2318c 40%, #8b3df5 70%, #1fa4f0); -webkit-background-clip: text; background-clip: text; }
.steps { list-style: none; margin: 0 0 54px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(11, 16, 48, 0.15); }
.steps li { padding: 28px 26px 10px 0; border-right: 1px solid rgba(11, 16, 48, 0.12); margin-right: 26px; }
.steps li:last-child { border-right: 0; }
.steps span { font-family: var(--mono); font-size: 13px; color: #8b3df5; }
.steps h3 { margin-top: 14px; font-family: var(--display); font-size: 19px; text-transform: uppercase; line-height: 1.15; }
.steps p { margin-top: 10px; color: #3c4470; font-size: 15.5px; }
.providers .btn-solid { background: var(--ink-light); color: var(--ink); }
.providers .btn-ghost { color: var(--ink-light); border-color: rgba(11, 16, 48, 0.3); }
.providers .btn-ghost:hover { border-color: var(--ink-light); }
.fineprint { margin-top: 28px; font-size: 14px; color: #59618a; }

/* ───────────── Sicurezza ───────────── */
.security { padding: clamp(80px, 12vw, 180px) var(--pad); }
.shields { list-style: none; margin: 0 0 60px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.shields li { padding: 34px 34px 34px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.shields li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: 13px; color: var(--violet); margin-bottom: 14px; }
.shields h3 { font-family: var(--display); font-size: 19px; text-transform: uppercase; }
.shields p { margin-top: 8px; color: var(--dim); font-size: 15.5px; max-width: 30em; }
.policies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.policies a {
  display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-radius: 18px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.policies a i { font-style: normal; transition: transform 0.45s var(--ease); }
.policies a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.policies a:hover i { transform: translate(3px, -3px); }

/* ───────────── Avvertenza ───────────── */
.notice { padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.notice-box {
  position: relative; padding: clamp(30px, 4vw, 56px); border-radius: 28px; background: rgba(16, 22, 58, 0.6);
}
.notice-box::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.notice-text { margin-top: 18px; font-size: clamp(19px, 1.8vw, 28px); line-height: 1.45; max-width: 46em; }
.notice-text strong { font-weight: 700; }
.notice-small { margin-top: 18px; color: var(--dim); }

/* ───────────── Domande ───────────── */
.faq { padding: clamp(60px, 9vw, 140px) var(--pad); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.faq .section-head { position: sticky; top: 120px; align-self: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 26px 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: transform 0.45s var(--ease);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 26px; color: var(--dim); max-width: 40em; }

/* ───────────── Chiusura ───────────── */
.closing { padding: clamp(80px, 12vw, 180px) var(--pad); text-align: center; overflow: hidden; }
.closing-big {
  font-family: var(--display); font-size: clamp(90px, 26vw, 440px); line-height: 0.8; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 243, 238, 0.35);
  background: var(--ring); -webkit-background-clip: text; background-clip: text; background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 2.4s var(--ease);
}
.closing.in .closing-big { background-size: 100% 100%; }
.closing-line { margin: 40px 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 54px); }
.closing-line em { color: var(--dim); }

/* ───────────── Piede ───────────── */
.foot { padding: 70px var(--pad) 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot .label { margin-bottom: 8px; }
.foot nav a { color: var(--dim); text-decoration: none; font-size: 15px; transition: color 0.3s; }
.foot nav a:hover { color: var(--ink); }
.foot-company, .foot-small { margin-top: 20px; color: var(--muted); font-size: 14px; }
.foot-small a { color: var(--dim); }
.foot-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-family: var(--mono); }

/* ───────────── Schermi stretti ───────────── */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .stores { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2) { border-right: 0; }
  .shields { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 10px; }
  .faq .section-head { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .hero { align-items: flex-end; padding-top: 52svh; }
  .bento, .stores, .shields, .steps { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; flex-direction: column; }
  .steps li { border-right: 0; margin-right: 0; }
  .film { height: auto; }
  .film-sticky { position: relative; height: auto; padding-block: 60px; }
  .film-frame { transform: none; border-radius: 18px; }
  .film-note { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* Chi preferisce meno movimento: tutto fermo e visibile. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .arc { stroke-dashoffset: 0; }
  .manifesto-text .w { color: var(--ink); }
  .grain { display: none; }
}
