@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/anton-400.woff) format("woff"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/courier-prime-400.woff) format("woff"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/courier-prime-700.woff) format("woff"); }
/* Black Isle Society: foglio di stile unico per tutte le pagine.
   Solo bianco e nero. Il logo comanda, il resto fa da cornice. */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b5b5b5;
  --dim: #3b3b3b;
  --font-display: "Anton", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Courier Prime", "Courier New", Courier, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
/* grana di stampa, appena percettibile */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; }
a { color: var(--fg); text-underline-offset: 4px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
p { margin: 0; }
img { max-width: 100%; }

/* ---------- Testata: il logo prima di tutto ---------- */
.masthead { padding-block: 32px 28px; }
.masthead a { display: block; }
.logo { display: block; margin-inline: auto; width: min(440px, 100%); height: auto; }
.logo.big { width: min(900px, 100%); }
@media (max-width: 560px) { .logo { width: min(300px, 100%); } .logo.big { width: 100%; } }

.menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; background: var(--fg); border: 3px solid var(--fg); }
.menu a { background: var(--bg); color: var(--fg); text-decoration: none; text-align: center; padding: 14px 4px 12px; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(13px, 3.9vw, 25px); letter-spacing: .03em; line-height: 1.15; white-space: nowrap; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--fg); color: var(--bg); }

main { display: flex; flex-direction: column; padding-block: 8px 24px; }

