/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background 0.35s, box-shadow 0.35s, color 0.35s, padding 0.35s;
  padding: 18px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header.is-scrolled {
  background: rgba(254, 248, 239, 0.85); color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line); padding: 10px 0;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s;
}
.site-nav a:not(.btn):hover { background: rgba(127, 127, 127, 0.15); }
@media (max-width: 640px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
/* Acqua azzurra con riflessi di luce, come lo sfondo della locandina */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding: 120px 0 180px;
  color: #fff;
  background:
    radial-gradient(700px 420px at 78% 38%, rgba(174, 230, 251, 0.45), transparent 65%),
    radial-gradient(900px 500px at 0% 100%, rgba(4, 26, 51, 0.45), transparent 60%),
    linear-gradient(180deg, #1bb4f2 0%, #0f8bd8 38%, var(--ocean-700) 72%, var(--ocean-800) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0 26px, transparent 26px 120px),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 60px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  animation: rays 18s linear infinite;
}
@keyframes rays { to { transform: translateX(120px); } }

.hero-sun {
  position: absolute; z-index: -1; right: 10%; top: 16%;
  width: clamp(240px, 30vw, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--orange-400), var(--orange-500) 45%, var(--orange-600) 75%);
  opacity: 0.92;
  box-shadow: 0 0 140px 50px rgba(255, 122, 26, 0.4);
  animation: sun-float 9s ease-in-out infinite alternate;
}
.hero-sun::after {
  content: ''; position: absolute; inset: -40%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 181, 81, 0.12) 0 6deg, transparent 6deg 18deg);
  animation: spin 80s linear infinite;
}
@keyframes sun-float { to { transform: translate(-30px, 30px) scale(1.05); } }

.hero-net {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 120px; height: 140px;
  opacity: 0.2;
  background:
    linear-gradient(#fff, #fff) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 1.5px, transparent 1.5px 22px),
    repeating-linear-gradient(0deg, #fff 0 1.5px, transparent 1.5px 22px);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  transform: perspective(600px) rotateX(18deg);
}

.hero-content { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(4, 26, 51, 0.28); border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem; font-weight: 700; backdrop-filter: blur(6px);
}
.eyebrow i {
  font-style: normal; background: var(--orange-500); color: #fff;
  padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(3rem, 8.6vw, 6.6rem); letter-spacing: 0.01em; line-height: 0.95; text-transform: uppercase;
  text-shadow: 0 4px 0 var(--ocean-900); /* un'ombra sfumata verrebbe tagliata dal riquadro di ogni parola */
}
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.14em; }
.hero h1 .word > span {
  display: inline-block; transform: translateY(110%);
  animation: word-up 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
/* La parola in evidenza ha il riempimento arancio della locandina; l'ombra va col filtro, non con text-shadow */
.hero h1 em {
  display: inline-block; transform: translateY(110%);
  font-style: normal; text-shadow: none;
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 var(--ocean-900));
  animation: word-up 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
@keyframes word-up { to { transform: translateY(0); } }

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 540px; color: rgba(255, 255, 255, 0.92); font-weight: 600;
  text-shadow: 0 1px 12px rgba(4, 26, 51, 0.35);
  opacity: 0; animation: fade-up 0.8s var(--ease-out) 0.7s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px;
  opacity: 0; animation: fade-up 0.8s var(--ease-out) 0.85s forwards;
}
.hero-stats {
  display: flex; gap: clamp(20px, 5vw, 48px); margin-top: 48px;
  opacity: 0; animation: fade-up 0.8s var(--ease-out) 1s forwards;
}
.hero-stats strong {
  display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1;
  text-shadow: 0 3px 0 var(--ocean-900);
}
.hero-stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); font-weight: 700; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Mascotte: il gatto sul pallone che galleggia */
.hero-mascot {
  position: absolute; z-index: 1; right: clamp(16px, 9vw, 160px); top: 50%;
  width: clamp(220px, 25vw, 350px); margin-top: -130px; transform: translateY(-50%);
  opacity: 0; animation: fade-up 1s var(--ease-out) 0.5s forwards;
}
.hero-mascot img {
  width: 100%; height: auto;
  filter: drop-shadow(0 26px 30px rgba(4, 26, 51, 0.45));
  animation: float 4.5s ease-in-out infinite alternate;
}
.hero-mascot::after {
  content: ''; display: block; width: 60%; height: 18px; margin: 18px auto 0; border-radius: 50%;
  background: rgba(4, 26, 51, 0.35); filter: blur(8px);
  animation: float-shadow 4.5s ease-in-out infinite alternate;
}
@keyframes float { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-22px) rotate(3deg); } }
@keyframes float-shadow { to { transform: scale(0.8); opacity: 0.6; } }

