/* Il Tavolo delle Scoperte · pagina di vendita
   Layout: colonna editoriale con il prodotto sempre in vista; pagine vere come immagini, mai mockup inventati.
   Una sola palette chiara, come le schede. */
:root {
  --paper: #fffdf9;
  --tint: #f6f1e9;
  --ink: #2b211c;
  --muted: #5d5049;
  --brand: #b8371f;      /* rosso della copertina */
  --buy: #c2412a;        /* pulsante di acquisto */
  --line: #e4dbcf;
  --c1: #2f7fc8; --c2: #1f8f86; --c3: #f0a92b; --c4: #7b4fb3; --c5: #4c9a2a;
  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --body: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r: 14px;
  --sticky-h: 0px;
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { transition: none !important } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body) }
img { max-width: 100%; height: auto; display: block }
a { color: var(--brand) }
:focus-visible { outline: 3px solid var(--c1); outline-offset: 3px; border-radius: 6px }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 700 }
p { margin: 0 }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto }
.narrow { width: min(760px, 100% - 32px) }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50 }
.skip:focus { left: 8px }

/* testata */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 249, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line) }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 58px }
.brand { font: 700 19px/1.1 var(--display); color: var(--brand); text-decoration: none; white-space: nowrap }
.brand span { color: var(--ink); font-weight: 600 }
.top-nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px }
.top-nav a { color: var(--ink); text-decoration: none }
.top-nav a:hover { color: var(--brand) }
.top-cta { font-size: 15px; font-weight: 600; color: #fff; background: var(--buy); padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap }
@media (max-width: 860px) { .top-nav { display: none } .top-cta { margin-left: auto } }
@media (max-width: 420px) { .brand span { display: none } }

/* pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 12px; font: 600 17px/1.25 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent }
.btn-buy { background: var(--buy); color: #fff; box-shadow: 0 2px 0 #8c2d1d }
.btn-buy:hover { background: #a83722 }
.btn-free { background: #fff; color: var(--ink); border-color: var(--ink) }
.btn-free:hover { background: var(--tint) }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line) }

/* prima schermata */
.hero { padding: 40px 0 28px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%) }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center }
.badge { display: inline-block; font-size: 15px; font-weight: 600; color: var(--c2); background: #e3f3f0; border: 1px solid #b7e0d9; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px }
h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.01em }
.lead { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 58ch }
.lead b { color: var(--ink); font-weight: 600 }
.buybox { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: grid; gap: 14px; max-width: 560px }
.price-row { display: flex; align-items: center; gap: 16px }
.price { font: 700 40px/1 var(--display); color: var(--ink); white-space: nowrap }
.price-note { font-size: 15px; color: var(--muted); line-height: 1.4 }
.ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.fine { font-size: 15px; color: var(--muted) }
.buy-off { font-size: 15px; color: #7a2615; background: #fdeee9; border-radius: 10px; padding: 8px 12px }
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center }
.sheet { margin: 0; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(43, 33, 28, .12), 0 14px 34px rgba(43, 33, 28, .16); overflow: hidden }
.sheet-cover { width: min(340px, 72%); transform: rotate(-2.5deg) translateX(-14%) }
.phone { margin: 0; background: #1f1a17; padding: 9px; border-radius: 30px; box-shadow: 0 16px 34px rgba(43, 33, 28, .28) }
.phone img { border-radius: 22px }
.phone-hero { position: absolute; width: min(190px, 40%); right: 4%; bottom: -6px; transform: rotate(3deg) }
.facts { list-style: none; padding: 0; margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px }
.facts li { font-size: 15px; line-height: 1.45; padding: 12px 14px; border-top: 3px solid var(--c1); background: #fff; border-radius: 0 0 10px 10px }
.facts li:nth-child(2) { border-color: var(--c2) } .facts li:nth-child(3) { border-color: var(--c3) } .facts li:nth-child(4) { border-color: var(--c4) }

/* sezioni */
.sec { padding: 64px 0 }
.sec-tint { background: var(--tint) }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px }
h2 { font-size: clamp(27px, 3.2vw, 38px) }
.intro { color: var(--muted); margin-top: 12px; max-width: 62ch }
.note { color: var(--muted); font-size: 16px; margin-top: 24px; max-width: 70ch }

/* anatomia della scheda */
.anatomy { display: grid; grid-template-columns: minmax(0, 470px) 1fr; gap: 40px; margin-top: 32px; align-items: start }
.anat-page { position: relative; overflow: visible }
.anat-page img { border-radius: 6px }
.pin { position: absolute; right: -14px; width: 30px; height: 30px; border-radius: 50%; background: var(--c4); color: #fff; font: 700 15px/30px var(--body); text-align: center; box-shadow: 0 0 0 3px #fff }
.anat-list { margin: 0; padding: 0; list-style: none; counter-reset: a; display: grid; gap: 18px }
.anat-list li { counter-increment: a; position: relative; padding-left: 46px }
.anat-list li::before { content: counter(a); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--c4); color: #fff; font: 700 15px/30px var(--body); text-align: center }
.anat-list b { font-weight: 600 }
.details-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px }
.crop { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px }
.crop figcaption { font-size: 14px; color: var(--muted); margin-top: 8px }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 44px }
.strip-head h3 { font-size: 22px }
.hint { font-size: 14px; color: var(--muted) }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 4px 18px; margin-top: 6px; overscroll-behavior-x: contain }
.strip figure { margin: 0; scroll-snap-align: start }
.strip img { border-radius: 6px; box-shadow: 0 1px 2px rgba(43, 33, 28, .14), 0 8px 18px rgba(43, 33, 28, .12); background: #fff }
.strip figcaption { font-size: 14px; color: var(--muted); margin-top: 8px }
.free-box { margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px; border-radius: 18px; background: #efe6f8; border: 1px solid #d9c8ee }
.free-box h3 { font-size: 23px; margin-bottom: 6px }
.free-box p { color: #43324f }
.free-links { display: grid; gap: 8px; justify-items: center }
.alt { font-size: 15px }

/* pomeriggio */
.flow { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px }
.flow li { background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line) }
.step { display: inline-block; font: 700 18px/1.2 var(--display); color: var(--c4); margin-bottom: 8px }
.flow li:nth-child(1) .step { color: var(--c1) } .flow li:nth-child(2) .step { color: var(--c2) } .flow li:nth-child(3) .step { color: #9a6200 }
.flow p { font-size: 16px }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px }
.role { padding: 18px; border-radius: var(--r); background: #fff; border-left: 5px solid var(--c2) }
.role + .role { border-left-color: var(--brand) }
.role h3 { font-size: 20px; margin-bottom: 6px }
.role p { font-size: 16px }

/* capitoli */
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 28px }
.cap { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--c) }
.cap-fig { background: var(--cl); padding: 10px 14px }
.fig { display: block; width: 100%; height: auto; max-height: 190px }
.cap-body { padding: 16px 18px 18px }
.cap-k { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cd) }
.cap h3 { font-size: 22px; margin: 2px 0 10px }
.cap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px }
.cap li { font-size: 15px; line-height: 1.4; display: grid }
.cap li b { font-weight: 600 }
.cap li span { color: var(--muted) }
.index { margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff }
.index summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px }
.index summary::-webkit-details-marker { display: none }
.index summary::after { content: '+'; font: 700 26px/1 var(--body); color: var(--brand) }
.index[open] summary::after { content: '–' }
.ix-note { padding: 0 22px; font-size: 15px; color: var(--muted) }
.ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 28px; padding: 14px 22px 22px }
.ix-cap h4 { font-size: 18px; color: var(--cd); padding: 10px 0 6px; border-bottom: 2px solid var(--cl) }
.ix-cap ol { list-style: none; margin: 0; padding: 0 }
.ix-cap li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0e9df; font-size: 15px; line-height: 1.4 }
.ix-cap li b { font-weight: 600 }
.ix-cap li p { color: var(--muted) }
.ix-cap .t { font-size: 14px }
.n { width: 28px; height: 28px; border-radius: 50%; color: #fff; font: 700 14px/28px var(--body); text-align: center }
.star { color: var(--brand); font-weight: 700 }

/* formati */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px }
.fmt { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; background: #fff; border-radius: 18px; padding: 22px; border: 1px solid var(--line) }
.fmt .phone { width: 170px; justify-self: center }
.fmt .sheet { width: 200px }
.fmt h3 { font-size: 23px; margin-bottom: 8px }
.fmt p { font-size: 16px; color: var(--muted) }

/* riepilogo */
.summary { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; padding: 34px; border-radius: 22px; background: #fff; border: 2px solid var(--ink) }
.spec { margin: 22px 0 0; display: grid; gap: 0 }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line) }
.spec dt { font-weight: 600 }
.spec dd { margin: 0; color: var(--muted) }
.spec dd b { color: var(--ink); font-size: 18px }
.sum-buy { display: grid; gap: 12px; align-content: center; justify-items: stretch; text-align: center }
.sheet-small { width: 150px; justify-self: center; transform: rotate(-2deg); margin-bottom: 8px }
.link-free { font-size: 15px; font-weight: 600 }

