/* ==========================================================================
   DIAMOND RP — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0b1e;
  --bg-alt: #11132a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Palette estratta dal logo Diamond RP: tramonto tropicale */
  --teal: #1fb8ae;
  --gold: #f2c94c;
  --orange: #f2994a;
  --pink: #e0519a;
  --purple: #9b51e0;

  --primary: var(--purple);
  --primary-2: #b579ea;
  --accent: var(--teal);
  --accent-2: var(--pink);

  --diamond-gradient: linear-gradient(90deg, var(--teal) 0%, var(--gold) 32%, var(--orange) 52%, var(--pink) 76%, var(--purple) 100%);
  --diamond-gradient-soft: linear-gradient(135deg, rgba(31,184,174,0.15), rgba(155,81,224,0.15));

  --text: #f1eefb;
  --text-dim: #a6a5c4;
  --text-faint: #706f99;

  --success: #33e39a;
  --warning: #ffb84d;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.25);
  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg);
}

/* ---------- Scrollbar personalizzata (Chromium / Safari) ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal), var(--purple));
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--pink));
}
::-webkit-scrollbar-corner { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background FX ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #14183a 0%, var(--bg) 55%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124,92,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
.glow-orb.a { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--purple); }
.glow-orb.b { top: 20%; right: -10%; width: 450px; height: 450px; background: var(--teal); opacity: 0.22; }
.glow-orb.c { bottom: -10%; left: 30%; width: 500px; height: 500px; background: var(--pink); opacity: 0.16; }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 55%, rgba(3,3,10,0.55) 100%);
}
.vignette::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 220px rgba(0,0,0,0.65);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--radius-full);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.gradient-text {
  background: var(--diamond-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

section { position: relative; padding: 110px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--diamond-gradient);
  color: #06060d;
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(124, 92, 255, 0.7); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); background: var(--surface-strong); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
header.site-header.scrolled {
  background: rgba(5, 6, 12, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand .logo-mark {
  width: 40px; height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(155, 81, 224, 0.45));
}
.footer-brand .logo-mark { width: 46px; height: 46px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: var(--radius-full);
}
.nav-links a {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--bg); background: var(--diamond-gradient); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Cinematic scroll stack (hero intro) ---------- */
.scroll-stack {
  position: relative;
  height: 200vh;
}
.stack-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.stack-panel .panel-inner {
  width: 100%;
  will-change: transform, filter, opacity;
  transition: transform 0.05s linear;
}
.hero-panel { z-index: 1; }
.statement-panel { z-index: 2; background: var(--bg); position: relative; }
.statement-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(155,81,224,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.statement-panel .panel-inner {
  text-align: center;
  padding: 0 24px;
}
.statement-text {
  font-size: clamp(2rem, 5.4vw, 4rem);
  margin-bottom: 44px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 60px;
  text-align: center;
}
.hero .container { position: relative; z-index: 1; }
.hero-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(46vh, 380px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-skyline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(10,11,30,0.4) 40%, transparent 75%);
  z-index: 1;
}
.hero-skyline .skyline-layer {
  position: absolute;
  left: -5%; right: -5%; bottom: 0;
  width: 110%;
  height: 100%;
  will-change: transform;
}
.skyline-layer.skyline-far { fill: var(--purple); opacity: 0.14; }
.skyline-layer.skyline-mid { fill: var(--pink); opacity: 0.16; }
.skyline-layer.skyline-near { fill: var(--teal); opacity: 0.22; }
@media (prefers-reduced-motion: reduce) {
  .hero-skyline .skyline-layer { transform: none !important; }
}
.hero-logo {
  width: clamp(140px, 16vw, 200px);
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 50px rgba(155, 81, 224, 0.45)) drop-shadow(0 0 90px rgba(31, 184, 174, 0.25));
  animation: logo-in 1.1s cubic-bezier(.16,1,.3,1) both;
}
@keyframes logo-in {
  from { opacity: 0; transform: scale(0.8) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-badge { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 900px;
  margin: 0 auto 22px;
}
.hero p.lead {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.scroll-cue {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: cue-bob 2.2s ease-in-out infinite;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 800px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-stats .stat {
  background: rgba(10, 13, 26, 0.7);
  padding: 24px 12px;
  text-align: center;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  background: var(--diamond-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .stat span {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Server status widget ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  position: relative;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 10px var(--success); }
.status-dot.online::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success);
  animation: pulse-ring 1.8s ease-out infinite;
}
.status-dot.offline { background: #ff5c72; }
@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Cards / Features ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--diamond-gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--diamond-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -6px rgba(124, 92, 255, 0.5);
}
.icon-box svg { width: 26px; height: 26px; color: #0a0b1e; }
.icon-box.brand {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: none;
}
.icon-box.brand svg { width: 24px; height: 24px; }
.icon-num {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--diamond-gradient-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.icon-inline { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; color: currentColor; }
.tl-dot svg { width: 20px; height: 20px; color: var(--accent); }
.form-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--warning); }
.acc-head .num svg { width: 16px; height: 16px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-dim); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-faint); margin-bottom: 18px;
}
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--accent); }

