/* ════════════════════════════════════════════════════════════════════════════
   CASEA CASINO ITALIA — OFFICIAL DESIGN SYSTEM & CLASS CONTRACT
   Palette: Deep Midnight Obsidian (#0B0F19), Regal Gold (#D4AF37),
            Warm Amber (#F5A623), Cyber Ice (#00E5FF), Card Indigo (#141B2D)
   Typography: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif
   Zero Cross-Site Footprints & 100% Mobile Responsive
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #0b0f19;
  --bg-surface: #141b2d;
  --bg-surface-elevated: #1b243b;
  --bg-glass: rgba(20, 27, 45, 0.85);
  
  --gold-primary: #d4af37;
  --gold-light: #f3cf65;
  --gold-dark: #aa8620;
  --gold-gradient: linear-gradient(135deg, #f3cf65 0%, #d4af37 50%, #aa8620 100%);
  
  --accent-cyan: #00e5ff;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-crimson: #ef4444;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(212, 175, 55, 0.2);
  --border-strong: rgba(212, 175, 55, 0.45);
  --border-dark: rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #172138 0%, #0b0f19 75%);
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #ffffff;
}

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

/* ───────────────────────────────────────────────────────────────────────────
   TOP COMPLIANCE BANNER
   ─────────────────────────────────────────────────────────────────────────── */
.compliance-top-banner {
  background: #07090f;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
  letter-spacing: 0.3px;
}
.compliance-top-banner strong {
  color: var(--accent-amber);
}

/* ───────────────────────────────────────────────────────────────────────────
   SITE HEADER & NAVIGATION
   ─────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
}

.logo-bolt {
  color: var(--gold-primary);
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.main-nav {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: #0b0f19;
  background: var(--gold-gradient);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ───────────────────────────────────────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b0f19 !important;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
  color: #000000 !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   BREADCRUMBS
   ─────────────────────────────────────────────────────────────────────────── */
