/* =========================================================================
   PlayBaze Casino — Italia (it-IT)  |  Shared stylesheet
   Brand colors:  yellow #FED100 · navy #101D2C · teal #017E80 · white #FFFFFF
   Locale variation (§10): green-forward theme. Secondary accent = emerald
   (#008C45, Italian flag) with tricolor touches (green/white/red) on the
   header stripe, section title underline and the 18+ badge. Gold stays
   reserved for CTA buttons, brand mark, rating, step numbers & back-to-top.
   Header & footer markup/styling are kept from the brand baseline (untouched).
   Fonts: headings Druk Cyr Heavy Italic, body Transducer (brandbook).
   Currently using close Google Fonts (Anton / Oswald / Saira) via the font
   variables below. To swap to the real brand fonts later: drop the .woff2
   files into /fonts, fill in the @font-face blocks marked TODO, and point
   --font-display / --font-body at them — no markup changes required.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Oswald:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600;1,700&family=Saira:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Saira+Condensed:wght@600;700;800&display=swap");

/* ---- TODO: real brand fonts (swap-in later) -----------------------------
@font-face{ font-family:"Druk Cyr"; src:url("../fonts/DrukCyr-HeavyItalic.woff2") format("woff2"); font-weight:900; font-style:italic; font-display:swap; }
@font-face{ font-family:"Transducer"; src:url("../fonts/Transducer-ExtendedBlack.woff2") format("woff2"); font-weight:800; font-style:normal; font-display:swap; }
   Then set: --font-display:"Druk Cyr", "Anton", sans-serif;
             --font-body:"Transducer", "Saira", sans-serif;
-------------------------------------------------------------------------- */

/* ============================ TOKENS ==================================== */
:root {
  /* Brand palette */
  --pb-yellow: #fed100;
  --pb-yellow-600: #e0b900;
  --pb-navy: #101d2c;
  --pb-teal: #017e80;
  --pb-teal-300: #23b3b5;
  --pb-white: #ffffff;

  /* Italy locale accent (secondary) — emerald (Italian flag #008C45) */
  --accent: #1fae63;
  --accent-strong: #0f8a4d;
  --accent-300: #3cc97e;
  --accent-tint: rgba(16, 154, 86, 0.4);
  --accent-soft: rgba(16, 154, 86, 0.1);
  --flag-red: #cd212a;
  --flag-red-300: #ef5f6c;
  --ok: #3ec07b;

  /* Surfaces (derived darks) */
  --bg: #0a121c;
  --bg-2: #101d2c;
  --bg-3: #16263a;
  --surface: #152337;
  --surface-2: #1b2d44;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #eef3f9;
  --text-dim: #aab7c7;
  --text-muted: #7f8ea1;

  /* Fonts */
  --font-display: "Anton", "Oswald", sans-serif; /* big display headings (≈ Druk) */
  --font-head: "Oswald", sans-serif; /* sub headings */
  --font-body: "Saira", "Helvetica Neue", Arial, sans-serif; /* body (≈ Transducer) */

  /* Geometry */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1200px;
  --header-h: 72px;

  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-yellow: 0 10px 30px -8px rgba(254, 209, 0, 0.45);
  --shadow-accent: 0 16px 36px -16px rgba(16, 154, 86, 0.55);
  --shadow-depth: 0 18px 36px -16px rgba(0, 0, 0, 0.9), 0 6px 18px -10px rgba(16, 154, 86, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.03);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================ RESET ==================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    repeating-linear-gradient(135deg, rgba(16, 154, 86, 0.04) 0 2px, transparent 2px 22px),
    radial-gradient(1200px 600px at 82% -8%, rgba(16, 154, 86, 0.18), transparent 60%),
    radial-gradient(900px 520px at -10% 4%, rgba(254, 209, 0, 0.07), transparent 55%), var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
table {
  border-collapse: collapse;
  width: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================ LAYOUT =================================== */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ============================ TYPOGRAPHY ============================== */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.05;
  color: var(--pb-white);
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
}
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0.01em;
}
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
p {
  margin: 0 0 1em;
}
strong {
  color: var(--pb-white);
}
.accent {
  color: var(--accent-300);
}

