/* ==========================================================================
   Winnita — "Azzurro Oro" (IT) · light premium iGaming theme
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-cream: #F7F2EA;
  --bg-cream-alt: #FBF7F0;
  --bg-hero: #F3ECE0;
  --white: #FFFFFF;

  /* Brand / accents */
  --cta-start: #24337F;
  --cta-end: #16225E;
  --blue: #2B54D4;
  --blue-deep: #16225E;
  --gold: #E4B24A;
  --gold-light: #F2CE6E;
  --gold-dark: #B8862E;
  --red: #D53341;
  --green: #2FA45C;

  /* Text */
  --ink: #1A2244;
  --text-secondary: #4C5261;
  --text-muted: #8A8F9E;

  /* Surfaces */
  --card-bg: #FFFFFF;
  --card-bg-alt: #FBF7F0;
  --card-hover: #F3EEE4;
  --border: rgba(20, 25, 50, 0.08);

  --shadow-sm: 0 4px 14px rgba(20, 25, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 25, 50, 0.10);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-alt) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* soft premium glow so the light bg is not flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(228, 178, 74, 0.05), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(43, 84, 212, 0.05), transparent 45%);
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 0.6em; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.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;
}
.sr-only:focus {
  position: fixed;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 10px 16px; margin: 0;
  clip: auto; z-index: 2000;
  background: var(--blue-deep); color: #fff; border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.is-pinned { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo .logo-img { width: auto; height: 30px; }
.logo span { color: var(--blue); }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--blue);
  border-color: var(--gold);
  text-decoration: none;
}

.btn-cta-header { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-cta,
.btn-cta-header {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover,
.btn-cta-header:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.06);
}
.btn-ghost {
  background: var(--white);
  color: var(--blue-deep);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--card-hover); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  background: var(--bg-cream);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.7rem 0;
}
.breadcrumbs li::after { content: "›"; margin-left: 0.4rem; color: var(--text-muted); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current="page"] { color: var(--blue-deep); font-weight: 600; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { background: var(--bg-hero); padding: 2.5rem 0 3rem; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
}
.hero-card .update {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.hero-card h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Inline-SVG hero illustration */
.hero-art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, #FBF7F0, #F3ECE0);
}
.hero-art svg,
.hero-art img { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   Main content card
   -------------------------------------------------------------------------- */
main { padding: 2.5rem 0 3rem; }

.content-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  overflow: hidden;
}
.content-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.prose h2 {
  position: relative;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--ink);
  padding-left: 0.9rem;
  margin-top: 2.25rem;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em; bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
}
.prose h3 {
  font-size: 1.2rem;
  color: var(--blue-deep);
  margin-top: 1.5rem;
  border-bottom: 2px solid var(--gold-light);
  display: inline-block;
  padding-bottom: 2px;
}
.prose p, .prose li { color: var(--text-secondary); }
.prose > p:first-of-type { margin-top: 0; }

.lead-intro { font-size: 1.05rem; }

