/* ==========================================================================
   WIDE Edizioni — foglio di stile v2
   Una casa editrice contemporanea, con più ritmo: bande di colore alternate,
   composizioni sovrapposte, un nastro di lavori reali in movimento.
   Movimento solo in CSS (nessun JavaScript), disattivato con "riduci movimento".
   ========================================================================== */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2-variations"), url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2-variations"), url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --ink: #141210;
  --ink-2: #1e1b17;
  --ink-3: #2b2722;
  --paper: #f4efe6;
  --sand: #eadfcc;
  --card: #fbf8f2;
  --text: #1a1815;
  --muted: #6d6556;
  --muted-light: #b8af9f;
  --line: #d9cfbc;
  --line-dark: rgba(244, 239, 230, .14);
  --accent: #c2412a;
  --accent-hot: #db5236;
  --accent-soft: #f0b6a3;
  --ivory: #f4efe6;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(18px, 4.5vw, 52px);
  --sec: clamp(80px, 10vw, 150px);
  --r: 6px;
  --shadow: 0 2px 6px rgba(0,0,0,.08), 0 30px 60px -30px rgba(20,18,16,.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; padding: 10px 16px; background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); }

/* ---------- Tipografia ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 1.4rem; font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.eyebrow--light { color: var(--muted-light); }
.sec-title { font: 400 clamp(2.3rem, 5vw, 4.4rem)/1.02 var(--serif); letter-spacing: -.028em; text-wrap: balance; font-variation-settings: "opsz" 72; }
.sec-title em, .hero-title em, .phero-title em { font-style: italic; color: var(--accent); }
.sec-head { max-width: 800px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 40px; }
.sec-lead { margin-top: 1.5rem; font-size: clamp(1.06rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 640px; }
.sec-aside { max-width: 380px; margin: 0; color: var(--muted); font-size: .98rem; }
.sec-aside a { color: inherit; font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.roman { font: italic 500 1em/1 var(--serif); color: var(--accent); }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 1em 1.6em; border: 1.5px solid transparent; border-radius: 999px; font: 600 .96rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hot); }
.btn-ghost { border-color: rgba(244,239,230,.4); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); background: rgba(244,239,230,.08); }
.btn-line { border-color: var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--paper); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.15em 1.9em; font-size: 1.02rem; }
.link-arrow { display: inline-flex; gap: .5em; font-weight: 600; text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--accent); white-space: nowrap; }
.link-arrow::after { content: "→"; color: var(--accent); transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Intestazione (scura, sempre visibile) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20,18,16,.92); color: var(--ivory); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line-dark); }
.header-in { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font: 500 1.25rem/1 var(--serif); }
.brand-txt em { font-style: normal; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); margin-top: 4px; }
.nav ul { display: flex; gap: 24px; }
.nav a { position: relative; text-decoration: none; font-size: .93rem; font-weight: 500; padding-block: 6px; color: rgba(244,239,230,.86); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.langs { display: flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px; }
.langs a { padding: 5px 9px; border-radius: 999px; font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-decoration: none; color: var(--muted-light); }
.langs a:hover { color: #fff; }
.langs a[aria-current] { background: var(--ivory); color: var(--ink); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; padding: .72em 1.1em; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; transition: background-color .2s; }
.header-cta:hover { background: var(--accent-hot); }
.header-cta svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero home ---------- */
.hero { background: var(--ink); color: var(--ivory); padding-top: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-title { font: 400 clamp(3rem, 8.2vw, 8.4rem)/.94 var(--serif); letter-spacing: -.04em; max-width: 14ch; font-variation-settings: "opsz" 72; }
.hero-title em { color: var(--accent-hot); }
.hero-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-top: clamp(32px, 4vw, 52px); }
.hero-lead { max-width: 620px; margin: 0; font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--muted-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line-dark); }
.stats div { padding: 22px 20px 0 0; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.stats dt { font: italic 400 clamp(2rem, 3.4vw, 3rem)/1 var(--serif); color: var(--ivory); }
.stats dd { margin-top: 8px; font-size: .84rem; color: var(--muted-light); letter-spacing: .02em; }

/* Nastro di lavori */
.marquee { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 70s linear infinite; }
.mq-track--rev { animation-direction: reverse; animation-duration: 80s; }
.mq-track ul { display: flex; gap: 14px; padding-right: 14px; }
.mq-track li { flex: none; height: clamp(150px, 17vw, 230px); border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.mq-track img { height: 100%; width: auto; object-fit: cover; }
.mq-site { aspect-ratio: 420/394; display: flex; flex-direction: column; background: var(--card); }
.mq-site .browser { padding: 7px 10px; gap: 5px; }
.mq-site .browser i { width: 7px; height: 7px; }
.mq-site .browser b { font-size: .64rem; }
.mq-site .win-view { flex: 1; aspect-ratio: auto; }
.mq-photo { aspect-ratio: 4/5; }
.mq-book { aspect-ratio: 2/3; }
.mq-photo img, .mq-book img { width: 100%; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Indice dei servizi */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dark); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 34px; text-decoration: none; transition: background-color .25s; border-right: 1px solid var(--line-dark); }
.tile:last-child { border-right: 0; }
.tile:hover { background: var(--accent); }
.tile-num { font: italic 500 1.2rem/1 var(--serif); color: var(--accent-hot); transition: color .25s; }
.tile:hover .tile-num { color: var(--ivory); }
.tile-name { font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.02em; margin-top: 10px; }
.tile-kick { font-size: .88rem; color: var(--muted-light); min-height: 2.8em; transition: color .25s; }
.tile:hover .tile-kick { color: rgba(255,255,255,.85); }
.tile-price { margin-top: auto; padding-top: 14px; font: 400 1.5rem/1 var(--serif); }
.tile-price small { font: .78rem var(--sans); color: var(--muted-light); }
.tile:hover .tile-price small { color: rgba(255,255,255,.8); }

/* ---------- Capitoli ---------- */
.chapters-head { padding-block: var(--sec) clamp(40px, 5vw, 70px); }
.chapters-head .sec-title { max-width: 18ch; }
.chapter { position: relative; padding-block: clamp(80px, 10vw, 150px); overflow: hidden; isolation: isolate; }
.chapter--paper { background: var(--paper); border-top: 1px solid var(--line); }
.chapter--ink { background: var(--ink); color: var(--ivory); }
.chapter--sand { background: var(--sand); }
.chapter--photo { color: var(--ivory); min-height: min(92vh, 900px); display: flex; align-items: center; }
.chapter-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.chapter--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,12,10,.88) 0%, rgba(14,12,10,.65) 45%, rgba(14,12,10,.1) 100%); }
.chapter-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.chapter--ink .chapter-txt { order: 2; }
.chapter--photo .chapter-in { grid-template-columns: minmax(0, 640px); }
.chapter-run { display: flex; align-items: baseline; gap: 14px; margin: 0 0 1.4rem; font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.chapter--ink .chapter-run, .chapter--photo .chapter-run, .phero .chapter-run { color: var(--muted-light); }
.chapter-run .roman { font-size: 2.6rem; letter-spacing: 0; text-transform: none; }
.chapter--ink .roman, .chapter--photo .roman, .phero .roman { color: var(--accent-hot); }
.chapter-title { font: 400 clamp(2.3rem, 4.4vw, 4rem)/1.03 var(--serif); letter-spacing: -.028em; text-wrap: balance; font-variation-settings: "opsz" 72; }
.chapter-short { margin: 1.5rem 0 1.8rem; font-size: 1.1rem; max-width: 560px; color: var(--muted); }
.chapter--ink .chapter-short, .chapter--photo .chapter-short { color: var(--muted-light); }
.ticks { display: grid; gap: 11px; }
.ticks--two { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; background: var(--accent); }
.chapter-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 28px; margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.chapter--ink .chapter-foot, .chapter--photo .chapter-foot { border-color: var(--line-dark); }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font: 400 clamp(2.4rem, 3.6vw, 3.2rem)/1 var(--serif); letter-spacing: -.03em; }
.price-pre, .price-post { font-size: .88rem; color: var(--muted); }
.chapter--ink .price-pre, .chapter--ink .price-post, .chapter--photo .price-pre, .chapter--photo .price-post, .phero .price-pre, .phero .price-post { color: var(--muted-light); }
.chapter-credit { align-self: end; margin-top: 2rem; font-size: .8rem; color: var(--muted-light); }
.chapter-credit a { color: var(--ivory); }

