:root {
  /* Brand DinnerWith — sistema di Federica Puglisi.
     Crema calda + inchiostro near-black/navy + 5 accenti.
     I nomi storici (--gold, --bg-base, ...) restano per compatibilità
     con la web-app e ora puntano al tema chiaro. */
  --bg-base: #EDE7D3;   /* crema (canvas) */
  --bg-deep: #E3DBC5;
  --surface: #FFFFFF;   /* card bianche */
  --elevated: #F3EFE0;  /* crema chiara (input) */
  --border: #E2DAC6;
  --text: #1B1E2E;      /* navy near-black (inchiostro) */
  --muted: #5E5E6B;
  --faint: #9C988E;

  --gold: #2E6FC9;      /* accento primario (blu) */
  --gold-light: #5C93DB;
  --gold-dark: #21579F;
  --terracotta: #E67E22;/* arancio (link/secondario) */
  --success: #27A34A;   /* verde */
  --danger: #D9544D;

  --ink: #1B1E2E;
  --blue: #2E6FC9;
  --green: #27A34A;
  --orange: #E67E22;
  --pink: #F2AEC0;
  --yellow: #F5C53C;
  --cream: #EDE7D3;

  --display: 'Space Grotesk', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --serif: 'Space Grotesk', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 6px 16px rgba(27,30,46,.06);
  --shadow-md: 0 14px 30px rgba(27,30,46,.08);
  --shadow-lg: 0 30px 60px rgba(27,30,46,.14);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---- Orso come maschera tintabile (riusa bear-mark.svg) ---- */
.bear {
  display: inline-block;
  background-color: var(--ink);
  -webkit-mask: url('/img/bear-mark.svg') center / contain no-repeat;
  mask: url('/img/bear-mark.svg') center / contain no-repeat;
}

/* ====================================================================
   NAV
   ==================================================================== */
header.dw-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(237,231,211,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.dw-nav {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.dw-brand { display: flex; align-items: center; gap: 11px; }
.dw-brand .bearmark { height: 34px; width: 32px; }
.dw-brand img.wordmark { height: 19px; }
.dw-nav-links { display: flex; align-items: center; gap: 4px; }
.dw-nav-links a {
  color: var(--text); font-size: 14.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.dw-nav-links a:not(.btn):hover { color: var(--ink); background: rgba(27,30,46,.06); }
.dw-nav-links .btn { padding: 10px 20px; font-size: 14px; margin-left: 6px; }
.nav-toggle { display: none; }

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 15px 30px; font-size: 15.5px; font-weight: 700; letter-spacing: .2px;
  font-family: var(--sans); line-height: 1;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), filter .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(46,111,201,.30); }
.btn-primary:hover { filter: brightness(1.05); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(46,111,201,.36); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 22px rgba(39,163,74,.28); }
.btn-green:hover { filter: brightness(1.05); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); box-shadow: 0 10px 22px rgba(27,30,46,.25); }
.btn-dark:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.15); }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 13px 28px; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 17px 36px; font-size: 16.5px; }

/* ====================================================================
   LANDING — HERO
   ==================================================================== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 64px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0;
}
.hero::before { width: 460px; height: 460px; background: radial-gradient(circle, rgba(245,197,60,.55), transparent 65%); top: -140px; right: -120px; }
.hero::after  { width: 420px; height: 420px; background: radial-gradient(circle, rgba(46,111,201,.32), transparent 65%); bottom: -180px; left: -140px; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; letter-spacing: 3px;
  font-size: 12.5px; text-transform: uppercase; color: var(--blue);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; box-shadow: var(--shadow-sm);
}
.eyebrow .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(39,163,74,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(39,163,74,.45);} 70% { box-shadow: 0 0 0 9px rgba(39,163,74,0);} 100% { box-shadow: 0 0 0 0 rgba(39,163,74,0);} }

.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -1.5px;
  font-size: clamp(40px, 6vw, 68px); line-height: .98; margin: 22px 0 0;
  color: var(--ink);
}
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--blue); }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 38%;
  background: var(--yellow); border-radius: 6px; z-index: -1; transform: rotate(-1.2deg);
}
.hero p.sub { color: var(--muted); font-size: 19px; max-width: 520px; margin: 24px 0 32px; line-height: 1.6; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .cities {
  margin-top: 30px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.city-pill {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 13.5px; color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Hero visual — cluster di orsi + card fluttuanti */