/* Table of contents (Indice) */
.toc {
  background: var(--bg-cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}
.toc h2 {
  font-size: 1.1rem !important;
  padding-left: 0 !important;
  margin: 0 0 0.75rem !important;
}
.toc h2::before { display: none; }
.toc ol {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}
.toc a { color: var(--blue-deep); font-weight: 500; }

/* "Important" callout */
.callout {
  border-left: 4px solid var(--gold);
  background: var(--bg-cream-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.callout strong { color: var(--gold-dark); }

/* Bonus banner */
.app-bonus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(242, 206, 110, 0.18), rgba(43, 84, 212, 0.08));
}
.app-bonus strong { color: var(--blue-deep); font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Feature grid (exactly 4 cards)
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: start;
  grid-auto-rows: min-content;
  margin: 1.5rem 0;
}
.feature-card {
  align-self: start;
  height: auto;
  min-height: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 26px rgba(228, 178, 74, 0.22);
}
.feature-card .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(43, 84, 212, 0.12), rgba(228, 178, 74, 0.18));
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  border: none;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.feature-card p { margin: 0; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Widget panels
   -------------------------------------------------------------------------- */
.widget-panel {
  background: var(--bg-cream-alt);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
}
.widget-panel > h2 {
  padding-left: 0 !important;
  font-size: 1.3rem !important;
  margin-top: 0 !important;
}
.widget-panel > h2::before { display: none !important; }
.widget-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  background: rgba(228, 178, 74, 0.16);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

/* Bonus calculator */
.calc-row { margin-bottom: 1rem; }
.calc-row label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.calc-row output { color: var(--blue); }
input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}
.calc-result {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.calc-result strong { color: var(--blue-deep); font-size: 1.2rem; }

/* Slot lobby */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.slot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.slot-thumb {
  height: 90px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: #fff;
  font-weight: 700;
}
.slot-card .body { padding: 0.75rem; }
.slot-card h4 { margin: 0 0 0.15rem; font-size: 0.95rem; color: var(--ink); }
.slot-card .prov { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 0.6rem; }
.btn-demo {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Quiz */
.quiz-options { display: grid; gap: 0.6rem; margin: 1rem 0; }
.quiz-options label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
}
.quiz-options label:hover { background: var(--card-hover); }
.quiz-result { margin-top: 0.75rem; font-weight: 600; }
.quiz-result.ok { color: var(--green); }
.quiz-result.no { color: var(--red); }

/* Roulette */
.roulette-box { text-align: center; }
.roulette-display {
  width: 96px; height: 96px;
  margin: 1rem auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, var(--blue), var(--blue-deep));
  box-shadow: var(--shadow-md);
  transition: transform 0.1s linear;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  overflow: hidden;
  margin: 1.25rem 0 1.75rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table caption {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 0.9rem 1rem 0.4rem;
  caption-side: top;
}
.data-table thead th {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-align: left;
  padding: 0.75rem 1rem;
}
.data-table td {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.data-table tbody tr:nth-child(even) { background: var(--card-bg-alt); }
.data-table tbody tr:hover { background: var(--card-hover); }
.data-table b { color: var(--blue-deep); }
.data-table .gold { color: var(--gold-dark); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.25rem 1rem; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   CTA block
   -------------------------------------------------------------------------- */
.cta-block {
  margin: 2.5rem 0;
  padding: 2.5rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(43, 84, 212, 0.08), rgba(242, 206, 110, 0.18));
  border: 1px solid var(--gold);
}
.cta-block h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-block p { max-width: 640px; margin: 0 auto 1.5rem; }
.cta-disclaimer { margin-top: 1rem; font-size: 0.82rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Responsible gaming footer strip
   -------------------------------------------------------------------------- */
.responsible {
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--bg-cream-alt);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.responsible strong { color: var(--red); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-cream-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pay-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
}
.footer-links a { color: var(--blue-deep); font-weight: 500; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body { font-size: 0.875rem; line-height: 1.55; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.28s ease;
    margin-left: 0;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1rem; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 0.9rem 0; }

  .nav-toggle { display: flex; }
  .btn-cta-header { padding: 0.7rem 1rem; min-height: 42px; font-size: 0.85rem; }

  .hero { padding: 1.5rem 0 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-art { order: -1; }
  .hero-card { padding: 1.5rem; }
  .hero-card h1 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
  .hero-lead { font-size: 0.875rem; }

  .content-card { padding: 1.5rem; border-radius: 14px; }
  .prose h2 { font-size: clamp(1.05rem, 4vw, 1.35rem); }
  .prose h3 { font-size: 0.95rem; }
  .prose p, .prose li { font-size: 0.875rem; }

  .toc ol { columns: 1; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }

  /* Table -> card layout */
  .data-table thead { display: none; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }
  .data-table tr {
    background: var(--white) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.9rem;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: none;
    border-bottom: 1px dashed var(--border);
    padding: 0.55rem 0;
    text-align: right;
  }
  .data-table td:last-child { border-bottom: none; }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink);
    text-align: left;
  }

  .cta-block { padding: 1.75rem 1.25rem; }
}

@media (max-width: 380px) {
  body { font-size: 0.8125rem; }
  .container { padding: 0 1rem; }
  .content-card { padding: 1.1rem; }
  .logo { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