/* Composizioni sovrapposte */
.compo { position: relative; margin: 0 6% 8% 8%; }
.compo-main { width: 100%; aspect-ratio: 5/6; object-fit: cover; border-radius: var(--r); }
.compo-card { position: absolute; display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.compo-site { width: 56%; left: -12%; bottom: -9%; transform: rotate(-3deg); border: 5px solid #fff; }
/* Siti web: finestre di browser con siti reali (nessun mockup fotografico).
   Finestra principale: i siti si alternano in dissolvenza; dietro, un secondo sito sfalsato. */
.compo--web { margin: 0 4% 6% 2%; aspect-ratio: 10/9; }
.win { position: absolute; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.1), 0 40px 70px -34px rgba(0,0,0,.6); }
.win .browser { flex: none; }
.win-view { position: relative; display: block; aspect-ratio: 697/540; overflow: hidden; background: #fff; }
/* Schermate automatiche (assets/img/siti/auto/): mostrate così come sono.
   Le schermate storiche (759 × 712) contengono invece la cornice del tablet e la barra di Safari:
   si ritaglia solo la pagina (x 31–728, da y 50), così resta una sola cornice, la nostra. */
.win-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.win-view--tablet img, .win-view img.is-tablet { inset: 0 auto auto 0; width: 108.9%; height: auto; max-width: none; object-fit: fill; margin: -7.17% 0 0 -4.45%; }
.win--back { width: 64%; top: 0; right: 0; opacity: .9; }
.win--front { width: 84%; left: 0; bottom: 0; }
.win--front b { position: relative; flex: 1; min-height: 1.2em; }
.win--front b span { position: absolute; left: 0; top: 0; }
.win--front .win-view img:not(:first-child), .win--front b span:not(:first-child) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .win--front .win-view img, .win--front b span { opacity: 0; animation: win-cycle calc(var(--n) * 4.5s) calc(var(--i) * 4.5s) infinite both; }
  .win--front .win-view img:first-child, .win--front b span:first-child { animation-delay: 0s; }
}
@keyframes win-cycle {
  0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; }
}
.compo-site--2 { width: 44%; left: auto; right: -9%; top: 10%; bottom: auto; transform: rotate(4deg); }
.compo-site img { width: 100%; }
.compo-feed { width: 62%; left: -14%; bottom: -10%; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; transform: rotate(-3deg); }
.compo-feed img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.compo-books { position: absolute; right: -8%; bottom: -8%; width: 70%; display: flex; justify-content: flex-end; }
.compo-books img { width: 38%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow); margin-left: -12%; }
.compo-books img:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
.compo-books img:nth-child(2) { transform: rotate(-2deg); z-index: 1; }
.compo-books img:nth-child(3) { transform: rotate(6deg) translateY(12px); z-index: 2; }

