﻿/* Blackjack Italia — stili globali. Palette e componenti ispirati a casino-review.by (tema scuro, accento verde, Montserrat). */

:root {
  color-scheme: dark;
  --bg: #0b1215;
  --bg-deep: #070d0f;
  --surface: #131c20;
  --surface-2: #19242a;
  --surface-3: #212e34;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --ink: #eef4f2;
  --ink-2: #b3c1be;
  --ink-3: #7d8c89;
  --green: #38e491;
  --green-2: #1fbf72;
  --green-3: #3b9c76;
  --green-ink: #04140c;
  --green-t: rgba(56, 228, 145, 0.12);
  --green-glow: rgba(56, 228, 145, 0.22);
  --red: #ff7a72;
  --red-t: rgba(255, 122, 114, 0.12);
  --amber: #f6c14e;
  --amber-t: rgba(246, 193, 78, 0.12);
  --blue: #78beff;
  --blue-t: rgba(120, 190, 255, 0.12);
  --link: #5eeaa6;
  --felt: #0f3d28;
  --felt-2: #145236;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 72ch;
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 72px;
}

*, *::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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3, h4 { color: #fff; line-height: 1.2; margin: 0 0 0.55em; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin-top: 0; }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.32rem); margin-top: 1.8em; }
h4 { font-size: 1rem; margin-top: 1.4em; }
p { margin: 0 0 1.05em; }
strong { color: #fff; font-weight: 600; }
small { font-size: 0.86em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--green); color: var(--green-ink); padding: 10px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons & chips ---------- */
.btn {
  font: 600 0.93rem/1 var(--font);
  border: 1.5px solid var(--line-2);
  color: var(--ink);
  background: var(--surface-2);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
  padding: 0.72rem 1.2rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn:hover { color: #fff; border-color: rgba(56, 228, 145, 0.5); }
.btn-green { background: var(--green); border-color: var(--green); color: var(--green-ink); font-weight: 700; }
.btn-green:hover { color: var(--green-ink); background: #52efa4; border-color: #52efa4; box-shadow: 0 10px 28px -10px var(--green-glow), 0 0 0 4px rgba(56, 228, 145, 0.14); }
.btn-ghost { color: #fff; background: #050b0c; border-color: rgba(56, 228, 145, 0.35); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.84rem; }

.chip {
  color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line);
  white-space: nowrap; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.24rem 0.7rem; font-size: 0.8rem; font-weight: 500;
}
.chip.ok { color: var(--green); background: var(--green-t); border-color: rgba(56, 228, 145, 0.2); }
.chip.warn { color: var(--red); background: var(--red-t); border-color: transparent; }
.chip.info { color: var(--blue); background: var(--blue-t); border-color: rgba(120, 190, 255, 0.2); }
.chip.score { color: var(--amber); background: var(--amber-t); border-color: rgba(246, 193, 78, 0.25); }
.chip.score b { margin: 0 0.05rem; font-weight: 700; }
.chip svg { width: 13px; height: 13px; }

.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-size: 0.72rem; font-weight: 800; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 13, 15, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 1.6rem; min-height: var(--header-h); }
.logo { color: var(--ink); white-space: nowrap; display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-img { flex-shrink: 0; width: 36px; height: 36px; }
.logo-word { letter-spacing: -0.025em; color: #fff; font-size: 1.22rem; font-weight: 700; }
.logo-word span { color: var(--green); }

.mega { flex: 1; }
.mega-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.1rem; }
.mega-item { position: relative; }
.mega-btn {
  font: 500 0.93rem var(--font); color: var(--ink-2); cursor: pointer; background: none; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.8rem; text-decoration: none; position: relative;
}
.mega-btn svg { width: 12px; height: 12px; color: var(--ink-3); transition: transform 0.2s; }
.mega-btn:hover, .mega-item.open > .mega-btn, .mega-item:focus-within > .mega-btn { color: #fff; background: rgba(255, 255, 255, 0.05); }
.mega-item.open > .mega-btn svg { color: var(--green); transform: rotate(180deg); }
.mega-btn.is-active { color: #fff; font-weight: 600; }
.mega-btn.is-active::after { content: ""; position: absolute; left: 0.8rem; right: 1.6rem; bottom: -0.55rem; height: 3px; border-radius: 3px; background: var(--green); }
.mega-panel {
  position: absolute; left: 0; top: calc(100% + 0.6rem); min-width: 230px; z-index: 50;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--shadow);
  padding: 0.6rem; display: none;
}
.mega-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; }
.mega-item.open > .mega-panel, .mega-item:focus-within > .mega-panel { display: block; }
.mega-panel ul { list-style: none; margin: 0; padding: 0; }
.mega-panel a { display: block; color: var(--ink-2); text-decoration: none; padding: 0.5rem 0.7rem; border-radius: var(--r-s); font-size: 0.9rem; white-space: nowrap; }
.mega-panel a:hover, .mega-panel a[aria-current="page"] { background: var(--surface-2); color: var(--green); }
.mega-panel .mega-all { margin-top: 0.3rem; border-top: 1px solid var(--line); padding-top: 0.6rem; color: var(--ink); font-weight: 600; }

.head-right { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.head-cta { padding: 0.62rem 1.05rem; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: #fff; cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.drawer-inner { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 92vw); background: var(--surface); border-left: 1px solid var(--line-2); overflow-y: auto; padding: 1rem 1rem 2rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: #fff; cursor: pointer; font-size: 1.3rem; }
.drawer-group { border-top: 1px solid var(--line); padding: 0.4rem 0; }
.drawer-group summary { cursor: pointer; list-style: none; padding: 0.6rem 0.2rem; color: #fff; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform 0.2s; }
.drawer-group[open] summary::after { transform: rotate(-135deg); }
.drawer-group ul { list-style: none; margin: 0; padding: 0 0 0.4rem; }
.drawer-group a { display: block; padding: 0.45rem 0.6rem; color: var(--ink-2); text-decoration: none; border-radius: var(--r-s); }
.drawer-group a:hover { background: var(--surface-2); color: var(--green); }
.drawer-cta { width: 100%; margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 3rem 0 2rem;
  background: radial-gradient(700px 380px at 78% 30%, rgba(56, 228, 145, 0.13), transparent 70%), linear-gradient(180deg, #0d161a 0%, var(--bg) 100%);
}
.hero::before { content: ""; position: absolute; inset: auto -10% 18% 30%; height: 320px; border-top: 1.5px solid rgba(56, 228, 145, 0.35); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: rotate(-6deg); opacity: 0.7; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.5rem; position: relative; }
.hero-badge { color: var(--ink); background: rgba(56, 228, 145, 0.08); border: 1px solid rgba(56, 228, 145, 0.28); border-radius: 999px; display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 1.2rem; padding: 0.38rem 0.85rem; font-size: 0.84rem; font-weight: 500; }
.hero-badge svg { width: 14px; height: 14px; color: var(--green); }
.hero h1 { max-width: 16ch; margin: 0 0 1rem; }
.h1-accent { color: var(--green); }
.hero-lead { color: var(--ink-2); max-width: 48ch; margin: 0 0 1.6rem; font-size: 1.08rem; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-art { position: relative; margin: -0.5rem -2rem -0.5rem 0; }
.hero-art img { width: 100%; height: auto; border-radius: var(--r-l); }
.hero-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 2.2rem 0 0; padding: 0.4rem; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(24, 32, 37, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-strip li + li { border-left: 1px solid var(--line); }
.hero-strip a { color: var(--ink); display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; border-radius: var(--r-m); text-decoration: none; }
.hero-strip a:hover { background: var(--surface-2); }
.hero-strip svg { width: 26px; height: 26px; color: var(--green); flex-shrink: 0; }
.hero-strip b { display: block; font-size: 0.92rem; }
.hero-strip small { color: var(--ink-3); display: block; font-size: 0.78rem; }

/* ---------- Byline ---------- */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; padding: 1rem 0 0; color: var(--ink-3); font-size: 0.86rem; }
.byline.under-ranking { padding: 0 0 1.2rem; border-bottom: 1px solid var(--line); }
.byline-author { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.byline-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(56, 228, 145, 0.4); }
.byline-author b { display: block; font-size: 0.9rem; }
.byline-author small { color: var(--ink-3); display: block; }
.byline .dot::before { content: "·"; margin-right: 0.8rem; }

/* ---------- Page layout ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.4rem; padding-top: 2rem; padding-bottom: 3rem; align-items: start; }
.page.single { grid-template-columns: minmax(0, 1fr); }
.aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 1rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.1rem 1.2rem; }
.toc p { color: #fff; margin: 0 0 0.6rem; font-size: 0.86rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; counter-reset: toc; }
.toc a { color: var(--ink-2); border-radius: var(--r-s); padding: 0.36rem 0.6rem; font-size: 0.86rem; line-height: 1.35; text-decoration: none; display: block; }
.toc a:hover, .toc a.is-active { background: var(--surface-2); color: var(--green); }
.aside-top { background: linear-gradient(160deg, var(--surface-3), var(--surface)); border: 1px solid rgba(56, 228, 145, 0.25); border-radius: var(--r-l); padding: 1.1rem 1.2rem; }
.aside-top .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); font-weight: 700; margin: 0 0 0.5rem; }
.aside-top .name { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 0.2rem; }
.aside-top .offer { color: var(--ink-2); font-size: 0.88rem; margin: 0 0 0.9rem; }
.aside-top .btn { width: 100%; }

.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > blockquote, .prose > dl { max-width: var(--measure); }
.prose h2 { margin-top: 2.6rem; padding-top: 0.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--green); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: #fff; font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td b { color: #fff; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); margin: 1.4rem 0; overflow-x: auto; }
.table-note { color: var(--ink-3); margin: -0.6rem 0 1.4rem; font-size: 0.82rem; }
.crossref { font-size: 0.9rem; color: var(--ink-2); margin: -0.4rem 0 1.2rem; }
.crossref::before { content: "→ "; color: var(--green); }

dl.actions { margin: 0 0 1.2em; display: grid; gap: 0.55rem; }
dl.actions div { display: grid; grid-template-columns: 150px 1fr; gap: 0.8rem; padding: 0.6rem 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
dl.actions dt { color: var(--green); font-weight: 700; margin: 0; }
dl.actions dd { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
@media (min-width: 700px) { dl.actions.glossary div { grid-template-columns: 210px 1fr; } }

blockquote.note { margin: 1.2rem 0; padding: 0.9rem 1.1rem; border-left: 3px solid var(--amber); background: var(--amber-t); border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--ink); font-size: 0.94rem; }
blockquote.note p { margin: 0; }

.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.6rem 1.4rem; margin: 2.6rem 0 1rem; }
.sec-head h2 { margin: 0; }
.sec-head a { font-size: 0.9rem; white-space: nowrap; }

/* ---------- Ranking cards (come casino-review.by) ---------- */
.ranking-top { padding-top: 0.4rem; }
.ranking-top h2 { margin: 0 0 0.5rem; }
.ranking-top > p { color: var(--ink-2); max-width: var(--measure); margin: 0; }
.op-list { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; display: grid; gap: 1rem; }
.prose .op-list { max-width: none; }
.op-card {
  position: relative; isolation: isolate; overflow: visible;
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(170px, 210px); gap: 1rem 1.4rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); transition: border-color 0.15s;
}
.op-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, transparent 74%, rgba(56, 228, 145, 0.15) 75.4%, transparent 76.8%), linear-gradient(118deg, transparent 82%, rgba(56, 228, 145, 0.07) 83.2%, transparent 84.5%), radial-gradient(420px 220px at 100% 100%, rgba(56, 228, 145, 0.09), transparent 70%); }
.op-card:hover { border-color: rgba(56, 228, 145, 0.3); }
.op-card.top { background: linear-gradient(135deg, #15241f, var(--surface) 60%); border: 1.5px solid rgba(56, 228, 145, 0.6); box-shadow: 0 0 0 4px rgba(56, 228, 145, 0.06), var(--shadow); }
.op-rank { position: absolute; top: -11px; left: 18px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink); font-size: 0.72rem; font-weight: 700; padding: 0.18rem 0.6rem; border-radius: 999px; }
.op-card.top .op-rank { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.logo-tile { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-deep); display: inline-grid; place-items: center; overflow: hidden; padding: 6px; align-self: start; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile.mark { background: var(--bg-deep); color: #fff; font-weight: 800; font-size: 0.72rem; letter-spacing: -0.02em; text-align: center; padding: 0.3rem; }
.logo-tile.mark span { color: var(--green); }
.op-title { margin: 0; font-size: 1.18rem; letter-spacing: -0.02em; }
.op-title a { color: #fff; text-decoration: none; }
.op-title a:hover { color: var(--green); }
.op-best { color: var(--ink-2); margin: 0.2rem 0 0.6rem; font-size: 0.9rem; }
.op-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.op-bonus { background: rgba(5, 11, 12, 0.55); border: 1px dashed rgba(56, 228, 145, 0.35); border-radius: var(--r-m); padding: 0.85rem 1rem; }
.op-bonus small { color: var(--ink-3); font-size: 0.76rem; font-weight: 500; display: block; }
.op-bonus strong { color: #fff; margin: 0.15rem 0 0.25rem; font-size: 1.06rem; font-weight: 700; line-height: 1.3; display: block; }
.op-bonus .meta { color: var(--ink-2); font-size: 0.8rem; display: block; }
.checked { color: var(--ink-3); font-size: 0.76rem; display: block; margin-top: 0.45rem; }
.op-cta { display: grid; gap: 0.5rem; justify-items: stretch; min-width: 0; }
.op-cta .btn { width: 100%; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; padding-left: 0.9rem; padding-right: 0.9rem; }
.lic { color: var(--green); font-size: 0.74rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; justify-content: center; text-align: center; }
.lic.alt { color: var(--ink-3); }
.lic svg { width: 12px; height: 12px; flex-shrink: 0; }

.compare td:first-child { color: #fff; font-weight: 600; white-space: nowrap; }
.compare .score-cell { color: var(--amber); font-weight: 700; }

/* ---------- Grids ---------- */
.pick-grid, .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.8rem; margin: 1.2rem 0 1.6rem; }
.pick { display: flex; gap: 0.8rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.pick:hover { border-color: rgba(56, 228, 145, 0.45); transform: translateY(-2px); color: var(--ink); }
.pick-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--green-t); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.pick-icon svg { width: 22px; height: 22px; }
.pick b { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 0.15rem; }
.pick small { color: var(--ink-3); font-size: 0.8rem; line-height: 1.4; display: block; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.8rem; margin: 1.2rem 0 1.6rem; }
.game-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; color: var(--ink); text-decoration: none; display: grid; gap: 0.35rem; align-content: start; transition: border-color 0.15s; }
.game-tile:hover { border-color: rgba(56, 228, 145, 0.45); color: var(--ink); }
.game-tag { display: inline-block; width: max-content; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--green); background: var(--green-t); border-radius: 999px; padding: 0.15rem 0.55rem; }
.game-tile b { color: #fff; font-size: 0.95rem; }
.game-tile small { color: var(--ink-3); font-size: 0.8rem; line-height: 1.4; }
.game-tile .edge { color: var(--amber); font-size: 0.8rem; font-weight: 600; }

/* ---------- Felt preview (gioco gratis) ---------- */
.felt {
  position: relative; border-radius: var(--r-l); overflow: hidden; margin: 1.2rem 0 1.6rem;
  background: radial-gradient(120% 90% at 50% 0%, var(--felt-2), var(--felt) 60%, #0a2b1c 100%);
  border: 1px solid rgba(56, 228, 145, 0.25); box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.4rem; align-items: center;
}
.felt::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; pointer-events: none; }
.felt-cards { display: flex; gap: 0.5rem; margin: 0 0 0.9rem; }
.pcard { width: 54px; height: 76px; border-radius: 7px; background: #fff; color: #111; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.pcard.red { color: #c8322c; }
.pcard.back { background: repeating-linear-gradient(45deg, #1d6b48 0 6px, #175a3c 6px 12px); border: 3px solid #fff; }
.felt p { margin: 0 0 0.5rem; color: #d9efe4; font-size: 0.95rem; position: relative; }
.felt .felt-title { color: #fff; font-weight: 700; font-size: 1.1rem; }
.felt-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; position: relative; }
.felt-side { position: relative; display: grid; gap: 0.5rem; }
.felt-side .stat { background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--r-s); padding: 0.55rem 0.8rem; font-size: 0.85rem; color: #d9efe4; display: flex; justify-content: space-between; }
.felt-side .stat b { color: #fff; }

/* ---------- Strategy mini-table tool ---------- */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.2rem 1.3rem; margin: 1.2rem 0 1.6rem; box-shadow: var(--shadow); }
.tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.tool-head h3 { margin: 0; }
.tool-head .chip { white-space: normal; text-align: center; line-height: 1.35; }
.tool-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.9rem; }
.tool label { display: grid; gap: 0.3rem; font-size: 0.8rem; color: var(--ink-3); }
.tool select, .tool input[type="number"] { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); color: #fff; border-radius: var(--r-s); padding: 0.55rem 0.7rem; font: 500 0.92rem var(--font); }
.tool-result { background: var(--green-t); border: 1px solid rgba(56, 228, 145, 0.3); border-radius: var(--r-s); padding: 0.8rem 1rem; display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.tool-result .act { font-size: 1.4rem; font-weight: 800; color: var(--green); }
.tool-result .why { color: var(--ink-2); font-size: 0.9rem; flex: 1; min-width: 200px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.bs-wrap { overflow-x: auto; margin-top: 1rem; }
.bs { border-collapse: collapse; font-size: 0.74rem; min-width: 560px; width: 100%; }
.bs th, .bs td { text-align: center; padding: 0.3rem 0.2rem; border: 1px solid rgba(255, 255, 255, 0.07); }
.bs th { background: var(--surface-2); color: #fff; }
.bs td { font-weight: 700; color: #061009; }
.bs td.H { background: #e26c6c; }
.bs td.S { background: #f2d16b; }
.bs td.D { background: #5fcf8f; }
.bs td.P { background: #7fb8ff; }
.bs td.R { background: #d7d7d7; }
.bs td.is-hit { outline: 3px solid #fff; outline-offset: -3px; }
.bs-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.78rem; color: var(--ink-2); margin-top: 0.6rem; }
.bs-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.3rem; vertical-align: -1px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.6rem; margin: 1rem 0 1.6rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color 0.15s; }
.faq[open] { border-color: rgba(56, 228, 145, 0.3); }
.faq summary { cursor: pointer; color: #fff; padding: 1rem 3.2rem 1rem 1.2rem; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; top: 50%; right: 1.2rem; width: 9px; height: 9px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq > div { color: var(--ink-2); padding: 0 1.2rem 1.05rem; font-size: 0.95rem; }
.faq > div > p:last-child { margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { margin: 2.4rem 0 0; padding: 1.6rem; border-radius: var(--r-l); background: linear-gradient(160deg, #15241f, var(--surface) 60%); border: 1px solid rgba(56, 228, 145, 0.3); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; }
.final-cta h2 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.final-cta p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Author block ---------- */
.author-box { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.2rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.3rem; margin: 2.4rem 0 0; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(56, 228, 145, 0.4); }
.author-box h3 { margin: 0 0 0.2rem; }
.author-box .role { color: var(--green); font-size: 0.84rem; font-weight: 600; margin: 0 0 0.6rem; }
.author-box p { font-size: 0.93rem; color: var(--ink-2); margin: 0 0 0.5rem; }

.author-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; margin: 1.6rem 0; }
.author-hero img { width: 220px; height: 220px; border-radius: var(--r-l); object-fit: cover; border: 1px solid var(--line-2); }
.author-hero .meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.author-wide { border-radius: var(--r-l); margin: 1.6rem 0; border: 1px solid var(--line-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer-brand p { color: var(--ink-3); max-width: 36ch; margin: 0.9rem 0 0; font-size: 0.9rem; }
.footer-col p { color: #fff; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.7rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--green); }
.footer-legal { border-top: 1px solid var(--line); color: #8a9896; display: grid; gap: 0.55rem; margin-top: 2.6rem; padding-top: 1.5rem; font-size: 0.8rem; }
.footer-legal p { max-width: 100ch; margin: 0; }
.footer-legal .rg { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; color: var(--ink-2); }

/* ---------- Sticky CTA & back-to-top ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: rgba(7, 13, 15, 0.94); border-top: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 0.6rem var(--gutter); display: none; align-items: center; gap: 0.8rem; transform: translateY(110%); transition: transform 0.25s; }
.bar.show { transform: translateY(0); }
.bar .bar-text { flex: 1; min-width: 0; font-size: 0.86rem; color: var(--ink-2); }
.bar .bar-text b { color: #fff; display: block; font-size: 0.92rem; }
.bar .btn { padding: 0.6rem 1rem; }
.bar-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.totop { position: fixed; right: 16px; bottom: 16px; z-index: 34; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: #fff; cursor: pointer; display: none; place-items: center; }
.totop.show { display: grid; }
.totop svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .mega { display: none; }
  .burger { display: grid; }
  .head-cta { display: none; }
  .page { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .aside-top { display: none; }
  .bar { display: flex; }
  .totop { bottom: 76px; }
}
@media (max-width: 860px) {
  .hero { padding: 2.2rem 0 1.6rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin: 0; order: -1; }
  .hero h1 { max-width: none; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip li + li { border-left: 0; }
  .hero-strip li:nth-child(even) { border-left: 1px solid var(--line); }
  .hero-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .op-card { grid-template-columns: 52px minmax(0, 1fr); gap: 0.9rem; padding: 1.3rem 1.1rem; align-items: start; }
  .logo-tile { width: 52px; height: 52px; border-radius: 12px; padding: 4px; }
  .op-offer, .op-cta { grid-column: 1 / -1; }
  .op-cta { grid-template-columns: 1fr 1fr; }
  .lic { grid-column: 1 / -1; }
  .felt { grid-template-columns: 1fr; }
  .final-cta { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .author-hero { grid-template-columns: 1fr; }
  .author-hero img { width: 160px; height: 160px; }
  .tool-row { grid-template-columns: 1fr; }
  dl.actions div { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip li:nth-child(even) { border-left: 0; }
  .hero-strip li + li { border-top: 1px solid var(--line); }
  .op-cta { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Testata pagine interne ---------- */
.page-head { padding: 1.6rem 0 1.4rem; background: radial-gradient(90% 120% at 15% 0%, rgba(56, 228, 145, 0.09), transparent 55%); border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.page-head h1 { max-width: 22ch; margin: 0 0 0.8rem; font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.page-head .hero-lead { margin-bottom: 0.4rem; max-width: 64ch; }
.page-head .hero-cta { margin-top: 1.1rem; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; font-size: 0.82rem; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--green); }
kbd { font-family: inherit; font-size: 0.8em; font-weight: 700; color: #fff; background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0.05rem 0.45rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0.8rem 0 1.4rem; }
.pros-cons ul { margin: 0; padding: 0.9rem 1rem 0.9rem 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); font-size: 0.93rem; color: var(--ink-2); }
.pros-cons ul li::marker { color: var(--green); }
.pros-cons ul.cons li::marker { color: var(--red); }
.op-mini { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0 0 0.6rem; }
.op-mini .logo-tile { width: 48px; height: 48px; }
.op-mini .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
.op-chips .chip { white-space: normal; max-width: 100%; text-align: center; line-height: 1.3; }
@media (max-width: 860px) {
  .pros-cons { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .bar, .totop, .hero-art, .aside, .op-cta, .hero-cta, .final-cta { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
