/* PokéNova Orbit CZ — palette e tipografia dalla locandina */
:root {
  --bg: #0e0f3a;
  --bg-raised: #15174d;
  --orbit-bg: #191b5c;
  --yellow: #ffcb08;
  --blue: #3aa0f0;
  --sky: #7fc4ff;
  --white: #ffffff;
  --text: #e4e8ff;
  --muted: #b4bceb;
  --lavender: #c9d3ff;
  --line: rgba(201, 211, 255, 0.14);

  --radius-lg: 28px;
  --radius-md: 20px;
  --gutter: 16px;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

/* ---------- Testi ricorrenti ---------- */
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--lavender { color: var(--lavender); }
.eyebrow--sky { color: var(--sky); }

.h2 {
  margin: 12px 0 0;
  color: var(--white);
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 16px 0 0;
  max-width: 56ch;
  color: var(--text);
  font-size: 1.0625rem;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
}
@media (max-width: 520px) {
  .topbar { justify-content: center; text-align: center; }
  .topbar .eyebrow { font-size: 11.5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-bottom: 24px;
  overflow: hidden;
  overflow: clip;
}

.orbit-stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.orbit {
  flex: none;
  width: clamp(560px, 100vw, 900px);
  height: auto;
}

.hero-copy { text-align: center; }

.hero-title {
  margin: 4px 0 0;
  font-weight: 900;
  font-size: clamp(2.5rem, 10.6vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.t-white { color: var(--white); }
.t-yellow { color: var(--yellow); }

.hero-sub {
  margin: 24px auto 0;
  max-width: 44ch;
  color: var(--text);
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  line-height: 1.5;
  text-wrap: balance;
}

/* Stelline decorative */
.spark-deco {
  position: absolute;
  fill: currentColor;
  animation: twinkle 4.5s ease-in-out infinite;
  pointer-events: none;
}
.spark-deco.s1 { width: 26px; height: 26px; top: 9%;  left: 8%;  color: var(--white); }
.spark-deco.s2 { width: 34px; height: 34px; top: 46%; right: 9%; color: var(--yellow); animation-delay: -1.5s; }
.spark-deco.s3 { width: 14px; height: 14px; top: 54%; left: 12%; color: var(--sky); animation-delay: -3s; }
.spark-deco.s4 { width: 12px; height: 12px; top: 4%;  right: 11%; color: var(--white); animation-delay: -2.2s; }

@media (max-width: 639px) {
  .spark-deco.s1 { top: 7%; left: 5%; }
  .spark-deco.s2 { width: 24px; height: 24px; top: 33%; right: 5%; }
  .spark-deco.s3 { display: none; }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

/* ---------- Bottoni ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.cta-row--center { margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:focus-visible,
.link-arrow:focus-visible,
.meetup-link:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}
.btn-arrow { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: var(--yellow);
  color: var(--bg);
  box-shadow: 0 12px 32px -12px rgba(255, 203, 8, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255, 203, 8, 0.7); }

.btn--ghost {
  border: 1.5px solid rgba(201, 211, 255, 0.35);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--lavender); background: rgba(201, 211, 255, 0.08); }

.btn--navy {
  background: var(--bg);
  color: var(--white);
}
.btn--navy:hover { transform: translateY(-2px); background: #1b1d5e; }
.btn--navy:focus-visible { outline-color: var(--bg); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }

/* ---------- Sezioni ---------- */
.section { padding-top: 88px; }
@media (min-width: 900px) { .section { padding-top: 120px; } }

/* Chi siamo */
.about {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.feature-icon { width: 22px; height: 22px; flex: none; margin-top: 3px; fill: currentColor; }
.c-yellow { color: var(--yellow); }
.c-sky { color: var(--sky); }
.c-white { color: var(--white); }
.feature h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
.feature p { margin: 6px 0 0; color: var(--muted); font-size: 0.975rem; }

/* Incontri */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { border-bottom-color: var(--yellow); }

.meetups {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.meetups:empty { display: none; }

.meetup {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.meetup-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 72px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--bg);
  line-height: 1;
}
.meetup-day { font-size: 1.875rem; font-weight: 900; letter-spacing: -0.02em; }
.meetup-month { margin-top: 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.meetup-body { min-width: 0; }
.chip {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 1px solid rgba(127, 196, 255, 0.45);
  border-radius: 999px;
  color: var(--sky);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip { white-space: nowrap; }
.chip--nostro {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--bg);
}
.meetup--nostro { border-color: rgba(255, 203, 8, 0.45); }
.meetup-title { margin: 0; color: var(--white); font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.meetup-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
.meetup-meta:first-letter { text-transform: uppercase; }
.meetup-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--yellow);
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
}
.meetup-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.meetup-maplink { color: var(--sky); font-weight: 700; text-underline-offset: 3px; }
.meetup-maplink:hover { color: var(--white); }
.meetup-maplink:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.meetups-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Segnaposto mentre Campfire risponde */
.meetup--skeleton { align-items: center; }
.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(201, 211, 255, 0.07) 0%, rgba(201, 211, 255, 0.16) 50%, rgba(201, 211, 255, 0.07) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.sk-date { flex: none; width: 68px; height: 72px; border-radius: 16px; }
.sk-lines { flex: 1; display: grid; gap: 10px; }
.sk-l1 { height: 18px; width: 75%; }
.sk-l2 { height: 12px; width: 90%; }
.sk-l3 { height: 12px; width: 55%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.meetups-empty {
  margin-top: 32px;
  padding: 44px 24px;
  border: 2px dashed rgba(201, 211, 255, 0.28);
  border-radius: var(--radius-lg);
  text-align: center;
}
.empty-icon { width: 30px; height: 30px; margin: 0 auto 16px; fill: var(--yellow); }
.empty-title { margin: 0; color: var(--white); font-size: 1.25rem; font-weight: 800; }
.empty-text { margin: 10px auto 0; max-width: 46ch; color: var(--muted); }

/* Pannello giallo */
.join {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 36px 28px;
  background: var(--yellow);
  color: var(--bg);
  border-radius: var(--radius-lg);
}
@media (min-width: 760px) {
  .join { grid-template-columns: 1fr auto; padding: 48px 52px; gap: 48px; }
}
.join-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.join-text {
  margin: 14px 0 28px;
  max-width: 44ch;
  font-size: 1.0625rem;
  font-weight: 600;
}

/* QR identico alla locandina: riquadro bianco e cornice tratteggiata sono già nell'SVG */
.join-qr { margin: 0; display: none; }
@media (min-width: 760px) {
  .join-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
  }
}
.join-qr img {
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 10px 24px rgba(14, 15, 58, 0.18));
}
.join-qr figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer { margin-top: 88px; padding-bottom: 40px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.footer-brand {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-note {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
@media (min-width: 760px) { .footer-note { text-align: right; } }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spark-deco, .sk { animation: none; }
  .btn { transition: none; }
}
