/* ==========================================================================
   Bonus Immediato Senza Deposito — style.css
   Design: Premium Tech Portal / Modern FinTech (Italian Luxury accents)
   Mobile-first. Critical Hero/Header CSS lives inline in <head>.
   ========================================================================== */

:root {
  --bg-page: #F8F9FA;
  --card-bg: #FFFFFF;
  --border-soft: #E9ECEF;
  --text-heading: #212529;
  --text-body: #495057;
  --emerald: #0B6E4F;
  --emerald-dark: #084F39;
  --emerald-light: #E7F3EE;
  --ruby: #9B1B30;
  --ruby-light: #FBEAEC;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 4px 20px rgba(33, 37, 41, 0.06);
  --shadow-elevated: 0 12px 32px rgba(33, 37, 41, 0.10);
  --header-h: 72px;
  --header-h-scrolled: 58px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); margin: 2.4em 0 0.7em; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); margin: 1.8em 0 0.6em; }
p { margin: 0 0 1.1em; }
.content a { color: var(--emerald); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-soft); text-underline-offset: 3px; transition: color 0.3s ease; }
.content a:hover { color: var(--emerald-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 110, 79, 0.28);
}
.btn-emerald:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 110, 79, 0.35); }
.btn-header {
  padding: 10px 18px;
  font-size: 0.85rem;
}
.btn-cta-wrap { display: flex; justify-content: center; padding: 40px 20px; }
.btn-cta { font-size: 1.05rem; padding: 17px 42px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(248, 249, 250, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  box-shadow: var(--shadow-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo-link { display: flex; align-items: center; }
.logo-svg { width: 40px; height: 40px; transition: width 0.3s ease, height 0.3s ease; }
.site-header.is-scrolled .logo-svg { width: 34px; height: 34px; }

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cta-desktop { display: none; }

/* Mobile side drawer */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(80vw, 320px);
  height: 100vh;
  background: var(--card-bg);
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  padding: 90px 24px 24px;
  transition: right 0.35s ease;
  overflow-y: auto;
}
.main-nav.is-open { right: 0; }
.nav-groups { display: flex; flex-direction: column; gap: 28px; }
.nav-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ruby);
  font-weight: 700;
  margin-bottom: 10px;
}
.nav-group ul { display: flex; flex-direction: column; gap: 12px; }
.nav-group a {
  font-size: 0.95rem;
  color: var(--text-heading);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-group a:hover { color: var(--emerald); }
.nav-cta-mobile { margin-top: 30px; width: 100%; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33,37,41,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 90;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-dropdown-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 8px 4px;
  transition: color 0.3s ease;
}
.nav-dropdown-btn:hover { color: var(--emerald); }
.nav-dropdown-btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.nav-dropdown-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-anchor { position: relative; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-cta-desktop { display: inline-flex; }
  .nav-dropdown-btn { display: inline-flex; }
  .nav-overlay { display: none; }
  .nav-cta-mobile { display: none; }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-6px);
    width: auto;
    min-width: 480px;
    height: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    padding: 26px 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-groups { flex-direction: row; gap: 48px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 44px 0 28px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(11, 110, 79, 0.10), transparent 70%);
  top: -200px;
  right: -140px;
}
.hero::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(155, 27, 48, 0.07), transparent 70%);
  bottom: -160px;
  left: -100px;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(1.7rem, 1.35rem + 1.8vw, 2.6rem);
  margin: 0 0 16px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  border: 1px solid rgba(11, 110, 79, 0.14);
}
.badge-author {
  background: var(--card-bg);
  color: var(--text-heading);
  border: 1px solid var(--border-soft);
}
.hero-intro { font-size: 1.05rem; max-width: 68ch; }

/* ---------- Listing ---------- */
.listing { padding: 8px 0 12px; }
.listing h2 { margin-top: 0.4em; }
.casino-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }

