:root{
  --bg0:#050607;
  --bg1:#0b0d10;
  --card:#0f1318;
  --card2:#0b0f14;
  --text:#e9eef6;
  --muted:#9aa6b2;
  --line:rgba(255,255,255,.08);
  --shadow: 0 16px 60px rgba(0,0,0,.55);
  --radius:16px;
  --accent:#2ee0ff;
  --accent2:#7c5cff;
}

*{box-sizing:border-box}
html, body{
  height: 100%;
  width: 100%;
  overflow-x: hidden; /* FIX scroll laterale su mobile */
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 50% -200px, rgba(46,224,255,.14), transparent 55%),
              radial-gradient(900px 450px at 70% 0px, rgba(124,92,255,.12), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  color:var(--text);
}

body.light{
  --bg0:#f6f7fb;
  --bg1:#ffffff;
  --card:#ffffff;
  --card2:#f5f6fb;
  --text:#0e1116;
  --muted:#4c5866;
  --line:rgba(0,0,0,.08);
  --shadow: 0 16px 60px rgba(0,0,0,.12);
}

.container{
  max-width: 1100px;
  padding: 0 18px;
  margin: 0 auto;
}

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(14px);
  background: rgba(5,6,7,.45);
  border-bottom: 1px solid var(--line);
}
body.light .topbar{ background: rgba(255,255,255,.65); }

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{display:flex; align-items:center; gap:10px}
.brand__mark{
  width:34px; height:34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(46,224,255,.9), rgba(124,92,255,.9));
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
  color:#001018;
}
.brand__name{font-weight:800; letter-spacing:.2px}
/* Brand link reset (NO viola, NO underline, NO visited color) */
a.brand,
a.brand:visited,
a.brand:hover,
a.brand:active {
  color: var(--text);
  text-decoration: none;
}
.brand:hover .brand__mark{
  transform: scale(1.04);
}

.brand__mark{
  transition: transform .18s ease;
}

.topbar__actions{display:flex; align-items:center; gap:10px}
.link{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  padding: 8px 10px;
  border-radius: 10px;
}
.link:hover{background: rgba(255,255,255,.06); color:var(--text)}
body.light .link:hover{background: rgba(0,0,0,.05);}

/* Buttons */
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}
.btn--primary{
  border: none;
  background: linear-gradient(135deg, rgba(46,224,255,.95), rgba(124,92,255,.95));
  color:#061018;
}
.btn--secondary{
  border:1px solid rgba(46,224,255,.35);
  background: rgba(46,224,255,.08);
}
.btn--ghost{
  background: transparent;
}
.btn--icon{
  width:44px;
  padding: 10px 0;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0px)}

/* Hero */
.hero{padding: 52px 0 24px}
.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items:center;
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.hero p{
  margin:0 0 16px;
  color: var(--muted);
  font-size: 18px;
}
.cta{display:flex; gap:12px; flex-wrap:wrap; margin-top: 12px}
#ctaDesktop{display:none}

.hero__note{margin-top: 18px; display:flex; gap:10px; flex-wrap:wrap}
.pill{
  font-size: 13px;
  padding: 6px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}

.hero__mock{display:flex; justify-content:flex-end}
.mockcard{
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
}
.mockcard__title{font-weight:800; margin-bottom: 10px}
.mockcard__line{
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin: 10px 0;
}
body.light .mockcard__line{ background: rgba(0,0,0,.08); }
.mockcard__line.short{width: 60%}
.mockcard__chips{display:flex; gap:8px; margin-top: 14px; flex-wrap:wrap}
.chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

/* Sections */
.section{padding: 44px 0}
.section__head h2{margin:0 0 6px; font-size: 26px}
.section__head p{margin:0; color:var(--muted)}

/* Carousel */
.carousel{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items:center;
}
.carousel__btn{
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-size: 26px;
  cursor:pointer;
}
.carousel__btn:hover{background: rgba(255,255,255,.08)}
body.light .carousel__btn:hover{background: rgba(0,0,0,.05)}

.carousel__track{
  display:flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 10px;
}
.carousel__track::-webkit-scrollbar{height: 10px}
.carousel__track::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.15);
  border-radius: 999px;
}
body.light .carousel__track::-webkit-scrollbar-thumb{background: rgba(0,0,0,.15)}

