@charset "UTF-8";
/* ==========================================================
   site.it — Casino Non AAMS Sicuri
   Concept: "Terrazzo & Tarocchi"
   Venetian terrazzo stone surfaces + ranking entries built
   like oversized playing cards (corner index + suit).
   ========================================================== */

:root {
  --stone: #ebe7f1;       /* pale lilac stone */
  --stone-2: #dcd6e6;     /* darker stone / rules */
  --ink: #1a1b3a;         /* deep indigo ink */
  --ink-soft: #3d3f63;    /* secondary text */
  --cobalt: #2a3fd6;      /* Murano cobalt */
  --saffron: #f5b82e;     /* saffron yellow */
  --jade: #127a63;        /* jade green */
  --coral: #d9463b;       /* card red */
  --paper: #fffdf8;       /* card stock */

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 60px;
  --radius-card: 16px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --measure: 46rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--saffron); color: var(--ink);
  padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--stone);
  border-bottom: 3px solid var(--saffron);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  height: var(--header-h);
  padding: 0 16px;
  display: flex; align-items: center; gap: 24px;
}
.brand img { width: auto; height: 34px; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--stone); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="true"] { background: rgba(245, 184, 46, 0.16); color: #fff; }
.header-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--saffron); color: var(--ink);
  font-weight: 700; font-size: 0.9375rem; text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover { background: #ffc94f; color: var(--ink); }
.header-cta .icon { width: 18px; height: 18px; }

@media (min-width: 1180px) {
  .main-nav { display: block; }
  .header-cta { margin-left: 8px; }
}

/* ---------- Hero (terrazzo surface) ---------- */
.hero {
  background-color: var(--stone);
  background-image:
    radial-gradient(circle at 12% 30%, rgba(42,63,214,.45) 0 3px, transparent 4px),
    radial-gradient(circle at 68% 18%, rgba(245,184,46,.6) 0 5px, transparent 6px),
    radial-gradient(circle at 40% 72%, rgba(18,122,99,.45) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 86% 64%, rgba(217,70,59,.45) 0 3.5px, transparent 4.5px),
    radial-gradient(ellipse 9px 5px at 26% 88%, rgba(61,63,99,.35) 0 60%, transparent 70%),
    radial-gradient(circle at 55% 45%, rgba(185,177,204,.6) 0 7px, transparent 8px);
  background-size: 180px 150px, 230px 190px, 140px 170px, 260px 210px, 200px 160px, 310px 240px;
  border-bottom: 2px solid var(--stone-2);
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 20px 16px 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.05rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 22ch;
  text-wrap: balance;
}
.hero-intro {
  max-width: var(--measure);
  background: rgba(255, 253, 248, 0.86);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.hero-intro p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.read-more { display: none; }

@media (max-width: 767px) {
  .js .hero-intro:not(.is-open) p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .js .read-more {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 0;
    background: none; border: 0;
    font: inherit; font-size: 0.875rem; font-weight: 700;
    color: var(--cobalt);
    text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer;
  }
}

.author {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
}
.author-photo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--stone-2);
}
.author-meta { display: flex; flex-direction: column; line-height: 1.3; }
.author-name { font-weight: 700; font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.author-date { font-size: 0.8125rem; color: var(--ink-soft); }
.badge-verified {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px 1px 4px;
  background: #e1f2ec; color: var(--jade);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
}
.badge-verified .icon { width: 15px; height: 15px; color: var(--jade); }

/* ---------- Ranking ---------- */
.ranking { padding: 18px 0 36px; }
.ranking-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ranking h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.casino-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

/* The playing card */
.casino-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-areas:
    "rank brand"
    "bonus bonus"
    "feat feat"
    "cta cta";
  gap: 12px 12px;
  padding: 14px 14px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 5px 5px 0 var(--ink);
}
.casino-card::after {
  /* mirrored suit, bottom-right like a real card */
  content: attr(data-suit);
  position: absolute; right: 12px; bottom: 6px;
  font-size: 1.1rem; line-height: 1;
  transform: rotate(180deg);
  color: var(--ink);
  opacity: 0.25;
  pointer-events: none;
}
.casino-card:first-child { border-color: var(--cobalt); box-shadow: 5px 5px 0 var(--cobalt); }