@media (max-width: 860px) {
  .hero { flex-direction: column; justify-content: center; padding-top: 100px; }
  .hero-sun { right: -80px; top: 60px; width: 240px; opacity: 0.7; }
  .hero-mascot { position: relative; right: auto; top: auto; transform: none; margin: 0 auto 4px; width: 150px; }
  .hero-mascot::after { margin-top: 8px; height: 10px; }
}

/* Onde */
.waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 160px; z-index: 2; pointer-events: none; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.waves .w1 { fill: rgba(65, 195, 245, 0.35); animation: wave 14s linear infinite; }
.waves .w2 { fill: rgba(174, 230, 251, 0.4); animation: wave 10s linear infinite reverse; height: 80%; }
.waves .w3 { fill: var(--sand-50); animation: wave 18s linear infinite; height: 55%; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 3; margin-top: -30px;
  background: var(--grad-title); color: var(--ocean-900); transform: rotate(-2deg);
  border-block: 3px solid var(--ocean-900);
  padding: 14px 0; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(232, 93, 12, 0.6);
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; white-space: nowrap;
}
.marquee span::after { content: '●'; font-size: 0.6em; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-kicker { color: var(--orange-500); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 10px; }
.section-title { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: 0.01em; text-transform: uppercase; color: var(--ocean-900); }

/* Filtri */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-group {
  position: relative; display: inline-flex; padding: 5px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.filter-group button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; color: var(--ink-soft);
  transition: color 0.3s;
}
.filter-group button[aria-pressed='true'] { color: #fff; }
.filter-pill {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; border-radius: 999px;
  background: var(--ocean-900); transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring);
}
.filter-select {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 40px 13px 18px;
  font-weight: 700; font-size: 0.88rem; box-shadow: var(--shadow-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230a1d33' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
}

/* ---------- Griglia tornei ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-poster { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ocean-800); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.card:hover .card-poster img, .card:hover .poster-placeholder { transform: scale(1.06); }
.card-poster::after {
  content: ''; position: absolute; inset: 50% 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(4, 26, 51, 0.65));
}
.card-badges { position: absolute; z-index: 2; inset: 16px 16px auto; display: flex; justify-content: space-between; gap: 8px; }
.card-kind {
  padding: 6px 12px; border-radius: 999px; background: var(--orange-500); color: #fff;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
}
.card-date {
  position: absolute; z-index: 2; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.card-date .day {
  display: grid; place-items: center; width: 62px; height: 66px; border-radius: 16px;
  background: #fff; color: var(--ink); line-height: 1; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4);
}
.card-date .day strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; color: var(--ocean-900); }
.card-date .day small { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; color: var(--orange-500); letter-spacing: 0.08em; }
.card-date .when { font-weight: 700; font-size: 0.92rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); text-transform: capitalize; }

.card-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; flex: 1; }
.card-title { font-size: 1.55rem; color: var(--ocean-900); }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card-venue { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.card-venue svg { width: 18px; height: 18px; color: var(--sky-500); flex-shrink: 0; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line);
}
.price strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: var(--orange-600); }
.price small { color: var(--ink-soft); font-weight: 600; font-size: 0.82rem; }
.card-cta {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ocean-900); color: #fff; transition: transform 0.4s var(--ease-spring), background 0.3s;
}
.card-cta svg { width: 20px; height: 20px; }
.card:hover .card-cta { transform: rotate(-45deg) scale(1.08); background: var(--orange-500); }
.countdown { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.countdown b { color: var(--orange-600); font-variant-numeric: tabular-nums; }

.spots { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.spots-bar { height: 7px; border-radius: 99px; background: var(--sand-100); overflow: hidden; }
.spots-bar i {
  display: block; height: 100%; border-radius: inherit; width: 0;
  background: linear-gradient(90deg, var(--sky-500), var(--sky-400));
  transition: width 1.4s var(--ease-out) 0.3s;
}
.spots-bar.is-hot i { background: linear-gradient(90deg, var(--orange-500), var(--orange-400)); }

/* Locandina segnaposto */
.poster-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 24px; text-align: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, var(--orange-500) 0 16%, rgba(255, 122, 26, 0.35) 17%, transparent 30%),
    radial-gradient(120% 80% at 50% 120%, var(--sand-300) 0 40%, transparent 41%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 18px, transparent 18px 70px),
    linear-gradient(180deg, #1bb4f2, var(--ocean-700));
  transition: transform 0.9s var(--ease-out);
}
.poster-placeholder::before {
  content: ''; position: absolute; left: -10%; right: -10%; top: 58%; height: 30%; opacity: 0.35;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 14px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 14px);
  border-top: 4px solid #fff;
}
.poster-placeholder strong {
  position: relative; font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 2.9rem); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95;
  background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 var(--ocean-900));
}
.poster-placeholder span { position: relative; margin-top: 10px; font-weight: 700; opacity: 0.85; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Skeleton e stati vuoti */
.skeleton { border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.skeleton div { background: linear-gradient(90deg, var(--sand-100) 25%, var(--sand-50) 50%, var(--sand-100) 75%); background-size: 200% 100%; animation: loading 1.3s infinite; }
.skeleton .s-img { aspect-ratio: 4 / 5; }
.skeleton .s-line { height: 18px; margin: 20px 22px 0; border-radius: 8px; }
.skeleton .s-line.short { width: 50%; margin-bottom: 26px; }
@keyframes loading { to { background-position: -200% 0; } }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px; border-radius: var(--radius-lg);
  border: 2px dashed var(--sand-300); color: var(--ink-soft);
}
.empty img { width: 110px; height: auto; margin: 0 auto 16px; animation: float 3s ease-in-out infinite alternate; }
.empty h3 { color: var(--ink); font-size: 1.6rem; margin-bottom: 8px; }

/* Comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible { transition: opacity 0.8s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); transition-delay: var(--delay, 0ms), 0ms, 0ms; }

/* ---------- Come funziona ---------- */
.steps-section {
  color: #fff; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 24px, transparent 24px 110px),
    linear-gradient(180deg, var(--ocean-800), var(--ocean-950));
}
.steps-section .section-title { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease-out), background 0.4s;
}
.step:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  display: block; font-family: var(--font-display); font-size: 4rem; font-weight: 400; line-height: 1; margin-bottom: 18px;
  background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 var(--ocean-950));
}
.step h3 { font-size: 1.6rem; margin-bottom: 10px; letter-spacing: 0.01em; }
.step p { color: rgba(255, 255, 255, 0.78); }
.steps-blob {
  position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(65, 195, 245, 0.25), transparent 65%);
  animation: sun-float 10s ease-in-out infinite alternate;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean-950); color: rgba(255, 255, 255, 0.7); padding: 48px 0; font-size: 0.9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer .logo { color: #fff; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; }

/* ---------- Pagina torneo ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 130px 0 150px;
  background:
    radial-gradient(500px 300px at 92% 8%, rgba(255, 122, 26, 0.55), transparent 65%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 22px, transparent 22px 100px),
    linear-gradient(180deg, #1bb4f2 0%, var(--ocean-700) 70%, var(--ocean-800) 100%);
}
.page-hero .waves { height: 110px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  color: rgba(255, 255, 255, 0.8); margin-bottom: 24px; transition: gap 0.3s, color 0.3s;
}
.back-link:hover { gap: 14px; color: #fff; }
.back-link svg { width: 18px; height: 18px; }
.page-hero h1 { font-size: clamp(2.6rem, 6.8vw, 5rem); letter-spacing: 0.01em; text-transform: uppercase; max-width: 900px; text-shadow: 0 4px 0 var(--ocean-900), 0 14px 30px rgba(4, 26, 51, 0.35); animation: fade-up 0.8s var(--ease-out) both; }
.page-hero .card-chips { margin-top: 20px; animation: fade-up 0.8s var(--ease-out) 0.15s both; }

.detail { position: relative; z-index: 3; margin-top: -90px; padding-bottom: 100px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.detail-grid > :first-child { align-self: stretch; } /* serve alla locandina sticky */
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.poster-frame {
  position: sticky; top: 90px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ocean-800);
  box-shadow: var(--shadow-lg); animation: fade-up 0.9s var(--ease-out) 0.2s both;
}
.poster-frame button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.poster-frame img { width: 100%; height: auto; }
.poster-frame .poster-placeholder { position: relative; aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .poster-frame { position: relative; top: 0; max-width: 520px; } }

