/* ==========================================================================
   VERT-EX Games · sistema visivo
   Rosso neon come colore principale, grafite e argento come nel logo.
   ========================================================================== */
:root {
  --bg: #060608;
  --bg-2: #0c0c11;
  --card: rgba(17, 17, 24, .72);
  --card-solid: #111118;
  --card-2: #191922;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f7;
  --muted: #9b9bab;
  --steel: #c9ccd6;

  --red: #ff1f3d;
  --red-2: #d0102b;
  --red-soft: rgba(255, 31, 61, .14);
  --ember: #ff6b2c;
  --ok: #22c55e;
  --gold: #fbbf24;

  /* Alias usati dalla dashboard e dalle pagine esistenti */
  --violet: var(--red);
  --cyan: #ff8a6b;
  --coral: #ff4d6a;
  --lime: var(--ok);

  --grad: linear-gradient(120deg, #ff1f3d 0%, #ff4d2e 55%, #ff7a2c 100%);
  --grad-hot: var(--grad);
  --grad-steel: linear-gradient(180deg, #ffffff 0%, #d9dbe3 45%, #8d909c 100%);
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .55);
  --glow: 0 0 0 1px rgba(255, 31, 61, .45), 0 10px 40px rgba(255, 31, 61, .28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: clip; }
::selection { background: var(--red); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steel-text { background: var(--grad-steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; }
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem var(--font-display);
  letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ---------- Sfondo animato (iniettato da fx.js) ---------- */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(1200px 700px at 70% -10%, #1a0509 0%, transparent 60%), var(--bg); }
.bg-layers canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aura { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; will-change: transform; }
.aura.a1 { width: 620px; height: 620px; background: #ff1f3d; top: -260px; left: -180px; animation: auraA 26s ease-in-out infinite alternate; }
.aura.a2 { width: 520px; height: 520px; background: #ff5a1f; bottom: -260px; right: -160px; opacity: .18; animation: auraB 32s ease-in-out infinite alternate; }
.aura.a3 { width: 380px; height: 380px; background: #b3001b; top: 40%; left: 55%; opacity: .16; animation: auraC 22s ease-in-out infinite alternate; }
@keyframes auraA { to { transform: translate(260px, 180px) scale(1.15); } }
@keyframes auraB { to { transform: translate(-220px, -160px) scale(1.2); } }
@keyframes auraC { to { transform: translate(-320px, 120px) scale(.85); } }
.bg-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px, 64px 64px; } }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .65) 100%); }

/* Barra di avanzamento della pagina */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 12px var(--red); z-index: 100; }

/* ---------- Bottoni ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem var(--font-display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; color: var(--text);
  background: var(--card-2); transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  text-decoration: none !important; white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255, 31, 61, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(255, 31, 61, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
/* Riflesso che attraversa il bottone */
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-hot { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(255, 31, 61, .3); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255, 31, 61, .6); background: var(--red-soft); }
.btn-danger { background: transparent; border-color: rgba(255, 77, 106, .5); color: var(--coral); }
.btn-sm { padding: 8px 14px; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 6, 8, .55); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(6, 6, 8, .85); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .3s var(--ease); }
.site-header.scrolled .nav { height: 62px; }
.logo { display: flex; align-items: center; gap: 12px; font: 700 1.2rem var(--font-display); color: var(--text); letter-spacing: .08em; text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 42px; height: 41px; border-radius: 10px; flex: none; position: relative; }
.logo-mark img { width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 31, 61, .55), 0 0 22px rgba(255, 31, 61, .45); animation: breathe 4s ease-in-out infinite; }
.logo-text small { display: block; font: 600 .62rem var(--font-display); letter-spacing: .32em; color: var(--red); margin-top: -2px; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(255, 31, 61, .8), 0 0 34px rgba(255, 31, 61, .7); } }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { position: relative; color: var(--muted); font: 600 .9rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); box-shadow: 0 0 8px var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font-size: 1.3rem; width: 42px; height: 42px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.open { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .nav.open .nav-links, .nav.open .nav-cta { display: flex; flex-direction: column; width: 100%; margin: 0; }
  .nav.open .nav-links { gap: 2px; padding-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-badges { display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.live-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--red-soft); border: 1px solid rgba(255, 31, 61, .35); font: 600 .75rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #ff9aa8; margin-bottom: 20px; }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 31, 61, .7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 31, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 31, 61, 0); } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 460px; margin: 0 auto; } }

/* Logo nell'hero con anello luminoso rotante e card di eventi fluttuanti */
.hero-visual { position: relative; width: 100%; aspect-ratio: 1; perspective: 1000px; }
.emblem { position: absolute; inset: 8%; border-radius: 28px; transform-style: preserve-3d; transition: transform .25s var(--ease); }
.emblem::before {
  content: ''; position: absolute; inset: -3px; border-radius: 30px; padding: 3px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0deg, #ff1f3d 70deg, #ff7a2c 110deg, transparent 180deg, transparent 220deg, #ff1f3d 290deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite; filter: drop-shadow(0 0 12px rgba(255, 31, 61, .8));
}
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --spin: 360deg; } }
.emblem img { width: 100%; height: 100%; object-fit: contain; border-radius: 28px; background: #060608; box-shadow: 0 30px 90px rgba(255, 31, 61, .35), 0 0 0 1px rgba(255, 255, 255, .06); }
.emblem .shine { position: absolute; inset: 0; border-radius: 28px; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .18), transparent 45%); mix-blend-mode: screen; pointer-events: none; }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(12, 12, 18, .82); border: 1px solid var(--line-2); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  font-size: .85rem; white-space: nowrap; animation: floaty 6s ease-in-out infinite;
}
.float-card b { font-weight: 700; }
.float-card .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--red-soft); }
.float-card.f1 { top: 10%; left: -6%; }
.float-card.f2 { top: 46%; right: -8%; animation-delay: -2s; }
.float-card.f3 { bottom: 6%; left: 2%; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
/* Layout a una colonna (tablet e telefoni): le card restano dentro l'emblema, mai oltre il bordo dello schermo. */
@media (max-width: 960px) { .float-card { max-width: 64%; white-space: normal; } .float-card.f1 { left: 2%; top: 4%; } .float-card.f2 { right: 2%; } .float-card.f3 { left: 2%; } }
@media (max-width: 560px) { .float-card { font-size: .74rem; white-space: normal; max-width: 60%; padding: 8px 10px; } }

/* Ticker di eventi in tempo reale */
.ticker { position: relative; border-block: 1px solid var(--line); background: rgba(12, 12, 18, .6); backdrop-filter: blur(8px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 40px; padding: 14px 0; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-block; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.ticker-item b { color: var(--text); }
.ticker-item .coin { color: var(--gold); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Numeri */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stats-band > div { background: rgba(12, 12, 18, .78); padding: 28px 24px; text-align: center; backdrop-filter: blur(8px); }
.stats-band .num { font: 700 clamp(2rem, 4vw, 2.8rem) var(--font-display); line-height: 1; }
.stats-band .lbl { color: var(--muted); font-size: .85rem; margin-top: 8px; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Card e griglie ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  backdrop-filter: blur(10px); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
/* Luce che segue il puntatore (variabili --mx/--my impostate da fx.js) */
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 31, 61, .12), transparent 45%);
}
.card::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 31, 61, .9), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.feature-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 18px; background: linear-gradient(145deg, rgba(255, 31, 61, .22), rgba(255, 31, 61, .05)); border: 1px solid rgba(255, 31, 61, .3); }

