/* ============================================================
   MIGLIORI NON AAMS — Custom Static Theme v1.0
   Italian flag dark editorial · Custom-designed casino review site
   ============================================================ */

:root {
  --bg: #0a0e1c;
  --bg-2: #0e1429;
  --bg-3: #121b35;
  --card: #1a2342;
  --card-hover: #233057;
  --card-bright: #2a3768;
  --green: #009246;
  --green-bright: #1cc972;
  --green-deep: #15803d;
  --white-i: #f4f5f0;
  --red: #ce2b37;
  --red-soft: #ef4444;
  --gold: #ffd966;
  --gold-deep: #f59e0b;
  --gold-soft: #fef3c7;
  --text: #e6eaf2;
  --text-dim: #a8b3c7;
  --muted: #7a8499;
  --link: #5db8ff;
  --link-hover: #93c5fd;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,215,102,0.22);
  --border-bright: rgba(255,215,102,0.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 8px 28px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 40px rgba(255,215,102,0.15);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; }

/* ── HEADER ── */
.site-header {
  background: linear-gradient(135deg, #0b1224 0%, #1a2342 60%, #0b1224 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--green) 0%, var(--white-i) 50%, var(--red) 100%) 1;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 28px rgba(0,0,0,0.5);
}
.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.flag-bar {
  display: flex;
  width: 8px;
  height: 36px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.flag-bar span { display: block; width: 100%; height: 33.33%; }
.flag-bar span:nth-child(1) { background: var(--green); }
.flag-bar span:nth-child(2) { background: var(--white-i); }
.flag-bar span:nth-child(3) { background: var(--red); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .top {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 1.6px;
}
.logo-text .sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1.3px;
  font-weight: 700;
  margin-top: 4px;
}

.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  position: relative;
  white-space: nowrap;
}
.primary-nav a:hover { background: rgba(255,215,102,0.1); color: var(--gold); }
.primary-nav a.current { color: var(--gold); }
.primary-nav a.current::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  border-radius: 2px;
}

.cta-pill {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(34,197,94,0.35);
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(34,197,94,0.5);
  color: #fff !important;
}

.mobile-toggle {
  display: none;
  background: rgba(255,215,102,0.1);
  border: 1px solid rgba(255,215,102,0.3);
  color: var(--gold);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
}

/* ── MAIN ── */
.site-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  flex: 1;
  width: 100%;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--link); }
.breadcrumb .sep { margin: 0 6px; color: var(--muted); }

/* ── HERO ── */
.hero { margin-bottom: 48px; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
  background: linear-gradient(90deg, #fff 0%, var(--gold) 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--shadow-glow);
}
.hero-byline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255,215,102,0.06);
  border: 1px solid rgba(255,215,102,0.2);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-byline strong { color: var(--gold); }
.hero-byline .dot { color: var(--muted); }
.hero-lead {
  font-size: 18px;
  line-height: 1.75;
  color: #d8deea;
  max-width: 900px;
  margin-bottom: 20px;
}

/* ── HEADINGS ── */
.site-main h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--white-i);
  margin: 56px 0 24px;
  padding: 6px 0 6px 24px;
  position: relative;
}
.site-main h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green), var(--gold), var(--red));
}
.site-main h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--gold);
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 32px 0 14px;
  font-weight: 600;
}
.site-main h4 {
  color: var(--green-bright);
  font-size: 18px;
  margin: 24px 0 10px;
  font-weight: 600;
}
.site-main p { margin: 0 0 18px; color: var(--text); }
.site-main strong, .site-main b { color: var(--gold); font-weight: 600; }
.site-main em { color: var(--green-bright); font-style: italic; }
.site-main a:not(.btn):not(.cta-pill) {
  text-decoration: underline;
  text-decoration-color: rgba(93,184,255,0.4);
  text-underline-offset: 3px;
}
.site-main a:not(.btn):not(.cta-pill):hover {
  text-decoration-color: var(--gold);
}

/* ── LISTS ── */
.site-main ul, .site-main ol { padding-left: 28px; margin: 14px 0 22px; }
.site-main li { margin-bottom: 10px; color: var(--text); }
.site-main ul li::marker { color: var(--green-bright); font-size: 1.15em; }
.site-main ol li::marker { color: var(--gold); font-weight: 700; }

/* ── TOP 10 TABLE ── */
.top10-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: linear-gradient(135deg, rgba(26,35,66,0.95), rgba(18,27,53,0.95));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
  font-size: 15px;
}
.top10-table thead {
  background: linear-gradient(90deg, rgba(255,215,102,0.1), rgba(0,146,70,0.08));
}
.top10-table th {
  padding: 18px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.top10-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.top10-table tbody tr { transition: background 0.15s; }
.top10-table tbody tr:hover { background: rgba(255,215,102,0.05); }
.top10-table tbody tr:last-child td { border-bottom: none; }
.top10-table .rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  width: 60px;
}
.top10-table .op-cell { display: flex; align-items: center; gap: 14px; }
.top10-table .op-logo {
  width: 84px;
  height: 48px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  object-fit: contain;
}
.top10-table .op-name { font-weight: 700; color: var(--white-i); }
.top10-table .op-name small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; }
.top10-table .score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1a1a;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}

/* ── OPERATOR CARDS ── */
.operator-card {
  display: grid;
  grid-template-columns: 160px 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(26,35,66,0.95), rgba(35,48,87,0.95));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 18px 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.operator-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-lg);
}
.operator-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--white-i), var(--red));
}
.op-logo-big {
  width: 160px;
  height: 100px;
  object-fit: contain;
  background: linear-gradient(135deg, #fff, #f5f5f5);
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.op-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--gold);
}
.op-info p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-dim); }
.op-info .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.op-info .meta .badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
}
.op-bonus {
  background: rgba(255,215,102,0.06);
  border: 1px solid rgba(255,215,102,0.2);
  border-radius: 12px;
  padding: 14px 16px;
}
.op-bonus .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.op-bonus .amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--white-i);
  line-height: 1.2;
}
.op-bonus .spins {
  font-size: 14px;
  color: var(--green-bright);
  font-weight: 600;
  margin-top: 4px;
}

