/* ===== Pistolo Casinò Italia — Satellite · UI/UX 2026 ===== */
:root {
  --bg-primary: #151c5c;
  --bg-hero: #1a2378;
  --bg-surface: rgba(255, 255, 255, 0.06);
  --bg-surface-hover: rgba(255, 255, 255, 0.09);
  --accent-orange: #f59e0b;
  --accent-yellow: #fcd34d;
  --cta-green: #10b981;
  --cta-green-hover: #059669;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --border-light: rgba(255, 255, 255, 0.14);
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.22);
  --max-width: 1200px;
  --header-height: 64px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-white);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-yellow); outline-offset: 2px; }

/* SVG sprite (nascosto) */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* Icone: uso con <svg class="icon"><use href="#icon-*"/></svg> */
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 20px; height: 20px; }
.icon-menu, .icon-close { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.app-btn-icon { color: inherit; }
.app-google .app-btn-icon { color: #00c853; }
.app-apple .app-btn-icon { color: #fff; }

/* Skip link (accessibilità) */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--accent-yellow);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ----- Header (glass 2026) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(21, 28, 92, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.logo-text { color: var(--accent-yellow); }
.logo-o { color: var(--accent-orange); }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-toggle:hover { background: var(--bg-surface-hover); color: var(--accent-yellow); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent-yellow); outline-offset: 2px; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(21, 28, 92, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.nav-list[hidden] { display: none; }
.nav-list li { border-bottom: 1px solid var(--border-light); }
.nav-list li:last-child { border-bottom: none; }
.nav-list a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
}
.nav-list a:hover { color: var(--accent-yellow); }
.header-actions { display: flex; gap: 0.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-white);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--bg-surface-hover); border-color: rgba(255, 255, 255, 0.25); }
.btn:active { transform: scale(0.98); }
.btn-cta {
  background: var(--cta-green);
  border-color: var(--cta-green);
  color: var(--text-white);
  padding: 0.875rem 1.75rem;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover { background: var(--cta-green-hover); border-color: var(--cta-green-hover); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35); }
.btn-cta .icon { margin-left: 0.15rem; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--bg-hero) 0%, #252d8f 35%, #1a2270 70%, #151c5c 100%);
}
.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 20%, rgba(252, 211, 77, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(252, 211, 77, 0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
}
.hero-brand {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-bonus-wrap {
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero-bonus {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-yellow);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}
.hero-bonus-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  background: rgba(252, 211, 77, 0.18);
  color: var(--accent-yellow);
  border-radius: var(--radius-full);
  border: 1px solid rgba(252, 211, 77, 0.35);
}
.hero-content .btn-cta { min-width: 220px; }
.hero-trust {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust .icon { color: var(--accent-yellow); opacity: 0.9; }

/* ----- Sections common ----- */
section { padding: 2.5rem 1.25rem; }
.section-title {
  margin: 0 0 1.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

/* ----- Games ----- */
.games { background: rgba(0, 0, 0, 0.12); }
.games-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.game-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.game-card:hover { border-color: rgba(252, 211, 77, 0.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.game-card-link {
  display: block;
  color: inherit;
}
.game-card-link:focus-visible { outline-offset: 2px; }
.game-card-image {
  aspect-ratio: 3 / 4;
  display: block;
  background: linear-gradient(180deg, rgba(45, 58, 158, 0.5) 0%, rgba(26, 35, 120, 0.7) 100%);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card:hover .game-card-image { background: linear-gradient(180deg, rgba(45, 58, 158, 0.4) 0%, rgba(26, 35, 120, 0.6) 100%); }
.game-card-cta {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--cta-green);
  color: var(--text-white);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity 0.25s;
  box-shadow: var(--shadow-sm);
}
.game-card:hover .game-card-cta { opacity: 1; }
.game-card-title {
  margin: 0;
  padding: 0.875rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* ----- Apps ----- */
.apps { text-align: center; }
.apps-lead { margin: 0 0 1.5rem; color: var(--text-muted); max-width: 480px; margin-left: auto; margin-right: auto; }
.apps-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0 1.5rem 0 1.25rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  background: rgba(26, 26, 26, 0.95);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.app-btn:hover { background: rgba(40, 40, 40, 0.98); transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.28); box-shadow: var(--shadow); }
.app-btn-icon { flex-shrink: 0; }
.app-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.app-btn-small { font-size: 0.7rem; font-weight: 500; opacity: 0.88; }

/* ----- Features ----- */
.features { background: rgba(0, 0, 0, 0.12); }
.features-list {
  max-width: 560px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.features-list li {
  padding: 0.75rem 0;
  padding-left: 3rem;
  position: relative;
  color: var(--text-muted);
}
.feature-icon {
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 24px;
  height: 24px;
  padding: 0.35rem;
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.15);
  color: var(--cta-green);
  flex-shrink: 0;
}
.features-list li::before { display: none; }

/* ----- SEO content block: stili SOLO tramite selettori, nessuna classe nel markup interno ----- */
.seo-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.seo-toc {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.seo-toc-title { margin: 0 0 0.75rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-yellow); display: flex; align-items: center; gap: 0.5rem; }
.seo-toc-title .icon { color: var(--accent-yellow); }
.seo-toc ul { margin: 0; padding-left: 1.25rem; list-style: none; }
.seo-toc ul li { margin-bottom: 0.35rem; }
.seo-toc a { color: var(--text-muted); }
.seo-toc a:hover { color: var(--accent-yellow); }
.seo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.seo-table-wrap table { margin: 0; min-width: 480px; }
/* Адаптив: картковий вигляд на вузьких екранах */
@media (max-width: 640px) {
  .seo-table-wrap { overflow-x: visible; }
  .seo-table-wrap table { min-width: 0; width: 100%; display: block; }
  .seo-content .seo-table-wrap thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .seo-content .seo-table-wrap tbody { display: block; }
  .seo-content .seo-table-wrap tr { display: block; margin-bottom: 1rem; padding: 1rem; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius); border: 1px solid var(--border-light); }
  .seo-content .seo-table-wrap tr:last-child { margin-bottom: 0; }
  .seo-content .seo-table-wrap td { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
  .seo-content .seo-table-wrap td:last-child { border-bottom: none; padding-bottom: 0; }
  .seo-content .seo-table-wrap td::before { content: attr(data-label); font-weight: 600; color: var(--accent-yellow); flex-shrink: 0; }
  .seo-content .seo-table-wrap td:last-child::after { display: none; }
}
.seo-faq { margin: 1.5rem 0; color: var(--text-muted); }
.seo-faq dt {
  font-weight: 600;
  color: var(--text-white);
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent-orange);
}
.seo-faq dt:first-child { margin-top: 0; }
.seo-faq dd { margin: 0.5rem 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); line-height: 1.6; }
.seo-faq dd:last-of-type { border-bottom: none; }
.seo-content h1 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}
.seo-content h2 {
  margin: 2rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
}
.seo-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-yellow);
}
.seo-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.seo-content ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.seo-content ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.seo-content ul li::marker { color: var(--accent-orange); }
.seo-content ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  list-style-type: decimal;
}
.seo-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.seo-content ol li::marker { color: var(--cta-green); font-weight: 700; }
.seo-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
}
.seo-content thead { background: rgba(245, 158, 11, 0.2); }
.seo-content th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-yellow);
  border-bottom: 2px solid var(--accent-orange);
}
.seo-content td {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.seo-content tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.seo-content tbody tr:last-child td { border-bottom: none; }

/* ----- Footer ----- */
.site-footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-top { margin-bottom: 1.25rem; }
.footer-brand { margin: 0 0 0.75rem; font-weight: 700; font-size: 1.1rem; color: var(--accent-yellow); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-nav a { font-size: 0.9rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-nav a:hover { color: var(--accent-yellow); }
.footer-nav .icon { opacity: 0.8; }
.footer-legal, .footer-copy { margin: 0.25rem 0; font-size: 0.85rem; color: var(--text-muted); }

/* ===== Desktop (768px+) ===== */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-list {
    position: static;
    flex-direction: row;
    border: none;
    padding: 0;
    gap: 0.25rem;
    display: flex;
  }
  .nav-list[hidden] { display: flex !important; }
  .nav-list li { border-bottom: none; }
  .nav-list a { padding: 0.5rem 0.75rem; }
  .header-inner { padding: 1rem 1.5rem; }
  .hero { min-height: 380px; padding: 3rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-bonus { font-size: 2.25rem; }
  .hero-trust { font-size: 0.85rem; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .section-title { font-size: 1.75rem; }
  .features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }
  .footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; }
  .footer-inner { text-align: left; }
  .footer-nav { justify-content: flex-end; }
  .footer-legal, .footer-copy { text-align: center; }
  .seo-content { padding: 2.5rem 2rem 3rem; }
  .seo-content h2 { font-size: 1.75rem; }
  .seo-toc { display: inline-block; }
}

/* ===== Large (1024px+) ===== */
@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-bonus { font-size: 2.5rem; }
}

/* ===== LCP / CLS: riservare spazio per contenuti critici ----- */
.hero-content { contain: layout style; }
.game-card-image { contain: strict; }