/* Card gioco con anteprima reale */
.game-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transform-style: preserve-3d; }
.game-card .thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #0a0a0f; display: grid; place-items: center; font-size: 3rem; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.9) brightness(.85); }
.game-card:hover .thumb img { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
.game-card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 6, 8, .9)); }
.game-card .thumb .tag { position: absolute; z-index: 1; top: 12px; left: 12px; font: 600 .7rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: rgba(6, 6, 8, .7); border: 1px solid rgba(255, 31, 61, .4); color: #ffb3bd; backdrop-filter: blur(6px); }
.game-card .thumb .play { position: absolute; z-index: 1; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.1rem; box-shadow: 0 0 30px rgba(255, 31, 61, .6); transform: scale(.6); opacity: 0; transition: .35s var(--ease); }
.game-card:hover .thumb .play { transform: scale(1); opacity: 1; }
.game-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.game-card .body h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; }
.game-card .body p { color: var(--muted); font-size: .93rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.chip { font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--steel); border: 1px solid var(--line-2); letter-spacing: .02em; }

/* Demo interattiva dei giochi */
.demo-shell { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: stretch; }
.demo-shell { align-items: start; }
.demo-tabs { position: relative; display: grid; gap: 8px; align-content: start; max-height: var(--tabs-h, none); overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; scrollbar-color: rgba(255, 31, 61, .5) transparent; }
.demo-tab { display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; text-align: start; transition: .25s var(--ease); min-width: 0; }
.demo-cover { width: 88px; aspect-ratio: 16 / 9; height: auto; flex: none; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); filter: saturate(.75) brightness(.8); transition: filter .3s, box-shadow .3s; }
.demo-tab-txt { display: grid; gap: 2px; min-width: 0; }
.demo-tab-name { font: 600 .86rem/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tab-tag { font: 500 .66rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 179, 189, .7); }
.demo-tab:hover { color: var(--text); border-color: var(--line-2); }
.demo-tab:hover .demo-cover { filter: none; }
.demo-tab.active { color: #fff; border-color: rgba(255, 31, 61, .7); background: linear-gradient(90deg, rgba(255, 31, 61, .2), rgba(255, 31, 61, .03)); box-shadow: inset 3px 0 0 var(--red); }
.demo-tab.active .demo-cover { filter: none; box-shadow: 0 0 0 1px rgba(255, 31, 61, .7), 0 6px 18px rgba(255, 31, 61, .35); }
.demo-tab.active .demo-tab-tag { color: #ffb3bd; }
.demo-stage { display: grid; gap: 10px; align-content: start; min-width: 0; }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 28px; }
.demo-bar .badge-live { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 6px; background: var(--red); color: #fff; font: 700 .72rem var(--font-display); letter-spacing: .14em; box-shadow: 0 0 18px rgba(255, 31, 61, .45); }
.demo-name { font: 700 1rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-screen { --demo-scale: 1; position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 31, 61, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 31, 61, .15); background: #000; }
.demo-screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; border: 0; display: block; transform: scale(var(--demo-scale)); transform-origin: 0 0; }
@media (max-width: 860px) {
  .demo-shell { grid-template-columns: 1fr; }
  .demo-tabs { order: 2; max-height: none; overflow: auto hidden; grid-auto-flow: column; grid-auto-columns: 150px; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
  .demo-tab { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 6px 10px; scroll-snap-align: start; }
  .demo-cover { width: 100%; }
  .demo-tab-txt { padding: 0 4px; }
}

/* Passi */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 72px; }
.step::before, .card.step::before {
  counter-increment: s; content: '0' counter(s); position: absolute; left: 24px; top: 26px; right: auto; bottom: auto;
  opacity: 1; background: none; border-radius: 0;
  font: 700 1.6rem var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(255, 31, 61, .9); text-shadow: 0 0 18px rgba(255, 31, 61, .4);
}

/* ---------- Prezzi ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; padding: 34px 30px; }
.price-card h3 { text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: var(--steel); }
/* Piano consigliato: bordo con luce che gira */
.price-card.popular { border-color: transparent; background: linear-gradient(var(--card-solid), var(--card-solid)) padding-box, conic-gradient(from var(--spin, 0deg), rgba(255, 31, 61, .2), #ff1f3d, #ff7a2c, rgba(255, 31, 61, .2) 40%, rgba(255, 31, 61, .2)) border-box; border: 1px solid transparent; animation: spin 5s linear infinite; box-shadow: 0 30px 80px rgba(255, 31, 61, .18); }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font: 700 .7rem var(--font-display); padding: 5px 14px; border-radius: 999px; letter-spacing: .16em; box-shadow: 0 0 20px rgba(255, 31, 61, .5); }
.price { font: 700 2.9rem var(--font-display); margin: 10px 0 0; line-height: 1.1; }
.price small { font: 500 .95rem var(--font); color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 30px; flex: 1; }
.price-card li { padding: 7px 0 7px 28px; position: relative; color: #cfd0da; }
.price-card li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; backdrop-filter: blur(8px); transition: border-color .3s; }
.faq details[open] { border-color: rgba(255, 31, 61, .4); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font: 600 1.4rem var(--font-display); line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- CTA finale ---------- */
.cta-band { position: relative; overflow: hidden; border: 1px solid rgba(255, 31, 61, .35); border-radius: 24px; padding: 64px 32px; text-align: center; background: radial-gradient(800px 300px at 50% 0%, rgba(255, 31, 61, .25), transparent 70%), rgba(12, 12, 18, .8); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 63px, rgba(255, 255, 255, .03) 63px 64px); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; color: var(--muted); font-size: .92rem; background: linear-gradient(180deg, transparent, rgba(255, 31, 61, .04)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--text); font-size: .85rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .14em; }
.footer-grid a.logo { display: flex; padding: 0; }
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; transition: color .2s, transform .2s; }
.footer-grid a:not(.logo):hover { color: var(--text); text-decoration: none; transform: translateX(3px); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Pagine testuali ---------- */
.prose { max-width: 800px; margin-inline: auto; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2.2em; color: #fff; }
.prose p, .prose li { color: #cfd0da; }
.notice { background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .4); color: #fde68a; padding: 14px 18px; border-radius: 12px; font-size: .9rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; }
label { font-size: .88rem; font-weight: 600; display: grid; gap: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(6, 6, 8, .7); color: var(--text); font: 400 .95rem var(--font); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 31, 61, .2); }
input[type=checkbox] { width: auto; accent-color: var(--red); }
input[type=range] { accent-color: var(--red); padding: 0; }
input[type=color] { padding: 2px; height: 42px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
.alert-error { background: rgba(255, 31, 61, .1); border: 1px solid rgba(255, 31, 61, .45); color: #ffb3bd; }
.alert-ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); color: #bbf7d0; }

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 10px; z-index: 200; }
.toast { background: rgba(17, 17, 24, .95); border: 1px solid var(--line-2); border-left: 3px solid var(--ok); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); animation: toastIn .3s var(--ease); max-width: 360px; backdrop-filter: blur(10px); }
.toast.error { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------- Comparsa allo scorrimento (fx.js) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Chi preferisce meno movimento vede la pagina statica */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Strumenti ---------- */
a.card { display: block; color: inherit; text-decoration: none !important; }
.tool-card { display: flex; flex-direction: column; }
.tool-card p { flex: 1; }
.tool-card .more { margin-top: 6px; font: 600 .8rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.tool-card .more::after { content: '→'; transition: transform .25s var(--ease); }
.tool-card:hover .more::after { transform: translateX(5px); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.tool-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tool-hero.solo { grid-template-columns: 1fr; max-width: 820px; }
.tool-hero .big-icon { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 2.3rem; margin-bottom: 22px; background: linear-gradient(145deg, rgba(255, 31, 61, .3), rgba(255, 31, 61, .05)); border: 1px solid rgba(255, 31, 61, .45); box-shadow: 0 0 40px rgba(255, 31, 61, .25); }
.tool-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.tool-hero .tagline { font-size: 1.25rem; color: #e5e6ee; margin-bottom: 14px; }
.tool-preview { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 31, 61, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 31, 61, .15); background: radial-gradient(circle at 30% 20%, #3a0a12, #060608 70%); }
.tool-preview iframe { position: absolute; top: 50%; left: 50%; width: 1280px; height: 720px; border: 0; display: block; transform-origin: 50% 50%; }
.tool-stage { display: grid; gap: 10px; min-width: 0; }
.voice-demo { display: grid; place-items: center; text-align: center; padding: 30px; height: 100%; gap: 14px; }
.voice-demo .wave { display: flex; gap: 5px; align-items: center; height: 60px; }
.voice-demo .wave i { width: 6px; border-radius: 3px; background: var(--grad); height: 12px; transition: height .15s; }
.voice-demo.speaking .wave i { animation: wave 1s ease-in-out infinite; }
.voice-demo .wave i:nth-child(2n) { animation-delay: -.3s; } .voice-demo .wave i:nth-child(3n) { animation-delay: -.6s; }
@keyframes wave { 50% { height: 56px; } }
.steps-list { display: grid; gap: 16px; counter-reset: st; }
.steps-list .card { padding-left: 84px; }
.steps-list .card::before, .steps-list .card.step::before { counter-increment: st; content: counter(st); position: absolute; left: 24px; top: 24px; right: auto; bottom: auto; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 1.1rem var(--font-display); opacity: 1; }
.custom-list { display: flex; flex-wrap: wrap; gap: 10px; }
.custom-list span { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); font-size: .9rem; }
.custom-list span::before { content: '⚙ '; color: var(--red); }
.other-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.other-tools a { flex: 0 1 210px; min-width: 0; }
@media (max-width: 640px) { .other-tools a { flex-basis: calc(50% - 6px); } }
.other-tools a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; transition: .25s var(--ease); }
.other-tools a:hover { border-color: rgba(255, 31, 61, .6); text-decoration: none; transform: translateY(-2px); }
@media (max-width: 900px) { .tool-hero { grid-template-columns: 1fr; } }

/* ---------- Perché sceglierci / confronto ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
.why-card .num { font: 700 2.4rem var(--font-display); line-height: 1; margin-bottom: 10px; }
.compare { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(10, 10, 15, .8); backdrop-filter: blur(10px); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 .85rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .02); }
.compare thead th.us { color: #fff; background: linear-gradient(180deg, rgba(255, 31, 61, .35), rgba(255, 31, 61, .12)); }
.compare th.us .logo-mini { display: inline-flex; align-items: center; gap: 8px; }
.compare th.us img { width: 26px; height: 25px; border-radius: 6px; }
.compare td.us { background: rgba(255, 31, 61, .07); font-weight: 600; color: #fff; border-left: 1px solid rgba(255, 31, 61, .35); border-right: 1px solid rgba(255, 31, 61, .35); }
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover { background: rgba(255, 255, 255, .025); }
.compare .yes { color: var(--ok); font-weight: 700; margin-right: 6px; }
.compare .no { color: var(--muted); }
.compare .feat { font-weight: 500; color: #e5e6ee; }
.compare .feat small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-top: 2px; }
.compare-note { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; }
@media (max-width: 720px) {
  .compare th, .compare td { padding: 12px 10px; font-size: .85rem; }
  .compare .feat small { display: none; }
}

/* ---------- Selettore lingua ---------- */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); font: 600 .8rem var(--font-display); letter-spacing: .08em; cursor: pointer; }
.lang-btn:hover { border-color: rgba(255, 31, 61, .6); }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 210px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 12px; background: rgba(14, 14, 20, .97); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(14px); z-index: 60; display: none; }
.lang.open .lang-menu { display: block; animation: toastIn .2s var(--ease); }
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 .92rem var(--font); cursor: pointer; text-align: start; }
.lang-menu button:hover { background: rgba(255, 31, 61, .12); }
.lang-menu button.active { background: rgba(255, 31, 61, .2); }
.lang-menu button .code { width: 28px; font: 700 .72rem var(--font-display); color: var(--red); letter-spacing: .06em; }
.lang-menu button small { margin-inline-start: auto; color: var(--muted); font-size: .78rem; }
.lang-float { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 70; }
.lang-float .lang-menu { top: auto; bottom: calc(100% + 8px); inset-inline-end: auto; inset-inline-start: 0; }

/* Lingue da destra a sinistra */
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .compare th, [dir="rtl"] .compare td { text-align: right; }
[dir="rtl"] .footer-grid a:not(.logo):hover { transform: translateX(-3px); }
.compare td.no::before { content: "✕"; color: #ff4d6a; opacity: .75; font-weight: 700; margin-inline-end: 8px; }

/* Pagina nascosta finché la traduzione non è applicata (max 1,5 s) */
.i18n-loading body { visibility: hidden; }

/* Le scritture non latine non vanno spaziate lettera per lettera (si spezzano i caratteri composti) */
html:is([lang="hi"], [lang="bn"], [lang="ar"], [lang="ur"], [lang="zh"]) * { letter-spacing: 0 !important; }
.game-card .thumb .tag-new { left: auto; right: 12px; background: linear-gradient(135deg, #ff1f3d, #ff7a2c); border-color: transparent; color: #fff; box-shadow: 0 0 18px rgba(255, 31, 61, .55); }
.game-card .thumb .tag-roblox { background: #111; border-color: rgba(255, 255, 255, .35); color: #fff; letter-spacing: .04em; }
.badge-new { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 6px; font: 700 .62rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #ff1f3d, #ff7a2c); }

/* ---------- Schermi stretti: blocchi centrati ---------- */
@media (max-width: 960px) {
  .hero-grid > div:first-child { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
}
@media (max-width: 900px) {
  .tool-hero > div:first-child { text-align: center; }
  .tool-hero .big-icon { margin-inline: auto; }
  .tool-hero .hero-actions, .tool-hero .row, .tool-hero .chips { justify-content: center; }
}
@media (max-width: 760px) {
  .footer-grid { text-align: center; }
  .footer-grid > div:first-child { grid-column: 1 / -1; display: grid; justify-items: center; }
  .footer-grid > div:first-child p { margin-inline: auto; }
  .footer-grid a.logo { justify-content: center; }
  .footer-grid a:not(.logo):hover { transform: none; }
  .footer-bottom { justify-content: center; text-align: center; }
}
/* Titoli di sezione delle FAQ e titolo delle pagine legali centrati, come le intestazioni delle altre pagine */
.faq > h2 { text-align: center; }
.prose > h1 { text-align: center; }

/* ==========================================================================
   Vetro premium · solo sito pubblico (body.site), la dashboard non cambia
   Superfici in vetro scuro, contorno che si accende nei colori del marchio,
   angoli luminosi che crescono e riflesso olografico al passaggio del mouse.
   ========================================================================== */
@property --cs { syntax: '<length>'; inherits: false; initial-value: 14px; }
.site {
  --glass: rgba(14, 11, 16, .8);
  --glass-hi: rgba(22, 15, 20, .9);
  --hot: color-mix(in srgb, var(--red) 45%, transparent);
  --hot-2: color-mix(in srgb, var(--red) 70%, transparent);
  --lift-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 14px 44px -14px rgba(255, 31, 61, .5);
  --ring-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
}
/* Angoli luminosi: 4 quadrati di sfumatura che il bordo ad anello mostra solo sul contorno */
.site .card::after, .site .demo-screen::after, .site .tool-preview::after, .site .cta-band::after {
  background:
    linear-gradient(135deg, #ff1f3d, #ff7a2c) top left / var(--cs) var(--cs) no-repeat,
    linear-gradient(225deg, #ff1f3d, #ff7a2c) top right / var(--cs) var(--cs) no-repeat,
    linear-gradient(45deg, #ff1f3d, #ff7a2c) bottom left / var(--cs) var(--cs) no-repeat,
    linear-gradient(315deg, #ff1f3d, #ff7a2c) bottom right / var(--cs) var(--cs) no-repeat;
  -webkit-mask: var(--ring-mask); -webkit-mask-composite: xor; mask: var(--ring-mask); mask-composite: exclude;
}

/* Card: vetro senza sfocatura nelle griglie (lo sfondo animato le ridisegnerebbe a ogni frame) */
.site .card, .site .card.reveal {
  border-radius: 18px; border-color: rgba(255, 255, 255, .075); backdrop-filter: none;
  background:
    linear-gradient(160deg, rgba(255, 31, 61, .075), rgba(255, 31, 61, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 32%),
    var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 10px 30px rgba(0, 0, 0, .28);
  transition: transform .4s var(--ease), border-color .35s, box-shadow .4s var(--ease), opacity .8s var(--ease) var(--d, 0s);
}
/* Interno: luce che segue il puntatore + riflesso olografico che attraversa la card */
.site .card:not(.step)::before {
  background:
    radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 31, 61, .13), transparent 45%),
    linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .055) 45%, rgba(255, 122, 44, .09) 50%, rgba(255, 255, 255, .055) 55%, transparent 68%);
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, 100% 0;
  transition: opacity .4s, background-position 1s var(--ease);
}
/* Bordo: angoli sempre presenti, crescono e si accendono al passaggio */
.site .card::after { inset: -1px; padding: 1.5px; opacity: .5; transition: --cs .45s var(--ease), opacity .35s; }
@media (hover: hover) {
  .site .card:hover { --lift: -6px; transform: translateY(-6px); border-color: var(--hot); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--lift-shadow); }
  .site .card:not(.step):hover::before { opacity: 1; background-position: 0 0, 0 0; }
  .site .card:hover::after {
    --cs: 38px; opacity: 1;
    background:
      radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 110, 120, .9), transparent 60%),
      linear-gradient(135deg, #ff1f3d, #ff7a2c) top left / var(--cs) var(--cs) no-repeat,
      linear-gradient(225deg, #ff1f3d, #ff7a2c) top right / var(--cs) var(--cs) no-repeat,
      linear-gradient(45deg, #ff1f3d, #ff7a2c) bottom left / var(--cs) var(--cs) no-repeat,
      linear-gradient(315deg, #ff1f3d, #ff7a2c) bottom right / var(--cs) var(--cs) no-repeat;
  }
}
/* Le card gioco tagliano il contenuto: l'anello sta dentro il bordo */
.site .game-card::after { inset: 0; padding: 2px; }
.site a.card:focus-visible { outline: none; border-color: var(--hot-2); box-shadow: 0 0 0 3px rgba(255, 31, 61, .25), var(--lift-shadow); }
.site a.card:focus-visible::after { --cs: 38px; opacity: 1; }

/* Icone, chip e link interni si accendono con la card */
.site .feature-icon { transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.site .card:hover .feature-icon { transform: translateY(-2px) scale(1.06); border-color: rgba(255, 31, 61, .65); box-shadow: 0 0 26px rgba(255, 31, 61, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.site .chip { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .1); transition: border-color .3s, color .3s, box-shadow .3s, background .3s; }
.site .card:hover .chip { border-color: rgba(255, 31, 61, .4); color: #ffd6dc; background: rgba(255, 31, 61, .07); box-shadow: 0 0 14px rgba(255, 31, 61, .14); }
.site .card h3 { transition: color .3s; }
.site .card:hover h3 { color: #fff; }

/* Card gioco: anteprima incorniciata, pulsante che si accende */
.site .game-card .thumb { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site .game-card .thumb::after { background: linear-gradient(180deg, rgba(6, 6, 8, .15) 0%, transparent 35%, transparent 55%, rgba(10, 8, 12, .92)); }
.site .game-card .thumb .tag { box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.site .game-card .body .btn { margin-top: 4px; }
.site .game-card:hover .body .btn-ghost { border-color: rgba(255, 31, 61, .55); background: rgba(255, 31, 61, .1); color: #fff; }

/* Card overlay (pagina Giochi): link demo in fondo, come "Scopri come funziona" */
.site #ov-grid .card { display: flex; flex-direction: column; }
.site #ov-grid .card p { flex: 1; }
.site #ov-grid .card a.small { align-self: flex-start; font: 600 .8rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding: 6px 12px; margin: -6px -12px; border-radius: 8px; transition: background .25s, color .25s; }
.site #ov-grid .card a.small:hover { text-decoration: none; color: #fff; background: rgba(255, 31, 61, .14); }

/* Passi numerati: numero che si accende */
.site .step::before { transition: text-shadow .4s; }
.site .card.step:hover::before { text-shadow: 0 0 22px rgba(255, 31, 61, .85); }
.site .steps-list .card::before { box-shadow: 0 6px 20px rgba(255, 31, 61, .4), inset 0 1px 0 rgba(255, 255, 255, .3); }

/* ---------- Bottoni ---------- */
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.site .btn-ghost { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: none; }
.site .btn-ghost:hover { border-color: rgba(255, 31, 61, .65); background: rgba(255, 31, 61, .12); box-shadow: 0 0 0 1px rgba(255, 31, 61, .2), 0 10px 28px -10px rgba(255, 31, 61, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
.site .btn-lg { padding: 16px 32px; font-size: 1.02rem; border-radius: 12px; }

/* ---------- Header e menu (anche nella schermata di accesso della dashboard) ---------- */
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 31, 61, .55) 30%, rgba(255, 122, 44, .5) 70%, transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.site-header.scrolled::after { opacity: 1; }
.site-header.scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.nav-links a { transition: color .2s, background .2s; }
.nav-links a:hover { background: rgba(255, 255, 255, .04); }
.nav-links a.active { background: rgba(255, 31, 61, .08); }
.nav-toggle { transition: border-color .2s, background .2s; }
.nav-toggle:hover { border-color: rgba(255, 31, 61, .6); background: rgba(255, 31, 61, .1); }
@media (max-width: 900px) {
  .nav.open .nav-links a { padding: 12px 14px; }
  .nav.open .nav-links a::after { display: none; }
  .nav.open .nav-cta { flex-direction: row; flex-wrap: wrap; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
}

/* ---------- Statistiche, demo, confronto ---------- */
.site .stats-band { border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 60px rgba(0, 0, 0, .35); }
.site .stats-band > div { position: relative; transition: background .35s; }
.site .stats-band > div::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: var(--grad); box-shadow: 0 0 12px var(--red); transform: scaleX(0); transition: transform .45s var(--ease); }
.site .stats-band > div:hover { background: rgba(22, 13, 18, .85); }
.site .stats-band > div:hover::after { transform: scaleX(1); }

.site .demo-tab { background: var(--glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.site .demo-tab:hover { border-color: rgba(255, 31, 61, .4); color: var(--text); transform: translateX(3px); }
[dir="rtl"] .site .demo-tab:hover { transform: translateX(-3px); }
.site .demo-tab.active { box-shadow: inset 3px 0 0 var(--red), 0 0 30px -8px rgba(255, 31, 61, .55); }
[dir="rtl"] .site .demo-tab.active { box-shadow: inset -3px 0 0 var(--red), 0 0 30px -8px rgba(255, 31, 61, .55); }
/* Cornice HUD con angoli luminosi su demo e anteprime (non cambia le dimensioni dell'iframe) */
.site .demo-screen::after, .site .tool-preview::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 2px; pointer-events: none; --cs: 34px; }

.site .compare { background: var(--glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 70px rgba(0, 0, 0, .4); transition: border-color .35s; }
.site .compare:hover { border-color: rgba(255, 31, 61, .3); }
.site .compare tbody tr:hover { background: rgba(255, 31, 61, .045); }
.site .compare tbody tr:hover td.us { background: rgba(255, 31, 61, .13); }

/* ---------- Prezzi ---------- */
.site .price-card { backdrop-filter: blur(12px); padding: 36px 30px 30px; }
.site .price-card h3 { display: flex; align-items: center; gap: 10px; }
.site .price-card h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.site .price-card ul { margin: 22px 0 28px; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .1); }
.site .price-card li::before { border-color: var(--ember); }
.site .price-card.popular {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(255, 31, 61, .14), rgba(255, 31, 61, 0) 45%) padding-box,
    linear-gradient(var(--glass-hi), var(--glass-hi)) padding-box,
    conic-gradient(from var(--spin, 0deg), rgba(255, 31, 61, .2), #ff1f3d, #ff7a2c, rgba(255, 31, 61, .2) 40%, rgba(255, 31, 61, .2)) border-box;
  box-shadow: 0 30px 80px rgba(255, 31, 61, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.site .price-card.popular::after { opacity: .85; }
@media (hover: hover) { .site .price-card.popular:hover { box-shadow: 0 30px 90px rgba(255, 31, 61, .32), 0 18px 50px rgba(0, 0, 0, .5); } }
.site .price-card .badge { z-index: 3; }
/* Consenso sopra i piani: pannello in vetro con casella personalizzata */
.site .check { padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: var(--glass); transition: border-color .3s; }
.site .check:hover, .site .check:focus-within { border-color: rgba(255, 31, 61, .4); }
.site input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; cursor: pointer;
  border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(6, 6, 8, .7);
  transition: border-color .2s, box-shadow .2s;
}
.site input[type=checkbox]:hover { border-color: rgba(255, 31, 61, .7); }
.site input[type=checkbox]:checked {
  border-color: transparent; box-shadow: 0 0 14px rgba(255, 31, 61, .5);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat, var(--grad);
}
.site input[type=checkbox]:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- FAQ ---------- */
.site .faq details { background: var(--glass); border-color: rgba(255, 255, 255, .075); border-radius: 14px; backdrop-filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .3s, box-shadow .3s, background .3s, opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.site .faq details:hover { border-color: rgba(255, 31, 61, .32); }
.site .faq details[open] { border-color: var(--hot); background: linear-gradient(160deg, rgba(255, 31, 61, .08), rgba(255, 31, 61, 0) 50%), var(--glass); box-shadow: inset 3px 0 0 var(--red), 0 14px 40px -14px rgba(255, 31, 61, .35); }
[dir="rtl"] .site .faq details[open] { box-shadow: inset -3px 0 0 var(--red), 0 14px 40px -14px rgba(255, 31, 61, .35); }
.site .faq summary { align-items: center; transition: color .2s; }
.site .faq summary:hover { color: #fff; }
.site .faq summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 6px; }
.site .faq summary::after { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; border: 1px solid rgba(255, 31, 61, .35); background: rgba(255, 31, 61, .08); transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.site .faq details[open] summary::after { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 16px rgba(255, 31, 61, .5); }

/* ---------- CTA, strumenti, elenchi ---------- */
.site .cta-band { box-shadow: 0 30px 90px rgba(255, 31, 61, .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
.site .cta-band::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; --cs: 44px; }
.site .cta-band > * { position: relative; }
.site .other-tools a, .site .custom-list span { background: var(--glass); border-color: rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease), background .3s; }
.site .other-tools a:hover { border-color: var(--hot-2); box-shadow: 0 12px 30px -12px rgba(255, 31, 61, .55); background: rgba(24, 13, 18, .9); }
.site .custom-list span:hover { border-color: rgba(255, 31, 61, .45); box-shadow: 0 0 18px rgba(255, 31, 61, .18); }
.site .tool-hero .big-icon { box-shadow: 0 0 40px rgba(255, 31, 61, .3), inset 0 1px 0 rgba(255, 255, 255, .15); }
.site .crumbs a { transition: color .2s; }
.site .crumbs a:hover { color: var(--red); text-decoration: none; }

/* ---------- 404 ---------- */
.site .err-code { font-size: clamp(6rem, 22vw, 12rem); line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 0 40px rgba(255, 31, 61, .45)); }

/* ---------- Footer ---------- */
.site-footer { position: relative; }
.site-footer::before { content: ''; position: absolute; top: -1px; left: 50%; width: min(720px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255, 31, 61, .7), rgba(255, 122, 44, .6), transparent); box-shadow: 0 0 18px rgba(255, 31, 61, .5); }
.footer-grid h4 { display: flex; align-items: center; gap: 10px; }
.footer-grid h4::before { content: ''; width: 14px; height: 2px; background: var(--red); box-shadow: 0 0 8px var(--red); }
.footer-grid a:not(.logo):hover { color: #ffb3bd; }
@media (max-width: 760px) { .footer-grid h4 { justify-content: center; } }

/* Da destra a sinistra: numeri dei passi e spunte dei piani dal lato giusto */
.site .card.step { padding-left: 26px; padding-right: 26px; padding-inline-start: 72px; }
.site .steps-list .card { padding-left: 26px; padding-right: 26px; padding-inline-start: 84px; }
.site .price-card li { padding-left: 0; padding-inline-start: 28px; }
[dir="rtl"] .site .step::before, [dir="rtl"] .site .steps-list .card::before { left: auto; right: 24px; }
[dir="rtl"] .site .price-card li::before { left: auto; right: 2px; }

/* Chi preferisce meno movimento: niente sollevamento */
@media (prefers-reduced-motion: reduce) {
  .site .card:hover, .site .demo-tab:hover, .site .other-tools a:hover { transform: none; }
}

/* Vetrina dei giochi in home: copertina grande, scheda del gioco e fila di copertine */
.showcase { position: relative; isolation: isolate; }
.sc-ambient { position: absolute; inset: -6% -4% 18%; z-index: -1; pointer-events: none; }
.sc-ambient img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(80px) saturate(1.7); opacity: 0; transition: opacity 1.2s var(--ease); }
.sc-ambient img.on { opacity: .42; }
.sc-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #15151d, #0b0b10 60%); box-shadow: 0 40px 100px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); }
.sc-stage::before { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(120deg, rgba(255, 31, 61, .85), rgba(251, 191, 36, .45) 45%, rgba(255, 255, 255, .06) 70%, rgba(255, 31, 61, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.sc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.sc-media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent 78%, rgba(11, 11, 16, .85)), linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 30%); }
.sc-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity .9s var(--ease), transform 0s 1s; user-select: none; }
.sc-frame img.on { opacity: 1; transform: scale(1.06); transition: opacity .9s var(--ease), transform 7s cubic-bezier(.2, .6, .3, 1); }
.sc-arrow { position: absolute; z-index: 2; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(6, 6, 8, .55); backdrop-filter: blur(8px); color: #fff; font: 400 1.9rem/1 var(--font); display: grid; place-items: center; padding-bottom: 4px; cursor: pointer; opacity: 0; transition: .3s var(--ease); }
.sc-prev { left: 16px; transform: translateX(-8px); }
.sc-next { right: 16px; transform: translateX(8px); }
.sc-media:hover .sc-arrow, .sc-arrow:focus-visible { opacity: 1; transform: none; }
.sc-arrow:hover { background: var(--red); border-color: var(--red); box-shadow: 0 0 24px rgba(255, 31, 61, .6); }
.sc-count { position: absolute; z-index: 2; left: 18px; bottom: 16px; padding: 5px 11px; border-radius: 8px; background: rgba(6, 6, 8, .6); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); font: 600 .78rem var(--font-display); letter-spacing: .16em; color: var(--steel); }
.sc-info { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 36px 36px 36px 28px; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 31, 61, .16), transparent 60%); min-width: 0; }
.sc-swap { animation: scIn .6s var(--ease) both; }
@keyframes scIn { from { opacity: 0; transform: translateY(14px); } }
.sc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sc-tag { font: 600 .7rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: rgba(255, 31, 61, .12); border: 1px solid rgba(255, 31, 61, .45); color: #ffb3bd; }
.sc-tag-roblox { background: #111; border-color: rgba(255, 255, 255, .35); color: #fff; letter-spacing: .04em; }
.sc-tag-new { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 18px rgba(255, 31, 61, .5); }
.sc-title { margin: 0 0 12px; font: 700 clamp(1.7rem, 2.8vw, 2.5rem)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .01em; background: var(--grad-steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-desc { color: var(--muted); font-size: .98rem; line-height: 1.6; margin: 0 0 16px; }
.sc-info .chips { margin-bottom: 22px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; margin-top: 18px; padding: 6px 2px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255, 31, 61, .5) transparent; }
.sc-rail.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.sc-rail.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
.sc-rail.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.sc-thumb { position: relative; aspect-ratio: 16 / 9; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #000; cursor: pointer; scroll-snap-align: start; opacity: .55; filter: saturate(.75); transition: opacity .3s, filter .3s, transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 6, 8, .9), transparent 60%); }
.sc-thumb-name { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 9px; font: 600 .74rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-thumb:hover { opacity: .9; filter: none; }
.sc-thumb.active { opacity: 1; filter: none; border-color: rgba(255, 31, 61, .9); box-shadow: 0 0 0 1px rgba(255, 31, 61, .6), 0 10px 30px rgba(255, 31, 61, .3); transform: translateY(-3px); }
.sc-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); opacity: 0; }
.sc-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--grad); box-shadow: 0 0 10px var(--red); }
.sc-thumb.active .sc-bar { opacity: 1; }
.sc-static .sc-bar { display: none; }
@media (max-width: 960px) {
  .sc-stage { grid-template-columns: 1fr; }
  .sc-media::after { background: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 30%); }
  .sc-info { padding: 24px 22px 26px; }
  .sc-rail { grid-auto-columns: 30%; }
}
@media (max-width: 640px) {
  .sc-rail { grid-auto-columns: 44%; gap: 10px; }
  .sc-arrow { opacity: 1; transform: none; width: 38px; height: 38px; margin-top: -19px; font-size: 1.6rem; }
  .sc-prev { left: 10px; } .sc-next { right: 10px; }
  .sc-actions .btn { flex: 1 1 auto; }
}
@media (hover: none) { .sc-arrow { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sc-frame img, .sc-frame img.on { transform: none; transition: opacity .3s; }
  .sc-swap { animation: none; }
}

/* Simulatore in home su schermi stretti: le copertine dei giochi scorrono in orizzontale sotto lo schermo */
@media (max-width: 860px) {
  .site .demo-tab:hover, [dir="rtl"] .site .demo-tab:hover { transform: none; }
  .site .demo-tab.active, [dir="rtl"] .site .demo-tab.active { box-shadow: inset 0 -3px 0 var(--red), 0 0 30px -8px rgba(255, 31, 61, .55); }
}

/* Scelta del gioco con le copertine (simulatore della dashboard) */
.game-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.game-pick-item { position: relative; display: block; padding: 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #000; cursor: pointer; opacity: .6; filter: saturate(.75); transition: opacity .3s, filter .3s, transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.game-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-pick-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 6, 8, .92), transparent 62%); }
.game-pick-item span { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 8px; font: 600 .74rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-pick-item:hover { opacity: .95; filter: none; }
.game-pick-item[aria-checked="true"] { opacity: 1; filter: none; border-color: rgba(255, 31, 61, .9); box-shadow: 0 0 0 1px rgba(255, 31, 61, .6), 0 10px 28px rgba(255, 31, 61, .3); transform: translateY(-2px); }
.game-pick-item[aria-checked="true"]::before { content: '✓'; position: absolute; z-index: 1; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 .72rem/1 var(--font); box-shadow: 0 0 14px rgba(255, 31, 61, .6); }
[dir="rtl"] .game-pick-item[aria-checked="true"]::before { right: auto; left: 8px; }
@media (max-width: 640px) { .game-pick { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .game-pick-item { transition: none; } .game-pick-item[aria-checked="true"] { transform: none; } }
