/* news.linework.app — Brand 2026 Linework. Tre temi (selettore in alto, scelta in localStorage):
   - Pink (predefinito per tutti): la modalità Pink dell'app (src/theme/brandTheme.ts PINK):
     cipria, prugna, fucsia al posto del rosso, lilla al posto del giallo;
   - Chiaro: crema Brand 2026 (inchiostro, rosso, giallo);
   - Scuro.
   Il sito NON segue prefers-color-scheme: il tema cambia solo dal selettore.
   Titoli in Anton, bordi spessi e ombra piena. Contrasto AA: testo piccolo in prugna
   (il fucsia su cipria è 3.9:1, solo per elementi grandi o decorativi), testo bianco sul fucsia. */
:root {
  /* Pink */
  --ink: #2B0A2F;          /* testo e bordi sopra i colori chiari fissi */
  --paper: #FFF3F8;        /* fondo chiaro sopra gli accenti */
  --hi: #CDB4FF;           /* lilla (al posto del giallo), testo sopra: --ink */
  --accent: #E6007E;       /* fucsia (al posto del rosso), testo sopra: bianco */
  --on-accent: #FFFFFF;
  --past: #C8B3C6;         /* grigio-malva per gli eventi passati */
  --on-past: #2B0A2F;
  --bg: #FFE9F3; --surface: #FFF3F8; --surface-2: #FFD7EA; --text: #2B0A2F; --muted: #7A5A7E;
  --line: rgba(43,10,47,0.14); --edge: #2B0A2F; --accent-text: #2B0A2F; --link-line: #E6007E; --err-text: #A1005A;
  --shadow: 5px 5px 0 var(--edge); --shadow-sm: 3px 3px 0 var(--edge);
  --top-bg: linear-gradient(90deg, #FFE0EF 0%, #FFE9F3 45%, #EBDDFF 100%);
  --top-fg: #2B0A2F; --top-line: #2B0A2F; --top-pill: rgba(43,10,47,.28);
  --top-cur-bg: #2B0A2F; --top-cur-fg: #FFE9F3; --top-hover: #A1005A;
  --hero-bg: radial-gradient(120% 140% at 0% 0%, #FFD7EA 0%, #FFE9F3 46%, #E9DCFF 100%);
  --feature-bg: linear-gradient(135deg, #CDB4FF 0%, #E3D3FF 55%, #FFD7EA 100%);
  --foot-bg: #FFD7EA; --foot-fg: #2B0A2F; --foot-muted: #5E3F62; --foot-line: #2B0A2F; --foot-hover: #A1005A;
  --teaser-muted: #5E3F62;
  --map-bg: #F6E3EE;
  --backdrop: rgba(43,10,47,.45);
  --top: 64px;
  color-scheme: light;
}
/* Chiaro: crema Brand 2026 (testata e piè di pagina neri, come in fase 1) */
:root[data-theme="light"] {
  --ink: #0B0B0B; --paper: #F5F0E8; --hi: #FABE00; --accent: #DC001E; --on-accent: #FFFFFF;
  --past: #B9B2A6; --on-past: #3A362F;
  --bg: #F5F0E8; --surface: #FFFDF8; --surface-2: #EDE6DA; --text: #0B0B0B; --muted: #5E584F;
  --line: #D9D0C2; --edge: #0B0B0B; --accent-text: #B80019; --link-line: currentColor; --err-text: #B80019;
  --top-bg: #0B0B0B; --top-fg: #F5F0E8; --top-line: #FABE00; --top-pill: rgba(245,240,232,.25);
  --top-cur-bg: #FABE00; --top-cur-fg: #0B0B0B; --top-hover: #FABE00;
  --hero-bg: transparent;
  --feature-bg: #FABE00;
  --foot-bg: #0B0B0B; --foot-fg: #F5F0E8; --foot-muted: #CFC7BA; --foot-line: #FABE00; --foot-hover: #FABE00;
  --teaser-muted: #5E584F;
  --map-bg: #E4DDD0; --backdrop: rgba(11,11,11,.55);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #0B0B0B; --paper: #F5F0E8; --hi: #FABE00; --accent: #DC001E; --on-accent: #FFFFFF;
  --past: #B9B2A6; --on-past: #3A362F;
  --bg: #0B0B0B; --surface: #151412; --surface-2: #1E1C19; --text: #F5F0E8; --muted: #A9A196;
  --line: #2C2925; --edge: #F5F0E8; --accent-text: #FABE00; --link-line: currentColor; --err-text: #FABE00;
  --shadow: 5px 5px 0 #DC001E; --shadow-sm: 3px 3px 0 #DC001E;
  --top-bg: #0B0B0B; --top-fg: #F5F0E8; --top-line: #FABE00; --top-pill: rgba(245,240,232,.25);
  --top-cur-bg: #FABE00; --top-cur-fg: #0B0B0B; --top-hover: #FABE00;
  --hero-bg: transparent;
  --feature-bg: #FABE00;
  --foot-bg: #0B0B0B; --foot-fg: #F5F0E8; --foot-muted: #CFC7BA; --foot-line: #FABE00; --foot-hover: #FABE00;
  --teaser-muted: #5E584F;
  --map-bg: #1E1C19; --backdrop: rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.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 { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--hi); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }

/* barra in alto */
.topbar { position: sticky; top: 0; z-index: 1100; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--top-bg); color: var(--top-fg); border-bottom: 3px solid var(--top-line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--top-fg); text-decoration: none; white-space: nowrap; min-width: 0; }
.brand span { font-family: Anton, Impact, sans-serif; font-size: 22px; letter-spacing: .5px; text-transform: uppercase; }
.brand b { font-weight: 400; background: var(--hi); color: var(--ink); padding: 0 6px; border: 2px solid var(--ink); border-radius: 7px; margin-left: 2px; }
:root[data-theme="light"] .brand b, :root[data-theme="dark"] .brand b { background: none; border: 0; color: var(--hi); padding: 0; }
.top-links { display: flex; gap: 6px; margin-left: auto; }
.top-links a { color: var(--top-fg); text-decoration: none; font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase; padding: 9px 12px; border-radius: 999px; }
.top-links a:hover { color: var(--top-hover); }
.top-links a[aria-current="page"] { background: var(--top-cur-bg); color: var(--top-cur-fg); }
.lang-switch, .theme-switch { position: relative; flex: 0 0 auto; }
.lang-switch summary, .theme-switch summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--top-pill); border-radius: 999px; cursor: pointer; color: var(--top-fg); font: 600 12px "JetBrains Mono", monospace; letter-spacing: 1px; }
.theme-switch summary { width: 36px; padding: 0; justify-content: center; }
.lang-switch summary::-webkit-details-marker, .theme-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary, .theme-switch summary:hover, .theme-switch[open] summary { border-color: var(--top-hover); color: var(--top-hover); }
.lang-menu, .theme-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--surface); border: 2px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu a, .theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-decoration: none; text-align: left; cursor: pointer; font: 500 15px/1.4 Inter, "Noto Sans Devanagari", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; }
.lang-menu a:hover, .theme-menu button:hover { background: var(--surface-2); }
.lang-menu a[aria-current="true"], .theme-menu button[aria-pressed="true"] { background: var(--hi); color: var(--ink); font-weight: 600; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; flex: 0 0 auto; }
.swatch-pink { background: linear-gradient(135deg, #FFE9F3 50%, #E6007E 50%); }
.swatch-light { background: linear-gradient(135deg, #F5F0E8 50%, #DC001E 50%); }
.swatch-dark { background: linear-gradient(135deg, #0B0B0B 50%, #FABE00 50%); }
@media (max-width: 560px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 18px; }
  .top-links { gap: 2px; }
  .top-links a { padding: 8px 8px; font-size: 11px; letter-spacing: .5px; }
  .lang-switch summary { padding: 0 9px; }
  .lang-switch summary svg { display: none; }
}
@media (max-width: 430px) { .brand span { display: none; } }

/* pulsanti: fucsia con testo bianco (4.5:1), alt lilla con testo prugna */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: Anton, Impact, sans-serif; font-size: 18px; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; color: var(--on-accent); background: var(--accent); border: 3px solid var(--ink); border-radius: 999px; padding: 10px 18px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; line-height: 1.2; }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn.alt { background: var(--hi); color: var(--ink); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--edge); box-shadow: var(--shadow-sm); }
.btn.sm { font-size: 15px; padding: 7px 13px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* testata (hero): rosa cipria → lilla in Pink */
.hero-band { background: var(--hero-bg); border-bottom: 3px solid var(--edge); }
:root[data-theme="light"] .hero-band, :root[data-theme="dark"] .hero-band { border-bottom: 0; }
.hero { padding-top: 44px; padding-bottom: 30px; }
.hero-sm { padding-top: 32px; padding-bottom: 20px; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-text); margin: 0 0 6px; }
.eyebrow::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(42px, 8vw, 88px); line-height: .98; letter-spacing: .3px; margin: 4px 0 16px; }
h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: .3px; margin: 0 0 16px; }
.lead { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--muted); margin: 0 0 8px; max-width: 760px; }
/* adesivi della testata (lilla, fucsia, rosa), leggermente ruotati */
.stickers { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.sticker { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 13px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); background: var(--hi); color: var(--ink); text-decoration: none; transform: rotate(-2deg); }
.stickers li:nth-child(2) .sticker { background: var(--accent); color: var(--on-accent); transform: rotate(1.5deg); }
.stickers li:nth-child(3) .sticker { background: var(--paper); transform: rotate(-1deg); }
a.sticker:hover { transform: rotate(0deg) translate(-1px,-1px) !important; }

