/* Nine Casino Italia — top3elettrodomestici.it
   Base stylesheet. Dark theme, mobile-first, no external assets. */

:root {
  --bg: #0a0f1c;
  --bg-2: #0f1728;
  --card: #141e35;
  --card-2: #182545;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eefb;
  --muted: #9db0d0;
  --accent: #f26b1d;
  --accent-2: #e45809;
  --accent-soft: rgba(242, 107, 29, 0.14);
  --good: #37c98f;
  --bad: #ff6f6f;
  --gold: #ffc247;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(242, 107, 29, 0.85);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, 0.82) 0%, rgba(10, 15, 28, 0.9) 55%, var(--bg) 100%),
    radial-gradient(1000px 460px at 18% 10%, rgba(242, 107, 29, 0.22), transparent 65%);
}
.hero-inner { padding: 56px 0 48px; max-width: 760px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--gold);
  background: rgba(255, 194, 71, 0.12);
  border: 1px solid rgba(255, 194, 71, 0.3);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 50px);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.6px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero .hero-sub {
  font-size: clamp(17px, 2.4vw, 21px);
  color: #f2f6ff;
  margin: 0 0 12px;
  font-weight: 600;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.hero .hero-note { color: var(--muted); font-size: 15px; margin: 0 0 26px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}
.hero-meta strong { color: var(--text); }

.page-hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero .hero-inner { padding: 34px 0 34px; max-width: 820px; }
.page-hero h1 { font-size: clamp(27px, 5vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.4px; }
.page-hero .hero-sub { font-size: 17px; font-weight: 500; color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }

/* ---------- Layout ---------- */
.main { padding: 34px 0 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }

/* ---------- Article typography ---------- */
.prose { min-width: 0; }
.prose h2 {
  font-size: clamp(23px, 3.6vw, 30px);
  line-height: 1.25;
  margin: 46px 0 16px;
  letter-spacing: -0.3px;
  scroll-margin-top: 84px;
}
.prose h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.prose h3 {
  font-size: clamp(19px, 2.6vw, 22px);
  margin: 32px 0 12px;
  line-height: 1.3;
  scroll-margin-top: 84px;
}
.prose > p:first-of-type { font-size: 18px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: #fff; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Figures / screenshots ---------- */
figure { margin: 26px 0; }
figure a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
figure a:hover { border-color: rgba(242, 107, 29, 0.55); }
figure img { width: 100%; }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Cards & boxes ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 26px 0;
}
.card h3, .card h2 { margin-top: 0; }
.card h2::after { display: none; }

.bonus-box {
  background: linear-gradient(135deg, var(--card-2) 0%, var(--card) 60%);
  border: 1px solid rgba(242, 107, 29, 0.36);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  display: grid;
  gap: 18px;
  align-items: center;
}
.bonus-box .bonus-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent);
}
.bonus-box .bonus-value { font-size: clamp(24px, 4.4vw, 32px); font-weight: 800; line-height: 1.15; margin: 6px 0 8px; }
.bonus-box .bonus-terms { color: var(--muted); font-size: 14px; margin: 0; }

.quick-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; margin: 26px 0; }
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.fact dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin-bottom: 5px; }
.fact dd { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.35; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-title { font-weight: 700; display: block; margin-bottom: 6px; color: #fff; }
.callout.warn { border-left-color: var(--gold); background: rgba(255, 194, 71, 0.1); }

/* ---------- TOC ---------- */
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.toc h2 { font-size: 17px !important; margin: 0 0 12px !important; text-transform: uppercase; letter-spacing: 0.9px; color: var(--muted); }
.toc h2::after { display: none; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 26px; }
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--accent); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
caption { text-align: left; padding: 14px 16px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line); background: var(--bg-2); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

/* ---------- Pros & cons ---------- */
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 26px 0; }
.proscons > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.proscons h3 { margin: 0 0 12px; font-size: 18px; display: flex; align-items: center; gap: 9px; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 15px; line-height: 1.55; }
.proscons li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.pros { border-top: 3px solid var(--good) !important; }
.cons { border-top: 3px solid var(--bad) !important; }
.pros h3 { color: var(--good); }
.cons h3 { color: var(--bad); }
.pros li::before { content: "+"; color: var(--good); font-size: 19px; line-height: 1.35; }
.cons li::before { content: "\2212"; color: var(--bad); font-size: 19px; line-height: 1.35; }

