/* ------------------------------------------------------------------
   Cena di Natale — design tokens
   Verde abete, carta avorio, ottone. Editoriale e intimo.
------------------------------------------------------------------- */

:root {
  --pine-950: #081711;
  --pine-900: #0e2319;
  --pine-800: #142f24;
  --pine-700: #1d4032;
  --cream: #f6efe2;
  --paper: #fbf7ee;
  --sand: #efe4cf;
  --brass: #c9a45c;
  --brass-strong: #9c7830;
  --ink: #1b241e;
  --muted: #646e63;
  --line: rgba(27, 36, 30, 0.16);
  --line-strong: rgba(27, 36, 30, 0.28);
  --line-light: rgba(246, 239, 226, 0.2);
  --error: #9c2f26;
  --success: #2d6a4a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --page: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brass);
  color: var(--pine-900);
}

:focus-visible {
  outline: 2px solid var(--brass-strong);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--pine-900);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  color: var(--cream);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 26, 19, 0.92);
  border-bottom-color: rgba(246, 239, 226, 0.08);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wordmark-mark {
  color: var(--brass);
  font-size: 13px;
  transform: translateY(-1px);
}

.wordmark-year {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(246, 239, 226, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
}

.site-nav a {
  color: rgba(246, 239, 226, 0.72);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--cream);
}

.site-nav .nav-cta {
  color: var(--pine-900);
  background: var(--brass);
  padding: 10px 18px;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.2s var(--ease);
}

.site-nav .nav-cta:hover {
  background: #d7b673;
  color: var(--pine-900);
}

/* ------------------------------------------------------------------
   Bottoni, etichette, link
------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--pine-900);
}

.btn-primary:hover {
  background: #d8b775;
  border-color: #d8b775;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(246, 239, 226, 0.32);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-1px);
}

.btn-wide {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--brass-strong);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.text-link:hover {
  color: var(--brass-strong);
  gap: 11px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brass-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.kicker-light {
  color: var(--brass);
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 54px) clamp(18px, 5vw, 64px) 72px;
  color: var(--cream);
  background:
    radial-gradient(1100px 620px at 72% 26%, rgba(201, 164, 92, 0.16), transparent 62%),
    radial-gradient(900px 600px at 10% 100%, rgba(38, 83, 62, 0.55), transparent 66%),
    linear-gradient(158deg, #0a1c14 0%, #10291e 52%, #081711 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-right: min(30vw, 320px);
}

.hero-art {
  --art-opacity: 0.62;
  position: absolute;
  right: -3%;
  bottom: -2%;
  z-index: 1;
  width: min(62vw, 820px);
  color: var(--brass);
  opacity: var(--art-opacity);
  pointer-events: none;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.eyebrow {
  margin-bottom: 26px;
  color: rgba(246, 239, 226, 0.72);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.1rem, 10.2vw, 9.4rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 120;
}

.hero-title-line {
  display: block;
}

.hero-title-italic {
  font-style: italic;
  font-weight: 300;
  color: var(--brass);
  padding-left: 0.06em;
}

.hero-tagline {
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(246, 239, 226, 0.9);
}

.hero-support {
  max-width: 43ch;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(246, 239, 226, 0.64);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  color: rgba(246, 239, 226, 0.6);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta .dot {
  color: var(--brass);
}

/* ------------------------------------------------------------------
   Info dopo la prenotazione
------------------------------------------------------------------- */

