/* ==========================================================================
   isicilianidolgam.it — style.css
   Design: Gambling / Casino · Italian Flag Colors
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Italian flag */
  --it-green:        #009246;
  --it-green-light:  #00b358;
  --it-red:          #CE2B37;
  --it-red-light:    #e6333f;

  /* Background palette */
  --bg-base:         #0b0b18;
  --bg-level-2:      #121224;
  --bg-card:         #181830;
  --bg-card-hover:   #1e1e38;

  /* Gold / casino accent */
  --gold:            #f0c040;
  --gold-light:      #ffd700;
  --gold-dark:       #c49a20;

  /* Typography */
  --text-primary:    #eaeaf8;
  --text-muted:      #8888aa;
  --text-white:      #ffffff;

  /* Borders */
  --border:          rgba(255,255,255,0.07);
  --border-hover:    rgba(240,192,64,0.30);

  /* Shadows */
  --shadow-card:     0 4px 28px rgba(0,0,0,0.45);
  --shadow-gold:     0 0 22px rgba(240,192,64,0.22);
  --shadow-green:    0 4px 18px rgba(0,146,70,0.40);

  /* Fonts */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Misc */
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --ease:       0.24s ease;
  --container:  1140px;
}

/* --------------------------------------------------------------------------
   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-base);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Italian tricolore top strip */
body::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--it-green)   33.33%,
    #ffffff            33.33%,
    #ffffff            66.66%,
    var(--it-red)      66.66%
  );
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold-light); }
ul   { list-style: none; }

/* --------------------------------------------------------------------------
   Layout Helpers
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.desktop-only { display: none; }

@media (min-width: 768px) {
  .desktop-only { display: flex; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.22;
}

h1 { font-size: clamp(1.75rem, 4.5vw, 3rem);  font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); font-weight: 700; margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem);  font-weight: 700; margin: 1.5rem 0 .65rem; color: var(--gold); }
h4 { font-size: .875rem; font-weight: 700; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .5px; color: var(--text-white); }

p  { margin-bottom: 1rem; }

ol { padding-left: 1.5rem; }
ol li { margin-bottom: .5rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 4px;
  z-index: 900;
  background: rgba(11,11,24,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 6px 32px rgba(0,0,0,0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 20px;
}

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

/* Nav */
.header-nav { flex: 1; }

.header-nav ul {
  display: flex;
  gap: 2px;
  align-items: center;
}

.header-nav a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}

.header-nav a:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.05);
}

/* Header CTA button */
.btn-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 10px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--it-green), var(--it-green-light));
  color: var(--text-white) !important;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-green);
  transition: all var(--ease);
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,146,70,0.55);
  background: linear-gradient(135deg, var(--it-green-light), #00cc77);
  color: var(--text-white) !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 52px 0 44px;
  background: linear-gradient(155deg, #0b0b18 0%, #12122a 45%, #190a22 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-bg-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 55%, rgba(0,146,70,0.09) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(206,43,55,0.09) 0%, transparent 50%),
    radial-gradient(circle at 55% 85%, rgba(240,192,64,0.06) 0%, transparent 42%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content { flex: 1; }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 50px;
  background: rgba(240,192,64,0.10);
  border: 1px solid rgba(240,192,64,0.28);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
}

/* H1 gradient text */
.hero-title {
  font-size: clamp(1.75rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  background: linear-gradient(130deg, #fff 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;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 28px;
  line-height: 1.72;
}

/* Author block */
.author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 430px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

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

.author-name {
  font-size: .93rem;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(0,146,70,0.18);
  border: 1px solid rgba(0,146,70,0.32);
  color: var(--it-green-light);
  font-size: .68rem;
  font-weight: 700;
}

.author-meta {
  font-size: .76rem;
  color: var(--text-muted);
}

/* Decorative emoji elements (desktop only) */
.hero-deco {
  display: none;
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .hero-deco { display: block; }
}

.hero-deco span {
  position: absolute;
  font-size: 3rem;
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

.deco-card  { top: 0;   left: 20%;  font-size: 3.5rem; transform: rotate(-12deg); }
.deco-dice  { top: 35%; right: 0;   font-size: 4.5rem; transform: rotate(8deg);  opacity: .06; }
.deco-slot  { bottom: 5%; left: 5%; font-size: 3rem; }
.deco-coin  { top: 10%; left: 60%;  font-size: 2.5rem; transform: rotate(20deg); }
.deco-chip  { bottom: 25%; right: 15%; font-size: 2.8rem; transform: rotate(-5deg); opacity: .05; }

/* ==========================================================================
   LISTING SECTION
   ========================================================================== */
.listing-section {
  padding: 52px 0 60px;
  background: var(--bg-base);
}

.listing-title {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-white);
}

.listing-subtitle {
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ---- Casino List ---- */
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- Casino Card ---- */
.casino-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  position: relative;
}

.casino-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

/* Featured card */
.casino-card.featured {
  border-color: rgba(240,192,64,0.32);
  background: linear-gradient(140deg, #191930 0%, #1e1a32 100%);
}

.casino-card.featured::after {
  content: '⭐ Miglior Scelta';
  position: absolute;
  top: 0; right: 0;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1000;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .5px;
  border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
}

/* ---- Rank Column ---- */
.card-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 50px;
  padding: 14px 10px;
  background: rgba(0,0,0,0.22);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.rank-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.rank-label {
  font-size: .52rem;
  font-weight: 800;
  color: var(--it-green-light);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ---- Card Body Grid ---- */
.card-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px) {
  .card-body {
    display: grid;
    grid-template-columns: 150px 1fr 1fr auto;
    align-items: center;
    gap: 14px;
  }
}

/* Brand */
.card-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.casino-logo {
  max-width: 130px;
  height: 44px;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.02);
}

.brand-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.casino-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-white);
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-rating svg { color: var(--gold); }

.rating-val {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin-left: 4px;
}

/* Bonus */
.card-bonus {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bonus-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.bonus-text {
  font-size: .88rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.42;
}

.bonus-text strong { color: var(--text-white); }

.bonus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.bonus-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: .66rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-muted);
}

.bonus-tag--green {
  background: rgba(0,146,70,0.14);
  border-color: rgba(0,146,70,0.32);
  color: var(--it-green-light);
}

.bonus-tag--gold {
  background: rgba(240,192,64,0.11);
  border-color: rgba(240,192,64,0.28);
  color: var(--gold);
}

/* Features */
.card-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
}

.check-icon { color: var(--it-green-light); flex-shrink: 0; }

/* CTA */
.card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-play {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--it-green), var(--it-green-light));
  color: var(--text-white) !important;
  font-size: .88rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-green);
  transition: all var(--ease);
  letter-spacing: .2px;
}