.hero-visual { position: relative; min-height: 440px; }
.blob-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 16px 18px;
}
.hero-stage {
  position: absolute; inset: 0; margin: auto;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FBE38C, var(--yellow));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg), inset 0 -12px 30px rgba(0,0,0,.06);
}
.hero-stage .bear { width: 170px; height: 180px; background-color: var(--ink); }

.fc1 { top: 8px; left: -8px; display: flex; align-items: center; gap: 11px; animation: float 6s ease-in-out infinite; }
.fc2 { bottom: 30px; right: -6px; display: flex; align-items: center; gap: 11px; animation: float 6s ease-in-out infinite .8s; }
.fc3 { bottom: -6px; left: 24px; display: flex; align-items: center; gap: 9px; animation: float 7s ease-in-out infinite 1.4s; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
.blob-card .av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.blob-card .av .bear { width: 26px; height: 27px; }
.blob-card b { display: block; font-size: 14px; font-family: var(--display); font-weight: 700; }
.blob-card small { color: var(--muted); font-size: 12.5px; }

/* Avatar orso colorato (palette host del brand) */
.av-blue { background: var(--blue); }       .av-blue .bear { background-color: #fff; }
.av-green { background: var(--green); }      .av-green .bear { background-color: #fff; }
.av-orange { background: var(--orange); }    .av-orange .bear { background-color: #fff; }
.av-pink { background: var(--pink); }        .av-pink .bear { background-color: var(--ink); }
.av-yellow { background: var(--yellow); }    .av-yellow .bear { background-color: var(--ink); }
.av-ink { background: var(--ink); }          .av-ink .bear { background-color: var(--cream); }

/* ====================================================================
   MARQUEE / TRUST STRIP
   ==================================================================== */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-deep); overflow: hidden; }
.strip-inner {
  display: flex; gap: 48px; align-items: center; padding: 16px 24px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  font-size: 14px; color: var(--ink); animation: marquee 26s linear infinite; width: max-content;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 12px; }
.strip-inner .sep { width: 8px; height: 8px; border-radius: 50%; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ====================================================================
   SECTIONS
   ==================================================================== */
section.block { padding: 84px 0; }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.kicker {
  font-family: var(--display); font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  font-size: 13px; color: var(--blue); margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -1px;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; margin: 0; color: var(--ink);
}
.section-head p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 16px 0 0; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 28px 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .num {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 18px;
}
.step:nth-child(1) .num { background: var(--blue); }
.step:nth-child(2) .num { background: var(--orange); }
.step:nth-child(3) .num { background: var(--green); }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.step .ghost-bear {
  position: absolute; right: -18px; bottom: -22px; width: 96px; height: 100px;
  background-color: var(--ink); opacity: .05;
  -webkit-mask: url('/img/bear-mark.svg') center / contain no-repeat;
  mask: url('/img/bear-mark.svg') center / contain no-repeat;
}

/* ---- Feature cards ---- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
}
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature:nth-child(1) .ico { background: var(--blue); }
.feature:nth-child(2) .ico { background: var(--green); }
.feature:nth-child(3) .ico { background: var(--orange); }
.feature:nth-child(4) .ico { background: var(--pink); color: var(--ink); }
.feature h3 { color: var(--ink); font-family: var(--display); font-weight: 700; margin: 0 0 8px; font-size: 20px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }

/* ---- Showcase / phone mockups ---- */
.mock-row {
  display: flex; justify-content: center; align-items: flex-end; gap: 26px; flex-wrap: wrap;
  perspective: 1600px;
}
.phone {
  width: 250px; flex: 0 0 auto; background: #fff; border-radius: 42px; padding: 10px;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transition: transform .28s cubic-bezier(.34,1.4,.64,1);
}
.phone.lift { transform: translateY(-28px) scale(1.03); z-index: 2; }
.phone.tilt-l { transform: rotate(-4.5deg); }
.phone.tilt-r { transform: rotate(4.5deg); }
.phone:hover { transform: translateY(-32px) scale(1.04) rotate(0); z-index: 3; }
.phone .screen {
  position: relative; border-radius: 33px; overflow: hidden; background: var(--cream);
  aspect-ratio: 360 / 780; display: block;
}
.phone .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .cap {
  text-align: center; font-family: var(--display); font-weight: 700; font-size: 13.5px;
  color: var(--muted); margin-top: 16px;
}

/* ---- Cities ---- */
.city-band { background: var(--bg-deep); }
.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.city-card {
  position: relative; border-radius: var(--r-md); padding: 26px 22px; color: #fff; overflow: hidden;
  min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-md); transition: transform .18s ease;
}
.city-card:hover { transform: translateY(-5px); }
.city-card:nth-child(1) { background: linear-gradient(150deg, var(--blue), var(--gold-dark)); }
.city-card:nth-child(2) { background: linear-gradient(150deg, var(--orange), #C85A12); }
.city-card:nth-child(3) { background: linear-gradient(150deg, var(--green), #1B7C38); }
.city-card:nth-child(4) { background: linear-gradient(150deg, #E78BA3, var(--pink)); color: var(--ink); }
.city-card .bear {
  position: absolute; top: -10px; right: -12px; width: 80px; height: 84px;
  background-color: rgba(255,255,255,.18);
}
.city-card:nth-child(4) .bear { background-color: rgba(27,30,46,.18); }
.city-card h3 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 0; letter-spacing: -.5px; }
.city-card span { font-size: 13.5px; font-weight: 600; opacity: .92; margin-top: 4px; }

/* ---- Big CTA band (tema scuro = inchiostro) ---- */
.cta-band {
  background: var(--ink); color: var(--cream);
  border-radius: 36px; padding: 72px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,60,.22), transparent 65%); top: -120px; left: -80px;
}
.cta-band .bear-hero { width: 92px; height: 96px; background-color: var(--cream); margin: 0 auto 22px; position: relative; }
.cta-band h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -1px;
  font-size: clamp(30px, 4.6vw, 48px); margin: 0; color: #fff; line-height: 1.05; position: relative;
}
.cta-band .payoff {
  font-family: var(--display); font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  font-size: 13px; color: var(--yellow); margin: 16px 0 28px; position: relative;
}
.cta-band .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ====================================================================
   FOOTER
   ==================================================================== */
.dw-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .lk { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .lk .bearmark { height: 32px; width: 30px; }
.footer-brand .lk img.wordmark { height: 17px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--faint); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; margin-bottom: 10px; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--faint); font-size: 13px;
}

/* ====================================================================
   APP (web client) — invariato a livello di markup, rifinito
   ==================================================================== */
.app-shell { display: grid; grid-template-columns: 384px 1fr; min-height: calc(100vh - 64px); }
.panel { background: var(--surface); border-right: 1px solid var(--border); padding: 24px; overflow-y: auto; max-height: calc(100vh - 64px); }
.panel h2 { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 0 0 4px; letter-spacing: -.5px; }
.panel .rule { width: 38px; height: 4px; border-radius: 4px; background: var(--blue); margin: 10px 0 18px; }
#map { width: 100%; height: 100%; min-height: calc(100vh - 64px); background: var(--elevated); }

label { display: block; font-size: 11.5px; letter-spacing: 1px; color: var(--faint); margin: 16px 0 6px; text-transform: uppercase; font-weight: 700; }
input, textarea, select {
  width: 100%; background: var(--elevated); border: 1.5px solid var(--border); border-radius: 12px;
  color: var(--text); padding: 12px 14px; font-size: 14.5px; font-family: var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,111,201,.14); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; background: var(--elevated); padding: 5px; border-radius: 999px; }
.tab { flex: 1; text-align: center; padding: 10px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--muted); border: none; background: transparent; transition: all .15s ease; }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.signal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.signal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.signal-card .title { font-family: var(--display); font-weight: 700; font-size: 16.5px; }
.signal-card .meta { color: var(--muted); font-size: 13.5px; margin: 4px 0; }
.signal-card .seats { color: var(--success); font-size: 12.5px; font-weight: 700; }

.msg { padding: 10px 14px; border-radius: 16px; margin: 6px 0; max-width: 80%; font-size: 14.5px; line-height: 1.4; }
.msg.in { background: var(--elevated); border-bottom-left-radius: 5px; }
.msg.out { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 13px 22px; border-radius: 14px; font-size: 14px; z-index: 9999; display: none; box-shadow: var(--shadow-lg); }
.hidden { display: none !important; }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }
.placeholder-note { margin-top: 28px; color: var(--faint); font-size: 12px; letter-spacing: 2px; }