/* ============================ BUTTONS ================================= */
.btn {
  --btn-bg: var(--pb-yellow);
  --btn-fg: #161a10;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  line-height: 1.25;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background 0.18s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}
.btn:active {
  transform: translateY(0);
}
.btn--lg {
  font-size: 1.05rem;
  padding: 1.05em 2.1em;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--pb-white);
  border: 2px solid var(--line-strong);
  padding: 0.72em 1.4em;
}
.btn--ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
  color: var(--accent-300);
}
.btn--teal {
  --btn-bg: var(--pb-teal);
  --btn-fg: #eafdfd;
}
.btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}
/* CTA buttons duplicated inside the mobile dropdown menu — desktop: hidden */
.nav-cta {
  display: none;
}

/* ============================ HEADER ================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 18, 28, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.site-header.is-scrolled {
  background: rgba(8, 14, 22, 0.95);
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.9);
}
/* Italian tricolor hairline under the header */
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #008c45 0 33.4%, #f4f9ff 33.4% 66.7%, var(--flag-red) 66.7% 100%);
  opacity: 0.8;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--pb-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand__logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--pb-yellow);
  color: #101d2c;
  border-radius: 8px;
  font-family: var(--font-display);
  font-style: normal;
}
.brand b {
  color: var(--pb-yellow);
}
.main-nav {
  margin-right: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  color: var(--text-dim);
  padding: 0.55em 0.8em;
  border-radius: 8px;
  transition:
    color 0.15s,
    background 0.15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--pb-white);
  background: rgba(255, 255, 255, 0.06);
}
.main-nav a[aria-current="page"] {
  color: var(--pb-yellow);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  margin-right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}
.lang .flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 10px;
  color: var(--pb-white);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: 0.25s;
}
.nav-toggle span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.nav-toggle span::before {
  left: 0;
  top: -6px;
}
.nav-toggle span::after {
  left: 0;
  top: 6px;
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =========================================================================
   ====================  BODY COMPONENT LIBRARY (unique)  ==================
   ========================================================================= */

/* ---------------------------- Sections -------------------------------- */
.sec {
  padding: clamp(28px, 4vw, 56px) 0 0;
}
.sec--band {
  margin-top: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px) 0;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(8, 116, 62, 0.08), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.sec__head {
  margin-bottom: 30px;
}
.sec--tight {
  padding: clamp(28px, 4vw, 28px) 0 0;
}
.sec__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  color: var(--accent-300);
}
.sec__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}
.sec__title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 16px;
}
.sec__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  /* Italian flag: green | white | red */
  background: linear-gradient(90deg, #008c45 0 33.4%, #f4f9ff 33.4% 66.7%, var(--flag-red) 66.7% 100%);
  box-shadow: 0 0 16px -2px var(--accent-tint);
}
.sec__title + .sec__intro {
  margin-top: 18px;
}
.sec__intro {
  margin: 0;
  max-width: 70ch;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.sec p:last-child,
.sec--band p:last-child {
  margin-bottom: 0;
}

/* ---------------------------- Hero ------------------------------------ */
.lead-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(470px, 48vw, 600px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(820px 460px at 86% 16%, rgba(16, 154, 86, 0.26), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 30px),
    linear-gradient(120deg, #16263a, #0a121c);
}
.lead-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72%;
  z-index: -2;
}
.lead-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(8, 14, 22, 0.62) 0%,
    rgba(8, 14, 22, 0.4) 40%,
    rgba(8, 14, 22, 0.14) 70%,
    rgba(16, 154, 86, 0.08) 100%
  );
}
.lead-hero__inner {
  position: relative;
  max-width: 690px;
}
.lead-hero__title {
  margin: 0.08em 0 0.18em;
}
.lead-hero__desc {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 46ch;
}
.lead-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* rating pill (decorative UI number — gold) */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(254, 209, 0, 0.12);
  border: 1px solid rgba(254, 209, 0, 0.4);
}
.score-pill__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--pb-yellow);
}
.score-pill__stars {
  color: var(--pb-yellow);
  letter-spacing: 2px;
}
.score-pill small {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------------------------- Stat strip ------------------------------ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}
.stat {
  position: relative;
  padding: 20px 20px 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-depth);
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}
.stat__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--pb-white);
  line-height: 1;
}
.stat__label {
  margin-top: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---------------------------- Spec grid (key facts) ------------------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.spec dt {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.spec dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--pb-white);
}

