:root{
  --bg0:#070812;
  --bg1:#091031;
  --bg2:#070a18;

  --glass: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);

  --text:#eef1ff;
  --muted: rgba(238,241,255,.70);

  --a1:#8b5cf6;
  --a2:#22d3ee;
  --a3:#3b82f6;

  --r: 12px;       /* radius generale (meno tondo) */
  --rBtn: 10px;    /* radius bottoni */
  --shadow: 0 18px 55px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 30% 10%, color-mix(in srgb, var(--a1) 20%, transparent), transparent 60%),
    radial-gradient(900px 600px at 80% 25%, color-mix(in srgb, var(--a2) 16%, transparent), transparent 60%),
    radial-gradient(900px 520px at 60% 90%, rgba(59,130,246,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, var(--bg2));
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{ width:min(1180px, calc(100% - 44px)); margin:0 auto; }
.page{ min-height:100dvh; display:flex; flex-direction:column; }

#stars{ position:fixed; inset:0; z-index:-2; pointer-events:none; }

/* gradient text helper */
.grad{
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ===== TOPBAR ===== */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(9,10,20,.82), rgba(9,10,20,.38));
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:12px 0;
}

.brand{display:flex; align-items:center; gap:10px; min-width:64px;}
.brand img{
  width:180px; height:50px;
  border-radius:15px;
}

.menu{
  display:flex; align-items:center; gap:10px;
  flex-wrap:wrap;
}
.menu a{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:12px;              /* meno tondo */
  color:rgba(238,241,255,.78);
  border:1px solid transparent;
  background: transparent;
}
.menu a:hover{
  color:var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.menu a.active{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.menu a img.navIcon{ width:16px; height:16px; opacity:.95; }

/* voci bold + gradient */
.menu a span{
  font-weight:900;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* destra */
.rightControls{ display:flex; align-items:center; gap:10px; }

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border-radius: var(--rBtn);
  padding:12px 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18);}
.btn.primary{
  border:none;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3));
  box-shadow: 0 16px 40px rgba(34,211,238,.14);
}
.btn.primary:hover{filter:brightness(1.06)}
.btn.ghost{ background:transparent; border-color: rgba(255,255,255,.16); }

.kicker{
  font-size:12px;
  color:rgba(238,241,255,.58);
  text-transform:uppercase;
  letter-spacing:.12em;
}

/* ===== ICON BUTTONS (sole/luna) ===== */
.iconBtn{
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.iconBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}
.iconBtn img{
  width:20px; height:20px;
  object-fit:contain;
}

