/* AerariumChain design system (prototype v1)
   Direction: editorial art + lifestyle, unmistakably European.
   Dark warm stage, paper ink, one accent: the brand orange. */

/* ---------- fonts (self-hosted, latin) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2?v=2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2?v=2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --panel: #161618;
  --ink: #f6f6f4;
  --muted: #a6a6a3;
  --faint: #7d7c79;
  --accent: #de4d10;
  --accent-soft: rgba(222, 77, 16, 0.14);
  --line: rgba(246, 246, 244, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --w: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

/* light sections: same components, swapped tokens */
.light {
  --bg: #ffffff;
  --bg-2: #f4f4f5;
  --panel: #ffffff;
  --ink: #121214;
  --muted: #5d5d62;
  --faint: #97979c;
  --line: rgba(18, 18, 20, 0.14);
  --accent-soft: rgba(222, 77, 16, 0.09);
  background: var(--bg);
  color: var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--w); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }

/* ---------- type ---------- */
.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
h1, .h1 {
  font: 420 clamp(42px, 6.4vw, 88px)/1.04 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2, .h2 {
  font: 450 clamp(30px, 3.8vw, 52px)/1.12 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3, .h3 { font: 550 clamp(19px, 2vw, 24px)/1.3 var(--sans); }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 640px; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 420; }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 600 15px/1 var(--sans);
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #f05a1a; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- header ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
header.scrolled { background: rgba(10, 10, 11, 0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 30px; height: 72px; }
.nav .logo { height: 22px; width: auto; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links > a { padding: 12px 2px; }
.nav-links a { font: 500 14px/1 var(--sans); color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: 13.5px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; align-items: end;
  padding: 140px 0 64px;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("media/galleria-dei-re.webp") center 30% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.35) 40%, rgba(10,10,11,0.96) 88%),
    radial-gradient(90% 60% at 30% 100%, rgba(10,10,11,0.85), transparent);
}
.hero h1 { max-width: 13ch; margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede {
  font: 420 clamp(19px, 1.9vw, 25px)/1.55 var(--serif);
  color: rgba(246, 246, 244, 0.88);
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px); padding-top: 26px;
}
.stat b { display: block; font: 480 clamp(26px, 2.6vw, 38px)/1 var(--serif); }
.stat span { font: 500 12.5px/1.5 var(--sans); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.scroll-hint { position: absolute; right: var(--pad); bottom: 28px; color: var(--faint); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------- scroll story ---------- */
#story { padding: 0; }
#track { height: 520vh; position: relative; }
#stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr minmax(300px, 430px);
  gap: clamp(20px, 4vw, 70px); align-items: center;
  padding: 0 clamp(24px, 6vw, 110px);
  background: radial-gradient(120% 90% at 40% 10%, #161617 0%, var(--bg) 60%);
}
.cv-wrap { position: relative; display: grid; place-items: center; height: 100vh; }
.cv-wrap .floor { position: absolute; left: 50%; bottom: 10vh; width: 34vmin; height: 7vmin; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%); }
#cv { height: 80vh; z-index: 1; }
.story-copy { position: relative; min-height: 46vh; }
.story-caption {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%) translateY(12px);
  width: 100%; z-index: 2;
  font: 420 clamp(19px, 1.9vw, 27px)/1.45 var(--serif);
  opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease;
}
.story-caption .k {
  display: block;
  font: 600 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.story-caption.on { opacity: 1; transform: translateY(-50%); }
.story-progress { position: absolute; top: 50%; left: -34px; transform: translateY(-50%); display: grid; gap: 10px; z-index: 2; }
.story-progress i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); transition: background 0.3s, transform 0.3s; }
.story-progress i.on { background: var(--accent); transform: scale(1.5); }
.story-static { display: none; }

@media (prefers-reduced-motion: reduce) {
  #track { display: none; }
  .story-static { display: block; padding: clamp(84px, 11vw, 150px) 0; }
  .story-static img { width: min(420px, 78vw); margin: 0 auto 8px; }
  .story-static p { font: 420 18px/1.55 var(--serif); text-align: center; max-width: 560px; margin: 18px auto; color: var(--ink); }
}

