/* HB Network — foglio di stile unico. Nessuna risorsa esterna. */

@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #101820;
  --surface: #16222e;
  --surface-2: #1c2b3a;
  --line: #24364a;
  --text: #e8eef5;
  --muted: #9fb0c3;
  --cyan: #3fd8ff;
  --violet: #7b6cff;
  --fuchsia: #d63cf0;
  --brand: linear-gradient(90deg, #3fd8ff 0%, #7b6cff 55%, #d63cf0 100%);
  --half-cy: linear-gradient(135deg, #4fe0ff, #2a8cf0);
  --half-pu: linear-gradient(135deg, #7b5cff, #c13df0);
  --radius: 16px;
  --wrap: 1100px;
  --head-h: 64px;
  --font-title: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-text);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; padding-top: var(--head-h); }
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8be9ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.grad {
  background: var(--brand); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 56px; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--head-h);
  background: rgba(16, 24, 32, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brand); opacity: .55; }
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: auto; }
.brand:hover { color: var(--text); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; border-radius: 2px;
  position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-family: var(--font-title); font-weight: 600; font-size: .95rem;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--violet); }

/* Mobile first: con JS il menu è a tendina, senza JS resta sempre visibile */
@media (max-width: 980px) {
  .js .nav-toggle { display: block; }
  .js .nav {
    position: absolute; top: var(--head-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; display: none;
  }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; }
  .js .nav a { padding: 14px; font-size: 1.05rem; }
  html:not(.js) .site-head { position: static; height: auto; }
  html:not(.js) .site-head .wrap { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
  html:not(.js) main { padding-top: 0; }
}

/* ---------- Bottoni ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 24px rgba(123, 108, 255, .35); }
.btn--primary:hover { color: #fff; box-shadow: 0 8px 30px rgba(214, 60, 240, .4); }
.btn--ghost {
  color: var(--text);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--brand) border-box;
  border: 2px solid transparent;
}
.btn--ghost:hover { color: var(--text); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand) border-box; }

/* ---------- Segnaposto evidenti ---------- */
.ph {
  display: inline-block; padding: 0 .4em; border-radius: 4px;
  background: rgba(255, 196, 0, .14); color: #ffd25e; border: 1px dashed #ffd25e;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; line-height: 1.6;
}
a[data-ph] { position: relative; }
a[data-ph]::after {
  content: "[" attr(data-ph) "]";
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); white-space: nowrap;
  font: 600 .7rem/1.4 ui-monospace, Menlo, Consolas, monospace; color: #ffd25e;
  background: #2a2410; border: 1px dashed #ffd25e; border-radius: 4px; padding: 1px 6px; pointer-events: none;
}
.btns:has(a[data-ph]) { margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 64px 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 25% 35%, rgba(63, 216, 255, .14), transparent 70%),
    radial-gradient(40% 50% at 78% 30%, rgba(214, 60, 240, .14), transparent 70%),
    radial-gradient(50% 60% at 50% 40%, rgba(91, 75, 255, .16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 32px; align-items: center; }
.hero__mark { width: min(220px, 55vw); margin-inline: auto; filter: drop-shadow(0 10px 40px rgba(123, 108, 255, .35)); }
.hero h1 { margin-bottom: .25em; }
.hero .sub { font-family: var(--font-title); font-weight: 600; font-size: clamp(1.15rem, 4vw, 1.5rem); margin-bottom: .8em; }
@media (min-width: 820px) {
  .hero { padding-block: 96px 104px; }
  .hero .wrap { grid-template-columns: 1.4fr 1fr; }
  .hero__mark { width: 300px; order: 2; }
}

/* ---------- Riquadri ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.section--alt .card { background: var(--bg); }
.card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px;
  background: var(--brand); opacity: .8;
}
.card__icon { font-size: 1.8rem; line-height: 1; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }

.strip {
  display: grid; gap: 20px; align-items: center;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand) border-box;
  border: 1px solid transparent; border-radius: var(--radius); padding: 28px;
}
.strip ul { margin: 0; padding-left: 1.2em; }
.strip li { margin-bottom: .4em; }
.strip li::marker { color: var(--violet); }
@media (min-width: 820px) { .strip { grid-template-columns: 1fr auto; } }

/* ---------- Testata pagine interne ---------- */
.page-head { padding-block: 56px 32px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 15% 0%, rgba(63, 216, 255, .1), transparent 60%),
              radial-gradient(60% 120% at 90% 0%, rgba(214, 60, 240, .1), transparent 60%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.kicker { font-family: var(--font-title); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: .6em; }
.prose { max-width: 46em; }

/* ---------- Fondatori ---------- */
.people { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { text-align: center; padding: 28px 20px; }
.avatar {
  width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; padding: 3px;
  background: var(--half-cy);
}
.avatar--pu { background: var(--half-pu); }
.avatar--brand { background: var(--brand); }
.avatar span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--bg); font-family: var(--font-title); font-weight: 700; font-size: 2.2rem; color: var(--text);
}
.person .role { color: var(--muted); margin-bottom: 14px; }
.person a { font-family: var(--font-title); font-weight: 600; text-decoration: none; }
.person h3 { font-size: 1.25rem; }

.callout {
  text-align: center; padding: 36px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--line);
}
.callout p { color: var(--muted); }
.callout .btns { justify-content: center; }

