/* QStudios — foglio di stile unico per tutto il sito */

/* Font ospitati in locale: nessuna richiesta a server di terzi (SIL OFL 1.1) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/outfit-var.woff2) format("woff2"); }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/comfortaa-700.woff2) format("woff2"); }

:root {
  --orange: #EA5520;
  --orange-soft: #FF7A45;
  --blue: #1271B9;
  --blue-soft: #3B9BE8;
  --bg: #0A0C12;
  --bg-2: #10131C;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #F2F4F8;
  --muted: #9AA3B5;
  --radius: 20px;
  --max: 1160px;
  --grad: linear-gradient(120deg, var(--orange) 0%, #F0803C 35%, var(--blue-soft) 70%, var(--blue) 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────── Navigazione ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid {
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -.3px; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-links .cta { background: var(--text); color: var(--bg); }
.nav-links .cta:hover { background: #fff; color: var(--bg); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; cursor: pointer; border-radius: 12px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s, opacity .3s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(0,0,0,.5);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { display: flex; padding: 12px 14px; }
  .nav-links a.staff, .nav-links .cta { justify-content: center; margin-top: 6px; }
}

/* ───────── Bottoni ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 30px -8px rgba(234, 85, 32, .7); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(234, 85, 32, .9); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,.25); background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; }

/* ───────── Hero ───────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; background: var(--orange); top: -120px; left: -140px; }
.blob.b2 { width: 600px; height: 600px; background: var(--blue); bottom: -200px; right: -160px; animation-delay: -6s; }
.blob.b3 { width: 300px; height: 300px; background: #7B3FE4; top: 40%; left: 45%; opacity: .25; animation-delay: -12s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.float-letter {
  position: absolute; font-family: "Comfortaa", sans-serif; font-weight: 700;
  color: rgba(255,255,255,.06); user-select: none;
  animation: floaty 10s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-24px) rotate(6deg); } }

.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { min-height: 0; padding: 112px 0 64px; } .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 56px; } .hero-actions { justify-content: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .85rem; color: var(--muted); margin-bottom: 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3BD67A; box-shadow: 0 0 0 4px rgba(59,214,122,.18); margin-left: 6px; }
h1.display { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; font-weight: 800; letter-spacing: -2px; margin-bottom: 24px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 540px; margin-bottom: 36px; }
@media (max-width: 900px) { .lead { margin-left: auto; margin-right: auto; } }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Telefono dimostrativo */
.hero-visual { display: flex; justify-content: center; perspective: 1200px; }
.phone {
  width: 290px; aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2A2F3D, #12151E);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.8), inset 0 0 0 1.5px rgba(255,255,255,.12);
  transform: rotateY(-14deg) rotateX(6deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  animation: phoneIn 1.1s cubic-bezier(.2,.8,.2,1) both .2s;
}
.phone:hover { transform: rotateY(0) rotateX(0); }
@keyframes phoneIn { from { opacity: 0; transform: rotateY(-30deg) rotateX(10deg) translateY(40px); } }
@media (max-width: 900px) { .phone { width: 240px; transform: none; } .screen { padding: 40px 14px 18px; } .q-answers span { padding: 8px 10px; font-size: .76rem; } }
.screen {
  height: 100%; border-radius: 34px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #1A2B4A 0%, #0E1626 100%);
  display: flex; flex-direction: column; padding: 46px 18px 22px;
}
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 20px; background: #000; }
.q-top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: #B9C4DA; margin-bottom: 14px; }
.q-hp { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); margin: 0 10px; overflow: hidden; }
.q-hp i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--orange), #FFB347); border-radius: 6px; animation: hp 4s ease-in-out infinite; }
@keyframes hp { 50% { width: 38%; } }
.q-boss { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border-radius: 16px; padding: 10px; margin-bottom: 16px; }
.q-boss .avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #795548, #A1887F); display: grid; place-items: center; font-size: 1.3rem; }
.q-boss b { display: block; font-size: .85rem; }
.q-boss small { color: #9FB0CC; font-size: .7rem; }
.q-question { font-weight: 600; font-size: .98rem; line-height: 1.35; margin-bottom: 16px; }
.q-answers { display: grid; gap: 8px; }
.q-answers span { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; font-size: .82rem; }
.q-answers span.ok { background: rgba(59,214,122,.18); border-color: rgba(59,214,122,.6); animation: okPulse 4s ease-in-out infinite; }
@keyframes okPulse { 0%, 40% { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.08); } 55%, 100% { background: rgba(59,214,122,.18); border-color: rgba(59,214,122,.6); } }
.q-timer { margin-top: auto; text-align: center; font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 2rem; }