/* ---------------------------- Verdict (pros / cons) ------------------- */
.verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.vcol {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-depth);
}
.vcol--good {
  border-top: 4px solid var(--ok);
}
.vcol--bad {
  border-top: 4px solid var(--flag-red);
}
.vcol h3 {
  margin: 0 0 16px;
}
.vcol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-dim);
}
.vcol li:last-child {
  margin-bottom: 0;
}
.vcol li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.vcol--good li::before {
  content: "✔";
  color: var(--ok);
}
.vcol--bad li::before {
  content: "✕";
  color: var(--flag-red-300);
}

/* ---------------------------- Tiles (cards) --------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tiles--2 {
  grid-template-columns: repeat(2, 1fr);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-depth);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s,
    box-shadow 0.2s;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-tint);
  box-shadow: var(--shadow-accent);
}
.tile__ico {
  font-size: 1.6rem;
  line-height: 1;
}
.tile h3 {
  margin: 0;
}
.tile p {
  margin: 0;
  color: var(--text-dim);
}
.tile .btn {
  margin-top: auto;
}

/* ---------------------------- Promo banner ---------------------------- */
.promo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 250px;
  margin-bottom: 1.5em;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(
    115deg,
    rgba(8, 116, 62, 0.42) 0%,
    rgba(16, 29, 44, 0.6) 52%,
    rgba(16, 29, 44, 0.88) 100%
  );
  box-shadow: var(--shadow-depth);
}
.promo__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: -1;
}
.promo__body {
  padding: clamp(22px, 3.5vw, 42px);
  max-width: 62ch;
}
.promo__body h3 {
  margin: 0 0 0.35em;
}
.promo__body p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------------------------- Section banner -------------------------- */
.banner {
  position: relative;
  height: clamp(150px, 18vw, 240px);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 6px 0 28px;
  background:
    radial-gradient(500px 200px at 80% 30%, rgba(8, 116, 62, 0.18), transparent 60%),
    linear-gradient(120deg, #16263a, #0a121c);
}
.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------------------------- Game cards ------------------------------ */
/* it-IT: 8 cards → 4 columns (2 even rows), wider cards than the 6-col baseline */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.game-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-tint);
}
.game-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #1b2d44, #0a121c);
}
.game-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card__media span {
  padding: 0 10px;
  text-align: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.game-card__name {
  padding: 10px 12px;
}
.game-card__name b {
  display: block;
  color: var(--pb-white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  line-height: 1.2;
}
.game-card__name span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ---------------------------- Chips (logos) --------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips--center {
  justify-content: center;
}
.chip {
  height: 44px;
  min-width: 92px;
  padding: 0 16px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition:
    color 0.15s,
    border-color 0.15s,
    transform 0.15s var(--ease);
}
.chip:hover {
  color: var(--pb-white);
  border-color: var(--accent-tint);
  transform: translateY(-2px);
}

/* ---------------------------- Tables ---------------------------------- */
.tbl-scroll {
  overflow-x: auto;
  margin-bottom: 1.25em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-depth);
  -webkit-overflow-scrolling: touch;
}
table.tbl {
  min-width: 860px;
}
table.tbl--wide {
  min-width: 860px;
}
/* narrow 2-col tables inside .cols-2 (app requisiti) — no horizontal scroll on desktop;
   on mobile (stacked columns) the min-width returns so .tbl-scroll can scroll */
table.tbl--fit {
  min-width: 0;
}
@media (max-width: 680px) {
  table.tbl--fit {
    min-width: 560px;
  }
}
.tbl caption {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-style: italic;
  text-transform: uppercase;
  color: var(--accent-300);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.tbl th,
.tbl td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}
.tbl thead th {
  position: sticky;
  top: 0;
  background: var(--bg-3);
  color: var(--pb-white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  border-bottom: 2px solid var(--accent);
}
.tbl tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}
.tbl tbody tr:hover {
  background: var(--accent-soft);
}
.tbl td:first-child {
  color: var(--pb-white);
  font-weight: 600;
}
.tbl--kv td:first-child {
  width: 40%;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------------------------- Flow (steps) ---------------------------- */
.flow {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 0 0 1.25em;
  padding: 0;
  list-style: none;
}
.flow li {
  position: relative;
  padding: 16px 18px 16px 72px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  color: var(--text-dim);
  transition: border-color 0.15s, transform 0.15s var(--ease);
}
.flow li:hover {
  border-left-color: var(--accent-300);
  transform: translateX(2px);
}
.flow li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  margin-top: -19px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  line-height: 1;
  background: radial-gradient(circle at 35% 30%, #ffe35c, var(--pb-yellow) 45%, var(--pb-yellow-600));
  color: #101d2c;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.1rem;
  box-shadow: 0 0 0 3px rgba(16, 154, 86, 0.4), 0 5px 14px -3px rgba(0, 0, 0, 0.55);
}

/* ---------------------------- Lists ----------------------------------- */
.checklist,
.dashlist {
  margin: 0 0 1.2em;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-dim);
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-300);
}
.dashlist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-dim);
}
.dashlist li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent);
}

