@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/CabinetGrotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/CabinetGrotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/CabinetGrotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/CabinetGrotesk-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Ogg"; src: url("assets/fonts/Ogg-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #f6ebd6;
  --paper-2: #f0debd;
  --ink: #2e1f24;
  --muted: #674550;
  --line: #e0cfae;
  --line-strong: #c4ae87;
  --accent: #674550;
  --accent-ink: #f6ebd6;
  --accent-light: #d8c79b;
  --card: #fbf5e8;
  --dark: #342f20;
  --dark-ink: #f6ebd6;
  --dark-muted: #c3b88f;
  --dark-line: #4d4731;
  --hero-bg: #674550;
  --hero-ink: #f6ebd6;
  --hero-muted: #e6d6b8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 5vw, 40px);
  --font: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Ogg", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.memoria :focus-visible { outline-color: var(--accent-light); }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav__brand b { font-weight: 500; color: var(--muted); }
.nav__brand img { display: block; height: 44px; width: auto; mix-blend-mode: multiply; }
.nav__list { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 0.9375rem; }
.nav__list a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav__list a:hover, .nav__list a[aria-current] { color: var(--ink); }
@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
}
@media (max-width: 560px) {
  .nav__brand span { display: none; }
  .nav__more { display: none; }
  .nav__in { gap: 10px; }
  .nav__brand img { height: 32px; }
  .nav__list { gap: 11px; font-size: 0.8125rem; }
}

