:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --text: #17181c;
  --muted: #62656e;
  --line: #e4e4df;
  --accent: #ff6a00;
  --accent-ink: #ffffff;
  --deal: #d92d20;
  --ok: #12805c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215; --surface: #1b1c21; --text: #f0f0ee; --muted: #a2a4ab;
    --line: #2c2d33; --deal: #ff6b5e; --ok: #3ccf98;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.small { font-size: 13px; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; flex: none; }
.wordmark { font-weight: 800; letter-spacing: -.03em; }
.wordmark span { color: var(--accent); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; color: var(--muted); }
.main-nav a:hover { color: var(--text); background: var(--bg); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--bg); }
.search { flex: 1; }
.search input {
  width: 100%; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.cat[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
  padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin: 24px 0; }
.hero-side { display: grid; gap: 16px; }
.feat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
  background: linear-gradient(135deg, #2b1a0e, #6b2f05); color: #fff; border-radius: var(--radius);
  padding: 20px; text-decoration: none; overflow: hidden;
}
.feat.big { min-height: 416px; }
.feat .thumb-bg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; opacity: .25; }
.feat img.thumb-bg { object-fit: contain; width: 100%; height: 100%; opacity: .9; padding: 24px; background: #fff; }
.feat-body { position: relative; background: linear-gradient(transparent, rgba(0,0,0,.75)); margin: -20px; padding: 40px 20px 20px; }
.feat h3 { margin: 6px 0; font-size: 20px; line-height: 1.25; }
.feat.big h3 { font-size: 28px; }
.feat .price { color: #fff; }
.feat .old { color: rgba(255,255,255,.7); }

/* Sezioni */
.section { margin: 32px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.tools select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.chk { display: flex; gap: 6px; align-items: center; cursor: pointer; }

/* Card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s;
}
.card:hover { transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; font-size: 64px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--deal); color: #fff;
  font-weight: 800; font-size: 14px; padding: 3px 8px; border-radius: 8px;
}
.prime { position: absolute; top: 10px; right: 10px; background: #00a8e1; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.card h3 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-size: 22px; font-weight: 800; color: var(--deal); }
.old { text-decoration: line-through; color: var(--muted); font-size: 14px; }
.save { font-size: 12px; color: var(--ok); font-weight: 600; }
.coupon { font-size: 12px; font-weight: 600; border: 1px dashed var(--ok); color: var(--ok); border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.timer { font-size: 12px; color: var(--deal); font-weight: 600; }
.card .btn { width: 100%; margin-top: 4px; }
.card-actions { display: flex; gap: 8px; }
.card-actions .share { flex: none; width: 44px; padding: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pager button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.pager button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* CTA + newsletter */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 40px 0;
}
.cta h2, .newsletter h2 { margin: 0 0 6px; }
.cta p, .newsletter p { margin: 0; color: var(--muted); }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter { text-align: center; margin: 40px auto; max-width: 520px; }
.newsletter form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.nl-msg { margin-top: 8px !important; font-size: 14px; min-height: 1.5em; }

/* Blog: schede articolo */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s;
}
.post:hover { transform: translateY(-2px); }
.post:hover h3 { color: var(--accent); }
.post-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 56px; background: linear-gradient(135deg, #3a2410, #a24b06); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.cov-guide { background: linear-gradient(135deg, #0f2c4a, #2c6db3); }
.cov-tcg { background: linear-gradient(135deg, #3d1252, #9b3fc4); }
.cov-games { background: linear-gradient(135deg, #0e3b2e, #1f9a6e); }
.cov-news { background: linear-gradient(135deg, #4a0f14, #c8322f); }
.post-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post h3 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; transition: color .15s; }
.post p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .meta { margin-top: auto; padding-top: 4px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.post-big { grid-column: 1 / -1; flex-direction: row; }
.post-big .post-cover { flex: 1.3; aspect-ratio: auto; min-height: 280px; font-size: 96px; }
.post-big .post-body { flex: 1; padding: 28px; justify-content: center; }
.post-big h3 { font-size: 28px; }

.page-head { margin: 32px 0 24px; }
.page-head h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); }

/* Articolo */
.article { max-width: 760px; margin: 0 auto; padding-top: 24px; }
.crumbs a { color: var(--muted); }
.article-head { margin: 16px 0 20px; display: flex; flex-direction: column; gap: 8px; }
.article-head h1 { margin: 0; font-size: 38px; line-height: 1.15; letter-spacing: -.02em; }
.lead { margin: 0; font-size: 19px; color: var(--muted); }
.article-cover { border-radius: var(--radius); font-size: 110px; margin-bottom: 24px; }
.article-body { font-size: 18px; line-height: 1.7; }
.article-body h2 { font-size: 24px; margin: 32px 0 8px; letter-spacing: -.01em; }
.article-body p { margin: 0 0 16px; }
.article-body a:not(.btn):not(.card-img) { color: var(--accent); }
.inline-deal { margin: 20px 0 24px; font-size: 16px; line-height: 1.5; }
.card-row { flex-direction: row; }
.card-row .card-img { flex: 0 0 200px; aspect-ratio: auto; }
.card-row:hover { transform: none; }
.article-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; }
.article-share .btn { padding: 8px 14px; font-size: 14px; }
.article-cta { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Conformità: avvisi, disclosure, etichette */
.disclosure { background: var(--bg); border-bottom: 1px solid var(--line); padding: 7px 0; }
.disclosure a, .notice a { color: inherit; }
.notice { background: #fff4e5; color: #6b3d00; border-bottom: 1px solid #f3d3a6; padding: 8px 0; font-size: 14px; }
@media (prefers-color-scheme: dark) { .notice { background: #2f2210; color: #f6cf94; border-color: #4a3518; } }
.badge-demo { position: absolute; top: 10px; left: 10px; background: #6b3d00; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; }
.desc { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body > .btn { margin-top: auto; }
.aff-label { font-size: 11px; color: var(--muted); text-align: center; }
.price-time { font-size: 11px; color: var(--muted); }
.feat-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #ffcf8a; }
.feat p { margin: 0 0 8px; color: rgba(255,255,255,.85); }
.feat-cta { font-weight: 600; }
.feat-cta small { font-weight: 400; opacity: .75; }
.footer h3.mt { margin-top: 18px; }
.legal { padding-bottom: 24px; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer .logo { margin-bottom: 8px; }
.footer h3 { font-size: 14px; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.footer ul a, .footer ul button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer ul a:hover, .footer ul button:hover { color: var(--text); }
.store-pick { display: flex; align-items: center; gap: 6px; }
.store-pick select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.store-note { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .feat.big { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .post-big { flex-direction: column; }
  .post-big .post-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .post-big h3 { font-size: 22px; }
  .post-big .post-body { padding: 16px; }
}
@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; gap: 8px; }
  .search { order: 3; flex-basis: 100%; }
  .main-nav { margin-left: auto; }
  .main-nav a { padding: 6px 8px; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-head h1 { font-size: 28px; }
  .article-body { font-size: 17px; }
  .card-row { flex-direction: column; }
  .card-row .card-img { flex-basis: auto; aspect-ratio: 16 / 10; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; }
  .price { font-size: 18px; }
  .card-actions .share { display: none; }
}