/* ---------------------------- Callout --------------------------------- */
.callout {
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-tint);
  border-left: 4px solid var(--accent);
  color: var(--text-dim);
}
.callout--warn {
  background: rgba(254, 209, 0, 0.1);
  border-color: rgba(254, 209, 0, 0.4);
  border-left-color: var(--pb-yellow);
}
.disclaimer {
  margin-top: 14px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ---------------------------- Verdict card (summary) ------------------ */
.verdict-card {
  position: relative;
  padding: clamp(28px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--accent-tint);
  box-shadow: var(--shadow-depth);
}
.verdict-card__sign {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.verdict-card__sign b {
  color: var(--pb-white);
}

/* ---------------------------- CTA strip ------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(254, 209, 0, 0.55);
  background: linear-gradient(135deg, var(--pb-yellow) -8%, var(--pb-yellow-600) 62%, #c9a600 115%);
  box-shadow: var(--shadow-yellow);
  color: #101d2c;
}
.cta h2 {
  margin-bottom: 0.2em;
  color: #101d2c;
}
.cta p {
  margin-inline: auto;
  max-width: 62ch;
  color: rgba(16, 29, 44, 0.86);
}
.cta .disclaimer {
  color: rgba(16, 29, 44, 0.7);
}
/* dark buttons on the gold strip */
.cta .btn {
  --btn-bg: #101d2c;
  --btn-fg: #ffffff;
}
.cta .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #101d2c;
  border-color: rgba(16, 29, 44, 0.45);
}
.cta .btn--ghost:hover {
  border-color: #101d2c;
  color: #101d2c;
}
.cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

/* ---------------------------- Accordion (FAQ) ------------------------- */
.accordion {
  display: grid;
  gap: 12px;
}
.accordion__item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s;
}
.accordion__item.is-open {
  border-color: var(--accent-tint);
}
.accordion__q {
  width: 100%;
  position: relative;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--pb-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 18px 58px 18px 20px;
}
.accordion__q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  margin-top: -13px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 1.5rem;
  color: var(--accent-300);
  transition: transform 0.25s;
}
.accordion__item.is-open .accordion__q::after {
  transform: rotate(45deg);
}
.accordion__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.accordion__a-inner {
  padding: 0 20px 18px;
  color: var(--text-dim);
}

