/* SwissFixa — lancio con inviti (D-66): biglietto d'oro nel modulo, pagina «il tuo posto», Club fondatori */
:root { --gold-1: #ffe7b0; --gold-2: #ffc98a; --on-gold: #3a2200; --gold-line: rgba(58,34,0,.18); }

/* banner nel modulo d'iscrizione */
.gold { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--on-gold); box-shadow: 0 12px 30px -16px rgba(0,0,0,.45);
  animation: gold-in 520ms var(--ease-emphasized, cubic-bezier(.2,0,0,1)) both; }
.gold strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.gold p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--on-gold) !important; }
.gold__ic { flex: none; width: 28px; height: 28px; fill: currentColor; opacity: .85; }
.gold--usato { background: var(--surface-container-high); color: var(--on-surface); }
.gold--usato p { color: var(--on-surface-variant) !important; }
@keyframes gold-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* pagina «il tuo posto» */
.posto { display: grid; gap: 18px; margin: 28px 0 24px; }
.posto section { border-radius: 26px; padding: clamp(20px, 3.5vw, 30px); }
.posto h2 { margin: 0 0 6px; }
.posto p { margin: 0 0 12px; }
.ticket { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); color: #fff; box-shadow: var(--hero-glow, 0 30px 60px -30px rgba(74,53,216,.6)); }
.ticket::after { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(255,179,107,.35), transparent); }
.doc .ticket p { color: #fff; }
.ticket__k { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 !important; }
.doc .ticket .ticket__n { margin: 4px 0 6px !important; color: #fff; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ticket__n span { font-size: clamp(28px, 4vw, 40px); opacity: .8; }
.ticket__n b { font-size: clamp(72px, 13vw, 132px); }
.ticket__s { max-width: 46ch; margin: 0 !important; font-size: 16px; }
.gold-card { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--on-gold); }
.doc .gold-card p, .doc .gold-card h2 { color: var(--on-gold); }
.gold-card code { white-space: nowrap;  margin-left: 6px; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.55); font: 700 15px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; vertical-align: 2px; }
.linkbox input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--gold-line); border-radius: 14px; background: rgba(255,255,255,.7); color: var(--on-gold); font: 600 15px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gold-card .btn--quiet { color: var(--on-gold); box-shadow: inset 0 0 0 1.5px rgba(58,34,0,.35); }
.gold-card .btn--primary { background: var(--on-gold); color: #fff; box-shadow: none; }
.azioni { display: flex; flex-wrap: wrap; gap: 10px; }
.card-sec, .club-card { background: var(--surface-container-low); box-shadow: inset 0 0 0 1px var(--outline-variant); }
.card-prev { display: block; width: min(300px, 100%); height: auto; aspect-ratio: 9 / 16; margin: 6px 0 16px; border-radius: 22px; background: var(--surface-container-high); box-shadow: 0 24px 50px -28px rgba(42,15,110,.6); }
.seg { display: inline-flex; margin: 0 0 12px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--outline-variant); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; min-height: 48px; padding: 6px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--on-surface-variant); }
.seg input:checked + span { background: var(--primary-container); color: var(--on-primary-container); }
.seg input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.salva { font-size: 14.5px; }
.posto [data-anim] { animation: gold-in 560ms var(--ease-emphasized, cubic-bezier(.2,0,0,1)) both; animation-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gold-1: #f3cf86; --gold-2: #e9a865; } }
:root[data-theme="dark"] { --gold-1: #f3cf86; --gold-2: #e9a865; }
@media (prefers-reduced-motion: reduce) { .gold, .posto [data-anim] { animation: none; } }

/* Club fondatori */
.club { max-width: 760px; }
.vota { display: grid; gap: 10px; margin: 18px 0; padding: 0; border: 0; }
.vota legend { font-weight: 700; font-size: 19px; margin-bottom: 8px; color: var(--on-surface); }
.opz { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 14px 16px; border-radius: 18px; background: var(--surface-container-low); box-shadow: inset 0 0 0 1.5px var(--outline-variant); cursor: pointer; transition: box-shadow 200ms, background-color 200ms; }
.opz:hover { box-shadow: inset 0 0 0 1.5px var(--outline); }
.opz input { margin: 4px 0 0; width: 20px; height: 20px; accent-color: var(--primary); }
.opz b { color: var(--on-surface); }
.opz small { grid-column: 2; color: var(--on-surface-variant); font-size: 14.5px; line-height: 1.45; }
.opz:has(input:checked) { background: var(--primary-container); box-shadow: inset 0 0 0 2px var(--primary); }
.opz .barra { grid-column: 2; height: 6px; border-radius: 6px; background: var(--outline-variant); overflow: hidden; }
.opz .barra i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.campo { display: grid; gap: 6px; margin: 12px 0; }
.campo input[type=text] { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--outline-variant); background: var(--surface-container-lowest); color: var(--on-surface); font: inherit; }
.stato { padding: 12px 14px; border-radius: 14px; background: var(--success-container); color: var(--on-success-container) !important; }
.stato.err { background: var(--error-container); color: var(--on-error-container) !important; }
.posto [hidden], .club [hidden], .posto[hidden] { display: none !important; }

/* audit 2.12: focus visibile sulla carta dorata, testo per screen reader, link lunghi, pulsanti lingua */
.gold-card :focus-visible { outline: 3px solid var(--on-gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.linkbox input { font-size: 14px; text-overflow: ellipsis; }
.posto-pagina .langs a { min-height: 44px; display: inline-flex; align-items: center; }
.gold-chip { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 16px; min-height: 48px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--on-gold); font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.gold-chip:focus-visible { outline: 3px solid var(--on-gold); outline-offset: 3px; }
@media (min-width: 1024px) { .posto { grid-template-columns: 1fr 1fr; align-items: start; } .posto .ticket, .posto .club-card { grid-column: 1 / -1; } }