.card-rank {
  grid-area: rank;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  line-height: 1;
  font-family: var(--font-display);
  color: var(--ink);
}
.rank-num { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; }
.rank-suit { font-size: 1.35rem; margin-top: 2px; }
.casino-card[data-suit="♥"] .card-rank,
.casino-card[data-suit="♦"] .card-rank,
.casino-card[data-suit="♥"]::after,
.casino-card[data-suit="♦"]::after { color: var(--coral); }

.card-brand { grid-area: brand; display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-logo {
  width: 112px; height: 48px;
  object-fit: contain;
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 6px;
  flex: none;
}
.card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  margin: 0 0 2px;
}
.stars { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; }
.stars-bar {
  font-size: 1rem; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--saffron) var(--p, 90%), #cfc8dc var(--p, 90%));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stars[data-r="4.9"] { --p: 98%; }
.stars[data-r="4.8"] { --p: 96%; }
.stars[data-r="4.7"] { --p: 94%; }
.stars[data-r="4.6"] { --p: 92%; }
.stars[data-r="4.5"] { --p: 90%; }
.stars-val { font-weight: 700; color: var(--ink-soft); }

.card-bonus {
  grid-area: bonus;
  background: var(--stone);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  border-left: 4px solid var(--saffron);
}
.bonus-label {
  display: block;
  font-size: 0.8125rem; font-weight: 700;
  color: var(--jade);
}
.bonus-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.card-features { grid-area: feat; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.card-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; line-height: 1.35;
}
.card-features .icon {
  width: 18px; height: 18px; padding: 3px;
  background: var(--jade); color: #fff; border-radius: 50%;
}

.card-cta { grid-area: cta; }
.btn-play {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 800; font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: background-color .15s ease, transform .15s ease;
}
.btn-play:hover { background: var(--ink); color: var(--saffron); }
.btn-play:active { transform: translateY(1px); }

.ranking-note { margin: 16px 0 0; font-size: 0.8125rem; color: var(--ink-soft); }

@media (min-width: 640px) {
  .casino-card {
    grid-template-columns: 60px 1fr 1fr;
    grid-template-areas:
      "rank brand bonus"
      "rank feat cta";
    align-items: center;
    padding: 18px 20px;
  }
  .card-rank { align-self: start; }
}
@media (min-width: 1024px) {
  .casino-card {
    grid-template-columns: 56px 290px minmax(0, 1fr) 210px 150px;
    grid-template-areas: "rank brand bonus feat cta";
    gap: 20px;
    padding: 20px 24px;
  }
  .card-rank { align-self: center; }
  .rank-num { font-size: 2.6rem; }
}

/* ---------- Article content ---------- */
.content {
  max-width: calc(var(--measure) + 32px);
  margin: 0 auto;
  padding: 8px 16px 48px;
}
.content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 2.6em 0 0.6em;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  position: relative;
  text-wrap: balance;
}
.content h2::before {
  /* terrazzo chip on the rule */
  content: "";
  position: absolute; top: -7px; left: 0;
  width: 44px; height: 12px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 20% 50%, var(--coral) 0 2px, transparent 2.5px),
    radial-gradient(circle at 55% 40%, var(--jade) 0 1.8px, transparent 2.3px),
    radial-gradient(circle at 80% 60%, var(--cobalt) 0 2px, transparent 2.5px),
    var(--saffron);
}
.content > h2:first-child { margin-top: 1em; }
.content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 1.9em 0 0.5em;
}
.content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.6em 0 0.4em;
  color: var(--ink-soft);
}
.content p { margin: 0 0 1em; }
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.content li { margin-bottom: 0.45em; }
.content li::marker { color: var(--cobalt); }

/* Bankroll sub-leads (single-item lists) */
.content ul.list-lead { list-style: none; padding: 0; margin: 1.4em 0 0.4em; }
.content ul.list-lead li {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 3px 14px;
  background: var(--ink); color: var(--stone);
  border-radius: 999px;
  margin: 0;
}

/* Warnings list */
.content ul.list-warn { list-style: none; padding: 0; }
.content ul.list-warn li {
  position: relative;
  padding: 10px 14px 10px 44px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-2);
}
.content ul.list-warn li::before {
  content: "!";
  position: absolute; left: 12px; top: 11px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.875rem;
  background: var(--coral); color: #fff; border-radius: 50%;
}

