/* =========================================================================
   playrankhub.com — fogli di stile
   Tema chiaro. Metodologia BEM (block / block__element / block--modifier).
   Classi di stato consentite: is-open, has-scroll, is-visible.
   ========================================================================= */

/* ---------- Token ---------- */
:root {
  --bg: #f4f2fc;
  --bg-soft: #ece8fa;
  --surface: #ffffff;
  --surface-2: #f8f6fe;
  --ink: #1c1a2e;
  --ink-soft: #56546f;
  --ink-mute: #7a788f;
  --line: #e7e2f4;
  --line-strong: #d8d1ee;

  --brand: #5b3df5;
  --brand-strong: #4a2ee0;
  --brand-tint: #edeafe;
  --gold: #f5a524;
  --rose: #ff4d6d;
  --teal: #0fab7f;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;

  --shadow-sm: 0 1px 2px rgba(28, 26, 46, .06), 0 2px 8px rgba(91, 61, 245, .05);
  --shadow-md: 0 8px 24px rgba(28, 26, 46, .08), 0 2px 6px rgba(91, 61, 245, .06);
  --shadow-lg: 0 24px 60px rgba(45, 30, 120, .16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --header-h: 68px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.shell {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.is-hidden { display: none !important; }

/* ---------- Eyebrow (etichetta mono riutilizzabile) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__icon { width: 18px; height: 18px; flex: none; }

.btn--primary {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  box-shadow: 0 8px 20px rgba(91, 61, 245, .28);
}
.btn--primary:hover { --btn-bg: var(--brand-strong); box-shadow: 0 12px 26px rgba(91, 61, 245, .34); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--brand); color: var(--brand-strong); }

.btn--block { width: 100%; }

/* ---------- Stelle (SVG) ---------- */
.stars {
  position: relative;
  display: inline-block;
  line-height: 0;
  white-space: nowrap;
}
.stars__row { display: inline-flex; gap: 2px; }
.stars__row--base .stars__icon { color: var(--line-strong); }
.stars__row--fill {
  color: var(--gold);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.stars__icon { width: 17px; height: 17px; flex: none; }

/* =========================================================================
   HEADER
   ========================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 252, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.header.has-scroll {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  background: rgba(244, 242, 252, .92);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex: none; border-radius: 9px; box-shadow: var(--shadow-sm); }
.logo__text { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo__text b { color: var(--brand-strong); font-weight: 800; }

.header__nav { display: flex; align-items: center; gap: 8px; }
.header__menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.header__link {
  display: inline-block;
  padding: 9px 12px;
  border-radius: var(--r-full);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}
.header__link:hover { color: var(--ink); background: var(--brand-tint); text-decoration: none; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
}
.header__burger-icon { width: 22px; height: 22px; }
.header__burger-icon line { transition: transform .25s ease, opacity .2s ease; transform-origin: center; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 92px);
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(105deg, rgba(244, 242, 252, .975) 0%, rgba(244, 242, 252, .93) 42%, rgba(237, 234, 251, .8) 100%),
    url("assets/img/bg/retro-shop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(91, 61, 245, .18), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 77, 109, .12), transparent 64%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.3rem, 6vw, 3.85rem);
  line-height: 1.04;
}
.hero__accent {
  color: var(--brand-strong);
  position: relative;
  white-space: nowrap;
}
.hero__accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .14em;
  background: var(--gold);
  opacity: .5;
  border-radius: 4px;
  z-index: -1;
}
.hero__text {
  margin-top: 20px;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  list-style: none;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}
.hero__stat-num { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.hero__stat-label { font-size: 12px; color: var(--ink-mute); letter-spacing: .03em; }

/* Hero: tabellone classifica */
.hero__media { position: relative; }
.board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px;
  border-bottom: 1px dashed var(--line-strong);
}
.board__title { font-size: 1rem; font-weight: 800; }
.board__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-tint);
  padding: 5px 10px;
  border-radius: var(--r-full);
}
.board__list { list-style: none; display: flex; flex-direction: column; }
.board__row {
  display: grid;
  grid-template-columns: auto 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}
.board__row:last-child { border-bottom: 0; }
.board__rank {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mute);
  width: 34px;
}
.board__row--lead .board__rank { color: var(--gold); }
.board__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.board__name { font-weight: 700; font-size: 15px; }
.board__dev { font-size: 12.5px; color: var(--ink-mute); }
.board__score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.board__score svg { width: 14px; height: 14px; color: var(--gold); }

/* =========================================================================
   SECTION generica (intestazioni)
   ========================================================================= */