.panel {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px);
  animation: fade-up 0.9s var(--ease-out) 0.3s both;
}
.panel + .panel { margin-top: 24px; animation-delay: 0.4s; }
.panel h2 { font-size: 2rem; margin-bottom: 18px; color: var(--ocean-900); text-transform: uppercase; letter-spacing: 0.01em; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.fact { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--sand-50); }
.fact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ice-100); color: var(--ocean-700); flex-shrink: 0; }
.fact-icon svg { width: 22px; height: 22px; }
.fact small { display: block; color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.fact strong { display: block; font-size: 1rem; line-height: 1.3; }
.fact strong:first-letter { text-transform: uppercase; }
.fact a { color: var(--sky-500); font-size: 0.85rem; font-weight: 700; }

.deadline-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 20px; border-radius: var(--radius); background: var(--ocean-900); color: #fff;
}
.deadline-box small { display: block; opacity: 0.7; font-weight: 600; font-size: 0.8rem; }
.timer { display: flex; gap: 8px; }
.timer div { text-align: center; min-width: 50px; padding: 6px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
.timer b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.timer span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; font-weight: 700; }

.description { white-space: pre-line; color: var(--ink-soft); margin-top: 20px; }

.reg-form { display: grid; gap: 18px; }
.players { display: grid; gap: 14px; }
.player {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border-radius: var(--radius);
  background: var(--sand-50); border: 1px solid var(--line); margin: 0;
}
.player legend {
  float: left; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0; font-weight: 800; font-family: var(--font-display); font-size: 1.05rem;
}
.player legend i {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky-500); color: #fff; font-style: normal; font-size: 0.85rem;
}
@media (max-width: 520px) { .player { grid-template-columns: 1fr; } }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.notice { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--sand-100); font-weight: 600; }
.notice svg { width: 36px; height: 36px; color: var(--orange-500); flex-shrink: 0; }

.success { text-align: center; padding: 20px 0; }
.success-icon {
  display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--ice-100); color: var(--sky-500); animation: pop 0.6s var(--ease-spring);
}
.success-icon svg { width: 48px; height: 48px; }
.success-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s 0.3s forwards; }
.success h2 { margin-bottom: 10px; }
.success p { color: var(--ink-soft); max-width: 420px; margin: 0 auto; }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 26, 51, 0.88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: var(--radius); animation: pop 0.4s var(--ease-out); }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; cursor: pointer; font-size: 1.4rem; font-weight: 700;
}

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

.not-found { text-align: center; padding: 60px 20px; }
.not-found h2 { font-size: 2rem; margin-bottom: 12px; }
.not-found p { color: var(--ink-soft); margin-bottom: 24px; }

/* Pagine di testo (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