.info {
  padding-top: 0;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.hero .countdown-grid {
  width: 100%;
  max-width: none;
  margin-top: clamp(30px, 5vh, 54px);
  padding-top: 22px;
  gap: 0;
  border-top-color: var(--line-light);
}

.hero .countdown-grid .countdown-block {
  padding-right: clamp(14px, 3vw, 40px);
}

.hero .countdown-grid .countdown-block + .countdown-block {
  padding-left: clamp(14px, 3vw, 40px);
  border-left: 1px solid rgba(246, 239, 226, 0.14);
}

.hero .countdown-grid .kicker {
  color: var(--brass);
}

.hero .countdown-grid .kicker::before {
  display: none;
}

.hero .countdown-grid .countdown-value {
  color: var(--cream);
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
}

.hero .countdown-grid .info-sub {
  color: rgba(246, 239, 226, 0.58);
  line-height: 1.5;
}

.countdown-block {
  display: grid;
  gap: 4px;
  align-content: start;
}

.countdown-value {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pine-800);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.info-main {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
}

.info-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------------
   Sezioni
------------------------------------------------------------------- */

.section {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(78px, 11vw, 138px) clamp(18px, 4vw, 40px);
}

.section-head h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.section-head h2 br {
  display: block;
}

.intro {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.intro-body {
  padding-top: 8px;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 350;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.intro-body > p + p {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15px;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.detail {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}

.detail dt {
  color: var(--brass-strong);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail dd {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
}

.detail dd span {
  display: block;
}

.detail dd span + span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

.intro-body .text-link {
  margin-top: 34px;
}

/* ------------------------------------------------------------------
   Menu
------------------------------------------------------------------- */

.menu-section {
  max-width: none;
  background: var(--cream);
  border-top: 1px solid rgba(27, 36, 30, 0.07);
  border-bottom: 1px solid rgba(27, 36, 30, 0.07);
}

.menu-section > * {
  max-width: var(--page);
  margin-inline: auto;
}

.menu-wrap {
  margin-top: clamp(44px, 6vw, 70px);
}

.menu-list {
  border-top: 1px solid var(--line-strong);
}

.menu-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.menu-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--brass-strong);
}

.menu-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.menu-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.timeline {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  margin-top: clamp(52px, 7vw, 84px);
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 66px 190px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-time {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brass-strong);
}

.timeline-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.timeline-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.notes-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.notes-list li::before {
  content: "✦";
  color: var(--brass-strong);
  font-size: 9px;
}

.notes-list-signup {
  display: grid;
  gap: 7px;
  margin-top: 26px;
  max-width: 40ch;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   Secret Santa
------------------------------------------------------------------- */

.santa-band {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 11vw, 140px) clamp(18px, 4vw, 40px);
  color: var(--cream);
  background:
    radial-gradient(900px 480px at 82% 10%, rgba(201, 164, 92, 0.14), transparent 62%),
    linear-gradient(160deg, #0a1c14, #122c21 55%, #081711);
}

.santa-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 7vw, 100px);
  max-width: var(--page);
  margin: 0 auto;
  align-items: start;
}

.santa-copy h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
}

.lead-light {
  max-width: 48ch;
  margin-top: 26px;
  color: rgba(246, 239, 226, 0.66);
  font-size: 15px;
  line-height: 1.7;
}

.santa-budget {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 239, 226, 0.6);
}

.santa-budget strong {
  color: var(--brass);
  font-weight: 500;
}

.santa-copy .btn {
  margin-top: 34px;
}

.santa-steps {
  border-top: 1px solid var(--line-light);
}

.santa-steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-light);
}

.step-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
}

.santa-steps h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--cream);
}

.santa-steps p {
  margin-top: 6px;
  max-width: 40ch;
  color: rgba(246, 239, 226, 0.56);
  font-size: 13px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   Iscrizione
------------------------------------------------------------------- */

.signup {
  display: block;
}

.signup-aside h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.025em;
}

.signup-aside .lead {
  margin-top: 24px;
  max-width: 34ch;
  font-size: 1.1rem;
}

.signup-aside .lead strong {
  color: var(--brass-strong);
  font-weight: 500;
}