.section { padding: clamp(52px, 8vw, 92px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section__text { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* =========================================================================
   GIOCHI — recensioni a tutta riga, alternate (zig-zag)
   ========================================================================= */
.reviews__list {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}

.review {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.review__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.review__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review__rank {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(28, 26, 46, .82);
  backdrop-filter: blur(4px);
  padding: 7px 12px;
  border-radius: var(--r-full);
}
.review__genre {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  padding: 7px 12px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}

.review__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3.2vw, 40px);
}
.review__head { display: flex; align-items: center; gap: 14px; }
.review__icon {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.review__heading { min-width: 0; }
.review__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.review__dev {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.review__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.review__score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.review__source {
  font-size: 12.5px;
  color: var(--ink-mute);
}
.review__text { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }
.review__foot { margin-top: auto; padding-top: 6px; }
.review__cta-note {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 10px;
}

@media (min-width: 860px) {
  .review { grid-template-columns: 1.02fr 1fr; align-items: stretch; }
  .review__media { aspect-ratio: auto; min-height: 340px; }
  .review--flip .review__media { order: 2; }
  .review__foot .btn { width: auto; }
}

/* =========================================================================
   MODELLO / TRASPARENZA
   ========================================================================= */
.model__inner { display: grid; gap: clamp(30px, 4vw, 48px); align-items: start; }
.model__lead { max-width: 52ch; }
.model__steps { list-style: none; display: grid; gap: 16px; }
.model__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.model__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-strong);
  background: var(--brand-tint);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex: none;
}
.model__step-title { font-size: 1.08rem; font-weight: 800; margin-bottom: 4px; }
.model__step-text { color: var(--ink-soft); font-size: .98rem; }
.model__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: .96rem;
}
.model__note svg { width: 22px; height: 22px; flex: none; color: var(--brand-strong); margin-top: 1px; }
.model__note a { font-weight: 700; }

/* =========================================================================
   FIDUCIA (perché fidarsi)
   ========================================================================= */
.trust__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.trust__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.trust__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  margin-bottom: 16px;
}
.trust__icon svg { width: 26px; height: 26px; }
.trust__title { font-size: 1.12rem; margin-bottom: 8px; }
.trust__text { color: var(--ink-soft); font-size: .98rem; }

/* =========================================================================
   FAQ (accordion)
   ========================================================================= */
