/* Pagine pubbliche della compagnia teatrale Zapoj (zapoj.lespezie.org) */
:root {
  --ink: #1c1715;
  --paper: #f4f1ec;
  --card: #ffffff;
  --muted: #6f645d;
  --line: #e3ddd5;
  --accent: #c8362b;
  --ok: #2f7a4b;
  --warn: #a86a00;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
.z-top { background: var(--ink); color: #fff; padding: 18px 20px; }
.z-top-in { max-width: 760px; margin: 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.z-logo { font-weight: 900; letter-spacing: .32em; font-size: 22px; text-decoration: none; }
.z-sub { color: #cfc6bf; font-size: 13px; text-decoration: none; }
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 18px 48px; }
h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.05; margin: 8px 0 14px; letter-spacing: -.01em; }
h2 { font-size: 24px; margin: 0 0 6px; }
p { line-height: 1.55; }
.lead { font-size: 18px; color: #3d3430; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.show { background: var(--card); border-radius: 18px; padding: 22px; margin: 22px 0; box-shadow: 0 1px 0 var(--line); }
.show .meta { color: var(--muted); margin: 0 0 12px; }
.show .desc p { margin: .5em 0; }
.notice { background: #fff6e6; border-left: 4px solid var(--warn); padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.perfs { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.perf { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.perf .when { font-weight: 700; }
.perf .seats { font-size: 14px; color: var(--muted); }
.perf .seats.few { color: var(--accent); font-weight: 600; }
.btn { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: 12px 18px; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.danger { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn.full { width: 100%; }
.btn[disabled], .btn.off { background: #b9b1aa; cursor: default; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: #eee7df; }
.tag.ok { background: #dff1e5; color: var(--ok); }
.tag.err { background: #fbe2df; color: var(--accent); }
form.z-form { background: var(--card); border-radius: 18px; padding: 22px; display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select, textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #cfc7be; border-radius: 10px; background: #fff; width: 100%; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err-box { background: #fbe2df; color: #7d1f17; border-radius: 10px; padding: 12px 14px; }
.ok-box { background: #dff1e5; color: #1e5233; border-radius: 10px; padding: 12px 14px; }
.ticket { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 0 var(--line); max-width: 420px; margin: 0 auto; }
.ticket-head { background: var(--ink); color: #fff; padding: 18px 22px; }
.ticket-head h1 { font-size: 26px; margin: 4px 0; color: #fff; }
.ticket-body { padding: 20px 22px; display: grid; gap: 10px; }
.code { font-size: 34px; font-weight: 900; letter-spacing: .18em; text-align: center; }
.cut { border-top: 2px dashed var(--line); margin: 6px -22px; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.actions { display: grid; gap: 10px; margin-top: 18px; max-width: 420px; margin-left: auto; margin-right: auto; }
.z-foot { color: #8a7f78; font-size: 13px; text-align: center; padding: 22px 18px 30px; }
.z-foot a { color: #8a7f78; }
@media (max-width: 520px) {
  .perf { flex-direction: column; align-items: stretch; }
  .perf .btn { width: 100%; }
}
