/* === CSS VARIABLES — Bandiera Italiana iGaming Theme === */
:root {
  --green:   #009246;
  --red:     #CE2B37;
  --white:   #FFFFFF;
  --gold:    #D4AF37;
  --dark:    #0D0D0D;
  --dark2:   #141414;
  --dark3:   #1C1C1C;
  --dark4:   #242424;
  --text:    #E8E8E8;
  --muted:   #9A9A9A;
  --border:  rgba(255,255,255,0.08);
  --card-bg: #181818;
  --radius:  10px;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Lato', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--green);
  padding: 0 20px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

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

.header-logo img {
  height: 40px;
  width: auto;
}

.header-logo span {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--white);
}

.header-logo span em {
  color: var(--green);
  font-style: normal;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color .2s;
}

.header-nav a:hover { color: var(--white); }

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green), #00b352);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 20px rgba(0,146,70,0.35);
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0,146,70,0.55);
}

.btn-header svg { flex-shrink: 0; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #0a1a0e 0%, #0D0D0D 50%, #1a0a0a 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 20px 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,146,70,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(206,43,55,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--green); }

.hero-lead {
  font-size: 17px;
  color: #c0c0c0;
  max-width: 680px;
  margin-bottom: 28px;
}

.author-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 18px 8px 8px;
}

.author-block img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
}

.author-info { display: flex; flex-direction: column; gap: 1px; }

.author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.author-date {
  font-size: 11px;
  color: var(--muted);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,146,70,0.15);
  border: 1px solid rgba(0,146,70,0.4);
  color: #00c85a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 30px;
}

/* ===== LISTING SECTION ===== */
.listing-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 20px;
}

.listing-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.listing-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ===== CASINO CARD ===== */
.casino-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  position: relative;
}

.casino-card:hover {
  border-color: rgba(0,146,70,0.4);
  box-shadow: 0 0 30px rgba(0,146,70,0.12);
}

.casino-card.top-pick {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,175,55,0.18);
}

.top-pick-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--gold);
  color: #000;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-bottom-left-radius: 8px;
}

.card-inner {
  display: grid;
  grid-template-columns: 48px 160px 1fr auto auto;
  align-items: center;
  gap: 0;
  padding: 20px;
}

.card-rank {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  flex-shrink: 0;
}

.card-rank.gold   { color: var(--gold); }
.card-rank.silver { color: #C0C0C0; }
.card-rank.bronze { color: #CD7F32; }

.card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}

.card-brand img {
  height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  font-size: 12px;
}

.card-bonus {
  padding: 0 20px;
  border-right: 1px solid var(--border);
}

.bonus-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.bonus-amount {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}

.bonus-text {
  font-size: 13px;
  color: #aaa;
  margin-top: 2px;
}

.card-features {
  padding: 0 20px;
  border-right: 1px solid var(--border);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #ccc;
}

.feature-list li svg {
  flex-shrink: 0;
  color: var(--green);
}

.card-cta {
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--green) 0%, #00a83e 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 24px;
  border-radius: 6px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,146,70,0.4);
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,146,70,0.6);
}

.tc-note {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.main-content h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin: 40px 0 16px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
  letter-spacing: 0.3px;
}

.main-content h3 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--white);
  margin: 28px 0 12px;
  letter-spacing: 0.2px;
}

.main-content p {
  font-size: 15.5px;
  color: #c8c8c8;
  margin-bottom: 14px;
  line-height: 1.75;
}

.main-content ol,
.main-content ul {
  margin: 12px 0 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-content li {
  font-size: 15px;
  color: #c8c8c8;
  line-height: 1.65;
}

.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  background: var(--dark3);
  border-radius: var(--radius);
  overflow: hidden;
}

.main-content table th,
.main-content table td {
  padding: 11px 14px;
  border: 1px solid var(--border);
  color: #ccc;
  vertical-align: top;
}

.main-content table th,
.main-content table td strong {
  color: var(--white);
  font-weight: 700;
}

.main-content table tr:first-child td {
  background: rgba(0,146,70,0.1);
}

/* ===== FAQ ===== */
.faq-section { margin-top: 40px; }

.faq-section h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}

.faq-item {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  transition: background .2s;
}

.faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-question svg {
  flex-shrink: 0;
  transition: transform .3s;
  color: var(--green);
}

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14.5px;
  color: #b0b0b0;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer {
  display: block;
  padding-top: 14px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark2);
  border-top: 2px solid var(--green);
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-disclaimer {
  background: rgba(206,43,55,0.08);
  border: 1px solid rgba(206,43,55,0.25);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.footer-disclaimer p {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

.footer-disclaimer strong { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-flag {
  display: flex;
  gap: 3px;
}

.footer-flag span {
  display: block;
  width: 10px;
  height: 22px;
  border-radius: 2px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 860px) {
  .header-nav { display: none; }

  .card-inner {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
    padding: 16px;
  }

  .card-brand {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 14px;
    justify-content: flex-start;
    grid-column: 2;
  }

  .card-rank {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    padding-top: 4px;
    font-size: 22px;
  }

  .card-bonus {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 14px;
  }

  .card-features {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 14px;
  }

  .card-cta {
    grid-column: 1 / -1;
    padding: 0;
  }

  .btn-play { width: 100%; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero { padding: 36px 16px 32px; }
  .listing-section,
  .main-content { padding-left: 16px; padding-right: 16px; }
}
