/* Landing dell'edizione (pages/edition.php), sul modello delle landing di Culturale Lab:
   una colonna di lettura su fondo avorio, bottoni pieni ripetuti, immagini a tutta colonna, FAQ.
   Proprietà logiche (RTL). Breakpoint: 640. */

.page-edition { background: #ECE6DA; }
.page-edition .site-header::before { background: rgba(236, 230, 218, .94); }
.page-edition .site-header__in { justify-content: space-between; }

.lp {
  max-width: 760px;
  margin: 0 auto clamp(24px, 5vw, 56px);
  background: var(--paper);
  padding: clamp(28px, 6vw, 64px) clamp(18px, 6vw, 64px) clamp(32px, 6vw, 64px);
  box-shadow: 0 30px 60px -40px rgba(20, 23, 28, .35);
}
@media (min-width: 800px) { .lp { margin-top: 32px; border-radius: 6px; } }

.lp h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; color: var(--navy); margin-bottom: .45em; }
.lp h2 { font-size: clamp(25px, 3.4vw, 32px); color: var(--navy); margin: 0 0 .6em; }
.lp h3 { font-size: 22px; color: var(--navy); margin: 0; }
.lp p, .lp li { font-size: 17px; line-height: 1.7; }
.lp a:not(.lp-btn):not(.lp-chip-link) { color: var(--navy); text-decoration-color: var(--brass); }

.lp-eyebrow { font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #8a6d45; margin-bottom: 14px; }
.lp-lead { font-size: 19px !important; color: #2b2f37; }
.lp-trust { font-size: 14px !important; margin: 0 0 22px; }
.lp-trust a { color: var(--muted) !important; text-decoration: none; border-bottom: 1px solid var(--line); }

/* bottoni pieni, a tutta colonna come in Culturale Lab */
.lp-cta { margin: 26px 0 30px; }
.lp-btn {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; min-height: 58px; padding: 14px 22px; border-radius: 8px;
  background: var(--navy); color: var(--ivory); text-decoration: none;
  font: 600 17px/1.2 var(--ui); letter-spacing: .01em;
  box-shadow: 0 10px 24px -14px rgba(22, 38, 61, .8);
  transition: transform .15s ease, background .15s ease;
}
.lp-btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.lp-cta--hero .lp-btn { min-height: 62px; font-size: 18px; }
.lp-cta--dark .lp-btn { background: var(--ink); }
.lp-btn--brass { background: var(--brass); color: var(--navy); }
.lp-btn--brass:hover { background: var(--brass-2); }

/* immagini */
.lp-fig { margin: 26px 0 30px; }
.lp-fig img { width: 100%; border-radius: 8px; box-shadow: 0 18px 36px -24px rgba(20, 23, 28, .55); }
.lp-fig figcaption { margin-top: 10px; font: italic 400 14px/1.5 var(--book); color: var(--muted); text-align: center; }
.lp-fig--hero { margin-top: 8px; }
.lp-cover { max-width: 320px; margin: 0 auto; }

.lp-sec { padding-top: clamp(26px, 4vw, 40px); }
.lp-sec + .lp-sec { border-top: 1px solid var(--line); margin-top: 8px; }

.lp-list { margin: 0 0 1em; padding-inline-start: 0; }
.lp-list li, .lp-gains li { position: relative; padding-inline-start: 22px; margin-bottom: .5em; }
.lp-list li::before, .lp-gains li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .72em; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }

/* etichette dei dati del libro */
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.lp-chips li { font: 500 14px/1 var(--ui); padding: 10px 14px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--navy); }
.lp-chips li span { color: var(--muted); font-weight: 400; margin-inline-end: 4px; }