/* domande */
.faq { display: grid; gap: 10px; margin-top: 24px }
.faq details { background: #fff; border-radius: 12px; border: 1px solid var(--line) }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 700; font-size: 22px; line-height: 1 }
.faq details[open] summary::after { content: '–' }
.faq p { padding: 0 18px 18px; color: var(--muted); font-size: 16px }

.foot { padding: 32px 0 calc(32px + var(--sticky-h)); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted) }
.foot-brand { font: 700 18px var(--display); color: var(--brand); margin-bottom: 6px }

/* barra fissa: solo telefono; il piè di pagina ha spazio sotto per non coprire nulla */
.sticky { display: none }
@media (max-width: 640px) {
  :root { --sticky-h: 76px }
  .sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s }
  .sticky.on { transform: none }
  .sticky-in { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto }
  .sticky-price { font: 700 24px/1 var(--display); display: grid }
  .sticky-price small { font: 500 13px/1.3 var(--body); color: var(--muted) }
  .sticky .btn { flex: 1; min-height: 50px }
  main { padding-bottom: 0 }
}

/* finestra «acquisto non attivo» */
.dlg { position: fixed; inset: 0; z-index: 60; background: rgba(43, 33, 28, .45); display: grid; place-items: center; padding: 16px }
.dlg[hidden] { display: none }
.dlg-box { background: #fff; border-radius: 18px; padding: 26px; max-width: 460px; display: grid; gap: 14px }
.dlg-box h2 { font-size: 25px }
.dlg-act { display: flex; flex-wrap: wrap; gap: 10px }

/* tablet e telefono */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px }
  .hero-visual { min-height: 0; order: -1; padding: 6px 0 14px }
  .sheet-cover { width: min(250px, 58%); transform: rotate(-2.5deg) translateX(-16%) }
  .phone-hero { width: min(150px, 34%); right: 10%; bottom: 0 }
  .facts { grid-template-columns: 1fr 1fr }
  .anatomy { grid-template-columns: 1fr; gap: 26px }
  .anat-page { max-width: 470px }
  .flow { grid-template-columns: 1fr 1fr }
  .formats { grid-template-columns: 1fr }
  .summary { grid-template-columns: 1fr; padding: 24px }
}
@media (max-width: 640px) {
  body { font-size: 16.5px }
  .hero { padding-top: 18px }
  .ctas { grid-template-columns: 1fr }
  .buybox { padding: 16px }
  .price { font-size: 36px }
  .sec { padding: 48px 0 }
  .details-pair { grid-template-columns: 1fr }
  .strip { grid-auto-columns: 72% }
  .free-box { grid-template-columns: 1fr; padding: 20px }
  .free-links { justify-items: stretch }
  .flow, .roles { grid-template-columns: 1fr }
  .fmt { grid-template-columns: 1fr; justify-items: center; text-align: left }
  .fmt > div { justify-self: stretch }
  .fmt .sheet { width: 72% }
  .fmt .phone { width: 58% }
  .spec div { grid-template-columns: 1fr; gap: 2px }
  .caps { grid-template-columns: 1fr }
  .ix-grid { grid-template-columns: 1fr; padding: 10px 16px 18px }
  .index summary, .ix-note { padding-left: 16px; padding-right: 16px }
  .pin { right: -8px }
  .facts { grid-template-columns: 1fr }
}

/* telefono: prezzo e pulsanti nella prima schermata */
.hero-text { display: flex; flex-direction: column }
@media (max-width: 640px) {
  .hero-visual { padding: 0 0 6px; height: 206px; overflow: visible }
  .sheet-cover { width: 138px; transform: rotate(-3deg) translateX(-38%) }
  .phone-hero { width: 96px; right: 22%; bottom: 2px; padding: 6px; border-radius: 18px }
  .phone-hero img { border-radius: 13px }
  .badge { font-size: 14px; margin-bottom: 10px; align-self: flex-start }
  h1 { font-size: 27px }
  .hero-text .lead { order: 3; margin-top: 18px; font-size: 16.5px }
  .hero-text .buybox { order: 2; margin-top: 14px; gap: 10px }
  .price-row { gap: 12px }
}