.breadcrumb-nav {
  max-width: 1240px;
  margin: 14px auto 0;
  padding: 0 20px;
  width: 100%;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.breadcrumb-item a {
  color: var(--text-muted);
}
.breadcrumb-item a:hover {
  color: var(--gold-light);
}

.breadcrumb-separator {
  color: var(--text-dim);
  font-size: 0.75rem;
  user-select: none;
}

.breadcrumb-item span[aria-current="page"] {
  color: var(--gold-primary);
  font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────────────────
   LAYOUT CONTAINERS
   ─────────────────────────────────────────────────────────────────────────── */
.pillar-container,
.cluster-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
  flex: 1;
}

.content-block {
  margin-top: 36px;
}

/* ───────────────────────────────────────────────────────────────────────────
   HERO SECTIONS
   ─────────────────────────────────────────────────────────────────────────── */
.hero-section,
.cluster-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(15, 21, 35, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.cluster-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content,
.cluster-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  width: fit-content;
  text-transform: uppercase;
}

/* STRICT H1 ONLY PRIMARY FOCUS KEYWORD */
h1 {
  font-size: 2.3rem;
  line-height: 1.18;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* DIRECT ANSWER / HERO SUMMARY BLOCK */
.hero-summary {
  background: rgba(11, 15, 25, 0.7);
  border-left: 4px solid var(--gold-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.hero-summary strong {
  color: var(--gold-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-media,
.cluster-hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.hero-media figure,
.cluster-hero-media figure {
  margin: 0;
}

.hero-media figcaption,
.cluster-hero-media figcaption {
  background: rgba(11, 15, 25, 0.9);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 8px 12px;
  text-align: center;
  border-top: 1px solid var(--border-dark);
}

/* ───────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY & CONTENT HEADINGS
   ─────────────────────────────────────────────────────────────────────────── */
h2 {
  font-size: 1.65rem;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  color: var(--text-main);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

time {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ───────────────────────────────────────────────────────────────────────────
   QUICK FACTS & SPECIFICATIONS (<dl>)
   ─────────────────────────────────────────────────────────────────────────── */
.quick-facts-section {
  margin-top: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.fact-item {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.fact-item dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.fact-item dd {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* ───────────────────────────────────────────────────────────────────────────
   DATA TABLES (<table>)
   ─────────────────────────────────────────────────────────────────────────── */
.comparison-table-wrapper {
  margin-top: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

table.data-table caption {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  padding: 14px 20px;
  text-align: left;
  background: rgba(11, 15, 25, 0.4);
  border-bottom: 1px solid var(--border-dark);
}

table.data-table th {
  background: rgba(11, 15, 25, 0.85);
  color: var(--gold-light);
  font-weight: 700;
  padding: 12px 18px;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

table.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-main);
}

table.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ───────────────────────────────────────────────────────────────────────────
   EDGE CASE BOXES (GIST ANTI-LOCKOUT)
   ─────────────────────────────────────────────────────────────────────────── */
.edge-case-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(20, 27, 45, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 28px;
}

.edge-case-box h3 {
  color: var(--accent-amber);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edge-case-box p {
  color: #e2e8f0;
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   SEMANTIC BRIDGES (IN-CONTENT LINKS)
   ─────────────────────────────────────────────────────────────────────────── */
.bridge-container {
  background: rgba(20, 27, 45, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bridge-container p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-weight: 500;
}

.bridge-container .btn {
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────────────────────────────────
   INTERACTIVE WAGERING CALCULATOR
   ─────────────────────────────────────────────────────────────────────────── */
.widget-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 32px;
  box-shadow: var(--shadow-md);
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-row input,
.calc-row select {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.calc-row input:focus,
.calc-row select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.calc-result {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-item span {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.result-item strong {
  font-size: 1.35rem;
  color: #ffffff;
}

.result-item.highlight strong {
  color: var(--gold-light);
}

/* ───────────────────────────────────────────────────────────────────────────
   STEP CARDS & CHECKLISTS
   ─────────────────────────────────────────────────────────────────────────── */
.install-steps-grid,
.checklist-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.step-card,
.checklist-card,
.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step-card:hover,
.checklist-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-subtle);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0b0f19;
  font-weight: 800;
  font-size: 1.1rem;
}

.step-card h3,
.checklist-card h3,
.tool-card h3 {
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 1.15rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   FAQ ACCORDIONS (ALWAYS OPEN WITH <details open>)
   ─────────────────────────────────────────────────────────────────────────── */
.faq-section {
  margin-top: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-subtle);
}

.faq-item summary {
  padding: 16px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 15, 25, 0.4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▾";
  font-size: 1.2rem;
  color: var(--gold-primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 18px 22px;
  border-top: 1px solid var(--border-dark);
  background: rgba(11, 15, 25, 0.2);
  color: var(--text-main);
  line-height: 1.65;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────────────────────────────────
   SITE FOOTER
   ─────────────────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: #07090f;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 20px 80px; /* bottom padding for mobile sticky CTA */
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-logo a {
  font-size: 1.35rem;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links-col,
.footer-compliance-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col h4,
.footer-compliance-col h4 {
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col a {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.footer-links-col a:hover {
  color: #ffffff;
}

.footer-compliance-col p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.footer-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ───────────────────────────────────────────────────────────────────────────
   STICKY MOBILE CTA BAR
   ─────────────────────────────────────────────────────────────────────────── */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

.sticky-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sticky-text {
  display: flex;
  flex-direction: column;
}

.sticky-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.sticky-sub {
  font-size: 0.75rem;
  color: var(--gold-light);
}

/* ───────────────────────────────────────────────────────────────────────────
   RESPONSIVE MEDIA QUERIES
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-section,
  .cluster-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.85rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .header-inner {
    padding: 10px 14px;
  }
  
  .brand-logo a {
    font-size: 1.25rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .pillar-container,
  .cluster-container {
    padding: 16px 14px 70px;
  }
}
