/* KSFA? — stile del sito secondo la brand identity (docs/brand/brand.html).
   Carta, nero stampa, rosso "?" e giallo nastro; bordi pieni, ombre piene sfalsate, angoli dritti.
   Font serviti dal sito (licenza SIL OFL, vedi static/fonts/). */

@font-face { font-family: Anton; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-regular.aeafddf4ed74.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/spacemono-bold.ddcaa7b033b6.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2"); }

:root {
  --ink: #141414;
  --paper: #F1ECE2;
  --surface: #FFFFFF;
  --red: #FF3B1F;
  --yellow: #FFE14A;
  --muted: #6D6A75;
  --line: #141414;
  --dots: rgba(0, 0, 0, .045);
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
  --ok: #1A8A4A;
  --ok-bg: #DFF3E6;
  --wait-bg: #FFF3B8;
  --ko-bg: #FFE1DB;
  --font-display: Anton, Impact, "Arial Narrow", sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;
  --font-text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
/* Versione notturna: stessa identità in negativo.
   Si attiva con l'interruttore Giorno/Notte (data-theme) o, se l'utente non ha scelto, dal dispositivo. */
:root[data-theme="dark"] {
  --ink: #F1ECE2;
  --paper: #141414;
  --surface: #1E1D1B;
  --muted: #A9A49B;
  --line: #F1ECE2;
  --dots: rgba(255, 255, 255, .035);
  --ok: #6EE49B;
  --ok-bg: #16301F;
  --wait-bg: #3A3010;
  --ko-bg: #3A1616;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F1ECE2;
    --paper: #141414;
    --surface: #1E1D1B;
    --muted: #A9A49B;
    --line: #F1ECE2;
    --dots: rgba(255, 255, 255, .035);
    --ok: #6EE49B;
    --ok-bg: #16301F;
    --wait-bg: #3A3010;
    --ko-bg: #3A1616;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); line-height: 1.5;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 5px 5px;
}
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
h1, h2, h3 { line-height: 1.1; }
code { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; font-size: .85em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  background: var(--ink); color: var(--paper); border: 2px solid var(--line); border-radius: 0;
  padding: 10px 16px; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--red);
  transition: transform .08s ease, box-shadow .08s ease; white-space: nowrap;
}
.btn:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--red); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }
.btn-red { background: var(--red); color: #fff; box-shadow: 3px 3px 0 var(--line); }
.btn-red:hover { color: #fff; box-shadow: 4px 4px 0 var(--line); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: 3px 3px 0 var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--line); }
.btn-yellow { background: var(--yellow); color: #141414; box-shadow: 3px 3px 0 var(--line); }
.btn-yellow:hover { color: #141414; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); box-shadow: none; margin: 8px 0 48px; }
.btn-danger:hover { color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; }
form.inline { display: inline; }

/* ---------- Barra in alto ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 38px; width: auto; display: block; }
.logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
/* Interruttore Giorno/Notte */
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .04em; background: transparent; color: var(--ink); border: 2px solid var(--line);
  padding: 7px 10px; cursor: pointer; }
.theme-toggle:hover { background: var(--yellow); color: #141414; }
.theme-toggle .ico { font-size: .95rem; line-height: 1; }
@media (max-width: 560px) { .theme-toggle .lbl { display: none; } }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link { font-family: var(--font-mono); font-weight: 700; font-size: .78rem; text-transform: uppercase; text-decoration: none; }
@media (max-width: 560px) { .nav-link { display: none; } .logo img { height: 32px; } }

/* ---------- Messaggi ---------- */
.flash { margin: 16px 0 0; padding: 12px 16px; background: var(--yellow); color: #141414; border: 2px solid var(--line); box-shadow: var(--shadow); font-weight: 600; }
.flash-error, .flash-warning { background: var(--ko-bg); color: var(--ink); }

/* ---------- Titolo di pagina ---------- */
.crumbs { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; color: var(--muted); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; padding: 10px 0 4px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(2.6rem, 8.5vw, 5rem); line-height: .9; margin: 0;
}
.hero h1 .q { color: var(--red); display: inline-block; transform: rotate(8deg); margin-left: 3px; }
.hero p { margin: 0; }
.section-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin: 40px 0 14px; }

/* ---------- Selettore "Dove" ---------- */
.place-button {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-bottom: 6px;
  font-family: var(--font-mono); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
  color: #141414; background: var(--yellow); border: 2px solid #141414; box-shadow: var(--shadow);
  padding: 9px 14px; cursor: pointer; border-radius: 0; transform: rotate(-1.5deg);
}
.place-button:hover { transform: rotate(-1.5deg) translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.place-button span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker {
  width: min(560px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 64px)); padding: 0;
  border: 2px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: 8px 8px 0 var(--line);
}
.picker::backdrop { background: rgba(10, 10, 10, .55); }
.picker-head { display: flex; gap: 8px; padding: 14px; border-bottom: 2px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.picker-head input { flex: 1; font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); }
.picker-close { border: 0; background: transparent; font-size: 1.3rem; color: var(--ink); cursor: pointer; padding: 0 8px; }
.picker-results { list-style: none; margin: 0; padding: 6px; }
.picker-results a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.picker-results a:hover, .picker-results a.focused { background: var(--yellow); color: #141414; }
.picker-results small { font-family: var(--font-mono); color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.picker-empty { padding: 14px; color: var(--muted); }
.picker-default { padding: 4px 18px 18px; }
.picker-title { font-family: var(--font-mono); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 8px; }
@media (max-width: 560px) { .picker { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; box-shadow: none; } }

/* ---------- Chip (generi, luoghi suggeriti) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 8px 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  font-family: var(--font-mono); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 7px 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.chip:hover { background: var(--yellow); color: #141414; }
.chip-active, .chip-active:hover { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 var(--red); }

/* ---------- Striscia dei giorni ---------- */
.daypicker { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; }
.arrow { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 1.3rem; box-shadow: 2px 2px 0 var(--line); }
.strip { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 2px 4px 6px 2px; }
.strip::-webkit-scrollbar { display: none; }
.day { flex: 1 0 62px; display: flex; flex-direction: column; align-items: center; padding: 7px 4px 6px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.day .dow, .day .mon { font-family: var(--font-mono); font-weight: 700; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }
.day .dow { color: var(--muted); }
.day .num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.05; }
.day:hover { background: var(--yellow); color: #141414; }
.day:hover .dow { color: #141414; }
.day.active { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.day.active .dow { color: inherit; opacity: .8; }

/* ---------- Filtri ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 6px 0 4px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 150px; max-width: 280px; }
.field > span { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .64rem; color: var(--muted); }
.field input, .field select, .form-row input:not([type=checkbox]):not([type=radio]):not([type=file]), .form-row select, .form-row textarea,
.search-row input, .card-form input:not([type=checkbox]):not([type=radio]), .review-actions input {
  font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 0; padding: 9px 11px; width: 100%;
}
.count { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; color: var(--muted); margin: 16px 0 12px; }

/* ---------- Schede evento ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; margin-bottom: 36px; }
.card { background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .1s ease, box-shadow .1s ease; }
.card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.card.featured { box-shadow: 4px 4px 0 var(--red); }
.poster { aspect-ratio: 4 / 5; background-color: #141414; background-size: cover; background-position: center; position: relative; border-bottom: 2px solid var(--line); overflow: hidden; }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; padding: 16px;
  font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; color: #F1ECE2; line-height: 1; }
.poster-fallback .q { color: #FF3B1F; font-size: 5rem; display: block; transform: rotate(8deg); line-height: 1; margin-bottom: 6px; }
.when { position: absolute; left: 8px; top: 8px; background: #FFE14A; color: #141414; border: 2px solid #141414; padding: 4px 7px 2px; text-align: center; line-height: 1; transform: rotate(-2deg); }
.when b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.when small { display: block; font-family: var(--font-mono); font-weight: 700; font-size: .56rem; text-transform: uppercase; margin-top: 2px; }
.when.tbd b { font-family: var(--font-mono); font-weight: 700; font-size: .62rem; text-transform: uppercase; max-width: 70px; line-height: 1.15; }
.badge-featured { position: absolute; right: 8px; top: 8px; background: #FF3B1F; color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: .58rem; text-transform: uppercase; padding: 3px 6px; border: 2px solid #141414; }
.card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.24rem; line-height: 1.02; margin: 0; letter-spacing: .005em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .artists { margin: 0; font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card .place { margin: auto 0 0; padding-top: 4px; font-family: var(--font-mono); font-weight: 700; font-size: .64rem; text-transform: uppercase; letter-spacing: .03em; }
.card .price { margin: 0; font-size: .78rem; color: var(--muted); }
.tag { display: inline-block; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .6rem; padding: 2px 6px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); align-self: flex-start; }

.empty { grid-column: 1 / -1; padding: 26px 22px; background: var(--surface); border: 2px dashed var(--line); }
.empty h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; margin: 0 0 6px; line-height: 1; }
.empty p { margin: 6px 0; }
.empty .actions { margin-top: 14px; }

/* ---------- Pagina evento ---------- */
.back { display: inline-block; margin: 20px 0; font-family: var(--font-mono); font-weight: 700; font-size: .72rem; text-transform: uppercase; text-decoration: none; }
.detail { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 34px; margin-bottom: 56px; align-items: start; }
.detail-poster { width: 100%; border: 2px solid var(--line); box-shadow: var(--shadow-lg); display: block; }
.detail h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 10px 0 6px; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: .93; }
.detail .artists { font-size: 1.05rem; margin: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 14px 0; }
.facts dt { font-family: var(--font-mono); font-weight: 700; font-size: .68rem; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
.desc { max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.report-link { margin-top: 22px; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Pagina locale ---------- */
.venue-head { display: flex; gap: 20px; align-items: flex-start; padding: 26px 0 8px; }
.venue-head h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0 0 6px; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: .93; }
.venue-logo { width: 96px; height: 96px; object-fit: cover; border: 2px solid var(--line); flex: none; }
.verified { font-family: var(--font-mono); font-weight: 700; font-size: .64rem; text-transform: uppercase; background: var(--ok-bg); color: var(--ok); border: 2px solid var(--ok); padding: 3px 8px; vertical-align: middle; }

/* ---------- Moduli ---------- */
.submit-form { max-width: 680px; display: grid; gap: 14px; margin: 20px 0 48px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row > label { font-family: var(--font-mono); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.form-row.checkbox { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 10px; }
.form-row.checkbox > label { font-family: var(--font-text); font-weight: 500; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.form-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--red); margin-top: 1px; }
.form-row input[type=file] { font: inherit; padding: 8px; border: 2px dashed var(--line); background: var(--surface); width: 100%; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red) !important; }
.error { color: var(--red); font-weight: 700; }
.error-box { background: var(--ko-bg); border: 2px solid var(--red); padding: 10px 14px; font-weight: 600; }
.error-box ul { margin: 0; padding-left: 18px; }
.form-row div:has(> div > label > input[type=radio]) { display: grid; gap: 8px; }
.form-row label:has(> input[type=radio]) { display: flex; gap: 10px; align-items: center; font-weight: 500; padding: 10px 12px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.form-row label:has(> input[type=radio]:checked) { background: var(--yellow); color: #141414; }
.form-row input[type=radio] { width: auto; accent-color: #141414; }
.cf-turnstile { margin: 4px 0; }

/* ---------- Riquadri ---------- */
.panel { background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); padding: 20px; margin-bottom: 22px; }
.panel h2, .panel h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; }
.panel h2 { font-size: 1.6rem; margin: 0 0 10px; }
.panel h3 { margin: 22px 0 8px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-head h2 { margin: 0; }
.panel-head h2 a { text-decoration: none; }
.panel-head p { margin: 2px 0 0; }
.empty-panel { text-align: center; padding: 40px 20px; }
details.panel summary { cursor: pointer; font-family: var(--font-mono); font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.pill { display: inline-block; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .62rem; padding: 3px 8px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); white-space: nowrap; vertical-align: middle; }
.pill-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.pill-wait { background: var(--wait-bg); color: var(--ink); }
.pill-ko { background: var(--ko-bg); color: var(--red); border-color: var(--red); }
.notice { background: var(--surface); border: 2px solid var(--line); border-left: 8px solid var(--yellow); padding: 12px 16px; margin: 14px 0 0; }
.notice-warn { border-left-color: var(--yellow); margin: 16px 0; }
.notice-ko { background: var(--surface); border: 2px solid var(--red); border-left: 8px solid var(--red); padding: 12px 16px; margin: 16px 0; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1.5px dashed var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows .time { font-family: var(--font-mono); font-weight: 700; font-size: .7rem; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.pick { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pick input { width: 18px; height: 18px; accent-color: var(--red); }
.search-row { display: flex; gap: 10px; max-width: 680px; margin: 16px 0 20px; }

/* ---------- Area gestori / login ---------- */
.auth-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin: 36px 0 56px; align-items: start; }
@media (max-width: 820px) { .auth-layout { grid-template-columns: 1fr; gap: 22px; } }
.pitch h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: .93; margin: 0 0 18px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; background: #FFE14A; color: #141414; border: 2px solid #141414; font-weight: 800; font-size: .8rem; }
.card-form { background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow-lg); padding: 24px; display: grid; gap: 14px; }
.card-form h1, .card-form h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0; }
.auth-narrow { max-width: 460px; margin: 40px auto 56px; }

.portal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; margin: 28px 0 56px; align-items: start; }
.portal-nav { position: sticky; top: 84px; display: flex; flex-direction: column; border: 2px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.portal-nav a, .portal-nav .linklike { padding: 10px 14px; text-decoration: none; font-weight: 600; text-align: left; border-bottom: 1.5px solid var(--line); }
.portal-nav a.sub { padding-left: 28px; font-weight: 500; font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.portal-nav a:hover { background: var(--yellow); color: #141414; }
.portal-nav a.current { background: var(--ink); color: var(--paper); }
.portal-nav form { padding: 10px 14px; }
.portal-nav form .linklike { border: 0; padding: 0; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; }
.portal-main h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: .93; margin: 0 0 8px; overflow-wrap: anywhere; }
.portal-main > .panel, .portal-main > section { margin-top: 22px; }
@media (max-width: 820px) {
  .portal { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .portal-nav { position: static; flex-direction: row; overflow-x: auto; box-shadow: none; }
  .portal-nav a, .portal-nav .linklike { white-space: nowrap; border-bottom: 0; border-right: 1.5px solid var(--line); }
  .portal-nav a.sub { padding-left: 14px; }
}
.dot-wait { width: 9px; height: 9px; background: #FFE14A; border: 1.5px solid var(--line); display: inline-block; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.8rem; }
.venue-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.venue-card { background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); padding: 16px; color: var(--ink); text-decoration: none; display: grid; gap: 14px; }
.venue-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.venue-card-top { display: flex; align-items: center; gap: 12px; }
.venue-card-top div { display: grid; }
.venue-card-top img, .venue-initial { width: 48px; height: 48px; object-fit: cover; flex: none; border: 2px solid var(--line); }
.venue-initial { display: grid; place-items: center; background: #FFE14A; color: #141414; font-family: var(--font-display); font-size: 1.5rem; }
.venue-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.how { margin-top: 36px; }
.how h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; }
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { background: var(--surface); border: 2px solid var(--line); padding: 14px; display: grid; gap: 4px; counter-increment: s; }
.steps li::before { content: counter(s); width: 28px; height: 28px; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font-family: var(--font-display); font-size: 1rem; }
.steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.steps span { color: var(--muted); font-size: .88rem; }
.verify-box { background: var(--surface); border: 3px dashed var(--red); padding: 24px; margin: 18px 0; text-align: center; }
.verify-step { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; font-size: .78rem; margin: 0; }
.verify-code { font-family: var(--font-display); font-size: clamp(2.2rem, 8vw, 3.4rem); letter-spacing: .06em; color: var(--red); margin: 10px 0; user-select: all; }
.ai-box { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: #FFE14A; color: #141414; border: 2px solid #141414; box-shadow: var(--shadow); padding: 22px; margin: 16px 0 8px; }
.ai-box h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0 0 6px; }
.ai-box .muted, .ai-box .form-row > label { color: #141414; }
.ai-box .form-row input, .ai-box .form-row textarea { background: #fff; color: #141414; border-color: #141414; }
.ai-form { display: grid; gap: 10px; }
.or { text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: .72rem; text-transform: uppercase; color: var(--muted); margin: 22px 0 0; max-width: 680px; }
.draft-poster { display: flex; gap: 12px; align-items: center; }
.draft-poster img { width: 90px; border: 2px solid var(--line); }
@media (max-width: 720px) { .ai-box { grid-template-columns: 1fr; } }

/* ---------- Moderazione ---------- */
.review { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1.5px dashed var(--line); flex-wrap: wrap; }
.review:last-child { border-bottom: 0; }
.review-main { flex: 1 1 320px; }
.review-main p { margin: 0 0 4px; }
.review-actions { flex: 0 1 320px; display: grid; gap: 8px; }
.review-actions .actions { margin: 0; }
.review-thumb { width: 64px; border: 2px solid var(--line); }

/* ---------- Segnala ---------- */
.shot-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: #FFE14A; color: #141414; border: 2px solid #141414; box-shadow: var(--shadow-lg); padding: 24px; margin: 18px 0 24px; }
.shot-box h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2.1rem; margin: 0 0 8px; line-height: 1; }
.shot-box .form-row input, .shot-box .form-row textarea { background: #fff; color: #141414; border-color: #141414; }
.shot-box .form-row > label, .shot-box .muted, .shot-box small { color: #141414; }
.shot-form { display: grid; gap: 12px; }
.manual-submit { max-width: 720px; }
@media (max-width: 720px) { .shot-box { grid-template-columns: 1fr; } }

/* ---------- Pagine legali ---------- */
.legal { max-width: 760px; margin: 28px 0 56px; }
.legal h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2.8rem; margin: 14px 0 6px; line-height: .95; }
.legal h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin-top: 30px; font-size: 1.45rem; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--surface); border: 2px solid var(--line); }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1.5px solid var(--line); vertical-align: top; }

/* ---------- Piè di pagina (sempre in negativo) ---------- */
.footer { border-top: 2px solid var(--line); padding: 32px 0 38px; margin-top: 30px; background: #141414; color: #F1ECE2; }
.footer a { color: #F1ECE2; }
.footer a:hover { color: #FFE14A; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 12px 30px; align-items: start; }
.footer-logo img { height: 36px; display: block; }
.footer p { margin: 0 0 6px; }
.footer-links { font-family: var(--font-mono); font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-links a { text-decoration: none; margin-right: 14px; }
@media (max-width: 620px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Statistiche ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 10px; }
.stat { border: 2px solid var(--line); background: var(--paper); padding: 12px; display: grid; gap: 2px; }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.stat span { font-family: var(--font-mono); font-weight: 700; font-size: .62rem; text-transform: uppercase; color: var(--muted); }
.row-actions { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ig-table { width: 100%; border-collapse: collapse; }
.ig-table th, .ig-table td { text-align: left; padding: 9px 8px; border-bottom: 1.5px dashed var(--line); vertical-align: middle; font-size: .9rem; }
.ig-table th { font-family: var(--font-mono); font-weight: 700; font-size: .64rem; text-transform: uppercase; color: var(--muted); }
.ig-table input[type=text] { font: inherit; padding: 6px 8px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); width: 180px; }
.ig-table form { display: inline; }
.result-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.result-list li { padding: 8px 12px; border: 2px solid var(--line); background: var(--surface); }
.result-list li.ok { border-left: 8px solid var(--ok); }
.result-list li.ko { border-left: 8px solid var(--red); }
