/* Naren Immobiliare — foglio di stile. Caratteri ospitati in locale: nessuna chiamata a servizi esterni. */

/* Sito di Naren: notte blu e oro in apertura, poi pagine chiare; schede casa in griglia, una sola grande animazione (il palazzo che si accende). */
:root {
  color-scheme: light;
  --night: #14213D;
  --night-2: #1C2D50;
  --gold: #B8913F;
  --gold-light: #D4AE5E;
  --paper: #FFFFFF;
  --stone: #F3F4F6;
  --ink: #1B2333;
  --muted: #5B6474;
  --rule: #DFE3E8;
  --ok: #2F7A4F;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--sans); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--night); margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }


/* Testata */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.top .logo img { height: 42px; width: auto; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a:hover { border-bottom-color: var(--gold); }
.top nav a.btn { padding: 12px 18px; border-bottom: 0; min-height: 44px; }
.top nav a.btn .short { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 15.5px/1 var(--sans); text-decoration: none; padding: 15px 22px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; min-height: 48px; }
.btn-gold { background: var(--gold-light); color: var(--night); }
.btn-gold:hover { background: #E0BF77; }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--night-2); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-line:hover { border-color: #fff; }
.btn-ghost { background: transparent; color: var(--night); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--night); }

/* Apertura */
.hero { background: radial-gradient(120% 80% at 75% 100%, #2A3A5E 0%, var(--night) 55%); color: #DDE3EE; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: end; padding-block: 64px 0; }
.hero-text { padding-bottom: 88px; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
.hero-text > p { font-size: 18.5px; max-width: 44ch; color: #C9D2E0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14.5px; color: #AFBACB; padding-top: 6px; }
.hero-facts b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.scene { position: relative; align-self: end; }
.scene svg { width: 100%; height: auto; }
.win-lit { opacity: 0; animation: light .9s ease-out forwards; }
.star { animation: twinkle 4s ease-in-out infinite; }
@keyframes light { 0% { opacity: 0; } 40% { opacity: .55; } 55% { opacity: .3; } 100% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.tag-float { position: absolute; background: #fff; color: var(--night); font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 4px; box-shadow: 0 8px 22px rgba(10,20,40,.35); opacity: 0; animation: pop .5s ease-out forwards; white-space: nowrap; }
.tag-float::after { content: ""; position: absolute; left: 14px; bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.tag-float span { color: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 0; }
  .hero-text { padding-bottom: 8px; }
}

/* Sezioni */
section { padding-block: clamp(72px, 9vw, 112px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); max-width: 52ch; }
.kicker { font-size: 14.5px; font-weight: 500; color: #8A6A2B; margin-bottom: 10px; }

/* Vetrina */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 14.5px/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; min-height: 44px; }
.chip[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(20,33,61,.12); }
.card .pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.card .pic svg { width: 100%; height: 100%; transition: transform .6s ease; }
.card:hover .pic svg { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ok); font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 3px; display: inline-flex; align-items: center; gap: 6px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .meta { font-size: 14px; color: var(--muted); }
.card .price { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--rule); }
.card .price b { font: 600 22px/1 var(--serif); color: var(--night); font-variant-numeric: tabular-nums; }
.card .price small { font-size: 13.5px; color: var(--muted); }
.card button.more { font: 500 14.5px var(--sans); color: var(--night); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; min-height: 44px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); border-radius: 6px; grid-column: 1 / -1; }

/* Come funziona */
.steps-band { background: var(--stone); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--gold); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s); font: 600 40px/1 var(--serif); color: var(--gold); margin-bottom: 6px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Tour */
.tour { background: var(--night); color: #DDE3EE; }
.tour .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.tour h2 { color: #fff; }
.tour p { color: #B9C4D5; margin-top: 16px; max-width: 42ch; }
.poster { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; border: 0; padding: 0; background: #000; width: 100%; }
.poster svg { width: 100%; height: 100%; }
.poster .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(transparent 40%, rgba(10,18,34,.55)); }
.poster .play span { width: 84px; height: 84px; border-radius: 50%; background: var(--gold-light); display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.poster:hover .play span { transform: scale(1.08); }
.poster .dur { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 14px; font-weight: 500; }
@media (max-width: 860px) { .tour .wrap { grid-template-columns: 1fr; } }

/* Ristrutturazioni */
.reno .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.reno ul { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.reno li { font-size: 14.5px; padding: 8px 13px; border: 1px solid var(--rule); border-radius: 999px; }
.reno p.lead { color: var(--muted); margin-top: 16px; max-width: 46ch; }
.ba { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; user-select: none; background: var(--stone); }
.ba svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); background-image: linear-gradient(90deg, transparent 13px, var(--night) 13px, var(--night) 15px, transparent 15px, transparent 29px, var(--night) 29px, var(--night) 31px, transparent 31px); }
.ba .lbl { position: absolute; bottom: 12px; font-size: 13px; font-weight: 600; background: rgba(20,33,61,.82); color: #fff; padding: 5px 10px; border-radius: 3px; pointer-events: none; }
.ba .lbl.l { left: 12px; } .ba .lbl.r { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-hint { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .reno .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* Preventivo */
.quote-band { background: var(--stone); }
.quote { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.quote aside p { color: var(--muted); margin-top: 16px; max-width: 40ch; }
.quote aside ul { margin: 24px 0 0; padding-left: 1.1em; color: var(--ink); display: grid; gap: 8px; }
form.box { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: clamp(20px, 3vw, 34px); display: grid; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
legend, label.l { font-weight: 600; font-size: 15px; color: var(--night); padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 14px; font-size: 14.5px; cursor: pointer; min-height: 44px; }
.opts input { accent-color: var(--night); width: 17px; height: 17px; margin: 0; }
.opts label:has(input:checked) { border-color: var(--night); background: #EEF1F6; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } .quote { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; gap: 32px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field span.h { font-size: 13.5px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea { font: 400 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid #C6CDD6; border-radius: 4px; padding: 12px 13px; width: 100%; min-height: 48px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(184,145,63,.5); border-color: var(--night); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--night); flex: none; }
.form-note { font-size: 13.5px; color: var(--muted); }
.done { display: grid; gap: 10px; justify-items: start; padding: 10px 0; }
.done h3 { color: var(--ok); }

/* Chi siamo */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about p { color: var(--muted); margin-top: 16px; max-width: 54ch; }
.plan { background: var(--stone); border-radius: 8px; padding: 22px; }
.plan figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }

/* Piè di pagina */
footer { background: var(--night); color: #AEB9CB; font-size: 14.5px; }
footer .wrap { padding-block: 56px 36px; display: grid; gap: 30px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }

footer h4 { font: 600 15px var(--sans); color: #fff; margin: 0 0 10px; }
footer a { color: #DDE3EE; text-decoration: none; }
footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
footer .fine { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 24px; color: #8592A8; }
footer .ph { color: #E9CF8E; }

/* Comparsa allo scorrimento: il contenuto resta visibile se lo script non parte */
.reveal-ready .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .win-lit, .tag-float { opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Aggiunte del sito definitivo ---------- */
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--night); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Menu su telefono */
.menu-btn { display: none; font: 500 15px var(--sans); color: var(--night); background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
@media (max-width: 900px) {
  .top .logo img { height: 36px; }
  .menu-btn { display: inline-block; }
  .top nav.menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); }
  .top nav.menu.open { display: flex; }
  .top nav.menu a { padding: 14px 0; border-bottom: 1px solid var(--stone); }
  .top nav.menu a.btn { margin-top: 12px; border-bottom: 0; }
  .no-js .top nav.menu { display: flex; position: static; }
}

/* Immagini e illustrazioni */
.illu { display: block; width: 100%; height: 100%; }
.illu svg { width: 100%; height: 100%; }
.card .pic { display: block; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .pic img, .card:hover .pic .illu svg { transform: scale(1.04); }
.card .pic .illu svg { transition: transform .6s ease; }
.card h3 a { text-decoration: none; }
.card .type { font-size: 13.5px; color: #8A6A2B; font-weight: 500; }
.card .more { font: 500 14.5px var(--sans); color: var(--night); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; padding: 10px 0; }
.empty p + p { margin-top: 6px; }
.hero-video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px 8px 0 0; display: block; }
.tour-video { width: 100%; border-radius: 8px; background: #000; display: block; }
.kicker-gold { color: var(--gold-light) !important; }
.services { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.services li { font-size: 14.5px; padding: 8px 13px; border: 1px solid var(--rule); border-radius: 999px; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .illu { position: absolute; inset: 0; }
.ba.ba--foto { aspect-ratio: auto; }
.ba.ba--foto > img { position: relative; display: block; height: auto; }
.form-msg { font-size: 14.5px; min-height: 1em; }
.form-msg.err { color: #9B1C1C; }
.form-msg.ok { color: var(--ok); }
.consent a { color: var(--night); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.values li { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; }
.values p { margin-top: 4px; color: var(--muted); }
.foot .fh { font: 600 15px var(--sans); color: #fff; margin: 0 0 10px; }
.foot .flogo img { height: 92px; width: auto; }
.foot .fine span:empty { display: none; }

/* Scheda immobile */
.scheda { padding-block: 28px 96px; }
.crumb { margin-bottom: 18px; font-size: 15px; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--night); }
.scheda-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { display: grid; gap: 10px; }
.g-main { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--stone); }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: var(--stone); }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: grid; gap: 14px; }
.info h1 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
.info .kicker { margin: 0; }
.info .zona { color: var(--muted); }
.big-price b { font: 600 34px/1 var(--serif); color: var(--night); font-variant-numeric: tabular-nums; }
.big-price small { color: var(--muted); font-size: 15px; }
.badge.static { position: static; border: 1px solid #CFE3D6; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 6px 0 0; }
.specs div { border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.scheda-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; margin-top: 64px; align-items: start; }
.desc { display: grid; gap: 16px; max-width: 68ch; }
.desc h2, .box h2 { font-size: 26px; }
.desc h2:not(:first-child) { margin-top: 26px; }
.desc p, .desc li { color: #3A4352; }
.plan-img img { border-radius: 6px; border: 1px solid var(--rule); background: #fff; }
.altri { margin-top: 96px; padding: 0; }
.altri h2 { margin-bottom: 26px; font-size: 30px; }
@media (max-width: 900px) {
  .scheda-grid, .scheda-body { grid-template-columns: 1fr; gap: 28px; }
  .info { position: static; }
  .scheda-body { margin-top: 40px; }
}

/* Foto a schermo intero */
.lightbox { border: 0; padding: 0; background: transparent; width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
.lightbox::backdrop { background: rgba(8,14,28,.92); }
.lb-stage { position: absolute; inset: 56px 64px; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage svg { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--night); font-size: 30px; line-height: 1; cursor: pointer; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: 22px; line-height: 1; color: var(--night); z-index: 2; }
@media (max-width: 600px) { .lb-stage { inset: 60px 8px; } .lb-nav { top: auto; bottom: 8px; transform: none; } }

/* Pagine legali */
.page-head { background: var(--night); padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.page-head h1 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); }
.page-head p { color: #AEB9CB; margin-top: 14px; }
.legal { padding-block: clamp(48px, 7vw, 88px) 104px; }
.legal .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.legal .toc { position: sticky; top: 104px; align-self: start; font-size: 14.5px; }
.legal .toc p { color: var(--muted); margin-bottom: 10px; }
.legal .toc ol { margin: 0; padding-left: 1.2em; }
.legal .toc li { margin-bottom: 8px; }
.legal .toc a { text-decoration: none; color: var(--night); }
.legal article { max-width: 70ch; }
.legal article section { padding: 0; }
.legal article section + section { margin-top: 48px; }
.legal article h2 { font-size: 24px; margin-bottom: 14px; }
.legal article h3 { font-size: 18px; margin: 24px 0 8px; }
.legal article p, .legal article ul { margin: 0 0 1em; }
.legal article li { margin-bottom: 6px; }
.legal article a { color: var(--night); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.legal th { color: var(--night); }
@media (max-width: 860px) {
  .legal .wrap { grid-template-columns: 1fr; }
  .legal .toc { position: static; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border: 0; padding: 4px 0; }
  .legal tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); }
}
.notfound { min-height: 60vh; display: flex; align-items: center; padding-block: 80px; }
.notfound p { color: var(--muted); margin: 18px 0 30px; max-width: 46ch; }
.notfound h1 { font-size: clamp(32px, 4.4vw, 48px); }
.hero { padding-block: 0; }
.lb-stage svg { width: 100%; height: 100%; }