.faq__inner { display: grid; gap: clamp(28px, 4vw, 44px); align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item--open { border-color: var(--line-strong); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 18px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink);
}
.faq__icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--brand-strong);
  transition: transform .25s ease;
}
.faq__item--open .faq__icon { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a-inner { padding: 0 20px 20px; color: var(--ink-soft); }

/* =========================================================================
   SIGNUP (notifiche — modulo OneSignal)
   ========================================================================= */
.signup__inner {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 44px);
}
.signup__title { font-size: clamp(1.5rem, 3.5vw, 2.05rem); }
.signup__text { margin-top: 12px; color: var(--ink-soft); }
.signup__list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.signup__list li { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); font-size: .96rem; }
.signup__list svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.signup__form { display: grid; gap: 14px; }
.signup__field { display: grid; gap: 6px; }
.signup__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.signup__input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.signup__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, .18);
}
.signup__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.signup__consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.signup__success {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(15, 171, 127, .12);
  color: var(--teal);
  font-size: .94rem;
  font-weight: 600;
}
.signup__success.show { display: flex; }
.signup__success svg { width: 18px; height: 18px; flex: none; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: #161427;
  color: #c9c6e0;
  padding: clamp(44px, 6vw, 72px) 0 32px;
}
.footer__top {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand-mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.footer__brand-mark:hover { text-decoration: none; }
.footer__brand-mark img { width: 32px; height: 32px; border-radius: 9px; }
.footer__brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.footer__about { margin-top: 14px; max-width: 38ch; font-size: .95rem; color: #a8a4c8; }
.footer__cols { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8d89b3;
  margin-bottom: 14px;
}
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__link { color: #c9c6e0; font-size: .96rem; }
.footer__link:hover { color: #fff; }
.footer__contact { color: #c9c6e0; font-weight: 600; }
.footer__contact:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
}
.footer__copy { font-size: .9rem; color: #8d89b3; }
.footer__disclaimer { font-size: .82rem; color: #6f6c92; max-width: 60ch; }

/* =========================================================================
   COOKIE banner
   ========================================================================= */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: none;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 760px;
  margin-inline: auto;
}
.cookie.is-open { display: flex; }
.cookie__text { flex: 1 1 300px; font-size: .92rem; color: var(--ink-soft); }
.cookie__text b { color: var(--ink); }
.cookie__actions { display: flex; gap: 10px; flex: none; }
.cookie__btn { padding: 11px 18px; font-size: 14px; }

/* =========================================================================
   TORNA SU
   ========================================================================= */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-strong);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.to-top svg { width: 22px; height: 22px; }

/* =========================================================================
   PAGINE LEGALI
   ========================================================================= */
.legal { padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 80px); }
.legal__head { max-width: 70ch; margin-bottom: 36px; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-strong);
  margin-bottom: 22px;
}
.legal__back svg { width: 16px; height: 16px; }
.legal__title { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.legal__updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 14px;
}
.legal__body {
  max-width: 76ch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 44px);
}
.legal__body h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
  padding-top: 8px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal__body p { margin: 0 0 14px; color: var(--ink-soft); }
.legal__body ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.legal__body li { margin-bottom: 8px; }
.legal__body a { font-weight: 600; }
.legal__body strong { color: var(--ink); }
.legal__toc {
  background: var(--brand-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 30px;
  max-width: 76ch;
}
.legal__toc-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 10px;
}
.legal__toc ul { list-style: none; display: grid; gap: 7px; }
.legal__toc a { font-weight: 600; font-size: .95rem; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 600px) {
  .games__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .model__inner { grid-template-columns: .9fr 1.1fr; }
  .faq__inner { grid-template-columns: .8fr 1.2fr; }
  .signup__inner { grid-template-columns: 1.05fr .95fr; }
  .trust__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1.3fr 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1040px) {
  .games__grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Menu mobile --- */
@media (max-width: 1023px) {
  .header__burger { display: inline-flex; }
  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 20px 22px;
    transform: translateY(-130%);
    transition: transform .28s ease;
    visibility: hidden;
  }
  .header__nav.is-open { transform: translateY(0); visibility: visible; }
  .header__menu { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .header__link { padding: 13px 14px; font-size: 16px; border-radius: var(--r-sm); }
  .header__actions { margin: 14px 0 0; }
  .header__actions .btn { width: 100%; }

  .header__burger[aria-expanded="true"] .header__burger-icon line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .header__burger[aria-expanded="true"] .header__burger-icon line:nth-child(2) { opacity: 0; }
  .header__burger[aria-expanded="true"] .header__burger-icon line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (min-width: 1024px) {
  .header__nav { display: flex !important; visibility: visible; transform: none; }
}

/* =========================================================================
   COME GIOCARE (guida d'uso)
   ========================================================================= */
.howto__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.howto__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.howto__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-strong);
  background: var(--brand-tint);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  margin-bottom: 16px;
}
.howto__step-title { font-size: 1.1rem; margin-bottom: 7px; }
.howto__step-text { color: var(--ink-soft); font-size: .97rem; }

@media (min-width: 700px) { .howto__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .howto__steps { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   VOTO DELLA COMMUNITY (banda scura con sfondo a tema gioco)
   ========================================================================= */
.community {
  position: relative;
  color: #fff;
  background-color: #161427;
  background-image:
    linear-gradient(180deg, rgba(20, 17, 44, .86), rgba(36, 23, 70, .9)),
    url("assets/img/bg/dice.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.community__inner { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
.community__intro .eyebrow { color: #cabfff; }
.community__title { font-size: clamp(1.7rem, 4vw, 2.5rem); color: #fff; }
.community__text { margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.community__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.community__stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  padding: 22px;
}
.community__num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.community__num svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.community__label { margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }

@media (min-width: 900px) { .community__inner { grid-template-columns: .85fr 1.15fr; } }

/* =========================================================================
   LA VOCE DEI GIOCATORI (recensioni, sfondo a tema gioco attenuato)
   ========================================================================= */
.voices {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(244, 242, 252, .92), rgba(244, 242, 252, .955)),
    url("assets/img/bg/arcade-neon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.voices__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.voices__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.voices__stars { color: var(--gold); display: inline-flex; gap: 2px; }
.voices__stars svg { width: 18px; height: 18px; }
.voices__quote { font-size: 1.04rem; color: var(--ink); line-height: 1.55; margin: 0; }
.voices__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.voices__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 15px;
  color: #fff;
  background: var(--brand);
  flex: none;
}
.voices__name { font-weight: 700; font-size: .96rem; }
.voices__role { font-size: 12.5px; color: var(--ink-mute); }

@media (min-width: 760px) { .voices__grid { grid-template-columns: repeat(3, 1fr); } }