/* Movimento al passaggio (solo CSS, browser compatibili) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .compo-card, .compo-books { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .chapter-title, .tile, .stats div { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes drift { from { translate: 0 60px; } to { translate: 0 -60px; } }
@keyframes rise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Metodo (banda rossa) ---------- */
.principles { background: var(--accent); color: #fff; }
.principles .eyebrow { color: rgba(255,255,255,.75); }
.principles .eyebrow::before { background: #fff; }
.principles .sec-title em { color: var(--ink); }
.principles-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.3); }
.principles-list li { padding: 34px 34px 0 0; }
.principles-list li + li { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.3); }
.big-num { display: block; font: italic 400 clamp(3rem, 5vw, 4.6rem)/1 var(--serif); margin-bottom: 26px; opacity: .55; }
.principles-list h3 { font: 400 1.7rem/1.15 var(--serif); margin-bottom: .7rem; }
.principles-list p { margin: 0; color: rgba(255,255,255,.86); }

/* ---------- Siti realizzati ---------- */
.works { padding-bottom: calc(var(--sec) - 48px); }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 27vw, 360px); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding: 14px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 56px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.shelf li { scroll-snap-align: start; }
.shelf a { display: block; text-decoration: none; }
/* ombra corta e morbida: resta dentro lo scaffale (overflow) senza essere tagliata */
.shelf figure { border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 1px 2px rgba(20,18,16,.06), 0 12px 26px -14px rgba(20,18,16,.3); transition: transform .3s, box-shadow .3s; }
.shelf a:hover figure { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(20,18,16,.06), 0 20px 30px -16px rgba(20,18,16,.36); }
.browser { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #e9e3d8; }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: #cfc6b6; }
.browser i:first-child { background: var(--accent); }
.browser b { margin-left: 8px; font: 500 .72rem var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf .win-view { aspect-ratio: 697/590; }
.shelf figcaption { display: flex; flex-direction: column; padding: 16px 18px 18px; }
.shelf figcaption strong { font: 400 1.3rem/1.2 var(--serif); }
.shelf figcaption span { font-size: .86rem; color: var(--muted); }
.shelf figcaption em { margin-top: 10px; font-style: normal; font-size: .82rem; font-weight: 600; color: var(--accent); }

/* ---------- Galleria (scura, a mosaico) ---------- */
.gallery-sec { background: var(--ink); color: var(--ivory); }
.gallery-sec .sec-aside { color: var(--muted-light); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 17vw, 250px); gap: 14px; }
.gallery li { position: relative; overflow: hidden; border-radius: var(--r); }
.gallery { grid-auto-flow: dense; }
.gallery--5 li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery--12 li:nth-child(1), .gallery--12 li:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.gallery--12 li:nth-child(4) { grid-row: span 2; }
.gallery--12 li:nth-child(12) { grid-column: span 2; }
.gallery figure, .gallery img { width: 100%; height: 100%; }
.gallery img { object-fit: cover; transition: transform .7s; }
.gallery li:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font: italic 400 1rem/1.2 var(--serif); background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); }

