/* ============================================================
   style.css — epicerielessentiel.com
   Approach: Mobile-First, iGaming Portal, Italian flag accents
   ============================================================ */

/* ── 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;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── LISTING SECTION ────────────────────────────────────── */
.listing-section {
  background: var(--clr-bg);
  padding: 36px 0 40px;
}

.listing-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--clr-green);
  letter-spacing: -.01em;
}

.casino-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Casino Card */
.casino-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.casino-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.casino-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--clr-green);
}

/* Rank badge */
.casino-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-hero-bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

/* Brand block */
.casino-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.brand-logo-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 38px;
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 6px;
  padding: 6px 8px;
  aspect-ratio: 100 / 38;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--clr-text);
}

.brand-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Bonus block */
.casino-bonus {
  background: var(--clr-green-light);
  border: 1px solid #c3e6d4;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bonus-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--clr-green);
}

.bonus-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
}

/* Features list */
.casino-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.casino-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA */
.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--clr-green);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 7px;
  text-decoration: none;
  text-align: center;
  transition: background .2s;
}

.btn-play:hover { background: #155e38; }

.cta-disclaimer {
  font-size: 11px;
  color: var(--clr-text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ── MAIN CONTENT ───────────────────────────────────────── */
.main-content {
  padding: 40px 0 48px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.content-body {
  min-width: 0;
}

/* Typography */
.content-body h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 3.5vw, 26px);
  font-weight: 800;
  color: var(--clr-text);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-border);
  letter-spacing: -.01em;
  scroll-margin-top: 80px;
}

.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: var(--clr-text);
  margin: 28px 0 10px;
  scroll-margin-top: 80px;
}

.content-body p {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 14px;
}

.content-body ul,
.content-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-body ul li,
.content-body ol li {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 6px;
}

.content-body strong { color: var(--clr-text); }

/* Tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--clr-border);
}

.table-scroll table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.table-scroll thead th {
  background: var(--clr-hero-bg);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.table-scroll tbody tr:nth-child(even) {
  background: #f8fafc;
}

.table-scroll tbody tr:hover {
  background: var(--clr-green-light);
}

.table-scroll tbody td {
  padding: 10px 14px;
  color: #374151;
  vertical-align: top;
  border-bottom: 1px solid var(--clr-border);
  line-height: 1.5;
}

/* ── FAQ SECTION ────────────────────────────────────────── */
.faq-section {
  margin-top: 44px;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 3.5vw, 26px);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--clr-green);
  scroll-margin-top: 80px;
}

.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text);
  margin: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--clr-border);
  line-height: 1.5;
  scroll-margin-top: 80px;
}

.faq-item p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
  padding: 12px 16px;
}

/* ── AUTHOR SECTION ─────────────────────────────────────── */
.author-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 32px 0;
}

.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-photo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--clr-green-light);
  aspect-ratio: 1;
}

.author-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.author-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--clr-text);
}

.author-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-green);
  text-decoration: none;
  border: 1px solid var(--clr-green);
  padding: 2px 10px;
  border-radius: 20px;
  transition: background .15s, color .15s;
}

.author-link:hover {
  background: var(--clr-green);
  color: #fff;
}

.author-role {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-hero-bg);
  color: rgba(255,255,255,.65);
  padding: 36px 0 28px;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}

.footer-nav a:hover { color: #6ee7a0; }

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 20px;
}

.footer-disclaimer a {
  color: #6ee7a0;
  text-decoration: none;
}

.footer-adm {
  margin-bottom: 18px;
}

.footer-adm img {
  display: block;
  opacity: .85;
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

/* ── DESKTOP BREAKPOINT ─────────────────────────────────── */
@media (min-width: 768px) {

  /* Container */
  .container { padding: 0 24px; }

  /* Listing */
  .listing-section { padding: 48px 0 56px; }

  .casino-card {
    display: grid;
    grid-template-columns: 40px 180px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 20px;
    align-items: center;
    padding: 22px 24px;
  }

  .casino-rank {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: center;
  }

  .casino-brand {
    grid-column: 2;
    grid-row: 1 / 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
  }

  .brand-logo-wrap {
    width: 130px;
    height: 48px;
    aspect-ratio: 130 / 48;
  }

  .casino-bonus {
    grid-column: 3;
    grid-row: 1;
    margin-bottom: 0;
    align-self: end;
    padding: 8px 12px;
  }

  .casino-features {
    grid-column: 3;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 0;
    align-self: start;
    padding-top: 10px;
  }

  .casino-cta {
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: center;
    width: 150px;
  }

  .btn-play { width: 100%; }

  /* Content grid — two column on wide */
  .content-grid { gap: 48px; }

  /* Tables */
  .table-scroll { border-radius: var(--radius); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .listing-section { padding: 56px 0 64px; }
  .main-content { padding: 56px 0 64px; }

  .casino-card {
    grid-template-columns: 44px 200px 1fr 160px;
  }
}

/* ── PRINT / REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   INNER PAGES — Legal, Responsabile, Info, Author
   ============================================================ */

/* Page hero (inner pages) */
.page-hero {
  background: var(--clr-hero-bg);
  color: #fff;
  padding: 40px 16px 36px;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  max-width: 640px;
}

/* Legal internal nav */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 32px;
}
.legal-nav a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-green);
  background: var(--clr-green-light);
  border: 1px solid #c3e6d4;
  border-radius: 20px;
  padding: 6px 16px;
  text-decoration: none;
  transition: background .15s, color .15s;
  scroll-margin-top: 80px;
}
.legal-nav a:hover {
  background: var(--clr-green);
  color: #fff;
}