.casino-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.casino-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}
.card-rank {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--emerald);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(11,110,79,0.35);
}
.card-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.card-brand-row img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #F1F3F5;
  color: transparent;
  font-size: 0;
}
.card-brand-name { font-weight: 700; color: var(--text-heading); font-size: 1.05rem; }
.card-stars { color: var(--ruby); font-size: 0.85rem; letter-spacing: 1px; }
.card-social-proof {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-body);
  margin-top: 4px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1EA672;
  box-shadow: 0 0 0 3px rgba(30,166,114,0.18);
  flex-shrink: 0;
}
.card-bonus-block {
  background: var(--emerald-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.card-bonus-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--emerald-dark);
  display: block;
  margin-bottom: 4px;
}
.card-bonus-text { font-size: 0.95rem; color: var(--text-heading); font-weight: 600; margin: 0; }
.card-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-body);
}
.card-features svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--emerald); }
.card-cta {
  display: flex;
  width: 100%;
}
.card-cta .btn { width: 100%; }

@media (min-width: 700px) {
  .casino-card { padding: 24px 28px; }
  .card-brand-row img { width: 64px; height: 64px; }
  .card-cta .btn { width: auto; padding-left: 44px; padding-right: 44px; }
  .card-cta { justify-content: flex-end; margin-top: -6px; }
}

/* ---------- Main content ---------- */
.content { padding: 8px 0 60px; }
.content h2 { border-top: 1px solid var(--border-soft); padding-top: 0.9em; }
.content h2:first-child { border-top: none; padding-top: 0; }
.content ul { margin: 0 0 1.2em; padding-left: 4px; }
.content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ruby);
}

/* Tables: horizontal scroll on mobile */
.table-scroll {
  overflow-x: auto;
  margin: 1.4em 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  background: var(--card-bg);
}
thead th {
  background: var(--emerald);
  color: #fff;
  font-size: 0.85rem;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
tbody tr:nth-child(even) { background: #FCFCFD; }

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.6em 0;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-elevated); }
.review-stars { color: var(--ruby); font-size: 0.85rem; margin-bottom: 6px; }
.review-name { font-weight: 700; color: var(--text-heading); font-size: 0.9rem; margin-top: 8px; }
@media (min-width: 700px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Author bio */
.author-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 2.2em 0;
  box-shadow: var(--shadow-soft);
}
.author-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border: 2px solid var(--emerald-light);
}
.author-name { font-weight: 700; color: var(--text-heading); font-size: 1.05rem; }
.author-role { font-size: 0.82rem; color: var(--ruby); font-weight: 600; margin-bottom: 8px; }
.author-link { font-size: 0.85rem; margin-top: 8px; display: inline-block; }
@media (min-width: 600px) {
  .author-box { flex-direction: row; align-items: flex-start; }
}

/* Anchor scroll offset for sticky header */
[id] { scroll-margin-top: 100px; }

/* ---------- Info pages: simple content sections with anchors ---------- */
.info-section {
  padding: 36px 0;
  border-top: 1px solid var(--border-soft);
}
.info-section:first-child { border-top: none; padding-top: 0; }
.info-section h2 { margin-top: 0; }

/* Author profile page */
.author-profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 8px;
}
.author-profile img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--emerald-light);
}
.author-profile-name { font-size: 1.3rem; font-weight: 700; color: var(--text-heading); margin: 0 0 4px; }
.author-profile-role { color: var(--ruby); font-weight: 600; font-size: 0.9rem; }
@media (min-width: 600px) {
  .author-profile { flex-direction: row; align-items: center; }
}
.author-quote {
  background: var(--emerald-light);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--text-heading);
  font-size: 1.05rem;
  line-height: 1.6;
}
.author-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--emerald-dark);
}
.methodology-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.methodology-item {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.methodology-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.methodology-item p { margin: 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-heading);
  color: #C9CDD1;
  padding: 44px 0 30px;
  font-size: 0.85rem;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 28px;
}
.footer-col-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { transition: color 0.3s ease; }
.footer-col a:hover { color: #fff; }
.footer-adm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-adm img { border-radius: 6px; background: #fff; padding: 6px; }
.footer-disclaimer { line-height: 1.6; max-width: 720px; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: #9AA0A6;
}
@media (min-width: 700px) {
  .footer-grid { flex-direction: row; justify-content: space-between; }
  .footer-adm { flex-direction: row; align-items: center; }
}