/* ---------- Libri ---------- */
.books { background: var(--sand); }
.books-in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.books .sec-head { margin-bottom: 0; }
.book-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.book a { display: flex; flex-direction: column; text-decoration: none; }
.book-cover { display: block; aspect-ratio: 2/3; overflow: hidden; border-radius: 2px 6px 6px 2px; box-shadow: inset 4px 0 0 rgba(0,0,0,.1), var(--shadow); transition: transform .3s; background: var(--card); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book a:hover .book-cover { transform: translateY(-6px) rotate(-1deg); }
.book-title { margin-top: 18px; font: 400 1.2rem/1.2 var(--serif); }
.book-author { margin-top: 4px; font-size: .88rem; font-weight: 600; }
.book-sub { margin-top: 2px; font-size: .82rem; color: var(--muted); }

/* ---------- Chi siamo ---------- */
.about-in { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--accent); }
.about-facts { margin-top: 40px; border-top: 2px solid var(--text); }
.about-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { font: italic 400 1.25rem/1.2 var(--serif); color: var(--accent); }
.about-facts dd { font-size: .9rem; color: var(--muted); text-align: right; }
.about-body .sec-title { margin-bottom: 2rem; }
.about-lead { font: 400 clamp(1.35rem, 2.1vw, 1.7rem)/1.4 var(--serif); }
.about-body p:not(.eyebrow):not(.about-lead):not(.signature) { color: var(--muted); max-width: 660px; }
.signature { margin-top: 1.6rem; font: italic 400 2.2rem/1 var(--serif); color: var(--accent); }

/* ---------- Recensioni ---------- */
.reviews { background: var(--sand); }
.rev-grid { columns: 3 300px; column-gap: 22px; }
.rev { break-inside: avoid; margin: 0 0 22px; padding: 30px 28px; background: var(--card); border-radius: var(--r); box-shadow: 0 1px 0 var(--line); }
.rev p { font: 400 1.14rem/1.5 var(--serif); margin-bottom: 1.4rem; }
.rev--lead { background: var(--ink); color: var(--ivory); }
.rev--lead p { font-size: 1.5rem; line-height: 1.35; font-style: italic; }
.rev footer { display: flex; flex-direction: column; padding-top: 14px; border-top: 1px solid var(--line); }
.rev--lead footer { border-color: var(--line-dark); }
.rev cite { font-style: normal; font-weight: 600; }
.rev footer span { font-size: .82rem; color: var(--muted); }
.rev--lead footer span { color: var(--muted-light); }

/* ---------- Guide ---------- */
.guide-list { border-top: 2px solid var(--text); }
.guide-list a { display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s; }
.guide-list a:hover { padding-left: 10px; }
.guide-n { font: italic 400 1rem var(--serif); color: var(--accent); }
.guide-t { font: 400 clamp(1.2rem, 2vw, 1.6rem)/1.25 var(--serif); }
.guide-go { color: var(--accent); font-size: 1.2rem; }
.guide-list a:hover .guide-t { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.faq .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq .sec-head .link-arrow { margin-top: 1.6rem; }
.faq-list { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font: 400 1.32rem/1.3 var(--serif); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, details[open] summary { color: var(--accent); }
.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; margin-top: 2px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: currentColor; transition: transform .25s; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.faq details p { max-width: 660px; margin: 0; padding: 0 44px 26px 0; color: var(--muted); }

/* ---------- Contatti ---------- */
.contact { background: var(--ink); color: var(--ivory); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.contact-title { font: italic 400 clamp(4rem, 11vw, 9.5rem)/.88 var(--serif); letter-spacing: -.045em; color: var(--accent-hot); }
.contact-lead { margin: 1.8rem 0 2rem; max-width: 480px; color: var(--muted-light); font-size: 1.1rem; }
.contact-ways { border-top: 1px solid var(--line-dark); }
.contact-ways a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; transition: padding .25s; }
.contact-ways a:hover { padding-left: 10px; }
.contact-ways span { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); }
.contact-ways strong { font: 400 clamp(1.25rem, 2.3vw, 1.8rem)/1.2 var(--serif); text-align: right; transition: color .2s; }
.contact-ways a:hover strong { color: var(--accent-soft); }

/* ---------- Piè di pagina ---------- */
.site-footer { background: #0d0c0a; color: var(--muted-light); padding-top: 80px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1.4fr; gap: 48px; padding-bottom: 60px; }
.colophon img { width: 50px; margin-bottom: 18px; }
.colophon-title { font: 400 1.5rem/1 var(--serif); color: var(--ivory); margin-bottom: .8rem; }
.colophon p:not(.colophon-title) { max-width: 340px; }
.f-title { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); margin-bottom: 20px; }
.f-list { display: grid; gap: 11px; }
.f-list a { text-decoration: none; transition: color .2s; }
.f-list a:hover { color: var(--ivory); }
.f-list span { display: inline-block; width: 2.2em; font: italic 400 1em var(--serif); color: var(--accent-hot); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px 30px; border-top: 1px solid var(--line-dark); font-size: .82rem; }
.footer-legal p { margin: 0; }
.f-langs { display: flex; gap: 16px; }
.f-langs a { text-decoration: none; } .f-langs a:hover { color: var(--ivory); }

/* ==========================================================================
   Pagine servizio
   ========================================================================== */
.phero { position: relative; background: var(--ink); color: var(--ivory); padding-block: clamp(36px, 5vw, 64px) clamp(90px, 10vw, 140px); overflow: hidden; isolation: isolate; }
.phero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero--foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,12,10,.9) 0%, rgba(14,12,10,.7) 50%, rgba(14,12,10,.2) 100%); }
.phero--foto { min-height: min(88vh, 860px); }
.phero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.phero--foto .phero-in { grid-template-columns: minmax(0, 700px); }
.crumbs { display: flex; gap: 10px; margin-bottom: 36px; font-size: .84rem; color: var(--muted-light); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ivory); }
.phero-title { font: 400 clamp(2.8rem, 6.4vw, 6rem)/.98 var(--serif); letter-spacing: -.035em; text-wrap: balance; font-variation-settings: "opsz" 72; }
.phero-title em { color: var(--accent-hot); }
.phero-lead { margin: 1.8rem 0 2rem; max-width: 620px; font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--muted-light); }
.price-card { margin-bottom: 2rem; padding: 18px 0 18px 22px; border-left: 3px solid var(--accent); }
.price-note { margin: 8px 0 0; font-size: .9rem; color: var(--muted-light); max-width: 520px; }
.phero .hero-actions { justify-content: flex-start; }
.phero--compact { padding-bottom: clamp(56px, 7vw, 90px); }
.phero--compact .phero-lead { margin-bottom: 2.4rem; }