/* Legal body shared */
.legal-body {
  max-width: 860px;
}

/* Legal section */
.legal-section {
  margin-bottom: 52px;
  scroll-margin-top: 80px;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 3.5vw, 26px);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--clr-green);
  scroll-margin-top: 80px;
}
.legal-section h3 {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 700;
  color: var(--clr-text);
  margin: 24px 0 10px;
  scroll-margin-top: 80px;
}
.legal-section p {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.legal-section ul li,
.legal-section ol li {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal-section a {
  color: var(--clr-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: #155e38; }
.legal-section strong { color: var(--clr-text); }

/* Info box (green) */
.info-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--clr-green-light);
  border: 1px solid #c3e6d4;
  border-left: 4px solid var(--clr-green);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
}
.info-box svg { flex-shrink: 0; margin-top: 2px; }
.info-box p {
  font-size: 14px;
  color: #1f4d33;
  line-height: 1.65;
  margin: 0;
}

/* Warning box (red) */
.warning-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--clr-red-light);
  border: 1px solid #f5c6c2;
  border-left: 4px solid var(--clr-red);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 32px;
}
.warning-box svg { flex-shrink: 0; margin-top: 2px; }
.warning-box strong { display: block; color: var(--clr-red); font-size: 14px; margin-bottom: 4px; }
.warning-box p { font-size: 14px; color: #7b1d1d; line-height: 1.6; margin: 0; }

/* ADM link button */
.adm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-green);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 7px;
  transition: background .2s;
  margin-top: 10px;
}
.adm-link:hover { background: #155e38; }

/* Checklist grid (responsabile) */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}
.checklist-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.checklist-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-text);
  margin: 0 0 12px;
}
.checklist-card ul {
  padding-left: 18px;
  margin: 0;
}
.checklist-card ul li {
  font-size: 14px;
  color: #374151;
  line-height: 1.65;
  margin-bottom: 7px;
}

/* Resources grid (responsabile) */
.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}
.resource-card:not(.resource-card--static):hover {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-green);
}
.resource-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--clr-green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-info {
  flex: 1;
  min-width: 0;
}
.resource-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 4px;
}
.resource-info span {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.55;
}
.resource-arrow {
  flex-shrink: 0;
  align-self: center;
  opacity: .5;
}

/* Values grid (info) */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}
.value-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.value-card strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
}
.value-card span {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.55;
}

/* Contact grid (info) */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 18px;
}
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--clr-green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
  line-height: 1.55;
}
.contact-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-green);
  text-decoration: none;
}
.contact-card a:hover { text-decoration: underline; }

/* Expertise grid (author) */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0;
}
.expertise-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.expertise-card strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
}
.expertise-card span {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.55;
}

/* Author quote */
.author-quote {
  position: relative;
  background: var(--clr-green-light);
  border-left: 4px solid var(--clr-green);
  border-radius: var(--radius);
  padding: 24px 24px 20px 52px;
  margin-bottom: 40px;
}
.quote-icon {
  position: absolute;
  top: 20px;
  left: 14px;
}
.author-quote p {
  font-size: 15px;
  color: #1f4d33;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 12px;
}
.author-quote cite {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-green);
  font-style: normal;
}

/* Method steps (author) */
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
  position: relative;
}
.method-steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-border);
}
.method-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 0 0 24px;
  position: relative;
}
.step-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-content {
  flex: 1;
  padding-top: 8px;
}
.step-content strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 5px;
}
.step-content p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}

/* ── DESKTOP BREAKPOINTS (inner pages) ──────────────────── */
@media (min-width: 768px) {
  .page-hero { padding: 56px 32px 48px; }
  .checklist-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .expertise-grid { grid-template-columns: repeat(4, 1fr); }
  .method-steps::before { left: 21px; }
}
