/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:   #0d3b2e;
  --green-mid:    #1a6b4a;
  --green-bright: #22c55e;
  --gold:         #f5c842;
  --gold-light:   #fef3c7;
  --cream:        #fafaf7;
  --white:        #ffffff;
  --gray-50:      #f8f9fa;
  --gray-100:     #f1f3f5;
  --gray-300:     #ced4da;
  --gray-500:     #6c757d;
  --gray-700:     #343a40;
  --gray-900:     #111827;
  --red-warn:     #dc2626;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 30px rgba(13,59,46,.18);

  --max-w: 1140px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-family: var(--font-display); color: var(--white); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--green-deep); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--green-deep); margin-bottom: .75rem; }
p  { margin-bottom: 1rem; color: var(--gray-700); }
a  { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-bright); }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; color: var(--gray-700); }
strong { color: var(--gray-900); }

/* ===========================
   LAYOUT
   =========================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ===========================
   HEADER
   =========================== */
.header {
  background: var(--green-deep);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo img { height: 40px; width: auto; display: block; }
.nav-desktop { display: none; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-desktop ul { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; }
  .nav-desktop a { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; transition: color .2s; }
  .nav-desktop a:hover { color: var(--gold); }
}
.btn-header {
  display: flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--green-deep);
  padding: .45rem 1rem; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 700; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.btn-header:hover { background: #e6b800; color: var(--green-deep); transform: translateY(-1px); }
.btn-header svg { flex-shrink: 0; }

/* ===========================
   HERO
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, #145c3a 60%, #1a6b4a 100%);
  padding: 3.5rem 0 3rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(245,200,66,.15); border: 1px solid rgba(245,200,66,.35);
  color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 50px; margin-bottom: 1.25rem;
}
.hero-eyebrow span { font-size: .9rem; }
.hero h1 { margin-bottom: 1.25rem; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-intro {
  font-size: 1.05rem; color: rgba(255,255,255,.88); max-width: 720px;
  margin-bottom: 2rem; line-height: 1.7;
}
.hero-intro strong { color: var(--gold); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
}
.stat-pill {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px; padding: .4rem 1rem;
  color: var(--white); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
}
.stat-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }
.author-box {
  display: flex; align-items: center; gap: .85rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); padding: .85rem 1.2rem;
  max-width: fit-content;
}
.author-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.author-name { display: block; color: var(--white); font-weight: 600; font-size: .95rem; }
.verified-badge { color: var(--green-bright); font-size: .78rem; font-weight: 700; margin-left: .35rem; }
.update-date { color: rgba(255,255,255,.65); font-size: .8rem; }

/* ===========================
   LISTING SECTION
   =========================== */
.listing-section { padding: 3rem 0 2rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--green-deep);
  margin-bottom: 1.75rem;
  padding-bottom: .75rem;
  border-bottom: 3px solid var(--green-bright);
  display: inline-block;
}

/* Grid */
.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .listing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }

/* Card */
.casino-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
}
.casino-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.card-top { display: flex; align-items: center; gap: .85rem; }
.card-rank {
  background: var(--green-deep);
  color: var(--gold);
  font-weight: 800; font-size: .95rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.casino-card:nth-child(1) .card-rank,
.casino-card:nth-child(2) .card-rank,
.casino-card:nth-child(3) .card-rank {
  background: var(--gold);
  color: var(--green-deep);
}
.brand-logo { height: 38px; width: auto; object-fit: contain; max-width: 110px; }
.brand-name { display: block; font-weight: 700; font-size: .95rem; color: var(--gray-900); }
.stars { color: var(--gold); font-size: .85rem; letter-spacing: .05em; }

.card-bonus {
  background: linear-gradient(135deg, var(--gold-light), #fff9e6);
  border: 1px solid #f0d060;
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
}
.bonus-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); display: block; margin-bottom: .2rem; }
.bonus-text { font-weight: 700; font-size: 1rem; color: var(--green-deep); margin: 0; }

.features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; color: var(--gray-700); margin: 0; }
.icon-check { width: 16px; height: 16px; color: var(--green-bright); flex-shrink: 0; margin-top: 2px; }
.icon-check path { stroke-linecap: round; stroke-linejoin: round; }

.btn-cta {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: var(--white);
  font-weight: 700; font-size: .95rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  transition: opacity .2s, transform .15s;
  margin-top: auto;
}
.btn-cta:hover { opacity: .9; color: var(--white); transform: translateY(-1px); }

/* Top badge */
.casino-card:nth-child(1)::before,
.casino-card:nth-child(2)::before,
.casino-card:nth-child(3)::before {
  content: '⭐ Top Scelta';
  position: absolute; top: -1px; right: 14px;
  background: var(--gold); color: var(--green-deep);
  font-size: .7rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.casino-card:nth-child(2)::before { content: '🔥 Più Popolare'; }
.casino-card:nth-child(3)::before { content: '💎 Premiato'; }

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content { padding: 2.5rem 0 3rem; }
.content-body { max-width: 860px; }
.content-body h2 { margin-top: 2.5rem; }
.content-body h3 { margin-top: 1.75rem; }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-left: 4px solid var(--green-bright);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin-bottom: 0; color: var(--green-deep); font-weight: 500; }

/* Steps list */
.steps-list { list-style: none; padding: 0; counter-reset: steps; }
.steps-list li {
  counter-increment: steps;
  display: flex; gap: 1rem; margin-bottom: 1rem;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); padding: 1rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.steps-list li::before {
  content: counter(steps);
  background: var(--green-deep); color: var(--gold);
  font-weight: 800; font-size: .9rem;
  min-width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Table */
.data-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.data-table thead tr { background: var(--green-deep); color: var(--white); }
.data-table th { padding: .8rem 1rem; text-align: left; font-weight: 600; font-size: .85rem; }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--gray-50); }
.data-table .rtp-good { color: var(--green-mid); font-weight: 700; }
.data-table .rtp-ok   { color: #ca8a04; font-weight: 700; }

/* Responsive table wrapper */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Casino review block */
.casino-review {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
}
.casino-review h3 { margin-top: 0; }
.review-img {
  display: block; margin: 1rem auto 1.25rem;
  max-width: 100%; height: auto; border-radius: var(--radius-md);
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-section { margin-top: 3rem; }
.faq-section h2 { margin-top: 0; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: .85rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-q {
  padding: 1.1rem 1.4rem;
  font-weight: 600; font-size: 1rem; color: var(--green-deep);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--green-bright); font-weight: 400; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 1.4rem 1.1rem; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin-bottom: 0; }

/* ===========================
   DISCLAIMER BAR
   =========================== */
.disclaimer-bar {
  background: #fef9c3;
  border-top: 3px solid var(--gold);
  padding: .85rem 0;
  font-size: .82rem; color: var(--gray-700);
  text-align: center;
}
.disclaimer-bar strong { color: var(--red-warn); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  font-size: .875rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { color: var(--white); margin-bottom: .85rem; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: .4rem; }
.footer a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-logo img { height: 36px; margin-bottom: .85rem; }
.footer-desc { color: rgba(255,255,255,.6); font-size: .83rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; align-items: center;
}
.footer-copy { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-legal { font-size: .75rem; color: rgba(255,255,255,.5); max-width: 600px; }
.age-badge {
  background: var(--red-warn); color: var(--white);
  font-weight: 800; font-size: .85rem;
  padding: .3rem .6rem; border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ===========================
   SKIP TO CONTENT (A11y)
   =========================== */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--green-bright); color: var(--green-deep);
  padding: .5rem 1rem; font-weight: 700; z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ===========================
   UTILITY
   =========================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}