/* ---------------------------- Breadcrumb ------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--accent-300);
}
.breadcrumb span[aria-current] {
  color: var(--accent-300);
}

/* ---------------------------- Helpers --------------------------------- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.cols-2 > * {
  min-width: 0;
}
/* featured side image (registrazione / live) — image column stretches */
.cols-2--media-first,
.cols-2--media-last {
  align-items: stretch;
  gap: 28px;
}
.featured {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-depth);
}
.stack > * + * {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.center {
  text-align: center;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pb-yellow);
  color: #101d2c;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------------------------- Back to top ----------------------------- */
.backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--pb-yellow);
  color: #101d2c;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s var(--ease);
}
.backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================ FOOTER ============================== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: 48px;
  margin-top: 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer__grid h4 {
  color: var(--pb-white);
  margin-bottom: 14px;
}
.footer__links li {
  margin-bottom: 10px;
}
.footer__links a {
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer__links a:hover {
  color: var(--accent-300);
}
.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pay {
  height: 34px;
  min-width: 54px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: default;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s,
    transform 0.15s var(--ease);
}
.pay:hover {
  color: var(--accent-300);
  border-color: var(--accent-tint);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 22px 0;
}
.badge-18 {
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--flag-red);
  color: var(--flag-red-300);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
}
.footer__bottom small {
  color: var(--text-muted);
}
.footer__disclaimer {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 80ch;
  margin-top: 8px;
}

/* ============================ RESPONSIVE ========================== */
@media (max-width: 992px) {
  :root {
    --header-h: 64px;
  }
  /* header */
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(8, 14, 22, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
    margin: 0;
  }
  .main-nav.is-open {
    max-height: 70vh;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 22px 16px 26px;
  }
  .main-nav a {
    padding: 6px 14px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
  }
  .nav-toggle {
    display: block;
    position: relative;
  }
  .header__actions {
    margin-left: auto;
  }
  .header__actions .btn {
    display: none;
  }
  .header__actions .lang {
    margin-left: 0;
  }
  /* CTA buttons shown inside the open mobile menu, centered */
  .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 16px 26px;
  }
  .nav-cta .btn {
    min-width: 138px;
    justify-content: center;
    text-align: center;
  }
  /* filled button: black text + reserve a transparent border so hover border doesn't shift it */
  .nav-cta .btn:not(.btn--ghost) {
    border: 2px solid transparent;
    color: #000;
  }
  /* no lift animation on hover for menu buttons */
  .nav-cta .btn:hover {
    transform: none;
    box-shadow: none;
  }
  /* ghost button keeps desktop behavior (border + accent text on hover) */
  .nav-cta .btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-300);
  }
  /* last (filled) button: black text; hover → transparent bg, gold border, white text */
  .nav-cta .btn:not(.btn--ghost):hover {
    background: transparent;
    border-color: var(--pb-yellow);
    color: #fff;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  /* components */
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 850px) {
  .promo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(8, 14, 22, 0.28) 0%, rgba(8, 14, 22, 0.55) 100%);
  }
  .promo__body {
    position: relative;
    z-index: 1;
  }
}
/* Vertical dark hero overlay for tablet & phone (text stacks full-width) */
@media (max-width: 1050px) {
  .lead-hero::before {
    background: linear-gradient(
      180deg,
      rgba(8, 14, 22, 0.42) 0%,
      rgba(8, 14, 22, 0.74) 66%,
      rgba(8, 14, 22, 0.9) 100%
    );
  }
}
@media (max-width: 680px) {
  .lead-hero {
    min-height: 430px;
  }
  .verdict,
  .cols-2 {
    grid-template-columns: 1fr;
  }
  .tiles,
  .tiles--2 {
    grid-template-columns: 1fr;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured {
    min-height: 220px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  /* footer centered on mobile (§5a p.11 — same structure/classes) */
  .site-footer {
    text-align: center;
  }
  .footer__grid h4 {
    text-align: center;
  }
  .footer__grid .brand {
    justify-content: center;
  }
  .footer__disclaimer {
    margin-inline: auto;
  }
  .pay-row {
    justify-content: center;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__bottom > div {
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .lead-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .lead-hero__cta .btn {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