/* ===== LANGUAGE DROPDOWN (click) ===== */
.langWrap{ position:relative; }
.langBtn{
  height:44px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  display:inline-flex; align-items:center; gap:10px;
}
.langBtn .flag{ width:18px; height:18px; border-radius:6px; object-fit:cover; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.langBtn b{
  font-weight:900;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.langMenu{
  position:absolute; right:0; top:52px;
  min-width:220px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,22,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  padding:8px;
  display:none;
  z-index:9999;
}
.langWrap.open .langMenu{ display:block; }

.langItem{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid transparent;
  background: transparent;
  color: rgba(238,241,255,.88);
  cursor:pointer;
}
.langItem:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.langLeft{ display:flex; align-items:center; gap:10px; }
.flag{
  width:18px; height:18px;
  border-radius:6px;
  object-fit:cover;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.langCode{
  opacity:.85;
  font-weight:800;
}

/* ===== HERO VIDEO ===== */
.hero{ position:relative; padding:54px 0 22px; }
.heroVideo{ position:absolute; inset:0; z-index:-1; overflow:hidden; border-bottom:1px solid rgba(255,255,255,.08); }
.heroVideo video{
  width:100%; height:100%;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.06) brightness(.68);
  transform: scale(1.01);
}
.heroVideo::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(750px 420px at 18% 20%, color-mix(in srgb, var(--a1) 28%, transparent), transparent 60%),
    radial-gradient(700px 420px at 80% 25%, color-mix(in srgb, var(--a2) 22%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(7,8,18,.40), rgba(7,8,18,.92));
}

.heroGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
}

/* ===== CARDS ===== */
.card{
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  overflow:hidden;
}
.pad{padding:18px}

.title{ font-size:48px; line-height:1.05; margin:0; letter-spacing:-.6px; }
@media (max-width: 520px){ .title{font-size:36px} }

.lead{
  margin:12px 0 16px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

/* IP BOX */
.ipBox{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  padding:14px 14px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.ipVal{ font-weight:900; font-size:18px; }

hr.sep{ border:none; border-top:1px solid rgba(255,255,255,.10); margin:14px 0; }

/* ===== SOCIAL BAR (solo icone) ===== */
.socialRow{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:12px;
}
.socialIcon{
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.socialIcon:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}
.socialIcon img{
  width:22px; height:22px;
  object-fit:contain;
}

/* ===== SECTION ===== */
.section{ padding:30px 0; }
.h2{ font-size:22px; margin:0 0 6px; letter-spacing:-.2px; }
.p{ margin:0; color:var(--muted); line-height:1.6; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view{
  opacity:1;
  transform:none;
}

/* ===== MODES CAROUSEL ===== */
.carouselWrap{
  margin-top:14px;
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.carouselTop{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px; padding:16px 16px 0;
}
.carouselTop .smallHint{ color: rgba(238,241,255,.55); font-size:13px; }

.carousel{
  display:flex;
  gap:14px;
  padding:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar{ display:none; }

.modeCard{
  min-width: 260px;
  max-width: 260px;
  scroll-snap-align: start;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  overflow:hidden;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.modeCard:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.modeThumb{
  height:150px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.modeThumb img{
  width:100%; height:100%;
  object-fit:cover;
  filter: saturate(1.06) contrast(1.05) brightness(.92);
}
.modeBody{ padding:14px; }
.modeTitle{ margin:0 0 6px; font-weight:950; }
.modeDesc{ margin:0; color: var(--muted); font-size:13px; line-height:1.55; }

/* ===== GRID (store / staff / rules) ===== */
.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:18px; }

.storeCard{ grid-column: span 4; }
@media (max-width: 1000px){ .storeCard{ grid-column: span 6; } }
@media (max-width: 560px){ .storeCard{ grid-column: span 12; } }

.price{ font-weight:950; font-size:22px; margin:10px 0 6px; }
.list{ margin:10px 0 0; padding:0 0 0 18px; color:var(--muted); line-height:1.7; font-size:14px; }

.notice{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  line-height:1.55;
}

/* STAFF: più spazio tra blocchi */
.staffGrid{ gap:22px; }

/* ===== FOOTER (niente “stacco brutto”) ===== */
.footer{
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
  padding:26px 0;
}
.footerGrid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 920px){ .footerGrid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 520px){ .footerGrid{ grid-template-columns:1fr; } }

.footerTitle{ font-weight:950; margin:0 0 10px; }
.footerLinks{ display:flex; flex-direction:column; gap:10px; color:var(--muted); font-size:14px; }
.footerLinks a:hover{ color:var(--text); }

.footerBottom{
  margin-top:18px;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  color:rgba(238,241,255,.62);
  font-size:13px;
}
.footerLogoRow{ display:flex; align-items:center; gap:10px; }
.footerLogoRow img{ width:22px; height:22px; border-radius:10px; opacity:.95; object-fit:cover; }

/* footer social icons */
.footerSocial{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;
}
.footerSocial a{
  width:38px; height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.footerSocial a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}
.footerSocial img{ width:18px; height:18px; object-fit:contain; }

/* ===== LIGHT MODE (rifatto meglio) ===== */
html[data-scheme="light"] body{
  color:#0b1028;
  background:
    radial-gradient(1200px 700px at 30% 10%, color-mix(in srgb, var(--a1) 12%, transparent), transparent 60%),
    radial-gradient(900px 600px at 80% 25%, color-mix(in srgb, var(--a2) 10%, transparent), transparent 60%),
    radial-gradient(900px 520px at 60% 90%, rgba(59,130,246,.08), transparent 60%),
    linear-gradient(180deg, #f6f8ff, #eef3ff 55%, #e9efff);
}
html[data-scheme="light"] .topbar{
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.60));
  border-bottom:1px solid rgba(0,0,0,.08);
}
html[data-scheme="light"] .card,
html[data-scheme="light"] .btn,
html[data-scheme="light"] .iconBtn,
html[data-scheme="light"] .langBtn,
html[data-scheme="light"] .socialIcon,
html[data-scheme="light"] .ipBox,
html[data-scheme="light"] .carouselWrap,
html[data-scheme="light"] .modeCard{
  background: rgba(255,255,255,.78);
  border-color: rgba(0,0,0,.10);
  color:#0b1028;
}
html[data-scheme="light"] .menu a{
  color: rgba(11,16,40,.78);
}
html[data-scheme="light"] .menu a:hover{
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
}
html[data-scheme="light"] .lead,
html[data-scheme="light"] .p,
html[data-scheme="light"] .notice,
html[data-scheme="light"] .modeDesc,
html[data-scheme="light"] .footerLinks{
  color: rgba(11,16,40,.72);
}
html[data-scheme="light"] .footer{
  background: rgba(255,255,255,.55);
  border-top:1px solid rgba(0,0,0,.08);
}
html[data-scheme="light"] .footerBottom{ color: rgba(11,16,40,.62); }
html[data-scheme="light"] .langMenu{
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.10);
}
html[data-scheme="light"] .langItem{ color: rgba(11,16,40,.86); }
html[data-scheme="light"] .langItem:hover{
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
}