/* ───────── Sezioni ───────── */
section { position: relative; }
.section { padding: 120px 0; }
@media (max-width: 600px) { .section { padding: 80px 0; } }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: .82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 14px; }
h2.title { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -1.2px; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Marquee categorie */
.marquee { border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 1.35rem; white-space: nowrap; color: var(--muted); display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--orange); font-size: .9rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Gioco in evidenza */
.game {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 32px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-2);
}
@media (max-width: 900px) { .game { grid-template-columns: 1fr; } }
.game-art {
  position: relative; min-height: 420px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange) 0 50%, var(--blue) 50% 100%);
  overflow: hidden;
}
.game-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 50%); }
.game-art img { width: 46%; max-width: 220px; position: relative; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); border-radius: 28%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.game:hover .game-art img { transform: scale(1.06) rotate(-4deg); }
.game-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 600px) { .game-body { padding: 28px 20px; } .game-art { min-height: 280px; } }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(234,85,32,.14); color: var(--orange-soft); border: 1px solid rgba(234,85,32,.35); margin-bottom: 18px; }
.game-body h3 { font-family: "Comfortaa", sans-serif; font-size: 2.4rem; letter-spacing: -1px; margin-bottom: 12px; }
.game-body > p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tags span { padding: 6px 12px; border-radius: 10px; background: var(--surface-2); font-size: .85rem; color: #C9D1E0; }
.tags span i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* Statistiche */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Card modalità / valori */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: transform .3s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--x, 50%) var(--y, 0%), rgba(255,255,255,.08), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.card:hover::before { opacity: 1; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; font-size: 1.5rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; color: var(--orange-soft); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }
a.card { display: block; }

/* Studio */
.studio { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; gap: 40px; } }
.studio-mark {
  aspect-ratio: 1; border-radius: 40px; position: relative; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
  display: grid; place-items: center;
}
.studio-mark .ring { position: absolute; border-radius: 50%; border: 1px solid var(--border); }
.studio-mark .ring.r1 { width: 90%; aspect-ratio: 1; animation: spin 40s linear infinite; border-top-color: var(--orange); }
.studio-mark .ring.r2 { width: 66%; aspect-ratio: 1; animation: spin 28s linear infinite reverse; border-right-color: var(--blue-soft); }
.studio-mark .ring.r3 { width: 42%; aspect-ratio: 1; animation: spin 18s linear infinite; border-bottom-color: #FFB347; }
.studio-mark img { width: 26%; position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.values { display: grid; gap: 18px; margin-top: 32px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value .n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--surface-2); color: var(--orange-soft); }
.value h4 { font-size: 1.08rem; margin-bottom: 2px; }
.value p { color: var(--muted); font-size: .97rem; }

/* Contatti */
.contact {
  position: relative; border-radius: 32px; padding: 72px 48px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(234,85,32,.22), rgba(18,113,185,.22)), var(--bg-2);
  border: 1px solid var(--border);
}
@media (max-width: 600px) { .contact { padding: 48px 20px; } }
.contact h2 { margin-bottom: 14px; }
.contact p { color: #C3CADA; max-width: 520px; margin: 0 auto 32px; font-size: 1.1rem; }
.mail-link { font-size: clamp(1.3rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -.5px; border-bottom: 2px solid var(--orange); padding-bottom: 4px; transition: color .2s; overflow-wrap: anywhere; }
.mail-link:hover { color: var(--orange-soft); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 120px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; gap: 28px; } }
.foot p { color: var(--muted); font-size: .95rem; margin-top: 14px; max-width: 320px; }
.foot h5 { font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot ul a { color: #C9D1E0; transition: color .2s; }
.foot ul a:hover { color: var(--orange-soft); }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ───────── Pagine legali ───────── */
.legal-hero { padding: 150px 0 56px; position: relative; overflow: hidden; }
.legal-hero .blob { opacity: .3; }
.legal-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 14px; }
.legal-hero .meta { color: var(--muted); }

.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; font-size: .92rem; }
.toc a { padding: 8px 12px; border-radius: 10px; color: var(--muted); border-left: 2px solid transparent; transition: color .2s, background .2s; }
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.active { color: var(--text); border-left-color: var(--orange); background: var(--surface); }
@media (max-width: 900px) { .toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; } .toc a { white-space: nowrap; border-left: 0; background: var(--surface); } }