/* ====================================================================
   GENERIC PAGE (Privacy ecc.)
   ==================================================================== */
.page { max-width: 760px; margin: 0 auto; padding: 72px 24px 48px; }
.page h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 52px); letter-spacing: -1px; margin: 0; color: var(--ink); }
.page h2 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 27px); letter-spacing: -.4px; margin: 40px 0 8px; color: var(--ink); }
.page h3 { font-weight: 700; font-size: 18px; margin: 24px 0 4px; color: var(--ink); }
.page .rule { width: 48px; height: 5px; border-radius: 5px; background: var(--blue); margin: 18px 0 26px; }
.page p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.page ul, .page ol { color: var(--muted); font-size: 16.5px; line-height: 1.7; padding-left: 22px; }
.page li { margin: 6px 0; }
.page a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.page strong { color: var(--ink); }
.page .muted { color: var(--faint); }
.page .updated { color: var(--faint); font-size: 14px; letter-spacing: .3px; margin: -8px 0 18px; }
.page .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
             padding: 18px 22px; margin: 8px 0 10px; }
.page .toc strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: 1.5px;
                    text-transform: uppercase; color: var(--faint); }
.page .toc ol { margin: 0; font-size: 15.5px; }
.page .callout { background: var(--elevated); border: 1px solid var(--border); border-left: 4px solid var(--blue);
                 border-radius: var(--r-sm); padding: 14px 18px; margin: 18px 0; }