.signup-facts {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.signup-facts li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.fact-label {
  color: var(--brass-strong);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signup-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 2px solid var(--error);
  background: rgba(156, 47, 38, 0.06);
  color: var(--error);
  font-size: 13px;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}

.contact-line span:first-child {
  color: var(--ink);
}

.form-panel {
  width: 100%;
  padding: clamp(24px, 4vw, 46px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  box-shadow: 0 24px 60px -46px rgba(10, 30, 20, 0.45);
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

.participants-set {
  display: grid;
  gap: 30px;
}

.participant {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.participant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.participant-title {
  margin-bottom: 16px;
  color: var(--brass-strong);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.participant-head .participant-title {
  margin-bottom: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field + .field {
  margin-top: 4px;
}

.field label,
.payment-set legend {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.field .optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea,
.status-form input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf8;
  font-size: 14px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 82px;
}

.field input:focus,
.field textarea:focus,
.status-form input:focus {
  border-color: var(--pine-700);
  box-shadow: 0 0 0 3px rgba(29, 64, 50, 0.09);
  outline: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.check {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease);
}

.check:hover {
  border-color: var(--brass);
}

.check:has(input:checked) {
  border-color: var(--pine-800);
  background: var(--pine-800);
  color: var(--cream);
}

.check:has(input:checked) input {
  accent-color: var(--brass);
}

.check:has(input:focus-visible) {
  outline: 2px solid var(--brass-strong);
  outline-offset: 2px;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--brass-strong);
  cursor: pointer;
}

.check-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.add-person {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--brass-strong);
  background: none;
  color: var(--brass-strong);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.add-person span {
  font-size: 16px;
  line-height: 1;
}

.add-person:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--error);
}

.payment-set {
  margin-top: 30px;
}

.payment-set legend {
  margin-bottom: 12px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-option {
  position: relative;
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 14px 14px 14px 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf8;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.payment-body::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.payment-option:has(input:checked) .payment-body {
  border-color: var(--pine-700);
  background: #f2ebda;
}

.payment-option:has(input:checked) .payment-body::before {
  border-color: var(--pine-700);
  box-shadow: inset 0 0 0 3px #f2ebda;
  background: var(--pine-700);
}

.payment-option:has(input:focus-visible) .payment-body {
  outline: 2px solid var(--brass-strong);
  outline-offset: 2px;
}

.payment-name {
  font-size: 13px;
  font-weight: 500;
}

.payment-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.form-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.form-total span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-total strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
}

#registration-form > .field {
  margin-top: 26px;
}

.form-error {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--error);
  background: rgba(156, 47, 38, 0.06);
  color: var(--error);
  font-size: 13px;
}

.form-error.is-visible {
  display: block;
}

#registration-form .btn-wide {
  margin-top: 22px;
}

#registration-form .btn[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.form-fineprint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Successo */

.success-panel h3 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 350;
  line-height: 1.05;
}

[data-success] {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.success-intro {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.success-code {
  margin-top: 26px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  background: var(--sand);
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
}

.success-summary {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.success-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.success-summary dt {
  color: var(--muted);
}

.success-summary dd {
  text-align: right;
}

.success-payment {
  margin-top: 26px;
}

.payment-box {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.payment-box h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
}

.payment-subtitle {
  margin: 20px 0 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-strong);
}

.payment-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.payment-box .btn {
  margin: 8px 0 14px;
}

.payment-data {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.payment-data > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.payment-data dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-data dd {
  text-align: right;
  font-weight: 500;
  word-break: break-word;
}

.paypal-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 18px 0 6px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--sand);
  text-align: center;
}

.paypal-qr img {
  width: 180px;
  height: 180px;
  background: var(--paper);
}

.paypal-qr p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.copy-btn {
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--brass-strong);
  color: var(--brass-strong);
}

.success-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.post-email {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.post-email h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.post-email > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.email-fields {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.post-email-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.post-email-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 10px;
}

.email-saved {
  color: var(--success);
  font-size: 12px;
}

.success-actions .btn-ghost,
.status-result .btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}

.success-actions .btn-ghost:hover,
.status-result .btn-ghost:hover {
  color: var(--brass-strong);
  border-color: var(--brass-strong);
}

/* ------------------------------------------------------------------
   Stato prenotazione
------------------------------------------------------------------- */

.status {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  padding-top: 0;
}

.status-head h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 350;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.status-head p:last-child {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
}

.status-form {
  display: flex;
  gap: 10px;
}

.status-form input {
  max-width: 240px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.status-form .btn {
  flex: 0 0 auto;
}

.status-result {
  margin-top: 22px;
  font-size: 14px;
}

.status-result:empty {
  display: none;
}

.status-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: var(--paper);
}

.status-card.is-paid {
  border-left-color: var(--success);
}