/* home: mappa in evidenza */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin: 36px 0 48px; padding: 28px; background: var(--feature-bg); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
.feature .eyebrow { color: var(--ink); }
.feature .eyebrow::before { background: var(--ink); }
.feature h2 { font-size: clamp(32px, 5vw, 52px); }
.feature p { font-size: 17px; }
.feature-list { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 18px; min-width: 0; color: var(--ink); }
.feature-list h3 { margin: 0 0 10px; font: 600 12px "JetBrains Mono", monospace; letter-spacing: 2px; text-transform: uppercase; }
.feature-list .muted { color: var(--teaser-muted); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; padding: 20px; box-shadow: 5px 5px 0 var(--ink); } }

/* home: card delle novità (post della Newsroom) */
.news { padding-bottom: 40px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 3px solid var(--edge); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.card-img { display: block; width: calc(100% + 40px); max-width: none; margin: -20px -20px 14px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--edge); background: var(--surface-2); }
.card h3 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1.1; margin: 12px 0 8px; }
.card p { margin: 0 0 16px; color: var(--muted); flex: 1; }
.card .tag { align-self: flex-start; font: 600 11px "JetBrains Mono", monospace; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--hi); color: var(--ink); }
.card-red .tag, .card-fuchsia .tag { background: var(--accent); color: var(--on-accent); }
.card-cream .tag, .card-rose .tag { background: var(--surface-2); }
:root[data-theme="light"] .card-cream .tag, :root[data-theme="light"] .card-rose .tag,
:root[data-theme="dark"] .card-cream .tag, :root[data-theme="dark"] .card-rose .tag { background: var(--paper); }
.card .star { align-self: flex-start; margin-left: 6px; }
.card-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-link { font-weight: 700; color: var(--text); text-decoration: none; border-top: 2px solid var(--line); padding-top: 12px; }
.card-link:hover { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--link-line); }

