*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #1a1a1a;
  --deep:    #2f003e;
  --accent:  #eb26eb;
  --accent2: #b010b0;
  --light:   #ff66ff;
  --border:  rgba(235,38,235,0.25);
}

html, body {
  min-height: 100%; min-height: 100dvh;
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── CANVAS ── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}

/* ── AURORA ── */
.aurora { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ab {
  position: absolute; border-radius: 50%;
  filter: blur(100px); mix-blend-mode: screen;
}
.ab1 {
  width: 65vw; height: 55vw; top: -15%; left: -8%;
  background: radial-gradient(ellipse, rgba(47,0,62,0.92) 0%, transparent 70%);
  animation: am1 15s ease-in-out infinite alternate;
}
.ab2 {
  width: 50vw; height: 50vw; top: 5%; right: -12%;
  background: radial-gradient(ellipse, rgba(235,38,235,0.16) 0%, transparent 65%);
  animation: am2 18s ease-in-out infinite alternate;
}
.ab3 {
  width: 45vw; height: 42vw; bottom: -8%; left: 10%;
  background: radial-gradient(ellipse, rgba(47,0,62,0.65) 0%, transparent 70%);
  animation: am3 13s ease-in-out infinite alternate;
}
.ab4 {
  width: 30vw; height: 30vw; top: 38%; left: 28%;
  background: radial-gradient(ellipse, rgba(176,16,176,0.13) 0%, transparent 60%);
  animation: am1 22s ease-in-out infinite alternate-reverse;
}
@keyframes am1 {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(5vw,4vh) scale(1.07); }
  100% { transform: translate(-3vw,7vh) scale(.95); }
}
@keyframes am2 {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-7vw,-3vh) scale(1.1); }
  100% { transform: translate(4vw,6vh) scale(.9); }
}
@keyframes am3 {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(3vw,-5vh) scale(1.05); }
  100% { transform: translate(-5vw,2vh) scale(1.08); }
}

/* ── GRID ── */
.grid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(235,38,235,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235,38,235,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* ── VIGNETTE ── */
.vig {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 88% 88% at 50% 50%, transparent 35%, rgba(10,0,14,.72) 100%);
}

/* ── PAGE ── */
.page {
  position: relative; z-index: 3;
  width: 100vw; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 30px; padding: 24px 24px 40px;
}

/* ── LOGO ── */
.logo-wrap {
  animation: popIn .7s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.5) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.logo-ring {
  width: 154px; height: 154px; border-radius: 50%;
  border: 2.5px solid var(--accent);
  background: radial-gradient(ellipse at 40% 35%, rgba(47,0,62,.96), rgba(26,26,26,.92));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow:
    0 0 0 8px rgba(235,38,235,.06),
    0 0 44px rgba(235,38,235,.48),
    0 0 90px rgba(235,38,235,.14),
    inset 0 1px 0 rgba(255,255,255,.07);
  overflow: hidden;
}

/* rotating dashed ring */
.logo-ring::before {
  content: ''; position: absolute; inset: -9px;
  border-radius: 50%; border: 1px dashed rgba(235,38,235,.28);
  animation: spin 18s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* orbiting dot */
.orbit-dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 22px rgba(235,38,235,.6);
  top: 0; left: 50%;
  margin-left: -3.5px; margin-top: -3.5px;
  transform-origin: 3.5px calc(77px + 3.5px);
  animation: orb 8s linear infinite;
  pointer-events: none; z-index: 2;
}
@keyframes orb { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* logo image */
.logo-img {
  width: 115px; height: 115px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative; z-index: 1;
}

/* ── BUTTONS ── */
.btns {
  display: flex; flex-direction: column; gap: 13px;
  width: 100%; max-width: 340px;
  animation: slideUp .6s .4s ease both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.btn {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; padding: 15px 20px; border-radius: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer; color: white;
  position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.13) 0%, transparent 50%);
  border-radius: inherit; pointer-events: none;
}
.btn:active { transform: scale(.96) !important; }
.btn svg  { width: 18px; height: 18px; flex-shrink: 0; position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

.btn-ig {
  background: linear-gradient(135deg, #6a0dad 0%, #c0245a 50%, #f0720a 100%);
  box-shadow: 0 4px 22px rgba(192,36,90,.28);
}
.btn-ig:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(192,36,90,.5); }

.btn-tk {
  background: linear-gradient(135deg, #010101 0%, #1a1a2e 50%, #16213e 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 22px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}
.btn-tk::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(105,201,208,0.15) 0%, rgba(238,29,82,0.15) 100%);
  border-radius: inherit;
  pointer-events: none;
}
.btn-tk:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(105,201,208,.35), 0 0 0 1px rgba(238,29,82,.3);
}

.btn-cta {
  background: linear-gradient(135deg, var(--deep) 0%, var(--accent2) 45%, var(--accent) 100%);
  box-shadow: 0 4px 28px rgba(235,38,235,.38);
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 44px rgba(235,38,235,.55); }