/* Registration steps (real sequence -> numbered) */
.content ol.steps { list-style: none; padding: 0; counter-reset: step; }
.content ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 12px 48px;
  margin: 0;
  border-left: 2px dashed var(--stone-2);
  margin-left: 16px;
  padding-left: 32px;
}
.content ol.steps li:last-child { border-left-color: transparent; }
.content ol.steps li::before {
  content: counter(step);
  position: absolute; left: -17px; top: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  background: var(--saffron); color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

/* ---------- Tables ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2em 0 1.6em;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.table-wrap td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--stone-2); }
.table-wrap td p { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tr:first-child td {
  background: var(--ink);
  color: var(--stone);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}
.table-wrap tr:nth-child(even):not(:first-child) td { background: #f6f3fa; }

.t-mid { min-width: 560px; }
.t-wide { min-width: 680px; }

/* Casino spec sheets */
.t-spec td:first-child { width: 38%; font-weight: 700; color: var(--ink-soft); }
.t-spec tr:first-child td:first-child { color: var(--stone); }

/* Signal table */
.t-signal td:first-child { font-weight: 700; }
.t-signal tr:not(:first-child) td:nth-child(2) { color: var(--jade); }
.t-signal tr:not(:first-child) td:nth-child(3) { color: #b3342a; }

/* Pro & Contro */
.t-proscons td { width: 50%; }
.t-proscons tr:first-child td:first-child { background: var(--jade); color: #fff; }
.t-proscons tr:first-child td:nth-child(2) { background: var(--coral); color: #fff; }
.t-proscons tr:not(:first-child) td:first-child p::before { content: "+ "; font-weight: 800; color: var(--jade); }
.t-proscons tr:not(:first-child) td:nth-child(2) p::before { content: "\2212\00a0"; font-weight: 800; color: var(--coral); }

@media (max-width: 480px) {
  .table-wrap table { font-size: 0.875rem; }
  .table-wrap td { padding: 9px 10px; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 1em; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--stone-2);
  border-left: 5px solid var(--cobalt);
  border-radius: var(--radius-sm);
  padding: 14px 18px 4px;
  margin-bottom: 12px;
}
.faq-item:nth-child(4n+2) { border-left-color: var(--saffron); }
.faq-item:nth-child(4n+3) { border-left-color: var(--jade); }
.faq-item:nth-child(4n) { border-left-color: var(--coral); }
.content .faq-item h3 { margin: 0 0 0.4em; font-size: 1.125rem; }
.faq-item p { font-size: 1rem; }

/* ---------- Author box ---------- */
.author-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  margin-top: 40px;
  padding: 20px;
  background: var(--ink);
  color: var(--stone);
  border-radius: var(--radius-card);
}
.author-box-photo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--saffron);
  background: var(--ink-soft);
}
.content .author-box p { margin: 0; }
.author-box-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.content .author-box .author-box-role { font-size: 0.875rem; color: var(--saffron); margin-bottom: 8px; }
.author-box-bio { font-size: 0.9375rem; line-height: 1.6; color: #d6d3e6; }
@media (min-width: 640px) {
  .author-box { grid-template-columns: 88px 1fr; padding: 24px 28px; }
  .author-box-photo { width: 88px; height: 88px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9c6dc;
  border-top: 3px solid var(--saffron);
  font-size: 0.9375rem;
}
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 36px 16px 28px; }
.footer-top { display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { width: auto; height: 34px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--stone); text-decoration: none; }
.footer-nav a:hover { color: var(--saffron); text-decoration: underline; }
.footer-rg {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 28px; padding: 18px;
  border: 1px solid #34365c; border-radius: 12px;
}
.footer-rg p { margin: 0; line-height: 1.6; }
.footer-rg strong { color: #fff; }
.footer-rg a { color: var(--saffron); font-weight: 700; }
.age-badge {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 3px solid var(--coral); border-radius: 50%;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
.copyright { margin: 20px 0 0; font-size: 0.8125rem; color: #9a97b5; }
@media (min-width: 768px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Small screens: keep header compact ---------- */
@media (max-width: 380px) {
  .header-inner { gap: 10px; padding: 0 12px; }
  .brand img { height: 28px; }
  .header-cta { padding: 8px 12px; font-size: 0.875rem; }
  .card-logo { width: 96px; height: 42px; }
}