.page .callout strong { display: block; margin-bottom: 4px; }
.page .callout p { font-size: 15px; margin: 0; }

/* ====================================================================
   TEAM (/Staff)
   ==================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
             padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.team-card .av { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 14px;
                 display: flex; align-items: center; justify-content: center; }
.team-card .av .bear { width: 52px; height: 54px; }
.team-card h3 { margin: 0; font-size: 19px; color: var(--ink); font-family: var(--display); }
.team-card .role { color: var(--blue); font-weight: 700; font-size: 12.5px; letter-spacing: .6px;
                   text-transform: uppercase; margin: 5px 0 12px; }
.team-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.team-cta { text-align: center; margin-top: 48px; }
.team-cta p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }

/* ====================================================================
   ADMIN (/Admin) — pannello protetto da PIN
   ==================================================================== */
.admin { max-width: 1100px; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 28px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
        padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-n { display: block; font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--blue); }
.stat-l { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; letter-spacing: .4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-sm);
              background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 14px; white-space: nowrap; }
.admin-table thead th { color: var(--ink); font-weight: 700; background: var(--elevated);
                        border-bottom: 1px solid var(--border); }
.admin-table tbody tr { border-top: 1px solid var(--border); }
.admin-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
.admin-table td.muted { color: var(--muted); }
.admin-foot { font-size: 13px; margin-top: 18px; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
         background: var(--elevated); color: var(--muted); }