/* ---------- Rating ---------- */
.rating-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 28px 0;
}
.score {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: conic-gradient(var(--accent) 0 76%, rgba(255, 255, 255, 0.09) 76% 100%);
  position: relative;
}
.score::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.score span { position: relative; font-size: 25px; font-weight: 800; line-height: 1; }
.score small { position: relative; display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.rating-bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 126px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bar-row b { font-weight: 700; text-align: right; }

/* ---------- FAQ ---------- */
.faq { margin: 24px 0; display: grid; gap: 10px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
.faq details[open] { border-color: rgba(242, 107, 29, 0.4); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 50px 16px 18px;
  font-weight: 700;
  font-size: 16.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 23px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq .faq-body { padding: 0 18px 16px; color: var(--muted); }
.faq .faq-body p { margin: 0 0 12px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Steps (HowTo) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px; top: 15px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.steps strong { display: block; margin-bottom: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(242, 107, 29, 0.16), rgba(20, 30, 53, 0.9));
  border: 1px solid rgba(242, 107, 29, 0.34);
  border-radius: var(--radius);
  padding: 26px;
  margin: 34px 0;
  text-align: center;
}
.cta-band h2 { margin: 0 0 8px !important; font-size: 22px !important; }
.cta-band h2::after { display: none; }
.cta-band p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.cta-band .fineprint { font-size: 12.5px; margin: 14px 0 0; }

/* ---------- Author box ---------- */
.author-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 40px 0 10px;
}
.author-avatar {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 21px; letter-spacing: 0.5px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.author-name { font-size: 19px; font-weight: 800; margin: 0 0 3px; }
.author-role { color: var(--accent); font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.author-bio { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.author-links { display: flex; flex-wrap: wrap; gap: 10px; }
.author-links a {
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--text);
}
.author-links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-dates { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 44px 0 0;
  margin-top: 20px;
  font-size: 15px;
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; max-width: 340px; }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }

.footer-cta {
  margin: 34px 0 0;
  background: var(--card);
  border: 1px solid rgba(242, 107, 29, 0.3);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-cta div strong { display: block; font-size: 17px; }
.footer-cta div span { color: var(--muted); font-size: 14px; }

.disclosure {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.disclosure p { margin: 0 0 12px; }
.age-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.badge-18 {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--bad); color: var(--bad);
  font-weight: 800; font-size: 13px; flex: 0 0 auto;
}
.age-badges span { font-size: 13px; color: var(--muted); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 16px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom a { color: var(--muted); }

/* ---------- Sticky mobile bar ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 23, 40, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(242, 107, 29, 0.4);
    box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, 1);
  }
  .sticky-cta .sticky-info { min-width: 0; flex: 1 1 auto; }
  .sticky-cta .sticky-brand {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.9px;
    color: var(--muted); display: block; line-height: 1.4;
  }
  .sticky-cta .sticky-offer {
    font-size: 14.5px; font-weight: 800; line-height: 1.25;
    display: block; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .sticky-cta .btn { flex: 0 0 auto; padding: 12px 20px; font-size: 14.5px; }
  body { padding-bottom: 78px; }
}

/* ---------- Responsive ---------- */
@media (min-width: 861px) {
  .bonus-box { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 16px; }
  .nav .btn { margin: 8px 0 0; }
  .hero-inner { padding: 40px 0 36px; }
  .toc ol { columns: 1; }
  .rating-card { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .bar-row { grid-template-columns: 104px minmax(0, 1fr) 32px; font-size: 13px; }
  .author-box { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-cta .btn { width: 100%; }
}
@media (max-width: 420px) {
  .prose h2 { margin-top: 38px; }
  .card, .bonus-box, .cta-band { padding: 18px; }
  .quick-facts { grid-template-columns: repeat(auto-fit, minmax(134px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .sticky-cta, .cta-band, .footer-cta { display: none !important; }
  body { background: #fff; color: #000; }
}