.btn-play:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 26px rgba(0,146,70,0.58);
  background: linear-gradient(135deg, var(--it-green-light), #00cc77);
  color: var(--text-white) !important;
}

.cta-note {
  font-size: .62rem;
  color: var(--text-muted);
  text-align: center;
  opacity: .65;
}

/* Mobile: stretch CTA */
@media (max-width: 599px) {
  .card-cta { align-items: stretch; }
  .btn-play  { justify-content: center; }
}

/* ==========================================================================
   CONTENT SECTION
   ========================================================================== */
.content-section {
  padding: 60px 0 68px;
  background: var(--bg-level-2);
  border-top: 1px solid var(--border);
}

.content-inner {
  max-width: 800px;
}

/* Underline decoration on H2 */
.content-inner h2 {
  padding-bottom: 13px;
  position: relative;
}

.content-inner h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  background: linear-gradient(to right, var(--it-green), var(--gold));
  border-radius: 2px;
}

/* Ordered list styling */
.content-inner ol {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 20px 42px;
  margin: 1rem 0 1.5rem;
}

.content-inner ol li {
  color: var(--text-primary);
  padding-left: 6px;
  margin-bottom: .6rem;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease);
}

.faq-item[open] { border-color: rgba(240,192,64,0.28); }

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-white);
  cursor: pointer;
  user-select: none;
  transition: background var(--ease);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--ease);
}

details[open] .faq-question::after { content: '−'; }

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

.faq-answer {
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  margin: 12px 0 0;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #07070f;
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 2fr; }
}

.footer-brand img { margin-bottom: 12px; }

.footer-tagline {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nav h4, .footer-responsible h4 {
  margin-bottom: 16px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 9px; }

.footer-nav a {
  font-size: .84rem;
  color: var(--text-muted);
  transition: color var(--ease);
}

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

.footer-responsible p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 0;
}

.footer-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-badge {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Disclaimer box */
.footer-disclaimer {
  padding: 16px 20px;
  margin-bottom: 24px;
  background: rgba(206,43,55,0.06);
  border: 1px solid rgba(206,43,55,0.18);
  border-radius: var(--radius);
}

.footer-disclaimer p {
  font-size: .77rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin: 0;
}

/* Copyright bar */
.footer-copy {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy p {
  font-size: .77rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   PRINT / MOTION REDUCTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .btn-header, .btn-play, .hero-deco, .hero-bg-deco { display: none !important; }
  body { background: #fff; color: #000; }
  .casino-card { border: 1px solid #ccc; box-shadow: none; }
}