/* scroll story on phones: canvas above, caption below */
@media (max-width: 920px) {
  #stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 0; padding: 0 20px; align-items: stretch; }
  .cv-wrap { height: auto; min-height: 0; padding-top: 72px; }
  #cv { width: auto; height: auto; max-width: 100%; max-height: 52vh; }
  .cv-wrap .floor { bottom: 2vh; }
  .story-copy { min-height: 32vh; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .story-caption { font-size: 18px; text-align: center; }
  .story-progress { display: none; }
}

/* ---------- process ---------- */
.acts { display: grid; gap: 0; margin-top: clamp(40px, 6vw, 70px); border-top: 1px solid var(--line); }
.act {
  display: grid; grid-template-columns: 84px 1fr 2fr; gap: clamp(18px, 3vw, 44px);
  padding: clamp(26px, 3.4vw, 42px) 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.act .n { font: 420 clamp(30px, 3.4vw, 46px)/1 var(--serif); color: var(--faint); }
.act h3 { font-family: var(--serif); font-weight: 480; font-size: clamp(21px, 2.2vw, 27px); }
.act p { color: var(--muted); max-width: 56ch; }
.act p b { color: var(--ink); font-weight: 550; }
@media (max-width: 760px) { .act { grid-template-columns: 52px 1fr; } .act p { grid-column: 2; } }
.assurance {
  margin-top: clamp(44px, 6vw, 70px);
  display: flex; align-items: center; gap: 18px;
  font: 420 clamp(20px, 2.1vw, 28px)/1.4 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.assurance::before { content: ""; width: 44px; height: 1px; background: var(--accent); flex: none; }

/* ---------- full-bleed field band ---------- */
.band { padding: 0; }
.band figure { position: relative; height: clamp(420px, 78vh, 760px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(24px, 4vw, 48px) var(--pad);
  background: linear-gradient(180deg, transparent, rgba(10, 10, 11, 0.88));
  display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap;
}
.band figcaption .t { font: 420 clamp(20px, 2.4vw, 30px)/1.3 var(--serif); max-width: 24ch; }
.band figcaption .w { font: 500 12px/1.6 var(--sans); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; text-align: right; }

/* ---------- hub cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(222, 77, 16, 0.45); }
.card .tag { font: 700 12px/1 var(--sans); letter-spacing: 0.22em; color: var(--accent); }
.card h3 { font-family: var(--serif); font-weight: 480; font-size: clamp(22px, 2.2vw, 27px); }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card .shot {
  order: -1; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--faint); font: 500 11px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
}
.shot-care { background: linear-gradient(145deg, #221a2e, #131019 60%), var(--panel); }
.shot-show { background: linear-gradient(145deg, #2e2114, #171017 60%); }
.shot-fund { background: linear-gradient(145deg, #14251f, #101318 60%); }
.card .go { font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; }
.card .go::after { content: " →"; color: var(--accent); }

/* ---------- proof ---------- */
.proof { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-lead { font: 420 clamp(22px, 2.8vw, 34px)/1.4 var(--serif); max-width: 30ch; }
.proof-note { color: var(--faint); font-size: 13px; margin-top: 14px; }
.proof-stats { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; margin: clamp(36px, 5vw, 56px) 0; }
.proof-stats .stat b { font-size: clamp(34px, 4vw, 56px); }
.orgs { display: flex; gap: 22px 44px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 30px; }
.orgs img {
  height: 48px; width: auto;
  background: #ffffff; padding: 10px 16px; border-radius: 10px;
  opacity: 0.92; transition: opacity 0.2s;
}
.orgs img:hover { opacity: 1; }
.orgs span { font: 550 15px/1.2 var(--sans); color: var(--faint); letter-spacing: 0.02em; }
.press { margin-top: 34px; color: var(--faint); font-size: 13.5px; }
.press b { color: var(--muted); font-weight: 550; }
.press-logos { display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.press-logos img {
  height: 42px; width: auto;
  background: #ffffff; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line);
  opacity: 0.92; transition: opacity 0.2s;
}
.press-logos img:hover { opacity: 1; }
.names { columns: 3 240px; column-gap: 40px; margin-top: clamp(26px, 4vw, 40px); list-style: none; }
.names li { font: 500 15px/1.5 var(--sans); color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.faq { margin-top: clamp(30px, 4vw, 50px); border-top: 1px solid var(--line); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 550 17px/1.4 var(--sans); padding: 18px 34px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font: 400 22px/1 var(--sans); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 660px; }

/* ---------- community ---------- */
.community .panel {
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(34px, 5vw, 60px);
  background: linear-gradient(120deg, var(--accent-soft), transparent 45%), var(--panel);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
@media (max-width: 860px) { .community .panel { grid-template-columns: 1fr; } }
.community h2 { margin-bottom: 16px; }
.community p { color: var(--muted); }
.support-line { margin-top: 22px; font-size: 13px; color: var(--faint); }

/* ---------- final ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(36px, 5vw, 68px); max-width: 16ch; margin: 0 auto 22px; }
.final .lede { margin: 0 auto 38px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 0 0 34px; color: var(--faint); font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 5vw, 60px); padding: clamp(40px, 6vw, 64px) 0 clamp(30px, 4vw, 44px); }
.foot-brand img { height: 20px; width: auto; opacity: 0.7; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 30ch; }
.foot-entities { margin-top: 18px; color: var(--faint); font-size: 13px; line-height: 1.7; }
.foot-grid h3 { font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
footer .langs { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
footer .langs a { color: var(--muted); }
footer .langs a:hover { color: var(--ink); }
footer .langs b { color: var(--ink); font-weight: 600; }
.foot-grid nav { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-grid nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-grid nav a:hover { color: var(--ink); }
footer .legal { border-top: 1px solid var(--line); padding-top: 20px; color: var(--faint); font-size: 12.5px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
@keyframes rv-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .rv { animation: rv-in 0.45s ease both; opacity: 1; transform: none; transition: none; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .hero .rv { opacity: 1; transform: none; transition: none; animation: none; } }

/* ---------- inner pages ---------- */
.page-hero { padding: 170px 0 clamp(50px, 7vw, 90px); }
.page-hero h1 { font-size: clamp(38px, 5vw, 72px); max-width: 18ch; margin-bottom: 22px; }
.page-hero .lede { max-width: 720px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(30px, 4vw, 54px) 0; }
.split.rev > figure { order: 2; }
.split figure { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.split figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 16px; }
.split p { color: var(--muted); }
.split p + p { margin-top: 12px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev > figure { order: 0; } }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chips span { font: 550 13px/1 var(--sans); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.chips b { color: var(--accent); }

.flist { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: clamp(34px, 5vw, 54px); }
.flist .f { border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; background: var(--panel); }
.flist .f h3 { font: 550 17px/1.35 var(--sans); margin-bottom: 8px; }
.flist .f p { color: var(--muted); font-size: 14.5px; }

.numstrip { display: flex; gap: clamp(26px, 5vw, 70px); flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(26px, 4vw, 40px) 0; margin: clamp(36px, 5vw, 60px) 0; }

table.compare { width: 100%; border-collapse: collapse; margin-top: clamp(30px, 4vw, 46px); font-size: 15px; }
table.compare th, table.compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { font: 600 12.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
table.compare td:first-child { color: var(--muted); }
table.compare td:last-child { color: var(--ink); }
table.compare .yes { color: var(--accent); font-weight: 600; }
.tablewrap { overflow-x: auto; }

.shotwide { border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 21/9; display: grid; place-items: center; color: var(--faint); font: 500 12px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; background: linear-gradient(145deg, #1d1826, #12101a 60%); margin-top: clamp(30px, 4vw, 46px); }
.light .shotwide { background: linear-gradient(145deg, #efe8da, #e4dccb 60%); }

/* contact form */
.cform { max-width: 640px; display: grid; gap: 16px; margin-top: 34px; }
.cform label { display: grid; gap: 8px; font: 550 13.5px/1 var(--sans); color: var(--muted); }
.cform input, .cform select, .cform textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; width: 100%;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.cform .hp { position: absolute; left: -9999px; }
.legalpage h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 40px 0 12px; }
.legalpage p, .legalpage li { color: var(--muted); max-width: 74ch; }
.draftnote { border: 1px dashed var(--accent); border-radius: 12px; padding: 16px 20px; color: var(--accent); font-size: 14px; margin: 26px 0; }
.crumb { font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.crumb a { color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* scrub su palco chiaro (kit: soggetto nero su fondo bianco) */
.light#story #stage, section.light #stage { background: var(--bg); }
section.light .cv-wrap .floor { background: radial-gradient(ellipse at center, rgba(20, 18, 26, 0.18), transparent 70%); }

/* griglia 2x2 per screenshot app */
.shotgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(30px, 4vw, 44px); }
.shotgrid .shot { aspect-ratio: 16/10; }
@media (max-width: 700px) { .shotgrid { grid-template-columns: 1fr; } }

/* screenshot reali dentro i riquadri */
.shot { overflow: hidden; }
.shot img, .shotwide img, .shot video, .shotwide video { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: inherit; }
.shotwide video { object-position: center; }

/* process scrub: painting macro as full-bleed backdrop, copy over the frames */
.pv-track {
  height: 280vh;
  width: 100vw; margin-left: calc(50% - 50vw);
  margin-top: clamp(40px, 6vw, 70px);
}
.pv-stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow: hidden; background: #000;
}
.pv-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.pv-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.30) 0%, rgba(10, 10, 11, 0) 32%, rgba(10, 10, 11, 0) 52%, rgba(10, 10, 11, 0.82) 100%);
}
.pv-copy {
  position: absolute; inset: auto 0 clamp(44px, 8vh, 92px) 0;
  display: grid; justify-items: center; gap: 22px;
  padding: 0 var(--pad); text-align: center;
  color: #f6f6f4;
}
.pv-captions { display: grid; }
.pv-caption {
  grid-area: 1 / 1;
  max-width: 620px;
  font: 420 clamp(18px, 1.9vw, 26px)/1.45 var(--serif);
  text-shadow: 0 1px 18px rgba(10, 10, 11, 0.55);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pv-caption .k {
  display: block;
  font: 600 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.pv-caption.on { opacity: 1; transform: none; }
.pv-cta {
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pv-cta.on { opacity: 1; transform: none; pointer-events: auto; }
.pv-static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pv-track { display: none; }
  .pv-static { display: grid; }
}
.shot a, .shotwide a { display: block; width: 100%; height: 100%; border-radius: inherit; }

/* ---------- cookie banner ---------- */
.consent[hidden] { display: none; }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.consent p { flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.consent a { color: var(--ink); }
.consent-btns { display: flex; gap: 10px; }
.consent .btn { padding: 11px 20px; font-size: 13.5px; }

/* ---------- selettore lingua nell'header ---------- */
.lang-dd { position: relative; }
.lang-dd > span { font: 600 13px/1 var(--sans); color: var(--muted); cursor: pointer; padding: 10px 4px; display: inline-block; }
.lang-dd:hover > span, .lang-dd:focus-within > span { color: var(--ink); }
.lang-menu { display: none; position: absolute; right: 0; top: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 64px; z-index: 70; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.lang-dd:hover .lang-menu, .lang-dd:focus-within .lang-menu { display: grid; gap: 2px; }
.lang-menu a, .lang-menu b { font: 500 13.5px/1 var(--sans); padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang-menu a:hover { background: var(--accent-soft); color: var(--ink); }
.lang-menu b { color: var(--ink); }

/* ---------- dropdown di navigazione ---------- */
.nav-dd { position: relative; }
.nav-dd > span { font: 500 14px/1 var(--sans); color: var(--muted); cursor: pointer; padding: 12px 2px; display: inline-block; transition: color 0.15s; }
.nav-dd:hover > span, .nav-dd:focus-within > span { color: var(--ink); }
.nav-dd .dd-menu { display: none; position: absolute; left: -14px; top: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 180px; z-index: 70; box-shadow: 0 12px 34px rgba(0,0,0,0.35); }
.nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu { display: grid; gap: 2px; }
.dd-menu a { font: 500 14px/1 var(--sans); color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.dd-menu a:hover { background: var(--accent-soft); color: var(--ink); }

/* hamburger mobile */
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 22px; cursor: pointer; padding: 8px; margin-left: auto; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: grid; gap: 2px; position: absolute; left: 12px; right: 12px; top: 72px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 12px; z-index: 80; box-shadow: 0 16px 44px rgba(0,0,0,0.45);
  }
  .nav.open .nav-dd { position: static; }
  .nav.open .nav-dd > span { display: block; padding: 10px 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
  .nav.open .dd-menu { display: grid; position: static; border: 0; box-shadow: none; padding: 0 0 6px 10px; background: none; }
}

/* ---------- values e vision ---------- */
.values blockquote { font: 420 clamp(20px, 2.4vw, 30px)/1.5 var(--serif); max-width: 30ch; margin: 0; }
.values .v-block + .v-block { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- sezione game (community): l'unica che gioca ---------- */
.game-panel {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  border: 1px solid rgba(222, 77, 16, 0.35); border-radius: 24px;
  padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(135deg, var(--accent-soft), transparent 55%), var(--panel);
}
@media (max-width: 860px) { .game-panel { grid-template-columns: 1fr; } }
.game-panel figure { margin: 0; transform: rotate(-2.5deg); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); border: 1px solid var(--line); transition: transform 0.3s ease; }
.game-panel:hover figure { transform: rotate(-1deg) scale(1.02); }
.game-panel h2 { font-size: clamp(28px, 3.4vw, 46px); }
.game-note { margin-top: 16px; font-size: 13.5px; color: var(--faint); font-style: italic; }

/* lingua nel menu + hamburger a destra su mobile */
.nav-links .lang-dd > span { padding: 12px 2px; }
.nav-mobile-only { display: none; }
@media (max-width: 860px) {
  .nav > .btn, .nav > .lang-dd { display: none; }
  .nav-toggle { order: 99; }
  .nav.open .nav-mobile-only { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
  .nav.open .nav-mobile-only a { font: 600 15px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 12px; border-radius: 8px; }
  .nav.open .nav-mobile-only a:hover { background: var(--accent-soft); }
  .nav.open .lang-dd { position: static; display: block; }
  .nav.open .lang-dd > span { display: block; padding: 10px 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
  .nav.open .lang-dd .lang-menu { display: flex; gap: 8px; position: static; border: 0; box-shadow: none; background: none; padding: 0 0 6px 10px; min-width: 0; }
}

/* ---------- stories e press (articoli recuperati dal vecchio sito) ---------- */
.story-meta { color: var(--muted); font-size: 14.5px; }
.story-meta a { color: var(--ink); }
.story-body { max-width: 720px; }
.story-body p { margin: 0 0 20px; }
.story-body h2, .story-body h3 { font: 550 clamp(20px, 2.2vw, 26px)/1.3 var(--sans); margin: 36px 0 14px; }
.story-body img { border-radius: 14px; margin: 28px 0; height: auto; }
.story-body figure { margin: 28px 0; }
.story-body figure img { margin: 0; }
.story-body figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.story-body a { color: var(--accent); }
.story-body blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 26px 0; font-family: var(--serif); font-style: italic; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 28px 0; border-radius: 14px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
@media (max-width: 960px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .story-grid { grid-template-columns: 1fr; } }
.story-card { display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; }
.story-card .story-shot { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.story-card .story-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.story-card:hover .story-shot img { transform: scale(1.04); }
.story-date { font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.story-card h3 { margin: 8px 0 6px; font-size: 19px; }
.story-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.press-list { display: grid; max-width: 860px; }
.press-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: baseline; }
.press-row span { font: 600 12px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.press-row b { font-weight: 500; }
.press-row:hover b { color: var(--accent); }
@media (max-width: 620px) { .press-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- stack strip in home (kit + hub) ---------- */
.stack-strip { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 30px); margin-top: 40px; }
@media (max-width: 760px) { .stack-strip { grid-template-columns: 1fr; } }
.stack-card { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-decoration: none; color: inherit;
  background: var(--panel); transition: border-color 0.2s ease, transform 0.2s ease; }
.stack-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.stack-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.stack-card h3 { font-size: 19px; margin-bottom: 6px; }
.stack-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
@media (max-width: 480px) { .stack-card { grid-template-columns: 1fr; } .stack-card img { width: 100%; height: 160px; } }

/* press: lista editoriale per anno */
.press-year { font: 450 clamp(28px, 3vw, 40px)/1 var(--serif); margin: 44px 0 10px; color: var(--faint); }
.press-year:first-child { margin-top: 0; }
.press-row { grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); }
.press-row .pr-date { font: 600 11.5px/1.6 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.press-row .pr-t { font: 400 16.5px/1.55 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.press-row .pr-t b { font-weight: 600; }
.press-row .pr-t i { font-family: var(--serif); font-style: italic; color: var(--muted); }
.press-row:hover .pr-t i { color: var(--accent); }
.press-row:hover .pr-t b { color: var(--accent); }
@media (max-width: 620px) { .press-row { grid-template-columns: 1fr; } }