/* newsletter */
.nl { margin: 8px auto 56px; }
.nl-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px 32px; align-items: center; padding: 26px; background: var(--surface); border: 3px solid var(--edge); border-radius: 22px; box-shadow: var(--shadow); }
.nl-box h2 { margin-bottom: 8px; }
.nl-intro p { margin: 0; color: var(--muted); }
.nl-form { display: grid; gap: 10px; margin: 0; }
.nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-row input[type="email"] { flex: 1 1 220px; min-width: 0; font: 500 16px Inter, system-ui, sans-serif; padding: 11px 16px; border: 3px solid var(--edge); border-radius: 999px; background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .nl-row input[type="email"] { background: var(--surface-2); color: var(--text); }
.nl-row input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.nl-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.nl-msg { min-height: 1.4em; margin: 0; font-size: 14.5px; font-weight: 600; }
.nl-msg.ok::before { content: "✓ "; }
.nl-msg.err { color: var(--err-text); }
.nl-small { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 820px) { .nl-box { grid-template-columns: 1fr; padding: 20px; } }

/* eventi: filtri, mappa, legenda */
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 600 14px/1 Inter, system-ui, sans-serif; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--edge); background: var(--surface); color: var(--text); cursor: pointer; min-height: 38px; }
.chips button:hover { background: var(--surface-2); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--hi); border-color: var(--ink); }
:root[data-theme="dark"] .chips button[aria-pressed="true"] { background: var(--hi); color: var(--ink); border-color: var(--hi); }
.map-band { border-bottom: 3px solid var(--edge); background: var(--surface-2); }
.map { width: 100%; height: clamp(360px, 62vh, 680px); background: var(--map-bg); }
.map-band .map { border-bottom: 3px solid var(--edge); }
.map-sm { height: 300px; border: 3px solid var(--edge); border-radius: 16px; margin: 20px 0 48px; box-shadow: var(--shadow); overflow: hidden; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 12px 0; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; flex: 0 0 auto; }
:root[data-theme="dark"] .dot { border-color: var(--edge); }
.dot-upcoming { background: var(--hi); }
.dot-live { background: var(--accent); }
.dot-past { background: var(--past); }
.dot-online { background: #fff; position: relative; }
.dot-online::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }

/* pin sulla mappa (L.divIcon): prossimi lilla, in corso fucsia pulsante, passati grigio-malva */
.pin-wrap { background: none; border: 0; }
.pin { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); background: var(--hi); color: var(--ink); }
.pin svg { width: 16px; height: 16px; }
.pin-past { background: var(--past); color: var(--on-past); }
.pin-live { background: var(--accent); color: var(--on-accent); }
.pin-live::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--accent); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.leaflet-marker-icon:focus-visible .pin, .leaflet-marker-icon:focus .pin { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--hi); }
.leaflet-container { font: 14px/1.4 Inter, system-ui, sans-serif; }
.leaflet-control-attribution { font-size: 11px; background: rgba(255,243,248,.92) !important; color: #2B0A2F; }
.leaflet-control-attribution a { color: #2B0A2F; }
.leaflet-bar a { color: #2B0A2F; }

/* eventi: elenchi */
.events-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 40px; }
@media (max-width: 860px) { .events-cols { grid-template-columns: 1fr; } }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ev { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; text-align: left; background: var(--surface); color: var(--text); border: 3px solid var(--edge); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; }
.ev:hover { transform: translate(-1px,-1px); }
.ev-date { border: 2px solid var(--ink); border-radius: 12px; background: var(--hi); color: var(--ink); text-align: center; padding: 6px 4px; line-height: 1.1; }
.ev-date b { display: block; font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 30px; }
.ev-date small { display: block; font: 600 11px "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }
.ev.is-past .ev-date { background: var(--past); color: var(--on-past); }
.ev.is-live .ev-date { background: var(--accent); color: var(--on-accent); }
.ev-title { font-weight: 700; font-size: 18px; margin: 2px 0 4px; display: block; }
.ev-meta { display: block; color: var(--muted); font-size: 14.5px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); margin: 0 6px 4px 0; }
.badge-live { background: var(--accent); color: var(--on-accent); }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.badge-upcoming { background: var(--hi); }
.badge-past { background: var(--past); color: var(--on-past); }
.teaser .ev { box-shadow: none; padding: 10px; grid-template-columns: 60px minmax(0, 1fr); border-color: var(--ink); background: var(--surface); color: var(--ink); }
:root[data-theme="light"] .teaser .ev, :root[data-theme="dark"] .teaser .ev { background: #FFFDF8; }
.teaser .ev-meta { color: var(--teaser-muted); }
.teaser .ev-date b { font-size: 24px; }

/* scheda dell'evento (dialog) e pagina di dettaglio */
.sheet { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 3px solid var(--edge); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 8px 8px 0 var(--ink); }
.sheet::backdrop { background: var(--backdrop); }
.sheet-close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--hi); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.sheet-body { padding: 20px; }
@media (max-width: 560px) { .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-width: 3px 0 0; } .sheet-body { padding: 16px; } }
.evd h2, .evd h1 { margin: 6px 0 12px; }
.evd h1 { font-size: clamp(38px, 7vw, 72px); }
.evd .poster { display: block; width: 100%; max-height: 420px; object-fit: contain; background: var(--ink); border: 3px solid var(--edge); border-radius: 14px; margin: 0 0 16px; }
.evd dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 16px; }
.evd dl div { border-left: 4px solid var(--accent); padding-left: 10px; }
.evd dt { font: 600 11px "JetBrains Mono", monospace; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.evd dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.evd .desc { margin: 0 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.join-box { border: 3px dashed var(--edge); border-radius: 14px; padding: 12px 14px; margin: 12px 0; background: var(--surface-2); }
.join-box p { margin: 0; }
.join-box .creds { margin-top: 8px; font: 14px "JetBrains Mono", monospace; }
.cal { position: relative; }
.cal summary { list-style: none; }
.cal summary::-webkit-details-marker { display: none; }
.cal-menu { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; min-width: 230px; background: var(--surface); border: 2px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
.cal-menu a, .cal-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font: 500 15px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.cal-menu a:hover, .cal-menu button:hover { background: var(--surface-2); }
.toast { min-height: 1.4em; font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.detail-top { padding-top: 22px; }
.back { font-weight: 700; color: var(--text); text-decoration: none; }
.detail { padding-top: 10px; padding-bottom: 8px; max-width: 860px; }
.empty { border: 3px dashed var(--line); border-radius: 16px; padding: 22px; text-align: center; }
.feature-list .empty { border-color: rgba(43,10,47,.3); }
.empty strong { display: block; font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 24px; }

/* piè di pagina */
.foot { background: var(--foot-bg); color: var(--foot-fg); border-top: 3px solid var(--foot-line); padding: 32px 0 20px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 460px; }
.foot-brand p { margin: 0; color: var(--foot-muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 12px; }
/* link del piè di pagina come pulsanti-adesivo, come quelli della testata */
.foot nav a { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: 1.2px; text-transform: uppercase; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.foot nav a:nth-child(1) { background: var(--hi); }
.foot nav a:nth-child(2) { background: var(--accent); color: var(--on-accent); }
.foot nav a:nth-child(4) { background: var(--hi); }
.foot nav a:hover, .foot nav a:focus-visible { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.foot-small { margin-top: 22px; font: 12px "JetBrains Mono", monospace; color: var(--foot-muted); }
.nf { padding-bottom: 80px; }
.nf .btn { margin: 8px 8px 0 0; }

/* Russo: Anton non ha il cirillico -> Oswald; hindi e cinese: titoli in grassetto senza maiuscolo */
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] .btn, html[lang="ru"] .card h3, html[lang="ru"] .empty strong { font-family: Anton, Oswald, Impact, sans-serif; }
html[lang="hi"] body { font-family: Inter, "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", system-ui, sans-serif; line-height: 1.75; }
html[lang="zh-Hans"] body { font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; line-height: 1.75; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] .card h3, html[lang="hi"] .btn, html[lang="hi"] .empty strong,
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] .card h3, html[lang="zh-Hans"] .btn, html[lang="zh-Hans"] .empty strong { font-family: inherit; font-weight: 800; text-transform: none; letter-spacing: 0; }
html[lang="hi"] h1, html[lang="zh-Hans"] h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.2; }
html[lang="hi"] .eyebrow, html[lang="zh-Hans"] .eyebrow, html[lang="hi"] .top-links a, html[lang="zh-Hans"] .top-links a { font-family: "JetBrains Mono", Inter, "Noto Sans Devanagari", "PingFang SC", "Noto Sans SC", monospace; letter-spacing: .5px; }
.brand span { font-family: Anton, Impact, sans-serif !important; text-transform: uppercase !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover, .ev:hover { transform: none; }
}