/* forme di presenza */
.lp-levels { display: grid; gap: 14px; margin: 20px 0 14px; }
@media (min-width: 640px) { .lp-levels { grid-template-columns: repeat(3, 1fr); } .lp-levels--one { grid-template-columns: 1fr; } }
.lp-level { border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 16px; background: #fff; display: flex; flex-direction: column; }
.lp-level--signature { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.lp-level--signature h3, .lp-level--signature .lp-level__price { color: var(--brass-2); }
.lp-level__pages { font: 600 12px/1.4 var(--ui) !important; letter-spacing: .12em; text-transform: uppercase; color: #8a6d45; margin: 4px 0 10px; }
.lp-level--signature .lp-level__pages { color: var(--brass-2); }
.lp-level__price { font: 400 30px/1 var(--brand) !important; color: var(--navy); margin: 0 0 12px; }
.lp-level__desc { font-size: 15px !important; line-height: 1.55 !important; }
.lp-level ul { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.lp-level--signature ul { border-top-color: var(--line-dark); }
.lp-level li { font-size: 14px !important; line-height: 1.5 !important; padding: 3px 0; }
.lp-small { font-size: 14px !important; color: var(--muted); }

.lp-note { border-inline-start: 3px solid var(--brass); background: var(--ivory); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 18px 0; }
.lp-note p { margin: 0; font-size: 15px !important; }

/* partecipazione standard: mockup della pagina nel libro + cosa comprende */
.lp-std { margin: 22px 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 36px -28px rgba(20, 23, 28, .5); }
.lp-std__fig { margin: 0; background: var(--ivory); }
.lp-std__fig img { display: block; width: 100%; height: auto; }
.lp-std__body { padding: clamp(20px, 4vw, 30px); }
.lp-std__body .lp-eyebrow { margin-bottom: 8px; }
.lp-std__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lp-std__head h3 { font-size: clamp(22px, 3vw, 26px); }
.lp-std__price { font: 400 clamp(34px, 5vw, 42px)/1 var(--brand) !important; color: var(--navy); margin: 0; }
.lp-std__inc { display: grid; gap: 14px 26px; margin: 18px 0 4px; }
@media (min-width: 560px) { .lp-std__inc { grid-template-columns: 1fr 1fr; } }
.lp-std__inc li { position: relative; padding-inline-start: 22px; font-size: 15px !important; line-height: 1.5 !important; }
.lp-std__inc li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .55em; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); }
.lp-std__inc strong { display: block; font: 600 15px/1.4 var(--ui); color: var(--navy); }
.lp-std__inc span { color: var(--muted); }
.lp-std__vat { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px !important; color: var(--muted); }

/* pagine interne: una doppia pagina alla volta, frecce e pallini (landing.js); senza JS resta lo scorrimento col dito */
.lp-gal { margin: 18px 0 8px; }
.lp-gal__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; }
.lp-gal__track::-webkit-scrollbar { display: none; }
.lp-gal__track:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.lp-gal__slide { margin: 0; scroll-snap-align: start; }
.lp-gal__zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; }
.lp-gal__zoom img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 16px 30px -18px rgba(20, 23, 28, .6); }
.lp-gal__lens { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(22, 38, 61, .82); color: var(--ivory); font: 400 24px/34px var(--ui); text-align: center; }
.lp-gal__slide figcaption { margin-top: 10px; font: 500 13px/1.4 var(--ui); color: var(--muted); text-align: center; }
.lp-gal__nav { display: none; }
.lp-gal.is-js .lp-gal__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.lp-gal__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 400 20px/1 var(--ui); cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.lp-gal__arrow:hover:not(:disabled) { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.lp-gal__arrow:disabled { opacity: .35; cursor: default; }
[dir="rtl"] .lp-gal__arrow span, [dir="rtl"] .lp-box__arrow span { display: inline-block; transform: scaleX(-1); }
.lp-gal__dots { display: flex; gap: 8px; }
.lp-gal__dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.lp-gal__dot[aria-current="true"] { background: var(--brass); width: 22px; border-radius: 4px; }
.lp-gal__count { font: 500 13px/1 var(--ui); color: var(--muted); min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.lp-gal__note { margin-top: 12px !important; text-align: center; }

/* ingrandimento */
.lp-box { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 16, 20, .94); }
.lp-box::backdrop { background: rgba(14, 16, 20, .7); }
.lp-box[open] { display: flex; align-items: center; justify-content: center; }
.lp-box figure { margin: 0; max-width: min(96vw, 1600px); }
.lp-box img { display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto; margin: 0 auto; border-radius: 3px; }
.lp-box figcaption { margin-top: 10px; font: 500 13px/1.4 var(--ui); color: rgba(242, 237, 227, .75); text-align: center; }
.lp-box__close, .lp-box__arrow { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(242, 237, 227, .3); background: rgba(14, 16, 20, .6); color: var(--ivory); font: 400 24px/1 var(--ui); cursor: pointer; }
.lp-box__close { inset-block-start: 16px; inset-inline-end: 16px; font-size: 28px; }
.lp-box__arrow { inset-block-start: 50%; transform: translateY(-50%); }
.lp-box__arrow--prev { inset-inline-start: 16px; }
.lp-box__arrow--next { inset-inline-end: 16px; }
@media (max-width: 639px) { .lp-box__arrow { inset-block-start: auto; inset-block-end: 20px; transform: none; } }

.lp-chip-link) { color: var(--navy); text-decoration-color: var(--brass); }