/* ---------- Regole ---------- */
.spirit {
  border-left: 4px solid; border-image: var(--brand) 1;
  background: var(--surface); padding: 18px 22px; margin: 0 0 40px; font-size: 1.1rem;
}
.spirit strong { font-family: var(--font-title); }
.rules-group { margin-bottom: 40px; }
.rules-group h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.rules .n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
}
.rules--warn .n { background: linear-gradient(135deg, #ff6b8b, #d63cf0); }
.rules p { margin: 0; }
.rules strong { font-family: var(--font-title); font-weight: 600; }

/* ---------- Passi ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; }
/* Il numero usa ::after perché ::before su .card è già la linea a gradiente:
   condividere lo stesso pseudo-elemento lo rendeva assoluto e lo sovrapponeva al titolo. */
.steps li::after {
  content: counter(s); order: -1; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-title); font-weight: 700;
}
.steps li.card { display: flex; flex-direction: column; }
.steps-title { margin-top: 40px; font-size: clamp(1.2rem, 4vw, 1.45rem); }
.note { margin: 18px 0 0; color: var(--muted); font-size: .95rem; max-width: 36em; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: radial-gradient(circle, #000 0 4px, transparent 5px), linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-family: var(--font-title); font-weight: 600; font-size: .85em;
  background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.site-foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.site-foot .brand-sm { display: flex; align-items: center; gap: 8px; }
.site-foot .brand-sm img { width: 24px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.center .btns { justify-content: center; }

/* Icone SVG dei riquadri (sostituiscono le emoji) */
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.card__icon .icon { width: 44px; height: 44px; display: block; }
.person .links { display: flex; justify-content: center; gap: 18px; margin: 0; }

/* =====================================================================
   Area riservata (account, ticket, pannello) — pagine servite dall'app
   ===================================================================== */
.small { font-size: .9rem; }
.app-wrap { padding-block: 48px 64px; }
.app-wrap > :first-child { margin-top: 0; }
#fondo, .app [id] { scroll-margin-top: calc(var(--head-h) + 24px); }
.app-narrow { max-width: 36rem; margin-inline: auto; }
.app h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.app h2 { font-size: 1.2rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Account nel menu */
.nav .acct { display: flex; align-items: center; gap: 4px; }
.nav .nav-cta { color: var(--text); background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--brand) border-box; border: 1px solid transparent; }
.usermenu { position: relative; }
.usermenu summary {
  list-style: none; cursor: pointer; padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: var(--text);
  max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary::after { content: " ▾"; color: var(--muted); }
.usermenu summary:hover { background: var(--surface); }
.usermenu ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; z-index: 60;
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.usermenu ul a { padding: 10px 12px; }
@media (max-width: 980px) {
  .nav .acct { flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .usermenu ul { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
  .usermenu summary { max-width: none; padding: 14px; }
}

/* Messaggi */
.flashes { display: grid; gap: 8px; margin-bottom: 24px; }
.flash { margin: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.flash--info { border-color: rgba(63, 216, 255, .45); }
.flash--error { border-color: rgba(255, 107, 139, .6); background: rgba(255, 107, 139, .08); }

/* Form */
.form { display: grid; gap: 16px; margin-block: 16px 20px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-title); font-weight: 600; font-size: .95rem; }
.field input:not([type=checkbox]), .field select, .field textarea, .filters input, .filters select, .inline-form input:not([type=checkbox]) {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .filters input:focus, .inline-form input:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123, 108, 255, .3);
}
.field--error input, .field--error textarea, .field--error select { border-color: #ff6b8b; }
.hint { color: var(--muted); }
.err { color: #ff8fa6; font-weight: 600; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-family: var(--font-text) !important; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--violet); flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.row > .field { flex: 1 1 200px; }
.cf-turnstile { min-height: 65px; }

.btn--block { width: 100%; }
.btn--twitch { background: #9146ff; color: #fff; }
.btn--twitch:hover { background: #a970ff; color: #fff; }
.btn--danger { background: #c73a5a; color: #fff; }
.btn--danger:hover { background: #e04a6c; color: #fff; }
button.btn { cursor: pointer; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 18px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Riquadri e dati */
.panel-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel-box form + form { margin-top: 10px; }
.panel-box--danger { border-color: rgba(199, 58, 90, .5); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 24px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts--app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
.head-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.head-row h1 { margin: 0; overflow-wrap: anywhere; }
.head-row .btns { margin-top: 0; }

/* Elenco ticket */
.tlist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.tlist a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.tlist a:hover { border-color: var(--violet); color: var(--text); }
.tnum { font-family: var(--font-title); font-weight: 700; color: var(--muted); }
.ttitle { font-weight: 600; overflow-wrap: anywhere; }
.tmeta { grid-column: 2; color: var(--muted); font-size: .85rem; }
.tlist .status { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 520px) { .tlist a { grid-template-columns: auto 1fr; } .tlist .status { grid-column: 2; grid-row: auto; justify-self: start; } }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; border: 1px solid; }
.status--aperto { color: #3fd8ff; border-color: rgba(63, 216, 255, .5); }
.status--in_lavorazione { color: #a99cff; border-color: rgba(123, 108, 255, .6); }
.status--attesa_utente { color: #ffd25e; border-color: rgba(255, 210, 94, .5); }
.status--chiuso { color: var(--muted); border-color: var(--line); }

/* Conversazione */
.thread { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.msg { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.msg--staff { border-left: 3px solid var(--violet); }
.msg--internal { background: rgba(255, 210, 94, .06); border: 1px dashed rgba(255, 210, 94, .55); }
.msg-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; font-size: .9rem; }
.msg-head time { color: var(--muted); margin-left: auto; }
.badge--internal { color: #ffd25e; border-color: rgba(255, 210, 94, .55); }
.reply { margin-top: 8px; }

/* Pannello */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.subnav a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-family: var(--font-title); font-weight: 600; }
.subnav a:hover { color: var(--text); background: var(--surface); }
.subnav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--violet); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 20px; }
.filters label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); flex: 1 1 160px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; background: var(--surface); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td a { overflow-wrap: anywhere; }
.ticket-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .ticket-grid { grid-template-columns: 1fr 300px; align-items: start; } }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.inline-form input:not([type=checkbox]) { flex: 1 1 200px; width: auto; }
.table .inline-form .check { white-space: nowrap; }
form.inline-form:not(.table *) { margin-top: 20px; }
.danger-zone { margin-top: 16px; }
.danger-zone summary { cursor: pointer; color: #ff8fa6; font-weight: 600; }
.pager { display: flex; gap: 20px; margin-top: 16px; }
.temp-pw code { font-size: 1.1rem; padding: 2px 8px; background: var(--bg); border-radius: 6px; user-select: all; }
.privacy h2 { font-size: 1.3rem; margin-top: 2em; }
.privacy ul { padding-left: 1.2em; }
.privacy li { margin-bottom: .5em; }
.privacy li::marker { color: var(--violet); }
.privacy code { background: var(--surface); padding: 1px 6px; border-radius: 6px; }

/* conferma candidatura */
.notice { margin-block: 16px 24px; }
.notice h2 { margin-top: 0; }

/* code e presa in carico */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--violet); background: var(--surface); }
.status--libero { color: #7dffb0; border-color: rgba(125, 255, 176, .5); }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.events time { color: var(--muted); margin-right: 4px; }
.members { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.members li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.inline-label { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.btns--tight { margin-top: 8px; }