.badge-open { background: rgba(39,163,74,.14); color: var(--success); }
.badge-full, .badge-confirmed { background: rgba(46,111,201,.14); color: var(--blue); }
.badge-expired, .badge-cancelled { background: rgba(217,84,77,.14); color: var(--danger); }

/* Gate PIN */
.pin-wrap { min-height: 52vh; display: flex; align-items: center; justify-content: center; }
.pin-card { width: 100%; max-width: 380px; text-align: center; background: var(--surface);
            border: 1px solid var(--border); border-radius: var(--r-md); padding: 34px 30px;
            box-shadow: var(--shadow-md); }
.pin-card h1 { font-size: 28px; }
.pin-card .rule { margin: 14px auto 18px; }
.pin-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pin-input { width: 100%; padding: 14px 16px; font-size: 22px; letter-spacing: 8px; text-align: center;
             border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--elevated);
             color: var(--ink); box-sizing: border-box; }
.pin-input:focus { outline: none; border-color: var(--blue); }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 360px; order: -1; }
  .hero { padding: 56px 0 48px; }
  .steps { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 1fr; }
  .panel { max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  #map { min-height: 60vh; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .nav-toggle {
    display: inline-flex; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 3px; margin: 4px 0; transition: .2s; }
  .dw-nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-base); border-bottom: 1px solid var(--border);
    padding: 12px 18px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .dw-nav-links.open { display: flex; }
  .dw-nav-links a { padding: 12px 14px; }
  .dw-nav-links .btn { margin-left: 0; }
  .footer-cols { gap: 32px; }
  section.block { padding: 60px 0; }
  .cta-band { padding: 56px 24px; border-radius: 28px; }
  .phone.tilt-l, .phone.tilt-r, .phone.lift { transform: none; }
  .mock-row { gap: 30px; }
}
@media (max-width: 460px) {
  .cities-grid { grid-template-columns: 1fr; }
}

/* ============ Élite ============ */
.chip { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--elevated); color: var(--muted); border: 1px solid var(--border); margin: 0 6px 6px 0; }
.chip.solid { background: rgba(46,111,201,.12); color: var(--blue); border-color: transparent; }

.elite-crest { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; font-size: 21px; color: #fff; flex: none; box-shadow: var(--shadow-sm); }
.crest-blue { background: #2E6FC9; } .crest-gold { background: #F5C53C; color: #1B1E2E; }
.crest-green { background: #27A34A; } .crest-pink { background: #E65999; } .crest-orange { background: #E67E22; }

.sponsor-card { background: linear-gradient(135deg, rgba(245,197,60,.20), rgba(230,126,34,.12));
  border: 1px solid rgba(230,126,34,.30); border-radius: var(--r-sm); padding: 14px; margin: 16px 0; }
.sponsor-card .lbl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); display: block; margin-bottom: 4px; }
.sponsor-card .name { font-family: var(--display); font-weight: 700; font-size: 15.5px; }

.member-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: none; }
.member-row .av { width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.member-row .role { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--faint); }

.elite-overlay { position: fixed; inset: 0; background: rgba(27,30,46,.45); z-index: 1000;
  display: flex; justify-content: flex-end; }
.elite-sheet { width: min(460px, 100%); background: var(--bg-base); height: 100%; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: eliteSlide .2s ease; }
@keyframes eliteSlide { from { transform: translateX(34px); opacity: .3; } to { transform: none; opacity: 1; } }
.elite-sheet-head { position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 15px 20px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.elite-sheet-head button { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); line-height: 1; }
.elite-sheet-head span { font-family: var(--display); font-weight: 700; font-size: 18px; }
.elite-sheet-body { padding: 20px; }
.elite-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.elite-hero .ttl { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.4px; }
.elite-hero .tag { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.elite-section-lbl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin: 18px 0 8px; }