/* Cosa comprende */
.inc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.inc-grid--6 { grid-template-columns: repeat(3, 1fr); }
.inc-grid li { padding: 30px 26px 32px; background: var(--card); border-radius: var(--r); border-top: 3px solid var(--accent); transition: transform .25s, box-shadow .25s; }
.inc-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.inc-n { display: block; font: italic 400 1.6rem/1 var(--serif); color: var(--accent); margin-bottom: 20px; }
.inc-grid h3 { font: 400 1.38rem/1.2 var(--serif); margin-bottom: .55rem; }
.inc-grid p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Immagine + testo */
.split { background: var(--sand); }
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 6/5; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.split .sec-title { margin-bottom: 1.6rem; }
.split-text { color: var(--muted); font-size: 1.06rem; max-width: 560px; }
.split-outro { margin-top: 1.6rem; font-style: italic; }
.split-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 28px; margin-top: 2rem; }
.split-list li { padding-top: 16px; border-top: 2px solid var(--text); }
.split-list--one { grid-template-columns: 1fr; gap: 0; margin: 2rem 0; border-top: 2px solid var(--text); }
.split-list--one li { padding: 18px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.split-list h3 { font: 400 1.22rem/1.25 var(--serif); margin-bottom: .4rem; }
.split-list p { margin: 0; color: var(--muted); font-size: .96rem; }
.split .ticks--two { margin-top: 1.8rem; }

/* Come funziona */
.steps-sec { background: var(--ink); color: var(--ivory); }
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-top: 1px solid var(--line-dark); }
.steps li { padding: 30px 26px 0 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.steps .big-num { color: var(--accent-hot); opacity: 1; font-size: clamp(2.6rem, 4vw, 3.6rem); margin-bottom: 22px; }
.steps h3 { font: 400 1.32rem/1.2 var(--serif); margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--muted-light); font-size: .96rem; }
.steps-note { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--muted-light); font: italic 400 1.2rem/1.4 var(--serif); }