/* ---------- Accordion (Regolamento) ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
}
.acc-head h3 { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; }
.acc-head .num {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--diamond-gradient-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.85rem; color: var(--accent);
  flex-shrink: 0;
}
.acc-head .chevron { transition: transform 0.3s ease; color: var(--text-faint); flex-shrink: 0; }
.acc-item.open .chevron { transform: rotate(180deg); color: var(--accent); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.acc-body-inner { padding: 0 24px 24px 66px; color: var(--text-dim); font-size: 0.93rem; }
.acc-body-inner ul { display: flex; flex-direction: column; gap: 8px; }
.acc-body-inner li { position: relative; padding-left: 18px; }
.acc-body-inner li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Timeline (News) ---------- */
.timeline { max-width: 780px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 21px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--border), var(--border));
}
.tl-item { position: relative; padding-left: 64px; margin-bottom: 40px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 2px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.tl-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: var(--radius-full);
}
.tag-update { background: rgba(34,229,255,0.14); color: var(--accent); }
.tag-fix { background: rgba(255,184,77,0.14); color: var(--warning); }
.tag-new { background: rgba(51,227,154,0.14); color: var(--success); }
.tag-event { background: rgba(255,63,216,0.14); color: var(--accent-2); }
.tl-date { font-size: 0.78rem; color: var(--text-faint); }
.tl-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.tl-card p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Staff ---------- */
.staff-card { text-align: center; }
.staff-avatar {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--diamond-gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #06060d;
}
.staff-card h3 { margin-bottom: 4px; }
.staff-role { color: var(--accent); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.staff-card p { font-size: 0.88rem; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255, 184, 77, 0.08);
  border: 1px solid rgba(255, 184, 77, 0.25);
  color: #ffcf85;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 24px;
}

/* ---------- Store / prodotti ---------- */
.product-card { display: flex; flex-direction: column; }
.price-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.price-row .tier { font-size: 0.88rem; color: var(--text-dim); font-weight: 500; }
.price-row form { margin: 0; }
.buy-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--diamond-gradient);
  color: #06060d;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.buy-btn:hover { transform: translateY(-1px); }
.store-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(31,184,174,0.08);
  border: 1px solid rgba(31,184,174,0.28);
  color: var(--text);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  max-width: 820px;
  margin: 0 auto 56px;
}
.store-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.store-note strong { color: var(--accent); }

/* ---------- Galleria store (veicoli / mlo) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
}
.photo-slot .photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-slot .photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-alt);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.photo-slot .photo-placeholder svg { width: 30px; height: 30px; opacity: 0.6; }
.photo-slot.no-photo .photo { visibility: hidden; }
.photo-slot.no-photo .photo-placeholder { opacity: 1; }
.gallery-item .info { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.gallery-item h3 { font-size: 1rem; }
.gallery-item .buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.gallery-item .buy-row form { margin: 0; }
.gallery-empty {
  text-align: center;
  color: var(--text-faint);
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
}

@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Pagine legali (Privacy / Termini) ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-dim); line-height: 1.7; font-size: 0.95rem; }
.legal-content ul { margin: 8px 0 0 20px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent); }

/* ---------- Carrello ---------- */
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  flex-shrink: 0;
}
.cart-link svg { width: 18px; height: 18px; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--diamond-gradient);
  color: #06060d;
  font-size: 0.68rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  display: none;
}
.mobile-menu .nav-actions { flex-wrap: wrap; justify-content: center; }
.mobile-menu .cart-link { order: -1; }