.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: 1.5rem; letter-spacing: -.4px; margin: 48px 0 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p, .prose li { color: #C3CADA; font-size: 1.02rem; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose a { color: var(--orange-soft); border-bottom: 1px solid rgba(255,122,69,.4); }
.prose a:hover { border-bottom-color: var(--orange-soft); }
.prose strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { background: var(--surface-2); font-weight: 600; color: var(--text); font-size: .85rem; letter-spacing: .3px; }
.prose td { color: #C3CADA; }
.prose tr:last-child td { border-bottom: 0; }
.note { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--blue-soft); margin: 20px 0; }
.note p { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 700; font-size: .9rem; }

.credit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
@media (max-width: 600px) { .credit-grid { grid-template-columns: 1fr; } }
.credit { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.credit b { display: block; color: var(--text); margin-bottom: 4px; }
.credit span { display: block; color: var(--muted); font-size: .9rem; }
.credit .lic { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; background: rgba(59,155,232,.14); color: #8CC4F2; border: 0; }
.pkg-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pkg-list code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: #C9D1E0; }

/* Pagina 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 16px; }
.notfound b { font-size: clamp(6rem, 22vw, 12rem); line-height: 1; font-weight: 800; letter-spacing: -6px; display: block; }

/* Animazioni all'ingresso */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Pulsante "Area riservata" (porta al portale beta, protetto da Cloudflare Access) */
.nav-links a.staff { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); }
.nav-links a.staff svg { width: 15px; height: 15px; }
.nav-links a.staff:hover { border-color: rgba(255,255,255,.25); }

/* ───────── Moduli ───────── */
.form-card { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: 100px; }
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }
.form-card h2 { font-size: 1.5rem; letter-spacing: -.4px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .9rem; font-weight: 500; color: #C9D1E0; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,85,32,.2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; justify-content: center; border: 0; font-family: inherit; }
.form-note { color: var(--muted); font-size: .85rem; margin-top: 12px; text-align: center; }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.alert-ok { background: rgba(59,214,122,.12); border: 1px solid rgba(59,214,122,.4); color: #9CF0BE; }
.alert-err { background: rgba(255,82,82,.1); border: 1px solid rgba(255,82,82,.4); color: #FFB0B0; }
.stars { display: flex; gap: 4px; }
.stars button { background: none; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; color: #3A4152; padding: 2px; transition: color .15s, transform .15s; }
.stars button.on { color: #FFB347; }
.stars button:hover { transform: scale(1.15); }

/* ───────── Pagina beta ───────── */
.beta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .beta-grid { grid-template-columns: 1fr; } }
.download-card { padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(135deg, rgba(234,85,32,.16), rgba(18,113,185,.16)), var(--bg-2); }
@media (max-width: 600px) { .download-card { padding: 22px 18px; } }
.download-card h2 { font-size: 1.6rem; letter-spacing: -.5px; margin-bottom: 10px; }
.download-card > p { color: #C3CADA; margin-bottom: 18px; }
.download-card > ul { list-style: none; display: grid; gap: 10px; margin: 0 0 26px; }
.download-card > ul li { display: flex; gap: 10px; color: #C9D1E0; }
.download-card > ul li::before { content: "✓"; color: #3BD67A; font-weight: 700; }
.download-card .btn { width: 100%; justify-content: center; }
.how { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.how h3 { font-size: 1rem; margin-bottom: 10px; }
.how ol { padding-left: 20px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.review-head b { overflow-wrap: anywhere; }
.review-head span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.review-stars { color: #FFB347; letter-spacing: 2px; margin-bottom: 10px; }
.review p { color: #C3CADA; font-size: .95rem; overflow-wrap: anywhere; white-space: pre-line; }
.muted-line { color: var(--muted); }
