:root {
  --bg: #060a1c;
  --bg-2: #0b1230;
  --glass: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --text: #f1f4ff;
  --muted: #a6afd3;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --orange: #fb923c;
  --green: #34d399;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--orange));
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.02em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Barra superiore */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px) saturate(1.4); background: rgba(6, 10, 28, .7); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 15px; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:focus-visible, .chip:focus-visible, .card a:focus-visible, .featured a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.ico { width: 18px; height: 18px; flex: none; }
.btn-fb { color: #fff; background: #1877f2; box-shadow: 0 0 24px rgba(24, 119, 242, .35); }
.btn-tg { color: #03121f; background: linear-gradient(100deg, var(--cyan), #7dd3fc); box-shadow: 0 0 26px rgba(34, 211, 238, .3); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: 0; pointer-events: none;
  background: radial-gradient(520px 340px at 12% 20%, rgba(34, 211, 238, .22), transparent 70%),
              radial-gradient(560px 360px at 88% 10%, rgba(251, 146, 60, .20), transparent 70%),
              radial-gradient(520px 340px at 60% 90%, rgba(168, 85, 247, .20), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p { margin: 0 0 26px; max-width: 520px; color: var(--muted); font-size: 18px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { min-width: 120px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px); }
.stat b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); }
.hero-img { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(124, 58, 237, .35); }

/* Offerta del giorno */
.featured { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); backdrop-filter: blur(14px); box-shadow: 0 24px 80px rgba(124, 58, 237, .3); }
.featured .media { margin: 14px; border-radius: 20px; }
.featured .body { justify-content: center; padding: 14px 20px 14px 4px; gap: 8px; }
.featured .title { font-size: 17px; -webkit-line-clamp: 3; }
.featured .now { font-size: 34px; line-height: 1.1; }
.featured .eyebrow { align-self: flex-start; color: var(--orange); border-color: rgba(251, 146, 60, .4); background: rgba(251, 146, 60, .1); }
.featured .cta { margin-top: 6px; }
.featured .foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; padding: 10px 20px 12px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.featured .foot .meta { margin: 0; }
.featured .foot .aff { margin: 0; text-align: right; }

/* Nota affiliati */
.notice { margin: 8px 0 4px; padding: 10px 16px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 14px; background: rgba(251, 146, 60, .06); color: var(--muted); font-size: 13.5px; }
.notice summary { cursor: pointer; list-style: none; }
.notice summary::-webkit-details-marker { display: none; }
.notice b { color: var(--text); }
.notice .more { color: var(--cyan); text-decoration: underline; }
.notice[open] .more { display: none; }
.notice p { margin: 8px 0 0; }

