/* ============================================================
   BONUS SENZA DEPOSITO — style.css
   Design: gambling / Italian flag palette / dark luxury
   ============================================================ */

/* ========================
   VARIABLES
   ======================== */
:root {
  --bg:          #07091a;
  --bg-alt:      #0c1024;
  --bg-card:     #0f1530;
  --bg-card2:    #131c38;
  --gold:        #d4af37;
  --gold-light:  #f0d060;
  --gold-dark:   #9e7e1f;
  --gold-glow:   rgba(212,175,55,0.18);
  --it-green:    #009246;
  --it-green2:   #00a854;
  --it-red:      #ce2b37;
  --it-white:    #f5f5f5;
  --text:        #dde5f4;
  --text-light:  #a0b0cc;
  --text-muted:  #5a6a88;
  --border:      rgba(212,175,55,0.16);
  --border-faint:rgba(255,255,255,0.06);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-xs:   5px;
  --shadow-card: 0 8px 36px rgba(0,0,0,0.45);
  --shadow-gold: 0 0 30px rgba(212,175,55,0.12);
  --container:   1100px;
  --font-display:'Syne', sans-serif;
  --font-body:   'Plus Jakarta Sans', sans-serif;
}

/* ========================
   RESET & BASE
   ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ========================
   CONTAINER
   ======================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ========================
   HEADER
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 9, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 66px;
}
.logo-link { flex-shrink: 0; line-height: 0; }
.site-logo { height: 42px; width: auto; }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; }
.main-nav a {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a:hover::after { transform: scaleX(1); }

.btn-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, var(--it-green) 0%, var(--it-green2) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,146,70,0.38);
  flex-shrink: 0;
}
.btn-header svg { flex-shrink: 0; }
.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 24px rgba(0,146,70,0.5);
}

@media (min-width: 880px) {
  .main-nav { display: block; }
  .btn-header { margin-left: 0.5rem; }
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  padding: 3.2rem 0 0;
  overflow: hidden;
  background: linear-gradient(155deg, #07091a 0%, #0a1030 55%, #0d1238 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 90% 10%, rgba(212,175,55,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 0% 80%,  rgba(0,146,70,0.07)  0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 60% 90%, rgba(206,43,55,0.05) 0%, transparent 55%);
  pointer-events: none;
}

/* Decorative suit symbols */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.deco-suit {
  position: absolute;
  font-size: 9rem;
  opacity: 0.045;
  font-family: Georgia, serif;
  animation: floatSuit 22s ease-in-out infinite;
  user-select: none;
}
.deco-suit:nth-child(1) { top: 4%;  left: 2%;   color: var(--gold);     animation-delay: 0s;   font-size: 8rem; }
.deco-suit:nth-child(2) { top: 8%;  right: 4%;  color: var(--it-red);   animation-delay: -6s;  font-size: 6rem; }
.deco-suit:nth-child(3) { bottom: 22%; left: 6%; color: var(--it-green); animation-delay: -12s; font-size: 11rem; }
.deco-suit:nth-child(4) { bottom: 6%; right: 10%;color: var(--gold);    animation-delay: -18s; font-size: 7rem; }
.deco-chip {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 8px dashed rgba(212,175,55,0.07);
  animation: spinChip 30s linear infinite;
}
.deco-chip:nth-child(5) { top: 45%;  right: 2%;  animation-delay: -5s;  width: 90px; height: 90px; }
.deco-chip:nth-child(6) { top: 20%;  left: 35%;  animation-delay: -15s; border-color: rgba(0,146,70,0.07); width: 55px; height: 55px; }

@keyframes floatSuit {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(6deg); }
  66%       { transform: translateY(10px)  rotate(-4deg); }
}
@keyframes spinChip {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.28);
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-intro {
  font-size: 1.02rem;
  max-width: 700px;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.78;
}

/* Author block */
.author-block {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 2.8rem;
  max-width: 100%;
}
.author-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.author-name-row { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.author-name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0,146,70,0.18);
  color: #4dcc7e;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.author-date { font-size: 0.78rem; color: var(--text-muted); }