.venue{
  min-width: 260px;
  max-width: 300px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  overflow:hidden;
}
.venue__cover{
  height: 90px;
  background: linear-gradient(135deg, rgba(46,224,255,.20), rgba(124,92,255,.18));
  border-bottom: 1px solid var(--line);
}
.venue__body{padding: 12px}
.venue__name{font-weight: 850; margin: 0 0 4px}
.venue__meta{color: var(--muted); font-size: 13px; margin: 0 0 10px}
.venue__tags{display:flex; gap:8px; flex-wrap:wrap}
.tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

.carousel__hint{margin-top: 10px; color: var(--muted); font-size: 13px}

/* FAQ */
.faq__head{
  text-align:center;
  margin-bottom: 16px;
}
.faq__head h2{
  margin:0;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: .2px;
}

.faq{
  max-width: 820px;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.faqWrap{
  max-width: 860px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(10,12,16,.72); /* overlay stabile */
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
}

body.light .faqWrap{
  background: rgba(255,255,255,.75);
  box-shadow: 0 18px 70px rgba(0,0,0,.10);
}

.faqItem{
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18,22,28,.88);  /* più solido */
  overflow:hidden;
}

body.light .faqItem{
  background: rgba(255,255,255,.92);
}

.faqBtn{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  cursor:pointer;
}
.faqItem{
  backdrop-filter: blur(10px);
}
.faqBtn:hover{ background: rgba(255,255,255,.04); }
body.light .faqBtn:hover{ background: rgba(0,0,0,.03); }
.faqIcon{opacity:.8; font-size: 18px}
.faqPanel{
  max-height: 0px;
  overflow:hidden;
  transition: max-height .25s ease;
  border-top: 1px solid var(--line);
}
.faqPanel__inner{
  padding: 12px 16px 16px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

/* Footer */
.footer{
  padding: 26px 0 20px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.22);
}
body.light .footer{ background: rgba(0,0,0,.03); }

.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  padding-top: 10px;
}
.footer__brand{
  font-weight: 900;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 4px;
}
.footer__tagline{color: var(--muted); font-size: 13px}

.footer__right{display:flex; gap: 18px; flex-wrap:wrap; justify-content:flex-end}
.footer__link{
  color: var(--muted);
  text-decoration:none;
  font-weight: 650;
}
.footer__link:hover{color: var(--text)}

.social{display:flex; gap:10px; margin-top: 12px; flex-wrap:wrap}
.social__link{
  width: 38px; height: 38px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
  font-weight: 900;
  letter-spacing:.2px;
}
.social__link:hover{background: rgba(255,255,255,.08)}
body.light .social__link:hover{background: rgba(0,0,0,.05)}

.footer__bottom{padding-top: 18px}
.divider{height:1px; background: var(--line); margin-bottom: 14px}
.copyright{color: var(--muted); font-size: 13px; text-align:center}

/* Responsive */
@media (max-width: 900px){
  .hero__inner{grid-template-columns: 1fr; }
  .hero__mock{justify-content:center; margin-top: 14px}
  .footer__inner{flex-direction:column; align-items:flex-start}
  .footer__right{justify-content:flex-start}
}

/* FIX topbar su mobile: va a capo e non “spinge” fuori lo schermo */
@media (max-width: 760px){
  .topbar__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .topbar__actions{
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar__actions .btn,
  .topbar__actions .link{
    white-space: nowrap;
  }
}

/* ancora più stretto */
@media (max-width: 420px){
  .topbar__actions .btn--primary{
    width: 100%;
    justify-content: center;
  }
}

/* Marquee carousel */
.marquee{
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,.20);
}

.marquee__track{
  display: flex;
  gap: 14px;
  padding: 14px;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track{
  animation-play-state: paused;
}

/* singola pill venue */
.venuePill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  transform: translateY(0);
  transition: transform .18s ease, background .18s ease;
}

.venuePill:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
}

.venueLogo{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(46,224,255,.18), rgba(124,92,255,.16));
  border: 1px solid var(--line);
}

@keyframes marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* su schermi piccoli un po' più lento */
@media (max-width: 600px){
  .marquee__track{ animation-duration: 34s; }
}

/* Legal pages */
.legal{
  padding: 34px 0 44px;
}
.legal__card{
  max-width: 860px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 70px rgba(0,0,0,.22);
  padding: 18px;
}
body.light .legal__card{
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 70px rgba(0,0,0,.10);
}
.legal__card h1{
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}
.legal__card h2{
  margin: 18px 0 8px;
  font-size: 18px;
}
.legal__card p, .legal__card li{
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.legal__top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom: 6px;
}
.legal__crumbs a{
  color: var(--muted);
  text-decoration:none;
  font-weight: 700;
}
.legal__crumbs a:hover{ color: var(--text); }