/* ---------- Contenuto carrello (dentro il drawer) ---------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cart-row .cart-item-name { font-size: 0.85rem; flex: 1; }
.cart-row .cart-item-price { font-family: var(--font-display); color: var(--text); white-space: nowrap; font-size: 0.9rem; }
.cart-row .cart-remove {
  background: none; border: none; color: var(--text-faint); cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}
.cart-row .cart-remove:hover { color: #ff6b6b; background: rgba(255,107,107,0.12); }
.cart-row .cart-remove svg { width: 15px; height: 15px; }

/* ---------- Pannello carrello (drawer da sinistra) ---------- */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 12, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.cart-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 400px;
  max-width: 88vw;
  background: var(--bg);
  border-right: 1px solid var(--border-strong);
  box-shadow: 24px 0 70px rgba(0,0,0,0.45);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.cart-drawer-head h3 { font-size: 1.1rem; margin: 0; }
.cart-drawer-close {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.cart-drawer-close:hover { background: var(--bg-alt); color: var(--text); }
.cart-drawer-close svg { width: 18px; height: 18px; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-drawer-foot {
  flex-shrink: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-drawer-note { font-size: 0.76rem; color: var(--text-faint); line-height: 1.5; }
.cart-drawer-total { display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-total span { color: var(--text-faint); font-size: 0.85rem; }
.cart-drawer-total strong {
  font-family: var(--font-display); font-size: 1.5rem;
  background: var(--diamond-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 480px) { .cart-drawer { width: 100vw; max-width: 100vw; } }

/* ---------- Toast di conferma ---------- */
.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 400;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast .toast-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--diamond-gradient);
  display: flex; align-items: center; justify-content: center;
}
.toast .toast-icon svg { width: 13px; height: 13px; color: #06060d; }
@media (max-width: 480px) {
  .toast-stack { left: 16px; right: 16px; transform: none; align-items: center; }
  .toast { white-space: normal; }
}

/* ---------- Login Discord ---------- */
.auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.auth-avatar { width: 26px; height: 26px; border-radius: 50%; display: block; }
.mobile-menu .auth-user { flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Statistiche e filtri admin ---------- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: center;
}
.admin-stat span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  background: var(--diamond-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.admin-stat label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}
.admin-filters input[type="text"], .admin-filters select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
}
.admin-filters input[type="text"] { flex: 1; min-width: 220px; }
.admin-check { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; }
.admin-table tbody tr.is-delivered { opacity: 0.55; }
.admin-table .deliver-check { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }

/* ---------- Tabella admin ---------- */
.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table th { color: var(--text-faint); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-alt); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.social-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.social-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.social-card .icon-box { margin-bottom: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 1.2rem; }
.social-card h3 { font-size: 1rem; margin-bottom: 2px; }
.social-card p { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(34,229,255,0.08));
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.cta-banner p { color: var(--text-dim); max-width: 480px; margin: 0 auto 32px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { border-color: var(--accent); transform: translateY(-2px); }
.footer-social a svg { width: 19px; height: 19px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-faint); flex-wrap: wrap; gap: 12px;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .stack-panel .panel-inner { transition: none !important; transform: none !important; filter: none !important; }
  .hero-logo { animation: none; }
  .scroll-cue { animation: none; }
}

@media (max-width: 680px) {
  .scroll-stack { height: 170vh; }
  .hero-logo { width: 120px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .mobile-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(5,6,12,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    display: flex; flex-direction: column; gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 99;
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { padding: 14px 6px; font-weight: 500; color: var(--text-dim); border-bottom: 1px solid var(--border); }
  .mobile-menu a.active { color: var(--accent); }
  .mobile-menu .nav-actions { flex-direction: column; margin-top: 10px; }
}

@media (min-width: 961px) {
  .mobile-menu { display: none; }
}

@media (max-width: 680px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 76px 0; }
  .form-card { padding: 28px 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