.status-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.status-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-card .status-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.status-card .status-people {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.status-card .status-people li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.status-card .status-people small {
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.status-badge.is-pending {
  color: #8a5a12;
  background: rgba(201, 164, 92, 0.13);
}

.status-badge.is-paid {
  color: var(--success);
  background: rgba(45, 106, 74, 0.09);
}

.status-message {
  color: var(--muted);
  font-size: 13px;
}

.status-message.is-error {
  color: var(--error);
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */

.site-footer {
  padding: clamp(52px, 7vw, 80px) clamp(18px, 4vw, 40px) 40px;
  color: var(--cream);
  background: var(--pine-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  max-width: var(--page);
  margin: 0 auto;
  align-items: start;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
}

.footer-tagline {
  margin-top: 5px;
  color: rgba(246, 239, 226, 0.5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
}

.footer-meta {
  color: rgba(246, 239, 226, 0.62);
  font-size: 12px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(246, 239, 226, 0.55);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brass);
}

.noscript-note {
  padding: 16px;
  background: var(--sand);
  color: var(--ink);
  text-align: center;
  font-size: 13px;
}

/* ------------------------------------------------------------------
   Animazioni
------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: hero-in 1s var(--ease) both;
  }

  .hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.22s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
  .hero-inner > *:nth-child(5) { animation-delay: 0.38s; }
  .hero-inner > *:nth-child(6) { animation-delay: 0.46s; }

  .hero-art {
    animation: art-in 1.6s var(--ease) 0.25s both;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.985);
  }
  to {
    opacity: var(--art-opacity);
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-inner {
    padding-right: 8vw;
  }

  .hero-art {
    width: 70vw;
    --art-opacity: 0.33;
    right: -14%;
  }

  .intro,
  .signup,
  .status {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .santa-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .santa-copy .lead-light {
    max-width: 60ch;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: row;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .countdown-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .hero .countdown-grid .countdown-block {
    padding-right: 14px;
  }

  .hero .countdown-grid .countdown-block + .countdown-block {
    padding-left: 14px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .wordmark {
    font-size: 17px;
  }

  .hero {
    min-height: 74svh;
    padding-top: calc(var(--header-h) + 58px);
  }

  .hero-inner {
    padding-right: 0;
  }

  .hero-art {
    width: 118vw;
    right: -42%;
    bottom: -6%;
    --art-opacity: 0.26;
  }

  .hero-title {
    font-size: clamp(3.7rem, 17vw, 6.2rem);
  }

  .hero-support {
    max-width: 34ch;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 330px;
  }

  .hero-meta {
    max-width: 280px;
    line-height: 1.8;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .menu-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 20px 0;
  }

  .menu-description {
    grid-column: 2;
    margin-top: 4px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .timeline-list li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .timeline-description {
    grid-column: 2;
  }

  .field-row,
  .payment-options {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 22px 18px;
  }

  .status-form {
    flex-direction: column;
    align-items: stretch;
  }

  .status-form input {
    max-width: none;
  }

  .status-form .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .wordmark-year {
    display: none;
  }

  .btn {
    padding: 14px 18px;
    font-size: 11px;
  }

  .detail dd {
    font-size: 16px;
  }

  .success-actions {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------
   Admin
------------------------------------------------------------------- */

.admin-body {
  min-height: 100svh;
  background: #f2ecdf;
}

.admin-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 420px at 70% 20%, rgba(201, 164, 92, 0.14), transparent 60%),
    linear-gradient(160deg, #0a1c14, #10291e 60%, #081711);
}

.login-card {
  width: min(420px, 100%);
  padding: 34px;
  background: var(--paper);
  border-top: 3px solid var(--brass);
}

.login-card h1 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 350;
  line-height: 1.1;
}

.login-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.login-card form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 40px);
  background: var(--pine-900);
  color: var(--cream);
  border-bottom: 1px solid rgba(246, 239, 226, 0.1);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
}

.admin-brand span {
  color: var(--brass);
  font-size: 13px;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-topbar .btn {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 10px;
}

.admin-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 48px) clamp(16px, 3vw, 32px) 70px;
}

.muted {
  color: var(--muted);
  font-size: 11px;
}

.admin-notice {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--success);
  background: rgba(45, 106, 74, 0.08);
  color: var(--success);
  font-size: 13px;
}

.admin-notice.is-error {
  border-left-color: var(--error);
  background: rgba(156, 47, 38, 0.07);
  color: var(--error);
}

.admin-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.admin-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 350;
  line-height: 1;
}

.admin-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions .btn {
  min-height: 42px;
  padding: 11px 16px;
  font-size: 10px;
}