/* Strumenti */
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 34px 0 14px; }
.tools h2 { margin: 0; font-size: 28px; }
.tools h2 small { color: var(--muted); font-weight: 500; font-size: 16px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font: inherit; font-size: 14px; color: var(--muted); background: var(--glass); border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(100deg, rgba(34, 211, 238, .4), rgba(168, 85, 247, .55)); }
.search { font: inherit; font-size: 14px; color: var(--text); background: var(--glass); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; width: 200px; }
.categories { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 16px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.categories .chip { white-space: nowrap; }

/* Griglia e card */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); padding: 0; margin: 0; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(6px); transition: transform .2s, box-shadow .2s; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); opacity: 0; transition: opacity .2s; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(124, 58, 237, .28); }
.card:hover::before { opacity: 1; }
.media { position: relative; display: block; aspect-ratio: 1; background: #fff; border-radius: 16px; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.badge { position: absolute; top: 10px; right: 10px; padding: 4px 11px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #1a0b00; background: linear-gradient(100deg, #fdba74, var(--orange)); box-shadow: 0 4px 14px rgba(251, 146, 60, .5); }
.body { display: flex; flex-direction: column; gap: 6px; padding: 12px 6px 6px; flex: 1; }
.title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prices { margin: 2px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.now { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--cyan); }
.was { color: var(--muted); font-size: 14px; }
.save { margin: 0; color: var(--green); font-weight: 700; font-size: 14px; }
.proof { margin: 0; color: var(--text); font-size: 13px; opacity: .85; }
.meta { margin: auto 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.meta time { white-space: nowrap; }
.fine { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; }
.fine a { color: var(--cyan); }
.aff { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 11.5px; }
.legal { max-width: 800px; padding: 40px 0 20px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 4px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal b { color: var(--text); }
.legal a { color: var(--cyan); }
.legal .updated { font-size: 13px; }
.cta { margin-top: 8px; color: #fff; background: linear-gradient(100deg, var(--violet), #7c3aed 50%, var(--orange)); }

.empty { text-align: center; padding: 60px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Sezioni informative */
.how { margin: 64px 0 0; }
.how h2 { font-size: 28px; margin: 0 0 18px; }
.how ol { list-style: none; counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; }
.how li { counter-increment: s; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); color: var(--muted); }
.how li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; font-weight: 800; color: #03121f; background: var(--grad); }
.how li b { display: block; color: var(--text); margin-bottom: 4px; font-size: 17px; }
.about { margin: 28px 0 0; padding: 30px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .14);
  background: radial-gradient(500px 220px at 90% 0, rgba(168, 85, 247, .3), transparent 70%), radial-gradient(500px 220px at 0 100%, rgba(34, 211, 238, .22), transparent 70%), var(--bg-2);
  display: grid; gap: 18px; grid-template-columns: 1.4fr 1fr; align-items: center; }
.about h2 { margin: 0 0 8px; font-size: 28px; }
.about p { margin: 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.actions .btn { padding: 14px 24px; font-size: 16px; }
footer .social a { color: var(--text); }

footer { margin-top: 48px; padding: 28px 0 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer p { margin: 0 0 8px; max-width: 900px; }

.sticky-cta { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; display: none; gap: 8px; }
.sticky-cta .btn { flex: 1; padding: 13px 10px; font-size: 15px; box-shadow: 0 10px 34px rgba(0, 0, 0, .55); }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .featured { max-width: 700px; }
}
@media (max-width: 900px) {
  .how ol { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 9px 11px; }
  .sticky-cta { display: flex; }
  .hero { padding: 20px 0 12px; }
  .hero-grid { gap: 18px; }
  .hero h1 { font-size: 28px; margin: 12px 0 8px; }
  .hero-text p { font-size: 15px; margin-bottom: 14px; }
  .stats { flex-wrap: nowrap; gap: 8px; }
  .stat { min-width: 0; flex: 1; padding: 8px 10px; border-radius: 12px; }
  .stat b { font-size: 19px; }
  .stat span { font-size: 11.5px; }
  /* Offerta del giorno: foto e prezzo affiancati, il resto a tutta larghezza */
  .featured { grid-template-columns: 112px 1fr; align-items: start; row-gap: 4px; border-radius: 20px; }
  .featured .body { display: contents; }
  .featured .media { grid-column: 1; grid-row: 1 / span 3; margin: 8px; border-radius: 12px; align-self: start; }
  .featured .badge { top: 6px; right: 6px; font-size: 12px; padding: 2px 8px; }
  .featured .eyebrow, .featured .title, .featured .prices { grid-column: 2; margin-right: 12px; }
  .featured .eyebrow { margin-top: 10px; justify-self: start; font-size: 12px; }
  .featured .title { font-size: 14px; -webkit-line-clamp: 2; }
  .featured .now { font-size: 22px; }
  .featured .save, .featured .proof, .featured .cta { grid-column: 1 / -1; margin-left: 12px; margin-right: 12px; }
  .featured .proof { font-size: 12px; }
  .featured .cta { padding: 9px 14px; font-size: 14px; margin-top: 4px; }
  .featured .foot { margin-top: 8px; padding: 10px 12px 12px; flex-direction: column; }
  .featured .foot .aff { text-align: left; }
  .about { grid-template-columns: 1fr; padding: 22px; }
  .actions { justify-content: stretch; }
  .actions .btn { flex: 1 1 100%; }
  .tools { margin-top: 24px; }
  .tools h2 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 8px; border-radius: 18px; }
  .now { font-size: 20px; }
  .search { width: 100%; }
  .controls { width: 100%; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Categorie e pagine interne */
.breadcrumb { padding: 18px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--cyan); text-decoration: none; }
.cat-hero { padding: 18px 0 8px; }
.cat-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 800; }
.cat-hero .lead { margin: 0 0 18px; max-width: 760px; color: var(--muted); font-size: 17px; }
.live-note { margin: 10px 0 18px; color: var(--muted); font-size: 13px; }
.tips { margin: 56px 0 0; }
.tips h2 { font-size: 24px; margin: 0 0 14px; }
.tips ul { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }
.tips li { margin-bottom: 8px; }
.cats { margin: 56px 0 0; }
.cats h2 { font-size: 24px; margin: 0 0 14px; }
.cat-list { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding: 0; margin: 0; }
.cat-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); text-decoration: none; transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: rgba(168, 85, 247, .6); transform: translateY(-2px); }
.cat-card b { font-size: 16px; }
.cat-card span { color: var(--muted); font-size: 13px; }
.notfound { text-align: center; padding: 90px 0; }
@media (max-width: 720px) { .tips, .cats { margin-top: 40px; } }