/* Tricolor bar */
.tricolor-bar {
  height: 5px;
  background: linear-gradient(90deg,
    var(--it-green) 33.33%,
    #f8f8f8       33.33% 66.66%,
    var(--it-red)  66.66%);
  margin-top: 2.2rem;
}

/* ========================
   LISTING SECTION
   ======================== */
.listing-section {
  background: var(--bg-alt);
  padding: 3.5rem 0 4.5rem;
}
.listing-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 0.4rem;
}
.listing-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-bottom: 2.5rem;
}

/* ---- Casino Card ---- */
.casino-list { display: flex; flex-direction: column; gap: 1.1rem; }

.casino-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.1rem 1.4rem;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.65rem 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}
/* Italian tricolor left stripe */
.casino-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: linear-gradient(180deg,
    var(--it-green) 33.33%,
    #e8e8e8        33.33% 66.66%,
    var(--it-red)  66.66%);
}
/* Top card highlight */
.casino-card:nth-child(1) {
  border-color: rgba(212,175,55,0.4);
  box-shadow: var(--shadow-gold);
}
.casino-card:nth-child(1)::after {
  content: '🏆 #1 MIGLIORE';
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #07091a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-bottom-left-radius: var(--radius-sm);
}
.casino-card:hover {
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 14px 44px rgba(0,0,0,0.5), var(--shadow-gold);
  transform: translateY(-3px);
}

/* Rank badge */
.card-rank {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}
.rank-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1;
}
.rank-label {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.casino-card:nth-child(1) .card-rank {
  background: rgba(212,175,55,0.18);
  border-color: var(--gold);
}
.casino-card:nth-child(1) .rank-label { color: var(--gold); }

/* Brand block */
.card-brand {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.casino-logo {
  height: 38px;
  width: auto;
  max-width: 115px;
  object-fit: contain;
  flex-shrink: 0;
}
.casino-meta { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.casino-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stars */
.star-rating { display: flex; align-items: center; gap: 0.35rem; }
.stars-wrap { position: relative; display: inline-block; line-height: 1; }
.stars-empty {
  color: rgba(255,255,255,0.12);
  letter-spacing: 1.5px;
  font-size: 0.88rem;
}
.stars-filled {
  position: absolute;
  top: 0; left: 0;
  color: var(--gold);
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 1.5px;
  font-size: 0.88rem;
}
.rating-num {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--gold);
}

/* Bonus block */
.card-bonus {
  grid-column: 1 / -1;
  background: rgba(212,175,55,0.055);
  border: 1px solid rgba(212,175,55,0.13);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.95rem;
}
.bonus-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.2rem;
}
.bonus-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  color: var(--gold-light);
  line-height: 1.2;
}
.bonus-detail {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.22rem;
}

/* Features list */
.card-features {
  grid-column: 1 / -1;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-light);
  margin: 0;
  padding: 0;
}
.card-features li::before { display: none; }
.feat-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feat-icon svg { width: 18px; height: 18px; }

/* CTA */
.card-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}
.btn-play {
  display: inline-block;
  padding: 0.62rem 1.75rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #07091a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 50px;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 18px rgba(212,175,55,0.38);
  white-space: nowrap;
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 28px rgba(212,175,55,0.55);
}
.cta-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Desktop card layout */
@media (min-width: 640px) {
  .casino-card {
    grid-template-columns: 56px 1fr auto;
    grid-template-rows: auto auto auto;
    align-items: start;
  }
  .card-rank    { grid-column: 1; grid-row: 1 / 4; align-self: center; }
  .card-brand   { grid-column: 2 / 4; grid-row: 1; }
  .card-bonus   { grid-column: 2; grid-row: 2; }
  .card-features{ grid-column: 2; grid-row: 3; }
  .card-cta     { grid-column: 3; grid-row: 2 / 4; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; flex-wrap: nowrap; }
}

/* ========================
   MAIN CONTENT
   ======================== */