.admin-body .btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}

.admin-body .btn-ghost:hover {
  color: var(--brass-strong);
  border-color: var(--brass-strong);
}

.admin-topbar .btn-ghost {
  color: rgba(246, 239, 226, 0.82);
  border-color: rgba(246, 239, 226, 0.24);
}

.admin-topbar .btn-ghost:hover {
  color: var(--brass);
  border-color: var(--brass);
}

.warning-banner {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid #9a6a16;
  background: rgba(201, 164, 92, 0.13);
  font-size: 13px;
  line-height: 1.6;
}

.warning-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d5713;
}

.warning-banner ul {
  display: grid;
  gap: 3px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 30px;
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.stat {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 350;
  line-height: 1.1;
}

.stat-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.panel {
  margin-top: 40px;
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.1;
}

.panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.panel-body {
  padding-top: 20px;
}

.draw-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  align-items: center;
}

.draw-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

.draw-controls input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brass-strong);
}

.price-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.price-editor label {
  flex: 1 0 100%;
  font-size: 12px;
  font-weight: 500;
}

.price-editor input {
  width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fffdf8;
  font-size: 15px;
}

.price-editor .btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 10px;
}

.price-feedback {
  color: var(--success);
  font-size: 12px;
}

.price-feedback.is-error {
  color: var(--error);
}

.payment-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-editor .field:first-child {
  grid-column: 1 / -1;
}

.payment-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.payment-editor-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 10px;
}

@media (max-width: 640px) {
  .payment-editor {
    grid-template-columns: 1fr;
  }
}