/* ---------- Titoli ---------- */
.mega, h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; margin: 0; letter-spacing: .005em; text-wrap: balance; }
.mega { font-size: clamp(46px, 13vw, 124px); line-height: .98; }
h1 { font-size: clamp(30px, 8.4vw, 100px); line-height: 1; }
h2 { font-size: clamp(30px, 7vw, 62px); line-height: .98; }
h3 { margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: 1.1; letter-spacing: .02em; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lead { font-size: clamp(19px, 2.6vw, 23px); max-width: 44ch; margin-top: 18px; }
.manifesto { font-size: clamp(21px, 3.2vw, 30px); line-height: 1.35; max-width: 34ch; }
.muted { color: var(--muted); }

/* ---------- Blocchi ---------- */
.slab { border-top: 3px solid var(--fg); padding-block: 40px; display: flex; flex-direction: column; gap: 22px; }
.slab.first { border-top: 0; padding-top: 36px; }
.slab.inv { background: var(--fg); color: var(--bg); border-top: 0; padding: 40px clamp(18px, 3vw, 34px) 34px; margin-block: 36px 0; }
.slab.inv .dove { font-weight: 700; font-size: clamp(14px, 2.4vw, 20px); letter-spacing: .04em; text-transform: uppercase; }
.slab.inv .eyebrow { color: inherit; }
.slab.inv img { filter: invert(1); }

/* ---------- Decorazioni in xilografia ---------- */
.orn { width: 44px; height: 44px; display: block; flex: none; }
.fregio { display: flex; align-items: center; gap: 16px; padding-block: 28px; }
.fregio::before, .fregio::after { content: ""; flex: 1; height: 3px; background: var(--fg); }
.fregio .orn { width: 48px; height: 48px; }

/* ---------- Pulsanti ---------- */
.btn, button { font-family: var(--font-display); font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg); background: var(--bg); border: 3px solid var(--fg); border-radius: 0; padding: 10px 20px 8px; cursor: pointer; min-height: 48px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1.1; }
.btn:hover, button:hover { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover { background: var(--bg); color: var(--fg); }
button.icon { min-width: 48px; padding: 8px; font-size: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Serate ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.nav h2 { font-size: clamp(36px, 8vw, 64px); }
.nav-btns { display: flex; gap: 10px; }
.sheets { display: flex; flex-direction: column; gap: 24px; }
.sheet { border: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.sheet.past { opacity: .5; }
.date { background: var(--fg); color: var(--bg); padding: 16px 10px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.date .d { font-family: var(--font-display); font-size: 92px; line-height: .95; display: block; }
.date .m { font-family: var(--font-display); font-size: 26px; letter-spacing: .08em; text-transform: uppercase; display: block; line-height: 1; margin-top: 4px; }
.date .w { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; display: block; margin-top: 10px; font-weight: 700; }
.main { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 4px 0 0 22px; }
.badge { align-self: flex-start; background: none; color: var(--fg); font-family: var(--font-display); font-size: clamp(26px, 4.6vw, 40px); font-weight: 400; letter-spacing: .05em; line-height: 1; text-transform: uppercase; padding: 0 0 2px; border-bottom: 4px solid var(--fg); }
.sheet.next .badge { background: none; color: var(--fg); border: 0; border-bottom: 4px solid var(--fg); }
.evnote { max-width: 60ch; }
.tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.table { border: 2px solid var(--fg); padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; min-width: 0; }
.table h3 { overflow-wrap: anywhere; font-size: 26px; }
.table .info { font-size: 16px; color: var(--muted); }
.table .seats { font-size: 15px; font-weight: 700; }
.tag { align-self: center; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1; text-transform: uppercase; padding: 8px 12px; min-height: 30px; background: var(--fg); border: 0; color: var(--bg); }
.tag span { display: block; text-box: trim-both cap alphabetic; }
.tag svg { flex: none; }
.tag.campagna, .tag.oneshot, .tag.coworking {  background: var(--fg); color: var(--bg); }
.tag.ruolo { background: var(--fg); color: var(--bg); }
.tag.tavolo { background: var(--fg); color: var(--bg); }
.tag.carte { background: var(--fg); color: var(--bg); }
.tag.speciale { background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.tag.corso { background: var(--fg); color: var(--bg); }
.tbd { color: var(--muted); }
/* scelta presenze: [<] dado [>] + Lancia */
.react { align-self: stretch; margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.react .sel { display: flex; align-items: center; justify-content: center; gap: 12px; }
.react .arr { width: 38px; height: 38px; min-height: 38px; padding: 0; border-width: 2px; }
.react .arr svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.react .arr:disabled { opacity: .25; cursor: default; }
.react .arr:disabled:hover { background: var(--bg); color: var(--fg); }
.react .faccia { display: block; width: 46px; height: 46px; transform-origin: 50% 55%; animation: dondolo 3.4s ease-in-out infinite; }
.react .faccia svg { display: block; width: 100%; height: 100%; }
.react:not(.libero):not(.tira) .faccia { animation: dondolo-lieve 4.2s ease-in-out infinite; }
.react.libero:not(.tira) .faccia { animation: dondolo 3.4s ease-in-out infinite; }
.react.libero:hover:not(.tira) .faccia { animation-duration: 1.2s; }
.react.tira .faccia { animation: tira .75s cubic-bezier(.3,.1,.3,1) 1; }
.react .lancia { width: 100%; min-height: 42px; font-size: 20px; }
.react .lancia:disabled { cursor: default; opacity: .6; }
.react .primo { background: var(--fg); color: var(--bg); }
.react .primo:hover { background: var(--bg); color: var(--fg); }
.react .tot { margin: 0; text-align: center; font-size: 15px; color: var(--muted); letter-spacing: .02em; }
@keyframes dondolo {
  0%, 62%, 100% { transform: rotate(0); }
  10% { transform: rotate(-12deg) translateY(-1px); }
  22% { transform: rotate(9deg); }
  34% { transform: rotate(-6deg); }
  46% { transform: rotate(3deg); }
}
@keyframes dondolo-lieve {
  0%, 70%, 100% { transform: rotate(0); }
  12% { transform: rotate(-5deg); }
  26% { transform: rotate(4deg); }
  40% { transform: rotate(-2deg); }
}
@keyframes tira {
  0% { transform: rotate(0) scale(1); }
  45% { transform: rotate(300deg) scale(1.3); }
  100% { transform: rotate(720deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .react .faccia, .react.tira .faccia { animation: none !important; } }
.guida { display: flex; gap: 12px; align-items: center; border-left: 6px solid var(--fg); padding: 2px 0 2px 14px; max-width: 64ch; font-size: 16px; }
.guida .dado { flex: none; width: 34px; height: 34px; }
.guida .dado svg { display: block; width: 100%; height: 100%; }
.guida strong { font-weight: 700; }
.avviso { border-left: 6px solid var(--fg); padding: 2px 0 2px 14px; max-width: 64ch; }
.tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hint { color: var(--muted); font-size: 16px; }

@media (max-width: 640px) {
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .date { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 12px; padding: 12px 16px 10px; }
  .date .d { font-size: 62px; }
  .date .w { margin: 0 0 0 auto; }
  .main { padding: 16px 0 0; }
}

/* ---------- Home ---------- */
.prossima { border: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.prossima .quando { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(30px, 6vw, 48px); line-height: 1; }
.prossima .quando .ora { white-space: nowrap; }
@media (max-width: 560px) { .prossima .quando .ora { display: block; margin-top: 6px; font-size: .72em; color: var(--muted); } }
.cose { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--fg); }
.cose li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--dim); font-size: 20px; }
.cose .orn { width: 48px; height: 48px; }

/* ---------- Creazioni ---------- */
.lista { display: flex; flex-direction: column; border-top: 3px solid var(--fg); }
.voce { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 14px 8px 12px; border-bottom: 1px solid var(--dim); }
.voce a { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(19px, 3.4vw, 32px); line-height: 1.1; text-decoration: none; letter-spacing: .02em; }
.voce .sistema { color: var(--muted); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.voce:hover { background: var(--fg); }
.voce:hover a, .voce:hover .sistema { color: var(--bg); }
@media (max-width: 560px) { .voce { grid-template-columns: minmax(0, 1fr); } .voce .sistema { text-align: left; } }

/* ---------- Contatti ---------- */
.contatti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: var(--fg); border: 3px solid var(--fg); }
.contatto { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.contatto .k { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contatto .v { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(22px, 4vw, 34px); line-height: 1.05; overflow-wrap: anywhere; user-select: all; }
.contatto .v.mail { font-size: clamp(17px, 4.4vw, 30px); letter-spacing: .01em; overflow-wrap: normal; }
.nav-btns { margin-left: auto; }
.where { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3px; background: var(--fg); border: 3px solid var(--fg); }
.where > div { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.where .k { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.where .v { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(22px, 4vw, 34px); line-height: 1.1; }

footer { border-top: 3px solid var(--fg); padding-block: 22px 44px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
footer .orn { width: 30px; height: 30px; }
@media (max-width: 560px) { footer { gap: 10px; font-size: 12px; letter-spacing: .06em; } footer .orn { width: 24px; height: 24px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

main > .contatti, main > .where { margin-top: 36px; }

@media (max-width: 640px) { .contatti { grid-template-columns: minmax(0, 1fr); } }

.slab.inv.compact { padding: 24px clamp(18px, 3vw, 34px) 22px; margin-block: 24px 0; }
.slab.inv.compact h1 { font-size: clamp(30px, 6.2vw, 64px); }
.slab.inv.compact .lead { font-size: clamp(15px, 2.2vw, 19px); margin-top: 10px; }
.voce a::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .35em; background: currentColor; -webkit-mask: url(assets/arrow.svg) center/contain no-repeat; mask: url(assets/arrow.svg) center/contain no-repeat; }
.table .info.sistema { color: var(--fg); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

footer a { color: inherit; }
.testo { max-width: 68ch; padding-block: 28px 8px; }
.testo h2 { font-size: clamp(22px, 4vw, 32px); margin-top: 26px; }
.testo p { margin: 10px 0 0; }
.testo a { color: var(--fg); }
.testo .agg { color: var(--muted); font-size: 15px; margin-top: 28px; }
