/* ============================================================
   bestplayindex — schedario indipendente di giochi mobile
   Tutti gli stili del sito. Metodologia BEM.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* palette — tema scuro (predefinito) */
  --bg:           #14111f;
  --bg-2:         #1b1726;
  --surface:      #221d33;
  --surface-2:    #2a2440;
  --border:       #352e4c;
  --text:         #f3eee4;
  --text-muted:   #aba1c4;
  --accent:       #ff5c7a;
  --accent-soft:  #ff7a92;
  --accent-2:     #ffc857;
  --on-accent:    #1a0e14;
  --ring:         #ff8aa1;
  --shadow:       0 18px 40px -18px rgba(0,0,0,.65);
  --shadow-soft:  0 10px 28px -16px rgba(0,0,0,.55);

  /* tipografia */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* raggi */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* spazi */
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --shell-pad: clamp(1.1rem, 4vw, 2rem);
  --header-h: 66px;
}

/* tema chiaro: scelto dall'utente o dal sistema */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg:           #f6f1e8;
    --bg-2:         #fbf7f0;
    --surface:      #ffffff;
    --surface-2:    #f1eadd;
    --border:       #e4dac9;
    --text:         #211b2e;
    --text-muted:   #6a6280;
    --accent:       #c42e50;
    --accent-soft:  #a82443;
    --accent-2:     #b67400;
    --on-accent:    #ffffff;
    --ring:         #c42e50;
    --shadow:       0 18px 40px -20px rgba(40,28,55,.28);
    --shadow-soft:  0 10px 26px -18px rgba(40,28,55,.22);
  }
}
[data-theme="light"] {
  --bg:           #f6f1e8;
  --bg-2:         #fbf7f0;
  --surface:      #ffffff;
  --surface-2:    #f1eadd;
  --border:       #e4dac9;
  --text:         #211b2e;
  --text-muted:   #6a6280;
  --accent:       #c42e50;
  --accent-soft:  #a82443;
  --accent-2:     #b67400;
  --on-accent:    #ffffff;
  --ring:         #c42e50;
  --shadow:       0 18px 40px -20px rgba(40,28,55,.28);
  --shadow-soft:  0 10px 26px -18px rgba(40,28,55,.22);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }

p { margin: 0; }

button { font-family: inherit; }

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

/* nasconde lo sprite SVG */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout helper ---------- */
.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* ---------- Eyebrow (codice mono) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .82em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn__icon { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-soft); color: var(--on-accent); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }

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

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.18rem;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__mark-bg { fill: var(--accent); }
.logo__mark-rows { fill: var(--on-accent); }
.logo__text b { color: var(--accent); }
.logo__text { white-space: nowrap; }