.draw-status {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.draw-status.is-error {
  color: var(--error);
}

.draw-status.is-ok {
  color: var(--success);
}

.assignments {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.assignment {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.assignment .arrow {
  color: var(--brass-strong);
}

.assignment .target {
  font-family: var(--font-display);
  font-size: 16px;
}

.assignment .muted {
  color: var(--muted);
  font-size: 11px;
}

.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  padding: 10px 10px 10px 0;
  text-align: left;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th:last-child,
.admin-table td:last-child {
  position: sticky;
  right: 0;
  background: var(--paper);
  box-shadow: -10px 0 14px -14px rgba(10, 30, 20, 0.5);
}

.admin-table tbody tr:hover {
  background: rgba(201, 164, 92, 0.05);
}

.code-cell {
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.person-list {
  display: grid;
  gap: 6px;
}

.person-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.person-line .name {
  font-weight: 500;
}

.person-line .email {
  width: 100%;
  color: var(--muted);
  font-size: 11px;
}

.person-target {
  display: block;
  color: var(--brass-strong);
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid currentColor;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-paid {
  color: var(--success);
  background: rgba(45, 106, 74, 0.08);
}

.badge-pending {
  color: #8a5a12;
  background: rgba(201, 164, 92, 0.12);
}

.badge-santa {
  color: var(--pine-700);
  background: rgba(29, 64, 50, 0.07);
}

.badge-mail {
  color: #2f5d7c;
  background: rgba(47, 93, 124, 0.08);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-btn {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
}

.mini-btn:hover {
  border-color: var(--brass-strong);
  color: var(--brass-strong);
}

.mini-btn.is-danger:hover {
  border-color: var(--error);
  color: var(--error);
}

.table-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  padding: 34px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.admin-loading {
  padding: 60px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .assignment {
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  }

  .assignment .mini-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-main {
    padding-inline: 14px;
  }
}

/* ------------------------------------------------------------------
   Pagina Secret Santa
------------------------------------------------------------------- */

.santa-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
  background:
    radial-gradient(800px 520px at 50% 18%, rgba(201, 164, 92, 0.16), transparent 62%),
    linear-gradient(160deg, #0a1c14, #10291e 55%, #081711);
  color: var(--cream);
}

.santa-card {
  width: min(580px, 100%);
  padding: clamp(28px, 6vw, 56px);
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--brass);
  text-align: center;
}

.santa-card .kicker {
  justify-content: center;
}

.santa-ornament {
  margin: 22px auto 0;
  color: var(--brass-strong);
  font-size: 22px;
}

.santa-card h1 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 350;
  line-height: 1.05;
}

.santa-target {
  margin-top: 18px;
  padding: 22px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.1;
  color: var(--pine-800);
}

.santa-message {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.santa-budget-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.santa-details {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.santa-private {
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.santa-card .btn {
  margin-top: 24px;
}

.santa-card .btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}

.santa-error-icon {
  margin: 20px auto 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--brass-strong);
  font-family: var(--font-display);
  font-size: 22px;
}

/* ------------------------------------------------------------------
   Pagina pagamento
------------------------------------------------------------------- */

.payment-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
  background:
    radial-gradient(800px 520px at 50% 18%, rgba(201, 164, 92, 0.16), transparent 62%),
    linear-gradient(160deg, #0a1c14, #10291e 55%, #081711);
  color: var(--cream);
}

.payment-card {
  width: min(620px, 100%);
  padding: clamp(26px, 5vw, 48px);
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--brass);
}

.payment-card .kicker {
  justify-content: center;
}

.payment-card h1 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 2.9rem);
  font-weight: 350;
  line-height: 1.1;
  text-align: center;
}

.payment-names {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.payment-total {
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--pine-800);
}

.payment-per {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.payment-demo {
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px dashed var(--brass);
  background: #f6efdf;
  color: #8a6a2f;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.payment-quota {
  margin-top: 28px;
  text-align: center;
}

.payment-ask {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.payment-menu,
.payment-methods {
  margin-top: 28px;
  text-align: left;
}

.payment-menu h2,
.payment-methods h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 450;
}

.payment-menu-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.payment-menu-list li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}

.payment-menu-list strong {
  flex: 0 0 112px;
  font-weight: 600;
}

.payment-menu-list span {
  color: var(--muted);
}

.payment-bank {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fbf7ee;
}

.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}

.payment-row-label {
  color: var(--muted);
  white-space: nowrap;
}

.payment-row-value {
  text-align: right;
  word-break: break-word;
}

.payment-row .mini-btn {
  flex: 0 0 auto;
}

.payment-placeholder {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.payment-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.payment-card .btn {
  margin-top: 18px;
}

.payment-card .btn-ghost {
  display: inline-block;
  margin-top: 24px;
  color: var(--ink);
  border-color: var(--line-strong);
}

/* ------------------------------------------------------------------
   Rivelazione Secret Santa
------------------------------------------------------------------- */

.santa-target {
  transition:
    opacity 0.9s ease,
    filter 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.santa-card:not(.is-revealed) .santa-target {
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.94);
}

.santa-card.is-revealed .santa-ornament {
  animation: santa-spin 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.santa-card .btn[hidden] {
  display: none;
}

@keyframes santa-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .santa-target {
    transition: none;
  }

  .santa-card.is-revealed .santa-ornament {
    animation: none;
  }
}

/* ------------------------------------------------------------------
   Intro video
------------------------------------------------------------------- */

html.intro-pending,
html.intro-pending body {
  overflow: hidden;
}

.intro {
  display: none;
}

html.intro-pending .intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #081711;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #081711;
}

@media (max-aspect-ratio: 1 / 1) {
  .intro-video {
    object-fit: cover;
  }
}

.intro-actions {
  position: absolute;
  right: clamp(14px, 4vw, 32px);
  bottom: clamp(14px, 4vw, 32px);
  display: flex;
  gap: 10px;
}

.intro-button {
  appearance: none;
  padding: 10px 16px;
  border: 1px solid rgba(233, 223, 201, 0.45);
  background: rgba(8, 23, 17, 0.5);
  color: #e9dfc9;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.intro-button:hover,
.intro-button:focus-visible {
  border-color: #c9a45c;
  color: #ffffff;
}

.intro-skip {
  border-color: #c9a45c;
}

.intro-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid #c9a45c;
  background: rgba(8, 23, 17, 0.62);
  color: #f6efe2;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.intro-play[hidden] {
  display: none;
}

.intro-play:hover,
.intro-play:focus-visible {
  background: rgba(8, 23, 17, 0.82);
  color: #ffffff;
}

.intro-play-icon {
  font-size: 16px;
  color: #c9a45c;
}

.footer-replay {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(246, 239, 226, 0.55);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.footer-replay:hover {
  color: var(--brass);
}

@media (prefers-reduced-motion: reduce) {
  html.intro-pending .intro {
    transition: none;
  }
}
