/* Pagine informative statiche di il-quizzone.it (stessa palette della home) */
:root {
  --bg: #06060e;
  --surface: #141422;
  --glass: #12081f;
  --accent: #7c4dff;
  --cyan: #00f5ff;
  --magenta: #ff00ff;
  --yellow: #ffe566;
  --green: #3dff9a;
  --text: #f0f0f5;
  --muted: #a8a8b8;
  --border: rgba(0, 245, 255, 0.28);
  --glow: rgba(124, 77, 255, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 77, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 245, 255, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 0, 255, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--cyan); }
a:hover { color: #fff; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Testata */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-brand { line-height: 0; }

.top-brand img {
  width: 190px;
  max-width: 48vw;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #06060e;
  background: linear-gradient(90deg, var(--cyan), var(--accent) 60%, var(--magenta));
  box-shadow: 0 0 22px var(--glow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover { color: #06060e; filter: brightness(1.1); transform: translateY(-1px); }

.btn-small { padding: 0.5rem 0.95rem; font-size: 0.88rem; white-space: nowrap; }

/* Navigazione tra le pagine */
.pages-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.9rem 0 0;
}

.pages-nav a {
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 34, 0.7);
}

.pages-nav a[aria-current="page"] {
  color: #06060e;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1.2rem 0 0;
}

.breadcrumb a { color: var(--muted); }

/* Apertura */
.hero { padding: 1.4rem 0 0.6rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

h1 {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.12;
  margin: 0.35rem 0 0.8rem;
  background: linear-gradient(90deg, var(--cyan), #b9a4ff 55%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead { font-size: 1.1rem; color: #dcdce6; margin: 0 0 1.2rem; max-width: 46rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 1.1rem 0 0.4rem;
}

.play-badge { line-height: 0; display: inline-block; }
.play-badge img { height: 52px; width: auto; border-radius: 8px; }

/* Sezioni */
section { margin-top: 2.2rem; }

h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--cyan);
  margin: 0 0 0.7rem;
}

h3 {
  font-size: 1.08rem;
  color: var(--yellow);
  margin: 1.3rem 0 0.4rem;
}

p { margin: 0 0 0.9rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

.card {
  background: rgba(20, 20, 34, 0.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 0 28px rgba(124, 77, 255, 0.18);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.grid-2 .card h3 { margin-top: 0; }
.grid-2 .card p:last-child { margin-bottom: 0; }

/* Schermate del gioco */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.shots figure { margin: 0; }

.shots picture, .shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.shots img {
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 26px rgba(124, 77, 255, 0.2);
  background: #1a1a2e;
}

.shots figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* Tabelle */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: rgba(20, 20, 34, 0.7);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}

th { color: var(--cyan); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

tr:last-child td { border-bottom: 0; }

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.25);
  color: #d9ccff;
  white-space: nowrap;
}

/* Domande frequenti */
.faq details {
  background: rgba(20, 20, 34, 0.88);
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.faq details[open] summary { color: var(--cyan); margin-bottom: 0.5rem; }
.faq details p:last-child { margin-bottom: 0; }

/* Altre pagine */
.more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.more a {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: rgba(20, 20, 34, 0.88);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.more a:hover { border-color: var(--cyan); transform: translateY(-2px); }
.more strong { display: block; color: var(--cyan); }
.more span { font-size: 0.86rem; color: var(--muted); }

.final-cta { text-align: center; padding: 1.6rem 1.2rem; }
.final-cta h2 { margin-bottom: 0.4rem; }
.final-cta .cta-row { justify-content: center; }

/* Piè di pagina */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.6rem;
  text-align: center;
  padding: 1.2rem 1rem 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer a { color: var(--cyan); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-sep { color: rgba(255, 255, 255, 0.2); }

@media (max-width: 560px) {
  .top-brand img { width: 150px; }
  .lead { font-size: 1.02rem; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .shots img { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.cat-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.35rem 1rem;
}

.cat-list li {
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(20, 20, 34, 0.88);
  border: 1px solid rgba(124, 77, 255, 0.3);
}