/* Formule */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 38px 32px; background: var(--card); border-radius: 10px; box-shadow: 0 1px 0 var(--line); transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--best { background: var(--ink); color: var(--ivory); transform: translateY(-14px); }
.plan--best:hover { transform: translateY(-20px); }
.plan-badge { position: absolute; top: -13px; left: 32px; margin: 0; padding: 7px 13px; background: var(--accent); color: #fff; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border-radius: 999px; }
.plan-name { font: italic 400 2rem/1 var(--serif); margin-bottom: 18px; }
.plan .price { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan--best .price { border-color: var(--line-dark); }
.plan--best .price-pre, .plan--best .price-post, .plan--best .plan-desc, .plan--best .plan-for { color: var(--muted-light); }
.plan-desc { color: var(--muted); }
.plan .ticks { margin: 6px 0 24px; }
.plan-for { margin-top: auto; padding-top: 18px; font-size: .9rem; color: var(--muted); }
.plan-for strong { display: block; color: inherit; font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.plan--best .plan-for strong { color: var(--ivory); }
.plan .btn { margin-top: 20px; }
.plan--best .btn-line { border-color: var(--ivory); color: var(--ivory); }
.extras { margin-top: 64px; display: grid; grid-template-columns: 1fr 3fr; gap: 30px; padding-top: 28px; border-top: 2px solid var(--text); }
.extras-title { font: 400 1.6rem/1.2 var(--serif); }
.extras ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.extras li { display: flex; flex-direction: column; gap: 4px; }
.extras strong { font-weight: 600; }
.extras span { color: var(--muted); font-size: .95rem; }

/* Editoria: investimento */
.terms { background: var(--sand); }
.terms-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.terms-price { background: var(--accent); color: #fff; padding: clamp(32px, 4vw, 52px); border-radius: 10px; position: sticky; top: 110px; box-shadow: var(--shadow); }
.terms-price .eyebrow { color: rgba(255,255,255,.8); } .terms-price .eyebrow::before { background: #fff; }
.terms-amount { margin: 0; font: 400 clamp(4.4rem, 9vw, 7rem)/1 var(--serif); letter-spacing: -.045em; }
.terms-amount span { font: 400 1.2rem var(--sans); letter-spacing: 0; opacity: .8; }
.terms-split { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.35); }
.terms-split li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.88); }
.terms-split strong { color: #fff; font-weight: 600; margin-right: 6px; }
.terms .sec-title { margin-bottom: 1.6rem; }
.terms-text { color: var(--muted); font-size: 1.08rem; }
.terms-sub { font: italic 400 1.6rem/1.2 var(--serif); margin: 2.4rem 0 1.2rem; }

/* Fotografia: tariffe */
.rates-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.rate-card { padding: clamp(28px, 3.5vw, 46px); background: var(--ink); color: var(--ivory); border-radius: 10px; box-shadow: var(--shadow); }
.rate-title { font: italic 400 2rem/1 var(--serif); margin-bottom: 20px; }
.rate-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-dark); }
.rate-table th, .rate-table td { padding: 16px 0; border-bottom: 1px solid var(--line-dark); vertical-align: baseline; }
.rate-table th { text-align: left; font-weight: 600; padding-right: 16px; }
.rate-table th span { display: block; font-weight: 400; font-size: .86rem; color: var(--muted-light); }
.rate-table td { text-align: right; font: 400 1.35rem/1 var(--serif); white-space: nowrap; color: var(--accent-soft); }
.rate-note { margin: 18px 0 22px; font-size: .88rem; color: var(--muted-light); }

/* Altri capitoli */
.other-list { border-top: 2px solid var(--text); }
.other-list a { display: grid; grid-template-columns: 70px 1.2fr 1.5fr auto; align-items: baseline; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s, background-color .25s; }
.other-list a:hover { padding-left: 14px; }
.other-list .roman { font-size: 1.7rem; }
.o-name { font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.015em; }
.o-kick { color: var(--muted); font-size: .96rem; }
.o-price { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.other-list a:hover .o-name { color: var(--accent); }

/* Pagina FAQ */
.faq-index { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-index a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-dark); border-radius: 999px; text-decoration: none; font-weight: 500; transition: background-color .2s; }
.faq-index a:hover { background: var(--accent); border-color: var(--accent); }
.faq-index .roman { color: var(--accent-hot); }
.faq-index a:hover .roman { color: #fff; }
.faq-index small { font-size: .78rem; color: var(--muted-light); }
.page-faq .faq .sec-title { font-size: clamp(2rem, 3.6vw, 3rem); }
.page-faq .faq { padding-block: clamp(60px, 7vw, 100px); }

/* Pagina legale */
.legal-in { max-width: 820px; padding-block: clamp(50px, 6vw, 80px) var(--sec); }
.legal h2 { font: 400 1.6rem/1.2 var(--serif); margin: 2.4rem 0 .8rem; }
.legal p { color: var(--muted); }
.legal a { color: var(--text); text-decoration-color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav ul { gap: 16px; }
  .nav a { font-size: .88rem; }
  .brand-txt em { display: none; }
  .header-cta span { display: none; }
  .header-cta { padding: .7em; }
  .inc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 120px; }
  /* Intestazione su due righe: marchio + lingue + WhatsApp, poi menu sempre visibile e scorrevole */
  .header-in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .nav { order: 4; width: calc(100% + 2 * var(--gutter)); margin: 10px calc(-1 * var(--gutter)) 0; border-top: 1px solid var(--line-dark); }
  .nav ul { gap: 22px; overflow-x: auto; padding: 12px var(--gutter); scrollbar-width: none; white-space: nowrap; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav a { padding-block: 2px; font-size: .9rem; }

  .hero-row, .chapter-in, .phero-in, .about-in, .faq-in, .contact-in, .split-in, .terms-in, .rates-in, .books-in { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(2) { border-right: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { margin-top: 18px; }
  .chapter--ink .chapter-txt { order: 0; }
  .compo { max-width: 520px; margin: 30px 10% 12% 12%; }
  .chapter--photo { min-height: 0; }
  .chapter--photo::before { background: linear-gradient(0deg, rgba(14,12,10,.92) 30%, rgba(14,12,10,.55) 100%); }
  .faq .sec-head, .terms-price { position: static; }
  .principles-list, .steps { grid-template-columns: 1fr; }
  .principles-list li, .steps li { padding: 28px 0 !important; border-left: 0 !important; }
  .principles-list li + li { border-top: 1px solid rgba(255,255,255,.3); }
  .steps li + li { border-top: 1px solid var(--line-dark); }
  .big-num { margin-bottom: 14px; }
  .plan-grid { grid-template-columns: 1fr; gap: 34px; }
  .plan--best, .plan--best:hover { transform: none; }
  .extras { grid-template-columns: 1fr; }
  .gallery, .gallery--5, .gallery--12 { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .gallery--5 li:nth-child(1), .gallery--12 li:nth-child(1), .gallery--12 li:nth-child(8) { grid-column: span 2; grid-row: span 1; }
  .gallery--12 li:nth-child(4) { grid-row: span 1; }
  .gallery--12 li:nth-child(12) { grid-column: span 1; }
  .phero--foto { min-height: 0; }
  .phero--foto::before { background: linear-gradient(0deg, rgba(14,12,10,.92) 35%, rgba(14,12,10,.55) 100%); }
  .contact-in { align-items: start; }
  .other-list a { grid-template-columns: 52px 1fr auto; }
  .o-kick { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { width: 32px; }
  .brand-txt strong { font-size: 1.08rem; }
  .langs a { padding: 5px 7px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tile { padding: 22px 16px 26px; }
  .tile-kick { display: none; }
  .tile-price { font-size: 1.2rem; }
  .ticks--two { grid-template-columns: 1fr; }
  .compo { margin: 24px 6% 14% 10%; }
  .compo-site--2 { display: none; }
  .inc-grid, .inc-grid--6 { grid-template-columns: 1fr; }
  .split-list, .extras ul { grid-template-columns: 1fr; }
  .book-list { gap: 12px; }
  .book-title { font-size: 1rem; }
  .book-sub { display: none; }
  .guide-list a { grid-template-columns: 34px 1fr; }
  .guide-go { display: none; }
  .contact-ways a { flex-direction: column; gap: 8px; }
  .contact-ways strong { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .rate-table td { font-size: 1.12rem; }
  .faq summary { font-size: 1.14rem; }
  .other-list a { grid-template-columns: 40px 1fr; }
  .o-price { grid-column: 2; font-weight: 500; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .mq-track ul[aria-hidden] { display: none; }
}

/* ==========================================================================
   Luoghi fotografati + popup galleria (assets/js/places.js)
   ========================================================================== */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.place { position: relative; display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.place-img { display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r); background: var(--ink-3); }
.place-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s; }
.place:hover .place-img img, .place:focus-visible .place-img img { transform: scale(1.06); filter: brightness(.82); }
.place-count { position: absolute; top: 12px; right: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(20,18,16,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ivory); font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.place-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 2px 4px; }
.place-title { font: 400 1.32rem/1.15 var(--serif); }
.place-legend { font-size: .88rem; line-height: 1.5; color: var(--muted-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.place-open { margin-top: 4px; font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.place-open span { display: inline-block; transition: transform .3s; }
.place:hover .place-open span { transform: translateX(5px); }
.place:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 6px; border-radius: var(--r); }

html:has(.lb[open]) { overflow: hidden; }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #f0eeea; color: var(--text); display: none; flex-direction: column; }
.lb[open] { display: flex; animation: lb-in .3s ease-out; }
.lb::backdrop { background: rgba(240,238,234,.85); }
@keyframes lb-in { from { opacity: 0; } }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 36px) clamp(12px, 7vw, 96px) 0; overflow: hidden; touch-action: pan-y; }
.lb-img { display: block; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; border-radius: 3px; box-shadow: 0 2px 6px rgba(20,18,16,.06), 0 30px 70px -34px rgba(20,18,16,.45); user-select: none; -webkit-user-drag: none; }
.lb-spin { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(20,18,16,.12); border-top-color: var(--ink); border-radius: 50%; opacity: 0; transition: opacity .2s .15s; animation: lb-spin .8s linear infinite; pointer-events: none; }
.lb-stage.is-loading .lb-spin { opacity: 1; }
@keyframes lb-spin { to { transform: rotate(1turn); } }
.lb-nav, .lb-close { display: grid; place-items: center; border: 1px solid rgba(20,18,16,.16); background: rgba(255,255,255,.75); color: var(--ink); border-radius: 50%; cursor: pointer; transition: background-color .2s, border-color .2s; }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.lb-prev { left: clamp(8px, 2vw, 28px); } .lb-next { right: clamp(8px, 2vw, 28px); }
.lb-nav:hover, .lb-close:hover, .lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; padding: 18px clamp(16px, 7vw, 96px) max(20px, env(safe-area-inset-bottom)); }
.lb-info { min-width: 0; }
.lb-info p { margin: 0; }
.lb-title { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--serif); }
.lb-legend { margin-top: 4px !important; max-width: 680px; font-size: .9rem; color: var(--muted); }
.lb-credit { margin-top: 6px !important; font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.lb-credit a { color: var(--accent); }
.lb-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lb-count { min-width: 64px; text-align: right; font: 500 .82rem/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--muted); }
.lb-btn { padding: 11px 16px; border: 1px solid rgba(20,18,16,.2); border-radius: 999px; background: transparent; color: var(--ink); font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.lb-close { width: 44px; height: 44px; }
.lb :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lb-progress { height: 2px; background: transparent; }
.lb-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.lb.is-playing .lb-progress span { animation: lb-bar var(--lb-delay, 5s) linear infinite; }
@keyframes lb-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1100px) { .places { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .places { grid-template-columns: 1fr 1fr; }
  .place-title { font-size: 1.1rem; }
  .place-legend, .place-open { display: none; }
  .lb-nav { display: none; }                 /* su telefono: swipe */
  .lb-stage { padding: 10px 0 0; }
  .lb-img { border-radius: 0; }
  .lb-bar { flex-direction: column; align-items: stretch; padding-top: 14px; }
  .lb-legend { display: none; }
  .lb-tools { justify-content: space-between; }
  .lb-count { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .lb[open], .place-img img, .lb-progress span { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Guide: indice e pagina di una guida (testi dal registro website/it/page-articoli)
   ========================================================================== */
.guide-d { display: block; margin-top: 8px; font: 400 .95rem/1.55 var(--sans); color: var(--muted); max-width: 760px; }
.guide-m { display: block; margin-top: 10px; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.guide-list--full a { padding: 28px 0; }
.guides + .guides { padding-top: 0; }
.page-guides .guides .chapter-run { color: var(--muted); }

.ghero-title, .ghero-meta { max-width: 980px; }
.ghero .chapter-run { margin-bottom: 1.2rem; }
.ghero-title { margin: 0; font: 400 clamp(2.2rem, 4.6vw, 4.1rem)/1.04 var(--serif); letter-spacing: -.03em; text-wrap: balance; font-variation-settings: "opsz" 60; }
.ghero-meta { margin: 1.6rem 0 0; font-size: .9rem; color: var(--muted-light); }
.ghero-draft { display: inline-block; margin: 0 0 1.4rem; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 600; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 70px); }
.prose { max-width: 720px; font-size: 1.09rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin-bottom: 0; }
.prose .lead { font: 400 clamp(1.3rem, 2vw, 1.55rem)/1.5 var(--serif); color: var(--text); margin-top: 0; }
.prose h2, .prose .h-custom-headline { margin: 2.2em 0 0; font: 400 clamp(1.55rem, 2.6vw, 2.1rem)/1.15 var(--serif); letter-spacing: -.02em; color: var(--text); }
.prose h3 { margin: 1.8em 0 0; font: 600 1.15rem/1.3 var(--sans); }
.prose strong { font-weight: 600; color: var(--text); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; }
.prose li + li { margin-top: .55em; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .82em; width: 14px; height: 1.5px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 0; font: italic 400 1.05rem/1.75 var(--serif); color: var(--accent); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .94rem; line-height: 1.5; margin-top: 1.6em; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { font: 600 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--text); white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: rgba(234,223,204,.35); }

.guide-side { position: sticky; top: 110px; display: grid; gap: 22px; }
.guide-card { padding: 26px; border-radius: 10px; background: var(--ink); color: var(--ivory); display: grid; gap: 14px; justify-items: start; }
.guide-card .chapter-run { margin: 0; color: var(--muted-light); }
.guide-card-t { margin: 0; font: 400 1.4rem/1.2 var(--serif); }
.guide-card .price { margin: 0; }
.guide-card .link-arrow { color: var(--ivory); }
.guide-author { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.guide-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.guide-author p { margin: 0; }
.guide-author strong { color: var(--text); }

@media (max-width: 960px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-side { position: static; max-width: 720px; }
}
.guide-card .price-pre, .guide-card .price-post { color: var(--muted-light); }
.guide-card .price strong { font-size: 2.4rem; }
