/* =============================================
   PIZZAECOREALTAMURA.IT — Bonus Senza Deposito
   Design: Gambling / Casino Italiano
   ============================================= */

/* === CSS VARIABLES === */
:root {
  --bg-deep:      #080810;
  --bg-card:      #10101e;
  --bg-card2:     #14142a;
  --bg-header:    rgba(8, 8, 16, 0.97);

  --gold-1:       #d4af37;
  --gold-2:       #f0c84a;
  --gold-3:       #fde475;
  --gold-glow:    rgba(212, 175, 55, 0.25);

  --it-green:     #009246;
  --it-red:       #ce2b37;
  --it-white:     #f5f5f0;

  --text-main:    #e2e2ec;
  --text-muted:   #9090aa;
  --text-dim:     #5a5a70;

  --border-gold:  rgba(212, 175, 55, 0.35);
  --border-card:  rgba(255, 255, 255, 0.07);

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  --shadow-gold:  0 0 28px rgba(212, 175, 55, 0.15);
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.45);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --transition:   0.22s ease;
}

/* === 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-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(212,175,55,0.07) 0%, transparent 70%),
    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.015'%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");
}

a { color: var(--gold-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-3); }

img { max-width: 100%; height: auto; display: block; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--it-white);
}

h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; margin: 1.8rem 0 0.6rem; }

p { margin-bottom: 1rem; color: var(--text-main); }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

strong { color: var(--gold-2); font-weight: 700; }

/* === LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }

/* === DECORATIVE STRIPE === */
.italia-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--it-green) 33.3%, var(--it-white) 33.3%, var(--it-white) 66.6%, var(--it-red) 66.6%);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 1px 0 var(--gold-1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
}

.header-logo img {
  height: 42px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.header-nav a:hover { color: var(--gold-2); }

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--it-green) 0%, #007a3a 100%);
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 0 16px rgba(0,146,70,0.3);
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0,146,70,0.45);
  background: linear-gradient(135deg, #00aa50 0%, #009246 100%);
  color: #fff !important;
}

.btn-header svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Mobile: hide nav, keep logo + button */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-inner { padding: 12px 16px; }
  .btn-header { padding: 9px 14px; font-size: 0.8rem; }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '♠ ♥ ♦ ♣';
  position: absolute;
  bottom: 10px; right: 30px;
  font-size: 2.5rem;
  opacity: 0.05;
  letter-spacing: 12px;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--it-green), #007a3a);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 span.gold { color: var(--gold-2); }

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 28px;
  line-height: 1.75;
}

/* Author block */
.author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card2);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--gold-1);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  max-width: 480px;
}

.author-block img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-1);
  flex-shrink: 0;
}

.author-info { display: flex; flex-direction: column; gap: 3px; }

.author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--it-white);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-verified {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: #000;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.author-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* =============================================
   LISTING SECTION
   ============================================= */
.listing-section {
  padding: 50px 0 70px;
  position: relative;
}

.listing-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}

.listing-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--gold-2);
  text-align: center;
  margin-bottom: 8px;
}

.listing-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.listing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* === CASINO CARD === */
.casino-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 56px 1fr 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.casino-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-1), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.casino-card:hover::before { opacity: 1; }
.casino-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

/* Top card highlight */
.casino-card.card-top {
  border-color: rgba(212,175,55,0.45);
  background: linear-gradient(135deg, #14142a 0%, #10102a 100%);
}

.casino-card.card-top::after {
  content: '🏆 #1';
  position: absolute;
  top: 12px;
  right: 14px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: #000;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* Rank number */
.card-rank {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bg-card2), #1a1a30);
  border: 2px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-2);
  flex-shrink: 0;
}

/* Brand block */
.card-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(1.1);
}

.card-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--gold-1);
  font-size: 0.8rem;
}

.star.empty { color: var(--text-dim); }

/* Bonus block */
.card-bonus {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bonus-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--it-red);
}

.bonus-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-2);
  line-height: 1.2;
}

.bonus-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Features */
.card-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.feature-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--it-green);
}

/* CTA */
.card-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
  color: #0a0a0f !important;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}

.btn-play:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(212,175,55,0.5);
  color: #0a0a0f !important;
}

.card-terms {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
}

/* === RESPONSIVE CARDS === */
@media (max-width: 900px) {
  .casino-card {
    grid-template-columns: 44px 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 14px;
  }

  .card-rank {
    width: 44px; height: 44px;
    font-size: 1.1rem;
    grid-row: 1; grid-column: 1;
  }

  .card-brand { grid-row: 1; grid-column: 2; }
  .card-bonus { grid-row: 1; grid-column: 3; }
  .card-features { grid-row: 2; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .card-cta { grid-row: 3; grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }

  .casino-card.card-top::after { top: 10px; right: 10px; }
}

@media (max-width: 560px) {
  .casino-card {
    grid-template-columns: 40px 1fr;
    padding: 18px 16px;
  }

  .card-rank {
    width: 40px; height: 40px;
    font-size: 1rem;
    grid-row: 1; grid-column: 1;
  }

  .card-brand { grid-row: 1; grid-column: 2; }
  .card-bonus { grid-row: 2; grid-column: 1 / -1; }
  .card-features { grid-row: 3; grid-column: 1 / -1; flex-direction: column; }
  .card-cta { grid-row: 4; grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
  .btn-play { text-align: center; }
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.main-content {
  padding: 60px 0;
}

.main-content h2 {
  position: relative;
  padding-bottom: 12px;
  margin-top: 3rem;
}

.main-content h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold-1), transparent);
}

.main-content h3 {
  color: var(--gold-3);
  margin-top: 2rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2rem 0 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
}

.main-content table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.main-content table th,
.main-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}

.main-content table thead th,
.main-content table tr:first-child td:first-child {
  background: rgba(212,175,55,0.08);
  font-weight: 700;
  color: var(--gold-2);
}

.main-content table tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.main-content table tr:hover td {
  background: rgba(212,175,55,0.04);
}

.main-content table strong {
  color: var(--gold-2);
}

/* Lists */
.main-content ul li::marker { color: var(--gold-1); }
.main-content ol li::marker { color: var(--gold-1); font-weight: 700; }

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section { padding: 60px 0; }

.faq-section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--border-gold);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.faq-question h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  flex: 1;
  font-family: var(--font-body);
}

.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--bg-card2);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-2);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold-1);
  color: #000;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
}

.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #060610;
  border-top: 1px solid var(--border-card);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.65; }

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 14px;
}

.footer-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 0.84rem; color: var(--text-dim); transition: color var(--transition); }
.footer-nav a:hover { color: var(--gold-2); }

.footer-disclaimer {
  background: rgba(206,43,55,0.08);
  border: 1px solid rgba(206,43,55,0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.footer-disclaimer h4 {
  color: var(--it-red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.footer-disclaimer p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-copy { font-size: 0.78rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 0.78rem; color: var(--text-dim); }
.footer-legal a:hover { color: var(--gold-2); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.gold-text { color: var(--gold-2); }

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  margin: 0;
}

/* Chip decorative element */
.deco-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.deco-chip {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid;
}

.deco-chip:nth-child(1) { border-color: var(--it-green); background: rgba(0,146,70,0.2); }
.deco-chip:nth-child(2) { border-color: var(--gold-1); background: rgba(212,175,55,0.2); }
.deco-chip:nth-child(3) { border-color: var(--it-red); background: rgba(206,43,55,0.2); }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* Info box */
.info-box {
  background: rgba(212,175,55,0.06);
  border-left: 3px solid var(--gold-1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* =============================================
   PERFORMANCE — Reduce motion for a11y
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}