/* navigazione */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}
.site-nav__link:hover { background: var(--surface); color: var(--text); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle__icon { width: 20px; height: 20px; }
.theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

.burger {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.burger__icon { width: 22px; height: 22px; }
.burger__icon--close { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: clamp(500px, 78vh, 700px);
  padding-block: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  /* tema locale del hero: contenuto chiaro sopra le immagini scurite,
     in entrambi i temi — gestito via variabili, senza override a cascata */
  --text: #f6f1ea;
  --text-muted: rgba(246, 241, 234, .82);
  --accent: #ff5c7a;
  --accent-soft: #ff86a0;
  --on-accent: #1a0e14;
  --border: rgba(246, 241, 234, .42);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(75% 65% at 50% 6%, rgba(255, 92, 122, .26), transparent 70%),
    linear-gradient(180deg, rgba(14, 11, 21, .82), rgba(14, 11, 21, .9));
}
.hero__content {
  max-width: 46rem;
  margin-inline: auto;
}
.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 1rem 0 1.1rem;
  line-height: 1.03;
  color: var(--text);
}
.hero__title-accent { color: var(--accent); }
.hero__text {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
  margin: 0 auto 1.8rem;
  max-width: 40rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.2rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hero__meta span { display: inline-block; }
.hero__meta b { color: var(--text); font-size: 1.2rem; display: block; letter-spacing: -0.02em; }

/* ============================================================
   Sezioni generiche
   ============================================================ */
.section {
  padding-block: var(--space-section);
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.section--tint { background: var(--bg-2); }
.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: .9rem 0 .7rem;
}
.section__lead {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* ============================================================
   Giochi — griglia di schede
   ============================================================ */
.games__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.games__note {
  margin-top: 1.6rem;
  font-size: .88rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.games__note-icon { width: 18px; height: 18px; color: var(--accent); flex: none; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__code {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  padding: .3em .6em;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}
.card__icon {
  position: absolute;
  left: 14px;
  bottom: -22px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px 1.25rem 1.25rem;
}
.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card__dev {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--text-muted);
  letter-spacing: .03em;
  margin-top: .35rem;
}
.card__rating { margin: .7rem 0; }
.card__text {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1.2rem;
}
.card__actions { margin-top: auto; }

/* stelle di valutazione */
.rating {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.rating__stars {
  position: relative;
  display: inline-flex;
  line-height: 0;
}
.rating__base { display: inline-flex; color: var(--border); }
.rating__fill {
  position: absolute;
  inset: 0;
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent-2);
}
.rating__star { width: 18px; height: 18px; flex: none; }
.rating__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
}

/* ============================================================
   Modello / trasparenza
   ============================================================ */
.model__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.model__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
}
.model__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  margin-bottom: 1rem;
}
.model__icon svg { width: 24px; height: 24px; }
.model__title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.model__text { color: var(--text-muted); font-size: .96rem; }

.model__note {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .92rem;
}
.model__note-icon { width: 20px; height: 20px; color: var(--accent-2); flex: none; margin-top: 2px; }
.model__note a { font-weight: 600; }

/* ============================================================
   Fiducia / il progetto
   ============================================================ */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.feature {
  padding: 1.4rem 1.2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
}
.section--tint .feature { background: var(--surface); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: .9rem;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.feature__text { color: var(--text-muted); font-size: .92rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 50rem;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq__icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  transition: transform .22s ease;
}
.faq__item--open .faq__icon { transform: rotate(180deg); }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .26s ease;
}
.faq__item--open .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner {
  overflow: hidden;
  color: var(--text-muted);
  padding: 0 1.25rem;
}
.faq__item--open .faq__answer-inner { padding-bottom: 1.2rem; }

/* ============================================================
   Trucchi / lifehack
   ============================================================ */
.tips__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.tip {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.tip__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.tip__icon svg { width: 24px; height: 24px; }
.tip__num {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.tip__title { font-size: 1.08rem; font-weight: 700; margin-bottom: .4rem; }
.tip__text { color: var(--text-muted); font-size: .94rem; }

/* ============================================================
   La voce dei giocatori
   ============================================================ */
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.voice {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.6rem 1.4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.voice__quote-icon { width: 28px; height: 28px; flex: none; color: var(--accent); margin-bottom: .8rem; }
.voice__text {
  margin: 0 0 1.3rem;
  flex: 1;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
.voice__person { display: flex; align-items: center; gap: .8rem; }
.voice__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
}
.voice__name { display: block; font-weight: 700; font-size: .95rem; color: var(--text); }
.voice__role { display: block; color: var(--text-muted); font-size: .82rem; }

/* ============================================================
   Iscrizione (modulo OneSignal pre-cablato)
   ============================================================ */
.subscribe__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface));
}
.subscribe__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: .7rem;
}
.subscribe__text { color: var(--text-muted); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.form__group { margin-bottom: .8rem; }
.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.form__input {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .96rem;
  transition: border-color .16s ease;
}
.form__input:focus { outline: none; border-color: var(--accent); }
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin: .4rem 0 1rem;
}
.form__consent input { margin-top: 3px; accent-color: var(--accent); }
.form__success {
  display: none;
  margin-top: .8rem;
  padding: .7rem .9rem;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, #38c172 22%, transparent);
  color: var(--text);
  font-size: .9rem;
}
.form__success.show { display: block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-top: clamp(2.6rem, 5vw, 4rem);
  padding-bottom: 1.6rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}
.site-footer__tagline {
  color: var(--text-muted);
  font-size: .92rem;
  margin-top: .9rem;
  max-width: 22rem;
}
.site-footer__title {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-nav__link { color: var(--text); font-size: .95rem; }
.footer-nav__link:hover { color: var(--accent); }
.site-footer__contact { font-style: normal; }
.site-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  word-break: break-all;
}
.site-footer__mail svg { width: 18px; height: 18px; flex: none; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ============================================================
   Torna su
   ============================================================ */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 1100;
  width: min(680px, calc(100% - 2rem));
  transform: translate(-50%, 140%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.22,.8,.3,1);
}
.cookie-banner.is-visible { transform: translate(-50%, 0); }
.cookie-banner__text {
  flex: 1 1 260px;
  font-size: .9rem;
  color: var(--text-muted);
}
.cookie-banner__text a { font-weight: 600; }
.cookie-banner__actions { display: flex; gap: .6rem; }
.cookie-banner__btn {
  padding: .6em 1.1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.cookie-banner__btn--accept { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cookie-banner__btn--accept:hover { background: var(--accent-soft); }
.cookie-banner__btn--reject:hover { border-color: var(--accent); }

/* ============================================================
   Pagine legali
   ============================================================ */
.legal { padding-block: clamp(2.4rem, 5vw, 3.6rem) var(--space-section); }
.legal__header {
  max-width: 50rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.legal__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: .8rem 0 .8rem;
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: 1.2rem;
  font-weight: 600;
}
.legal__back svg { width: 18px; height: 18px; }
.legal__body { max-width: 50rem; }
.legal__body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 .8rem;
}
.legal__body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.5rem 0 .5rem;
}
.legal__body p { color: var(--text-muted); margin-bottom: 1rem; }
.legal__body ul { color: var(--text-muted); margin: 0 0 1.1rem; padding-left: 1.2rem; }
.legal__body li { margin-bottom: .5rem; }
.legal__body a { font-weight: 600; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .subscribe__panel { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .voices__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .burger { display: grid; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--shell-pad) 1.4rem;
    transform: translateY(-140%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .site-nav__link { padding: .8rem .75rem; border-radius: var(--r-sm); }
}

@media (max-width: 760px) {
  .games__grid { grid-template-columns: 1fr; }
  .model__grid { grid-template-columns: 1fr; }
  .tips__grid { grid-template-columns: 1fr; }
  .voices__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 1.6rem; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- Stato burger: icona ---------- */
.burger[aria-expanded="true"] .burger__icon--menu { display: none; }
.burger[aria-expanded="true"] .burger__icon--close { display: block; }

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