.main-content {
  padding: 4rem 0 5rem;
  background: var(--bg);
}
.content-wrap { max-width: 820px; }

/* Typography for injected content */
.content-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--gold-light);
  margin-top: 2.8rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.content-wrap h2:first-child { margin-top: 0; }

.content-wrap h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  scroll-margin-top: 80px;
}
.content-wrap h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 1.4rem;
  margin-bottom: 0.45rem;
}
.content-wrap p {
  margin-bottom: 0.95rem;
  color: var(--text-light);
  font-size: 0.97rem;
}

/* Lists */
.content-wrap ul,
.content-wrap ol {
  padding-left: 0;
  margin: 0 0 1.2rem;
}
.content-wrap ul li,
.content-wrap ol li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.55rem;
  margin: 0;
  color: var(--text-light);
  font-size: 0.97rem;
}
.content-wrap ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--it-green);
  flex-shrink: 0;
}
.content-wrap ol {
  counter-reset: ol-counter;
}
.content-wrap ol li {
  counter-increment: ol-counter;
}
.content-wrap ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 22px; height: 22px;
  background: rgba(212,175,55,0.12);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--gold);
  line-height: 22px;
  text-align: center;
}

/* Tables */
.table-outer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.content-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 460px;
}
.content-wrap table td,
.content-wrap table th {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-faint);
  white-space: nowrap;
  color: var(--text-light);
}
.content-wrap table tr:first-child td,
.content-wrap table th {
  background: rgba(212,175,55,0.07);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
}
.content-wrap table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}
.content-wrap table tbody tr:hover td {
  background: rgba(212,175,55,0.04);
}
.content-wrap table tr:last-child td { border-bottom: none; }

/* strong inside content */
.content-wrap strong { color: var(--text); font-weight: 600; }

/* ========================
   FAQ STYLING (JS-enhanced)
   ======================== */
.faq-section-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 0.5rem;
  margin-top: 1.5rem;
}

.faq-h3 {
  position: relative;
  background: rgba(212,175,55,0.05) !important;
  border: 1px solid rgba(212,175,55,0.12) !important;
  border-left: 3px solid var(--gold) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  padding: 0.8rem 1rem !important;
  margin-top: 0.8rem !important;
  margin-bottom: 0 !important;
  color: var(--text) !important;
  cursor: default;
}
.faq-h3::before {
  content: '?';
  position: absolute;
  left: -18px; top: 50%; transform: translateY(-50%);
  background: var(--gold);
  color: var(--bg);
  width: 18px; height: 18px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 18px;
}
.faq-p {
  padding: 0.75rem 1rem 1rem !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--border-faint);
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: #040610;
  border-top: 1px solid var(--border);
  padding: 2.8rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer-logo-col {}
.footer-logo { height: 36px; width: auto; margin-bottom: 0.6rem; opacity: 0.75; }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); max-width: 220px; }

.footer-nav-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-responsible {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(206,43,55,0.1);
  border: 1px solid rgba(206,43,55,0.24);
  color: #e88;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.03em;
}

.footer-disclaimer {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 100%;
}
.footer-disclaimer p { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 0.4rem; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-flag { font-size: 1.2rem; }

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.8fr;
  }
}

/* ========================
   UTILITIES
   ======================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Scroll margin for anchor targets */
[id] { scroll-margin-top: 80px; }

/* ========================
   RESPONSIVE MISC
   ======================== */
@media (min-width: 768px) {
  .hero { padding-top: 4.5rem; }
  .hero-intro { font-size: 1.08rem; }
}
@media (max-width: 639px) {
  .casino-card { grid-template-columns: 48px 1fr; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 2rem; }
  .btn-play { padding: 0.58rem 1.2rem; font-size: 0.88rem; }
}

/* ========================
   PRINT
   ======================== */
@media print {
  .site-header, .btn-header, .btn-play, .hero-deco { display: none !important; }
  body { background: #fff; color: #000; }
  .casino-card { border: 1px solid #ccc; }
}