.lp-eyebrow { font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #8a6d45; margin-bottom: 14px; }
.lp-lead { font-size: 19px !important; color: #2b2f37; }
.lp-trust { font-size: 14px !important; margin: 0 0 22px; }
.lp-trust a { color: var(--muted) !important; text-decoration: none; border-bottom: 1px solid var(--line); }

/* bottoni pieni, a tutta colonna come in Culturale Lab */
.lp-cta { margin: 26px 0 30px; }
.lp-btn {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; min-height: 58px; padding: 14px 22px; border-radius: 8px;
  background: var(--navy); color: var(--ivory); text-decoration: none;
  font: 600 17px/1.2 var(--ui); letter-spacing: .01em;
  box-shadow: 0 10px 24px -14px rgba(22, 38, 61, .8);
  transition: transform .15s ease, background .15s ease;
}
.lp-btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.lp-cta--hero .lp-btn { min-height: 62px; font-size: 18px; }
.lp-cta--dark .lp-btn { background: var(--ink); }
.lp-btn--brass { background: var(--brass); color: var(--navy); }
.lp-btn--brass:hover { background: var(--brass-2); }

/* immagini */
.lp-fig { margin: 26px 0 30px; }
.lp-fig img { width: 100%; border-radius: 8px; box-shadow: 0 18px 36px -24px rgba(20, 23, 28, .55); }
.lp-fig figcaption { margin-top: 10px; font: italic 400 14px/1.5 var(--book); color: var(--muted); text-align: center; }
.lp-fig--hero { margin-top: 8px; }
.lp-cover { max-width: 320px; margin: 0 auto; }

.lp-sec { padding-top: clamp(26px, 4vw, 40px); }
.lp-sec + .lp-sec { border-top: 1px solid var(--line); margin-top: 8px; }

.lp-list { margin: 0 0 1em; padding-inline-start: 0; }
.lp-list li, .lp-gains li { position: relative; padding-inline-start: 22px; margin-bottom: .5em; }
.lp-list li::before, .lp-gains li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .72em; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }

/* etichette dei dati del libro */
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.lp-chips li { font: 500 14px/1 var(--ui); padding: 10px 14px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--navy); }
.lp-chips li span { color: var(--muted); font-weight: 400; margin-inline-end: 4px; }