/* ── CTA BUTTONS ── */
.btn,
a.gioca-ora,
.op-cta {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(34,197,94,0.4);
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.btn:hover, a.gioca-ora:hover, .op-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34,197,94,0.6);
  color: #fff !important;
}
.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  color: var(--gold) !important;
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(255,215,102,0.1);
  border-color: var(--border-bright);
  color: var(--gold) !important;
}

/* ── FAQ ── */
.faq details {
  background: rgba(26,35,66,0.7);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 10px 0;
  cursor: pointer;
  transition: all 0.2s;
}
.faq details:hover { border-color: var(--border-bright); }
.faq details[open] { background: rgba(35,48,87,0.85); border-color: var(--gold); }
.faq summary {
  font-weight: 600;
  color: var(--gold);
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -2px;
  font-size: 26px;
  color: var(--green-bright);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; color: var(--gold); }
.faq details p { margin-top: 14px; color: var(--text-dim); }

/* ── CALLOUT ── */
.callout {
  background: linear-gradient(135deg, rgba(0,146,70,0.12), rgba(206,43,55,0.06));
  border: 1px solid rgba(255,215,102,0.25);
  border-left: 4px solid var(--gold);
  padding: 22px 28px;
  border-radius: 14px;
  margin: 32px 0;
}
.callout strong { color: var(--gold); }

/* ── PROS / CONS ── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.pros-cons .pros, .pros-cons .cons {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.pros-cons .pros { border-left: 4px solid var(--green-bright); }
.pros-cons .cons { border-left: 4px solid var(--red); }
.pros-cons h4 { margin: 0 0 12px; }
.pros-cons ul { list-style: none; padding-left: 0; }
.pros-cons .pros li::before { content: "✓ "; color: var(--green-bright); font-weight: 700; margin-right: 6px; }
.pros-cons .cons li::before { content: "✗ "; color: var(--red); font-weight: 700; margin-right: 6px; }

/* ── LICENSE GRID ── */
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  padding: 24px;
  border-radius: 16px;
  margin: 32px 0;
}
.license-grid figure { margin: 0; text-align: center; }
.license-grid img {
  width: 100%;
  max-width: 140px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin: 0 auto;
}
.license-grid figcaption {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  font-weight: 500;
}

/* ── TABLES (generic) ── */
.site-main table:not(.top10-table) {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-size: 14.5px;
}
.site-main table:not(.top10-table) thead { background: var(--card-hover); }
.site-main table:not(.top10-table) th {
  padding: 14px 16px;
  text-align: left;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}
.site-main table:not(.top10-table) td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.site-main table:not(.top10-table) tbody tr:hover { background: rgba(255,215,102,0.04); }

/* ── AFFILIATE DISCLOSURE ── */
.affiliate-disclosure {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 40px 0;
  font-size: 14px;
  line-height: 1.7;
}
.affiliate-disclosure h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
}

/* ── INLINE IMAGES (constrained) ── */
.site-main figure { margin: 28px 0; text-align: center; }
.site-main figure img {
  max-width: 240px;
  max-height: 140px;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
}
.site-main figcaption { color: var(--text-dim); font-size: 13.5px; margin-top: 10px; font-style: italic; }
.site-main p img {
  max-width: 200px;
  max-height: 100px;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  margin: 8px;
  vertical-align: middle;
}

/* ── FOOTER ── */
.site-footer {
  background: linear-gradient(180deg, #070b16 0%, #030610 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--white-i), var(--red)) 1;
  margin-top: auto;
  padding: 56px 24px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.site-footer h4 {
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--gold); }
.site-footer p { color: var(--text-dim); line-height: 1.7; margin-bottom: 10px; }

.rg-box {
  background: rgba(206,43,55,0.08);
  border: 1px solid rgba(206,43,55,0.3);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.65;
}
.rg-box strong { color: var(--gold); display: block; margin-bottom: 6px; }
.rg-box .phone {
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: block;
  margin: 6px 0;
}

.footer-bottom {
  background: #02050d;
  margin: 48px -24px 0;
  padding: 22px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer-bottom strong { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .site-header-inner { padding: 12px 16px; }
  .primary-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .primary-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 2px solid var(--gold);
    padding: 12px 16px;
    gap: 0;
  }
  .primary-nav.open a {
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
  }
  .cta-pill { display: none; }
  .site-main { padding: 24px 16px 60px; }
  .hero h1 { font-size: 28px; margin-top: 8px; }
  .hero-lead { font-size: 15.5px; }
  .site-main h2 { font-size: 22px; margin-top: 40px; padding-left: 18px; }
  .site-main h3 { font-size: 18px; }
  .operator-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
    text-align: center;
  }
  .op-logo-big { margin: 0 auto; width: 140px; height: 90px; }
  .op-bonus { width: 100%; }
  .pros-cons { grid-template-columns: 1fr; }
  .top10-table { font-size: 13px; }
  .top10-table th, .top10-table td { padding: 10px 8px; }
  .top10-table .op-cell { flex-direction: column; gap: 6px; align-items: flex-start; }
  .top10-table .op-logo { width: 70px; height: 38px; }
  .top10-table .rank { font-size: 18px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .license-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── PRINT ── */
@media print {
  .site-header, .site-footer, .btn, a.gioca-ora { display: none; }
  body { background: #fff; color: #000; }
}
