/* Prezzi Shock · stile del sito. Caratteri ospitati qui (SIL Open Font License, vedi fonts/OFL-*.txt):
   nessuna richiesta a servizi esterni. */
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-var.woff') format('woff'); font-weight: 300 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dmsans-var.woff') format('woff'); font-weight: 400 700; font-display: swap; }

:root {
  --black: #0A0A0B;
  --anthracite: #17181B;
  --anthracite-2: #202226;
  --line: #2C2E33;
  --yellow: #FFDF00;
  --yellow-soft: rgba(255, 223, 0, .12);
  --white: #FFFFFF;
  --text: #F4F4F2;
  --muted: #A6A8AE;
  --radius: 14px;
  --max: 1120px;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--black); color: var(--text); font: 400 1rem/1.6 var(--body); }
img, svg { display: block; max-width: 100%; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--black); padding: .6rem 1rem; font-weight: 700; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- testata */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10, 10, 11, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); }
.brand img { height: 34px; width: auto; }
.brand strong { font: 800 1.15rem/1 var(--display); letter-spacing: -.01em; }

/* ---------------------------------------------------------------- pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .85rem 1.5rem; border-radius: 999px; border: 0; background: var(--yellow); color: var(--black); font: 700 1.02rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 0 0 0 rgba(255, 223, 0, 0); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px rgba(255, 223, 0, .55); text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { min-height: 42px; padding: .55rem 1.05rem; font-size: .92rem; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--yellow); box-shadow: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 85% 10%, rgba(255, 223, 0, .16), transparent 60%),
  linear-gradient(180deg, var(--black), var(--anthracite)); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.2rem; padding: .35rem .8rem; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow); font: 600 .82rem/1 var(--body); letter-spacing: .02em; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
h1 { margin: 0; font: 900 clamp(3rem, 9vw, 6.4rem)/.92 var(--display); font-stretch: 105%; letter-spacing: -.02em; text-transform: uppercase; color: var(--white); }
h1 .y { color: var(--yellow); }
.sub { margin: 1.4rem 0 2rem; max-width: 34rem; font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.4; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.cta-note { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.cta-note a { color: var(--muted); }

/* esempio di messaggio del canale */
.post { position: relative; background: var(--anthracite-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); transform: rotate(1.5deg); }
.post-tag { position: absolute; top: -12px; right: 18px; background: var(--black); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; padding: .2rem .6rem; border-radius: 999px; }
.post-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 12px; }
.post-head .av { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.post-head .av svg { width: 18px; height: 18px; }
.post-head b { display: block; font-size: .95rem; color: var(--white); }
.post-head small { color: var(--muted); font-size: .78rem; }
.post-img { height: 120px; border-radius: 12px; background: linear-gradient(135deg, #2A2C31, #1C1D21); display: grid; place-items: center; color: #4A4D55; margin-bottom: 12px; }
.post-img svg { width: 54px; height: 54px; }
.post-title { margin: 0 0 .5rem; font-weight: 600; color: var(--white); }
.price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.price .now { font: 800 1.9rem/1 var(--display); color: var(--yellow); }
.price .was { color: var(--muted); text-decoration: line-through; }
.price .off { background: var(--yellow); color: var(--black); font-weight: 700; font-size: .8rem; padding: .15rem .45rem; border-radius: 6px; }
.badge-min { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--text); background: var(--yellow-soft); border-radius: 8px; padding: .25rem .55rem; }
.post-link { margin-top: .8rem; font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- sezioni */
section { padding: 76px 0; }
.alt { background: var(--anthracite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 .7rem; color: var(--yellow); font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0 0 1rem; font: 800 clamp(1.8rem, 4.2vw, 2.7rem)/1.05 var(--display); color: var(--white); letter-spacing: -.01em; }
.lead { margin: 0 0 2.2rem; max-width: 40rem; color: var(--muted); font-size: 1.08rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { background: var(--anthracite-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 16px; }
.steps .ic svg { width: 22px; height: 22px; }
.steps h3 { margin: 0 0 .4rem; font: 700 1.15rem/1.25 var(--body); color: var(--white); }
.steps p { margin: 0; color: var(--muted); }

.glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.glossary div { border-left: 3px solid var(--yellow); padding: 4px 0 4px 16px; }
.glossary dt { font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.glossary dd { margin: 0; color: var(--muted); }

.affiliate { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--anthracite-2); border: 1px solid var(--yellow); border-radius: var(--radius); padding: 26px; }
.affiliate .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.affiliate .ic svg { width: 24px; height: 24px; }
.affiliate h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .6rem; }
.affiliate p { margin: 0 0 .6rem; color: var(--text); }
.affiliate p:last-child { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; color: var(--white); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--body); color: var(--yellow); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.final { text-align: center; }
.final h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }

/* ---------------------------------------------------------------- piè di pagina */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer h3 { margin: 0 0 .6rem; color: var(--white); font-size: .95rem; }
footer p { margin: 0 0 .5rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: .4rem; }
footer a { color: var(--text); }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; grid-column: 1 / -1; }

/* ---------------------------------------------------------------- pagine di testo (privacy, callback) */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); text-transform: none; margin-bottom: .6rem; }
.doc .updated { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2rem; }
.doc table { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .65rem .6rem; border-bottom: 1px solid var(--line); }
.doc th { color: var(--white); font-weight: 600; }
.doc td { color: var(--muted); }
.todo { background: var(--yellow-soft); color: var(--yellow); border-radius: 4px; padding: 0 .25rem; }
.status { background: var(--anthracite-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.status h2 { margin-top: 0; }

/* ---------------------------------------------------------------- telefono */
@media (max-width: 880px) {
  .hero { padding: 56px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .post { transform: none; max-width: 420px; }
  .steps, .glossary { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; gap: 20px; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .top .btn.small span { display: none; }
  .brand img { height: 30px; }
  .cta-row .btn { width: 100%; }
  .affiliate { grid-template-columns: 1fr; }
}

/* Nota sullo stato di sviluppo di Prezzi Shock Engine */
.dev-note { max-width: 62ch; margin: 0 0 2rem; padding: .9rem 1rem; border: 1px solid var(--yellow); border-left-width: 4px; border-radius: 10px; background: var(--yellow-soft); color: #fff; font-size: .95rem; line-height: 1.55; }
.dev-note strong { color: var(--yellow); }