/* forme di presenza */
.lp-levels { display: grid; gap: 14px; margin: 20px 0 14px; }
@media (min-width: 640px) { .lp-levels { grid-template-columns: repeat(3, 1fr); } .lp-levels--one { grid-template-columns: 1fr; } }
.lp-level { border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 16px; background: #fff; display: flex; flex-direction: column; }
.lp-level--signature { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.lp-level--signature h3, .lp-level--signature .lp-level__price { color: var(--brass-2); }
.lp-level__pages { font: 600 12px/1.4 var(--ui) !important; letter-spacing: .12em; text-transform: uppercase; color: #8a6d45; margin: 4px 0 10px; }
.lp-level--signature .lp-level__pages { color: var(--brass-2); }
.lp-level__price { font: 400 30px/1 var(--brand) !important; color: var(--navy); margin: 0 0 12px; }
.lp-level__desc { font-size: 15px !important; line-height: 1.55 !important; }
.lp-level ul { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.lp-level--signature ul { border-top-color: var(--line-dark); }
.lp-level li { font-size: 14px !important; line-height: 1.5 !important; padding: 3px 0; }
.lp-small { font-size: 14px !important; color: var(--muted); }

.lp-note { border-inline-start: 3px solid var(--brass); background: var(--ivory); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 18px 0; }
.lp-note p { margin: 0; font-size: 15px !important; }

/* partecipazione standard: mockup della pagina nel libro + cosa comprende */
.lp-std { margin: 22px 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 36px -28px rgba(20, 23, 28, .5); }
.lp-std__fig { margin: 0; background: var(--ivory); }
.lp-std__fig img { display: block; width: 100%; height: auto; }
.lp-std__body { padding: clamp(20px, 4vw, 30px); }
.lp-std__body .lp-eyebrow { margin-bottom: 8px; }
.lp-std__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lp-std__head h3 { font-size: clamp(22px, 3vw, 26px); }
.lp-std__price { font: 400 clamp(34px, 5vw, 42px)/1 var(--brand) !important; color: var(--navy); margin: 0; }
.lp-std__inc { display: grid; gap: 14px 26px; margin: 18px 0 4px; }
@media (min-width: 560px) { .lp-std__inc { grid-template-columns: 1fr 1fr; } }
.lp-std__inc li { position: relative; padding-inline-start: 22px; font-size: 15px !important; line-height: 1.5 !important; }
.lp-std__inc li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .55em; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); }
.lp-std__inc strong { display: block; font: 600 15px/1.4 var(--ui); color: var(--navy); }
.lp-std__inc span { color: var(--muted); }
.lp-std__vat { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px !important; color: var(--muted); }

/* pagine interne: scorrimento orizzontale */
.lp-inside { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin: 16px 0 6px; overscroll-behavior-x: contain; }
.lp-inside figure { margin: 0; scroll-snap-align: start; }
.lp-inside img { width: 100%; border-radius: 4px; box-shadow: 0 14px 28px -18px rgba(20, 23, 28, .6); }
.lp-inside figcaption { margin-top: 8px; font: 500 13px/1.4 var(--ui); color: var(--muted); text-align: center; }

.lp-chip-link { display: inline-block; padding: 10px 16px; border-radius: 8px; background: var(--ivory); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font: 600 14px/1.2 var(--ui); }

/* tappe */
.lp-steps { counter-reset: s; margin: 14px 0 6px; }
.lp-steps li { counter-increment: s; position: relative; padding: 0 0 14px; padding-inline-start: 46px; }
.lp-steps li::before { content: counter(s, upper-roman); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--brass); color: #8a6d45; font: 400 14px/30px var(--brand); text-align: center; }

/* FAQ */
.lp-faq details { border-top: 1px solid var(--line); }
.lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; padding-inline-end: 30px; padding-inline-start: 0; position: relative; font: 600 16px/1.45 var(--ui); color: var(--navy); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 13px; font: 400 22px/1 var(--ui); color: #8a6d45; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { font-size: 16px !important; margin: 0 0 16px; color: #2b2f37; }

/* chiusura */
.lp-final { margin: clamp(32px, 5vw, 48px) calc(-1 * clamp(18px, 6vw, 64px)) calc(-1 * clamp(32px, 6vw, 64px)); padding: clamp(32px, 6vw, 56px) clamp(18px, 6vw, 64px); background: var(--navy); color: var(--ivory); text-align: center; }
@media (min-width: 800px) { .lp-final { border-radius: 0 0 6px 6px; } }
.lp-final h2 { color: var(--ivory); }
.lp-final p { color: rgba(242, 237, 227, .85); }
.lp-final__cover { width: 170px; margin: 0 auto 24px; }
.lp-final__cover img { width: 100%; border-radius: 2px 4px 4px 2px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7); }

/* bottone fisso su telefono */
.lp-sticky { display: none; }
@media (max-width: 639px) {
  .lp-sticky { display: flex; justify-content: center; gap: .4em; position: fixed; inset-inline: 12px; bottom: 12px; z-index: 60; padding: 15px 18px; border-radius: 8px; background: var(--navy); color: var(--ivory); text-decoration: none; font: 600 16px/1.2 var(--ui); box-shadow: 0 12px 30px -10px rgba(20, 23, 28, .6); }
  .page-edition .site-footer { padding-bottom: 84px; }
}