/* ══════════════════════════════════════
   POPUP
══════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(8,0,14,.9);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.overlay.open { opacity: 1; pointer-events: all; }

.popup {
  background: linear-gradient(155deg, rgba(47,0,62,.96) 0%, rgba(26,26,26,.98) 55%);
  border: 1px solid rgba(235,38,235,.28); border-radius: 24px;
  width: 100%; max-width: 500px; max-height: 92dvh;
  overflow-y: auto; padding: 38px 30px 32px; position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,.7),
    0 0 80px rgba(235,38,235,.12),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform: scale(.88) translateY(28px);
  transition: transform .34s cubic-bezier(.34,1.56,.64,1);
  scrollbar-width: thin; scrollbar-color: rgba(235,38,235,.3) transparent;
}
.popup::-webkit-scrollbar { width: 4px; }
.popup::-webkit-scrollbar-thumb { background: rgba(235,38,235,.3); border-radius: 2px; }
.overlay.open .popup { transform: scale(1) translateY(0); }

.popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(235,38,235,.2);
  color: rgba(255,255,255,.6); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent;
}
.popup-close:hover { background: rgba(235,38,235,.25); color: #fff; }

.popup-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.65rem; text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.1; margin-bottom: 6px;
}
.popup-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.popup-sub {
  font-size: .84rem; color: rgba(255,255,255,.42);
  margin-bottom: 26px; line-height: 1.55;
}

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg   { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fg label {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.36);
}
.fg input,
.fg select,
.fg textarea {
  width: 100%; padding: 12px 15px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(235,38,235,.18);
  border-radius: 12px; color: #fff;
  font-family: 'Barlow', sans-serif; font-size: .9rem;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.fg input::placeholder,
.fg textarea::placeholder { color: rgba(255,255,255,.22); }
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(235,38,235,.13);
}
.fg textarea { resize: none; height: 88px; }
.fg select option { background: #2f003e; color: #fff; }

.sub-btn {
  width: 100%; padding: 15px; border-radius: 50px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--deep), var(--accent2), var(--accent));
  color: #fff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 4px 28px rgba(235,38,235,.38);
  transition: opacity .2s, box-shadow .2s, transform .2s;
  margin-top: 6px; -webkit-tap-highlight-color: transparent;
}
.sub-btn:hover { opacity: .9; box-shadow: 0 10px 44px rgba(235,38,235,.55); transform: translateY(-2px); }
.sub-btn:active { transform: scale(.97); }
.sub-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.fb-msg {
  margin-top: 12px; padding: 11px 14px; border-radius: 10px;
  font-size: .84rem; text-align: center; display: none;
}
.fb-msg.ok  { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.28);  color: #86efac; display: block; }
.fb-msg.err { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.28);  color: #fca5a5; display: block; }

/* ══════════════════════════════════════
   STATS STRIP
══════════════════════════════════════ */
.stats-strip {
  width: 100%; max-width: 400px;
  position: relative;
  padding: 22px 0 4px;
}
.stats-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent2), var(--accent), var(--accent2), transparent);
  opacity: 0.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  border-radius: 14px;
  background: rgba(47, 0, 62, 0.35);
  border: 1px solid rgba(235, 38, 235, 0.12);
  backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s;
}
.stat-item:hover {
  background: rgba(47, 0, 62, 0.55);
  border-color: rgba(235, 38, 235, 0.28);
}

.stat-icon {
  font-size: 20px;
  display: block;
  animation: float 5s ease-in-out infinite;
  line-height: 1;
}
.stat-item:nth-child(2) .stat-icon { animation-delay: 0.6s; }
.stat-item:nth-child(3) .stat-icon { animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--accent), var(--light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.3;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .logo-ring { width: 136px; height: 136px; }
  .logo-img  { width: 100px; height: 100px; }
  .popup { padding: 30px 20px 26px; border-radius: 18px; }
  .frow  { grid-template-columns: 1fr; }
}
@supports (padding: env(safe-area-inset-bottom)) {
  .page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
/* ══════════════════════════════════════
   PARTNERS CAROUSEL
══════════════════════════════════════ */
.partners-section {
  width: 100%;
  max-width: 400px;
  animation: slideUp .6s .65s ease both;
}

.partners-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  text-align: center;
  margin-bottom: 12px;
}

.partners-track-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 2px 0;
}

/* fade sui bordi */
.partners-track-wrap::before,
.partners-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.partners-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.partners-track-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: partnerScroll 26s linear infinite;
}


@keyframes partnerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(235,38,235,.13);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: background .25s, border-color .25s, box-shadow .25s;
  cursor: default;
}
.partner-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(235,38,235,.38);
  box-shadow: 0 0 20px rgba(235,38,235,.16);
}

/* immagine partner */
.p-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px 14px;
  transition: transform .3s;
}
.partner-card:hover .p-img {
  transform: scale(1.06);
}

/* fallback testo se immagine mancante */
.p-fallback {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  padding: 0 12px;
  text-align: center;
}
.partner-card.p-error {
  width: auto;
  padding: 0 16px;
}