/* hero */
.hero { padding-top: clamp(56px, 12vw, 128px); padding-bottom: clamp(32px, 6vw, 56px); }
h1 { line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 { white-space: nowrap; text-align: center; }
.hero__lead {
  margin-top: clamp(20px, 3vw, 28px);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
}

.next {
  margin-top: clamp(36px, 7vw, 72px);
  display: grid;
  grid-template-columns: clamp(150px, 22vw, 230px) 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 1px 2px rgb(28 27 26 / 0.04), 0 12px 32px -12px rgb(28 27 26 / 0.12);
}
.next__flyer { display: block; aspect-ratio: 5 / 7; border-radius: 14px; overflow: hidden; background: var(--paper-2); position: relative; box-shadow: 0 8px 24px -12px rgb(28 27 26 / 0.35); transition: transform 0.5s var(--ease); }
a.next__flyer:hover { transform: scale(1.02); }
.next__flyer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.next__flyer--empty { border: 1.5px dashed var(--line-strong); display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: 0.9375rem; background: transparent; }
.next__date {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}
.next h2 { margin-top: 8px; font-size: clamp(1.75rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.next__meta { margin-top: 12px; color: var(--muted); }
.next__actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-block; vertical-align: 1px; margin-left: 6px;
  padding: 1px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--muted);
  font-size: 0.8125rem; font-weight: 600;
}
@media (max-width: 560px) {
  .next { grid-template-columns: 1fr; border-radius: 24px; }
  .next__flyer { max-width: 240px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* paths */
.paths { padding-block: clamp(24px, 5vw, 56px); }
.paths__list { border-top: 1px solid var(--line); }
.paths__list li { border-bottom: 1px solid var(--line); }
.paths__list a {
  display: grid; grid-template-columns: minmax(7ch, 14rem) 1fr 28px; align-items: center; gap: 16px;
  padding-block: clamp(18px, 3vw, 28px); text-decoration: none;
}
.paths__name { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.paths__hint { color: var(--muted); }
.arrow { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease), color 0.2s; color: var(--muted); }
.paths__list a:hover .arrow { transform: translateX(6px); color: var(--accent); }
@media (max-width: 640px) {
  .paths__list a { grid-template-columns: 1fr 28px; gap: 4px 12px; }
  .paths__hint { grid-column: 1; grid-row: 2; font-size: 0.9375rem; }
  .arrow { grid-column: 2; grid-row: 1 / span 2; }
}

/* display type */
.display { font-size: clamp(2.5rem, 9vw, 5.25rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.display--sm { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.05; }
.lead { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 36ch; }

/* memoria (dark) */
.memoria { background: var(--dark); color: var(--dark-ink); padding-block: clamp(72px, 12vw, 144px); margin-top: clamp(24px, 5vw, 56px); }
.memoria .lead { margin-top: clamp(20px, 3vw, 32px); color: var(--dark-muted); }
.docs { margin-top: clamp(40px, 7vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 56px); }
.flyer { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.7); }
.flyer img { display: block; width: 100%; height: auto; }
.flyer--empty { aspect-ratio: 2 / 3; position: relative; display: grid; place-items: center; border: 1.5px dashed #4a4642; box-shadow: none; }
.flyer--empty .slot__note { position: static; font-size: 0.9375rem; }
.doc__soon { margin-top: 14px; font-size: 0.9375rem; color: var(--dark-muted); }
.doc h3 { margin-top: 18px; font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; }
.doc p { margin-top: 6px; color: var(--dark-muted); font-size: 1rem; }
.video, .slot {
  position: relative; display: grid; place-items: center;
  background: #1d1b19; border: 1px solid var(--dark-line); border-radius: 20px; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / 0.025) 14px 15px);
}
.video { aspect-ratio: 16 / 9; text-decoration: none; transition: border-color 0.3s, transform 0.5s var(--ease); }
.video:hover { border-color: #6b6660; transform: scale(1.01); }
.play { width: 64px; height: 64px; }
.play circle { fill: none; stroke: var(--dark-ink); stroke-width: 1.5; }
.play path { fill: var(--dark-ink); }
.slot__note { position: absolute; left: 14px; bottom: 12px; font-size: 0.8125rem; color: var(--dark-muted); }
.slot--photo { aspect-ratio: 4 / 3; }

.totem-title { margin-top: clamp(64px, 10vw, 112px); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.totem-intro { margin-top: 12px; color: var(--dark-muted); max-width: 52ch; }
.totems { --p: 0; position: relative; margin-top: clamp(32px, 5vw, 56px); padding-left: clamp(52px, 9vw, 96px); display: grid; gap: clamp(36px, 6vw, 64px); }
.totems::before, .totems::after { content: ""; position: absolute; left: clamp(17px, 3vw, 31px); top: 20px; bottom: 20px; width: 2px; background: var(--dark-line); }
.totems::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p)); bottom: 20px; }
.totem { position: relative; }
.totem__n {
  position: absolute; left: calc(-1 * clamp(52px, 9vw, 96px) + clamp(2px, 1vw, 12px)); top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dark); border: 2px solid var(--dark-line); font-weight: 700; font-size: 0.9375rem;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}
.totem.on .totem__n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.totem__img { display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6); transition: transform 0.5s var(--ease); }
.totem__img:hover { transform: scale(1.01); }
.totem__img img { display: block; width: 100%; height: auto; }
.totem--tall .totem__img { max-width: 560px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .docs { grid-template-columns: 1fr; }
  .flyer { max-width: 360px; }
}
@media (max-width: 760px) {
  .totem__n { left: calc(-1 * clamp(52px, 9vw, 96px) + 2px); }
}

/* eventi */
.eventi { padding-block: clamp(72px, 12vw, 144px) clamp(40px, 6vw, 72px); }
.events { margin-top: clamp(28px, 5vw, 48px); border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 8px 32px; padding-block: clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.event__date { font-weight: 700; color: var(--accent); letter-spacing: -0.01em; }
.event h3 { font-size: clamp(1.375rem, 2.8vw, 1.875rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.event p { color: var(--muted); margin-top: 4px; }
.events__empty { padding-block: 32px; color: var(--muted); }
@media (max-width: 640px) { .event { grid-template-columns: 1fr; } }

/* soci */
.soci { background: var(--paper-2); padding-block: clamp(72px, 12vw, 128px); }
.join { margin-top: clamp(32px, 6vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 56px); }
.join li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.join h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 700; letter-spacing: -0.025em; }
.join p { color: var(--muted); flex: 1; }
.join .btn { margin-top: 8px; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; gap: 40px; } }

/* footer */
.foot { padding-block: clamp(64px, 10vw, 112px) 48px; }
.contacts { margin: clamp(28px, 5vw, 48px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 40px; }
.contacts dt { color: var(--muted); font-size: 0.9375rem; }
.contacts dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.foot__logo { display: block; width: 180px; height: auto; margin-top: clamp(40px, 6vw, 64px); mix-blend-mode: multiply; }
.foot__small { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }

/* motion: content is visible by default; only the entrance is animated */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease) both; }
  .hero__lead.rise { animation-delay: 0.08s; }
  .next.rise { animation-delay: 0.18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .totems::after { transition: transform 0.15s linear; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .totems { --p: 1 !important; }
}

/* trasparenza */
.trasp { padding-block: clamp(48px, 9vw, 96px) clamp(32px, 6vw, 64px); }
.trasp .lead { margin-top: 20px; color: var(--muted); }
.trasp__note { margin-top: 20px; max-width: 70ch; color: var(--muted); font-size: 1rem; }
.anno { margin-top: clamp(40px, 7vw, 72px); }
.anno__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.anno h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.anno__tot { display: flex; align-items: baseline; gap: 12px; color: var(--muted); }
.anno__tot strong { font-size: clamp(1.5rem, 3.5vw, 2.25rem); color: var(--accent); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.9375rem; padding: 14px 16px 10px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl__num { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tbl th:nth-child(3) { text-align: right; }
.tbl__date, .tbl__cf { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl__ente { font-weight: 600; }
.tbl__causale { max-width: 46ch; }
.trasp__back { margin-top: clamp(40px, 7vw, 72px); }
@media (max-width: 860px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .tbl td { padding: 4px 0; border: 0; }
  .tbl td::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--muted); }
  .tbl td.tbl__num { text-align: left; font-size: 1.5rem; letter-spacing: -0.02em; order: -1; }
  .tbl tr { display: flex; flex-direction: column; }
  .tbl__ente { order: -2; }
  .tbl__num::before, .tbl__ente::before { display: none; }
}


/* eventi: righe con locandina */
.event { grid-template-columns: minmax(8rem, 12rem) 1fr auto; align-items: start; }
.event__thumb { width: 72px; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.event__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event h3 a { text-decoration: none; }
.event h3 a:hover { color: var(--accent); }
.event__cta { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--accent); }
@media (max-width: 640px) { .event { grid-template-columns: 1fr auto; } .event__date { grid-column: 1 / -1; } }

/* pagina evento */
.ev { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.ev__flyer { position: sticky; top: 80px; }
.ev__flyer figure { margin: 0; }
.ev__flyer img, .ev__flyer .next__flyer { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 48px -24px rgb(28 27 26 / 0.45); }
.ev__flyer figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.ev__back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; }
.ev__back:hover { color: var(--ink); }
.ev__date { color: var(--accent); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.75rem); letter-spacing: -0.02em; }
.ev h1 { margin-top: 6px; white-space: normal; text-align: left; font-size: clamp(2.25rem, 7vw, 4rem); }
.ev__luogo { margin-top: 14px; color: var(--muted); }
.ev__desc { margin-top: 24px; max-width: 52ch; }
.ev h2 { margin-top: clamp(40px, 6vw, 64px); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.ev__prog { margin-top: 16px; border-top: 1px solid var(--line); }
.ev__prog li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.ev__nota { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.ev__form { margin-top: 20px; display: grid; gap: 18px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input { font: inherit; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); }
.field input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.field__row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.ev__status { padding: 14px 16px; border-radius: 12px; background: var(--paper-2); font-size: 0.9375rem; }
.ev__posti { margin-top: 12px; color: var(--muted); }
.ev__form .btn { justify-self: start; border: 0; cursor: pointer; }
@media (max-width: 860px) { .ev { grid-template-columns: 1fr; } .ev__flyer { position: static; max-width: 380px; } }

.doc__proiezione { margin-top: 10px; color: var(--dark-ink); font-size: 1rem; font-weight: 500; }

.ev__fascia { margin-top: -6px; color: var(--accent); font-weight: 600; min-height: 1.4em; }
.giochi { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.giochi legend { font-weight: 600; font-size: 0.9375rem; padding: 0; margin-bottom: 4px; }
.check--gioco { color: var(--ink); font-size: 1.0625rem; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); margin-top: 8px; align-items: center; cursor: pointer; }
.check--gioco:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.check--gioco input { margin-top: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ev__ok { margin-top: 20px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); max-width: 520px; }
.ev__ok h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; color: var(--accent); }
.ev__ok p { margin-top: 8px; }
.ev__ok li { font-weight: 600; }
.field .ev__nota { margin-top: 0; }

/* admin */
.adm { padding-block: clamp(40px, 8vw, 80px); }
.adm__sub { margin-top: 12px; color: var(--muted); }
.adm__login { margin-top: 28px; display: grid; gap: 16px; max-width: 420px; }
.adm select { font: inherit; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.adm input[type=password] { font: inherit; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.adm .btn { border: 0; cursor: pointer; justify-self: start; }
.adm .btn--ghost { border: 1.5px solid var(--ink); background: transparent; }
.adm #a-out { margin-top: 32px; }
.adm__tot { font-weight: 700; font-size: 1.25rem; margin-bottom: 12px; }
.adm__gioco { margin-top: 40px; }
.adm__gioco h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.adm__gioco h3 { margin-top: 20px; color: var(--accent); font-size: 1.125rem; }
.adm__sq { margin-top: 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.adm__sq h4 { font-size: 1rem; }
.adm__sq li { padding-block: 4px; font-size: 0.9375rem; color: var(--muted); }

.demo-banner { background: var(--dark); color: var(--dark-ink); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 8px var(--gutter); }

.next__avviso, .ev__avviso { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--ink); font-weight: 600; font-size: 1rem; max-width: 46ch; }
.ev__avviso { margin-top: 20px; }
.next__actions { margin-top: 20px; }

.contacts a { text-decoration: none; border-bottom: 1.5px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.contacts a:hover { color: var(--accent); border-color: var(--accent); }
.contacts .muted { color: var(--muted); font-weight: 500; font-size: 1rem; }
.contacts dd { overflow-wrap: anywhere; }

.doc__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 44px; font-weight: 600; color: var(--dark-ink); text-decoration: none; border-bottom: 1.5px solid #6b6660; padding-block: 4px; transition: border-color 0.2s, color 0.2s; }
.doc__link:hover { color: var(--accent-light); border-color: var(--accent-light); }
.doc__link .arrow { width: 20px; height: 20px; color: currentColor; }

/* Palette Prugna (Pantone: Alabaster Gleam, Plum Wine, Olive Drab) e titoli in Ogg (un solo peso, niente grassetto) */
.hero { background: var(--hero-bg); box-shadow: 0 0 0 100vmax var(--hero-bg); clip-path: inset(0 -100vmax); padding-bottom: clamp(48px, 8vw, 88px); }
h1 { letter-spacing: -0.01em; }
.hero h1 { color: var(--hero-ink); font-size: clamp(2.5rem, 10.5vw, 6.75rem); }
.hero__lead { color: var(--hero-muted); font-weight: 500; }
.next { background: var(--card); border-color: transparent; box-shadow: 0 24px 48px -20px rgb(23 15 8 / 0.5); }
.paths { padding-top: clamp(40px, 6vw, 72px); }
:is(h1, h2, h3, .paths__name, .next__date, .display, .anno__tot strong, .ev__date, .adm__tot) { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.005em; }
h1 { letter-spacing: -0.01em; }
:is(.display, .display--sm) { line-height: 1.02; }
.btn { font-family: var(--font); }

.foot__bottom { margin-top: clamp(40px, 7vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot__bottom .foot__small { margin: 0; padding: 0; border: 0; }
.foot__credit { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.foot__credit:hover { color: var(--ink); }
.foot__credit strong { color: var(--ink); font-weight: 600; }
.foot__credit img { display: block; width: 52px; height: auto; border-radius: 6px; }

.ev__esigenze { padding: 12px 16px; border-radius: 12px; background: var(--paper-2); font-size: 1rem; max-width: 46ch; }
.ev__esigenze a { font-weight: 600; text-underline-offset: 0.2em; }
.check a { color: var(--ink); font-weight: 600; text-underline-offset: 0.2em; }
.privacy { padding-block: clamp(48px, 9vw, 96px) clamp(32px, 6vw, 64px); }
.privacy__testo { margin-top: clamp(28px, 5vw, 48px); max-width: 68ch; }
.privacy__testo p { margin-top: 18px; }
.privacy__testo h2 { margin-top: clamp(36px, 6vw, 56px); font-size: clamp(1.5rem, 3vw, 2rem); }
.privacy__testo ul { margin-top: 14px; display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; }
.privacy__testo li::marker { color: var(--accent); }
.privacy__testo a { text-underline-offset: 0.2em; font-weight: 600; }
.foot__small a { text-underline-offset: 0.2em; }
[hidden] { display: none !important; }
