/* Masaccio4 — sito pubblico. Bianco e nero ad alto contrasto, grotesk bold, nessun font esterno. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --soft: #f3f2ef;
  --line: #e2e2e0;
  --muted: #5b5b5b;
  --logo-in: #ffffff;
  --ok: #137333;
  --bad: #b3261e;
  --r: 14px;
  --font: "Helvetica Neue", Helvetica, "Arial Nova", Arial, system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #2b6cff; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.narrow-wrap { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.upper { text-transform: uppercase; }

/* Tipografia */
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.h1 { margin: 0 0 18px; font-size: clamp(42px, 7.2vw, 96px); line-height: .94; letter-spacing: -0.045em; font-weight: 700; }
.h2 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -0.04em; font-weight: 700; }
.h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 62ch; margin: 0 0 18px; }
.sec { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.sec.wrap + .sec.wrap { padding-top: 0; }
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-soft { background: var(--soft); }
.split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 15px/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #333; border-color: #333; }
.btn-inv { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-inv:hover { background: transparent; color: var(--paper); }
.btn-inv-line { border-color: var(--paper); color: var(--paper); }
.btn-inv-line:hover { background: var(--paper); color: var(--ink); }
.sec-ink .btn:not(.btn-inv) { border-color: var(--paper); color: var(--paper); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; min-height: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.hd-over { position: fixed; left: 0; right: 0; background: transparent; color: var(--paper); border-color: transparent; --logo-in: var(--ink); }
.hd-over.hd-solid { background: var(--paper); color: var(--ink); border-color: var(--line); --logo-in: var(--paper); }
.hd-in { display: flex; align-items: center; gap: 20px; max-width: 1440px; margin: 0 auto; padding: 14px var(--gut); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .1em; font-size: 16px; text-decoration: none; margin-right: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .03em; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current] { border-bottom-color: currentColor; }
.nav-lang { display: flex; gap: 10px; font-size: 13px; font-weight: 700; }
.nav-lang a { text-decoration: none; opacity: .55; }
.nav-lang a[aria-current], .nav-lang a:hover { opacity: 1; }
.hd-over:not(.hd-solid) .hd-cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hd-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; padding: 10px; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px var(--gut) 32px; background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--ink); display: none; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { display: block; font-size: 22px; padding: 10px 0; border: 0; }
  .nav-lang { font-size: 16px; gap: 18px; }
  .nav-lang a { padding: 8px 0; }
}
@media (max-width: 420px) { .hd-cta { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.72) 100%); }
.hero-in { position: relative; padding-top: 140px; padding-bottom: clamp(32px, 6vw, 72px); }
.hero-title { margin: 0 0 20px; font-size: clamp(56px, 11vw, 168px); line-height: .9; letter-spacing: -0.05em; font-weight: 700; }
.hero-title span { display: inline-block; }
.hero-hl { background: var(--paper); color: var(--ink); padding: 0 .12em .04em; margin-top: .06em; }
.hero-lead { font-size: clamp(18px, 1.8vw, 22px); max-width: 52ch; margin: 0 0 28px; }
.qbar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 8px; max-width: 760px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.qbar-f { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; border-right: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qbar-g { flex: 0 1 140px; }
.qbar select { border: 0; padding: 4px 0; font: 600 17px var(--font); color: var(--ink); background: transparent; letter-spacing: 0; text-transform: none; min-height: 32px; cursor: pointer; }
.qbar-btn { flex: 1 1 200px; margin: 4px; min-height: 56px; border-radius: 12px; }
@media (max-width: 640px) { .qbar-f { border-right: 0; border-bottom: 1px solid var(--line); flex-basis: 100%; } .qbar-g { flex-basis: 100%; } }

/* Numeri */
.stats { border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; padding: 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 700px) { .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Schede appartamento */
.units { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); margin-top: 40px; }
.ucard { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.ucard-dark { background: var(--ink); color: var(--paper); }
.ucard-dark .btn { border-color: var(--paper); color: var(--paper); }
.ucard-dark .btn:hover { background: var(--paper); color: var(--ink); }
.ucard-media { display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.ucard-dark .ucard-media { background: #1b1b1b; }
.ucard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ucard:hover .ucard-media img { transform: scale(1.03); }
.ph { display: flex; height: 100%; align-items: center; justify-content: center; font-weight: 700; font-size: 28px; letter-spacing: -0.02em; opacity: .5; }
.ucard-body { display: flex; flex-direction: column; gap: 8px; padding: 24px; flex: 1; }
.ucard-body h3 { margin: 0; font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.ucard-body h3 a { text-decoration: none; }
.ucard-body p { margin: 0; }
.ucard-num { font-size: 13px; font-weight: 700; letter-spacing: .14em; opacity: .6; }
.ucard-meta { font-size: 14px; opacity: .75; }
.ucard-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid currentColor; border-color: rgba(128,128,128,.35); font-weight: 700; }
.ucard-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); margin-top: 16px; }
.ucard-wide .ucard-media { aspect-ratio: 16 / 10; }

/* Vantaggi, dotazioni, trasporti */
.why { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.why h3 { margin: 14px 0 6px; font-size: 21px; }
.why p { margin: 0; opacity: .78; }
.amen { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.amen li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; background: var(--paper); }
.transport { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.transport li { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding: 22px 0; border-top: 2px solid var(--ink); }
.transport li:last-child { border-bottom: 2px solid var(--ink); }
.transport h3, .transport h2 { margin: 0 0 4px; font-size: 20px; }
.transport p { margin: 0; color: var(--muted); }
.transport strong { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.03em; white-space: nowrap; }
.transport-lg li { padding: 32px 0; }

/* Host e recensioni */
.host { align-items: center; }
.host-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.hquote { margin: 0 0 18px; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.host-names { font-weight: 700; }
.reviews { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.reviews li { border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.reviews p { margin: 0; font-size: 19px; line-height: 1.45; }
.stars { letter-spacing: .2em; font-size: 15px !important; }
.rev-name { font-weight: 700; font-size: 15px !important; opacity: .7; }

/* FAQ */
.faq-list { border-top: 2px solid var(--ink); margin-bottom: 24px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 28px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 20px; color: #333; max-width: 70ch; }
.faq-lg summary { font-size: 21px; padding-top: 24px; padding-bottom: 24px; }

/* CTA finale */
.cta { background: var(--ink); color: var(--paper); }
.cta-in { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }

/* Pagina appartamento */
.uhero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 32px; }
.ustats { list-style: none; margin: 8px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ustats li { flex: 1 1 140px; display: flex; flex-direction: column; padding: 16px 20px 16px 0; }
.ustats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.ustats strong { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.ustats span { font-size: 13px; color: var(--muted); }
.gallery { padding-bottom: 24px; }
.gal-grid { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.2 / 1; border-radius: var(--r); overflow: hidden; }
.gal-grid.gal-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gal-grid.gal-n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.gal-grid.gal-n3 { grid-template-columns: 2fr 1fr; }
.gal-grid.gal-n4 .gal-item:nth-child(4) { grid-column: span 2; }
.gal-item { position: relative; border: 0; padding: 0; margin: 0; background: var(--soft); cursor: zoom-in; overflow: hidden; }
.gal-item:first-child { grid-row: span 2; }
.gal-grid.gal-n2 .gal-item:first-child, .gal-grid.gal-n1 .gal-item:first-child { grid-row: auto; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.03); }
.gal-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #fff; font-size: 28px; font-weight: 700; }
.gal-empty { border: 2px dashed var(--line); border-radius: var(--r); padding: 60px 20px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .gal-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: auto; gap: 8px; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut); border-radius: 0; }
  .gal-item { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; border-radius: 12px; }
  .gal-more { display: none; }
}
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: rgba(0,0,0,.94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lightbox figcaption { font-size: 14px; opacity: .8; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.rules { margin: 0; border-top: 2px solid var(--ink); }
.rules div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rules dt { font-weight: 700; }
.rules dd { margin: 0; text-align: right; }
.loc-links { display: flex; flex-wrap: wrap; gap: 12px; align-self: center; }

/* Guida */
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; }
.toc a:hover { background: var(--ink); color: var(--paper); }
.cards { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.card h3 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.card p { margin: 0; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
.card-num { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.card-meta { font-size: 13px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-ink { background: transparent; border-color: rgba(255,255,255,.35); }
.card-ink .card-meta { color: rgba(255,255,255,.7); }
.card-icon .ic { margin-bottom: 4px; }
.sec-soft .card { border-color: var(--ink); }
.pills { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* Prenotazione */
.alert { border: 2px solid var(--bad); background: #fdecea; color: #7d1a14; border-radius: 12px; padding: 14px 18px; font-weight: 700; margin: 0 0 20px; }
.alert-soft { border-color: var(--line); background: var(--soft); color: var(--ink); font-weight: 500; }
.bk { display: flex; flex-direction: column; gap: 26px; margin-top: 32px; }
.after-unit { display: flex; flex-direction: column; gap: 26px; }
.bk-step { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bk-step legend { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; padding: 0; }
.bk-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 15px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.fld .muted { font-weight: 400; }
.bk input:not([type=checkbox]):not([type=radio]), .bk textarea, .bk select { font: 17px/1.3 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid #8a8a8a; border-radius: 10px; padding: 12px 14px; min-height: 50px; width: 100%; }
.bk input:focus, .bk textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(43,108,255,.25); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--ink); }
.unit-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.unit-opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; }
.unit-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.unit-opt input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.unit-opt-body { display: flex; flex-direction: column; gap: 2px; }
.unit-opt-body strong { font-size: 20px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stepper-row:last-of-type { border-bottom: 0; }
.stepper-label { display: flex; flex-direction: column; gap: 2px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.stepper button:disabled { opacity: .22; cursor: default; }
.stepper output { min-width: 24px; text-align: center; font-size: 20px; font-weight: 800; }
.quote { border: 2px solid var(--ink); border-radius: 14px; padding: 18px 20px; }
.quote[aria-busy=true] { opacity: .6; }
.quote-lines { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.quote-lines > div { display: flex; justify-content: space-between; gap: 16px; }
.quote-lines dt, .quote-lines dd { margin: 0; }
.quote-lines dd { text-align: right; white-space: nowrap; }
.quote-total { border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 6px; font-size: 22px; font-weight: 800; }
.quote-error { color: var(--bad); font-weight: 700; margin: 6px 0 0; }
.bk-pay { align-self: flex-start; }
.card-box { border: 2px solid var(--ink); border-radius: var(--r); padding: 22px; margin-top: 20px; }
.steps { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Calendario */
.picker { border: 2px solid var(--ink); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.picker[aria-busy=true] { opacity: .6; }
.picker-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.picker-sel-item { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; }
.picker-sel-item.active { border-color: var(--ink); }
.picker-sel-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.picker-sel-item strong { font-size: 19px; }
.picker-hint { margin: 0; font-weight: 700; }
.picker-nav { display: flex; justify-content: space-between; position: relative; z-index: 1; pointer-events: none; }
.picker-nav > * { pointer-events: auto; }
.picker-arrow { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.picker-arrow:disabled { opacity: .2; cursor: default; }
.picker-months { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: -52px; }
.pm-title { text-align: center; text-transform: capitalize; font-size: 18px; margin: 12px 0 10px; }
.pm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.pm-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.pm-day { aspect-ratio: 1 / 1.05; min-height: 44px; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; padding: 0; }
.pm-day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--ink); }
.pm-num { font-weight: 700; font-size: 15px; line-height: 1; }
.pm-price { font-size: 10.5px; color: var(--muted); line-height: 1; }
.pm-day.off { color: #b5b5b5; cursor: default; }
.pm-day.busy { color: #9a9a9a; cursor: default; }
.pm-day.busy .pm-num { text-decoration: line-through; }
.pm-day.co-only { cursor: pointer; color: var(--ink); }
.pm-day.co-only .pm-num { text-decoration: none; }
.pm-day.beyond { opacity: .35; }
.pm-day.today .pm-num { text-decoration: underline; text-underline-offset: 3px; }
.pm-day.range, .pm-day.preview { background: #ececec; border-radius: 0; }
.pm-day.start, .pm-day.end { background: var(--ink); color: var(--paper); opacity: 1; }
.pm-day.start .pm-price, .pm-day.end .pm-price { color: #cfcfcf; }
.pm-day.start { border-radius: 8px 0 0 8px; }
.pm-day.end { border-radius: 0 8px 8px 0; }
.picker-legend { margin: 0; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; }
.lg-free { border: 2px solid var(--ink); }
.lg-busy { background: repeating-linear-gradient(135deg, #bbb 0 2px, transparent 2px 5px); border: 1px solid #bbb; }

/* Footer */
.ft { background: var(--ink); color: var(--paper); padding-top: 64px; }
.ft-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ft ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft-logo { font-weight: 800; letter-spacing: .12em; margin: 0 0 12px; font-size: 18px; }
.ft-h { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin: 0 0 14px; }
.ft-muted { opacity: .7; font-size: 15px; }
.ft-lang { display: flex; gap: 12px; margin-top: 18px; font-weight: 700; font-size: 14px; }
.ft-lang a { opacity: .55; }
.ft-lang a[aria-current] { opacity: 1; }
.ft-copy { padding-top: 40px; padding-bottom: 96px; font-size: 13px; opacity: .55; }

/* Barra mobile e WhatsApp */
.mbar { display: none; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); border: 2px solid var(--paper); }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--ink); font-size: 15px; }
  .mbar .btn { min-height: 46px; }
  .wa-float { bottom: 84px; width: 50px; height: 50px; }
  body.pub { padding-bottom: 80px; }
}

/* Testi legali */
.legal h2 { margin-top: 28px; }

/* ===== 0.3.2 · correzioni dal test UI ===== */

/* Testi minimi leggibili, aree da toccare più grandi, contrasto lingue */
.qbar-f, .picker-sel-label, .pm-dow { font-size: 13px; }
.pm-price { font-size: 11.5px; }
.linklike { min-height: 44px; }
.nav-lang a { opacity: .75; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
.check { font-size: 16px; line-height: 1.6; }
.check input { width: 24px; height: 24px; margin-top: 2px; }
.check a { padding: 8px 0; }
.ft-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }

/* Ricerca in home: date per prime */
.qbar input[type=date] { border: 0; padding: 4px 0; font: 600 17px var(--font); color: var(--ink); background: transparent; min-height: 40px; width: 100%; letter-spacing: 0; text-transform: none; }
.qbar select { min-height: 40px; }
.qbar-d { flex: 1 1 170px; }
.qbar-g { flex: 0 1 120px; }
@media (max-width: 640px) {
  .qbar-d { flex: 1 1 50%; flex-basis: 50%; max-width: 50%; }
  .qbar-d + .qbar-d { border-left: 1px solid var(--line); }
  .qbar-g { flex: 1 1 100%; }
  .hero-in { padding-top: 96px; }
  .hero-lead { margin-bottom: 20px; }
}

/* Menu su telefono a tutto schermo, con Prenota e WhatsApp */
.nav-actions { display: none; }
html.menu-open { overflow: hidden; }
@media (max-width: 1060px) {
  .nav { inset: 72px 0 0 0; max-height: none; border-bottom: 0; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .nav-lang a { min-width: 44px; min-height: 44px; }
  .nav-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
  .nav-actions .btn { justify-content: center; width: 100%; }
}

/* Barra in basso: WhatsApp dentro la barra, prezzo e Continua */
.mbar-wa { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .mbar { gap: 10px; transition: transform .25s ease; }
  .mbar-info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
  .mbar-info strong { font-size: 17px; }
  .mbar-info span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar-wa { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); }
  .mbar .btn { flex: none; padding: 0 18px; }
  body.at-hero .mbar, .mbar.mbar-off, body.typing .mbar { transform: translateY(115%); }
}

/* Pagina appartamento: su telefono prima le foto */
.utop { display: flex; flex-direction: column; }
.gal-extra { display: none; }
@media (max-width: 760px) {
  .utop .gallery { order: -1; padding-top: 12px; padding-bottom: 0; }
  .utop .uhero { padding-top: 20px; }
  .gal-extra { display: block; }
}

/* Scelta appartamento con foto e disponibilità per le date cercate */
.unit-opt { align-items: center; }
.unit-opt-img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: var(--soft); }
.unit-avail { font-weight: 700; }
.unit-avail.no { color: var(--bad); }
.unit-opt-no { opacity: .7; }

/* Riepilogo con foto; su computer resta fisso a destra */
.quote-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.quote-head img { width: 76px; height: 57px; object-fit: cover; border-radius: 8px; flex: none; }
.quote-head div { display: flex; flex-direction: column; }
.quote-head strong { font-size: 18px; }
.quote-head span { color: var(--muted); font-size: 15px; }
.book-intro { max-width: 860px; }
@media (min-width: 1200px) {
  .after-unit { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; row-gap: 26px; align-items: start; }
  .after-unit > * { grid-column: 1; }
  .after-unit > .quote { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 96px; }
}
@media (max-width: 480px) {
  .unit-opt { padding: 12px; gap: 10px; }
  .unit-opt-img { width: 64px; height: 64px; }
  .unit-opt-body strong { font-size: 18px; }
  .unit-opt-body .muted { font-size: 15px; }
}
@media (max-width: 760px) { .mbar-info strong { white-space: nowrap; font-size: 16px; } .qbar input[type=date] { font-size: 16px; } }
@media (max-width: 400px) {
  .hero-title { font-size: 46px; }
  .hero-lead { font-size: 16px; }
  .qbar-f { padding: 6px 12px; }
}
@media (max-width: 640px) and (max-height: 700px) { .hero .eyebrow { display: none; } .hero-in { padding-top: 80px; } }
@media (max-width: 760px) { .mbar-info { overflow: hidden; } .mbar-info strong { overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 400px) { .mbar { gap: 8px; } .mbar .btn { padding: 0 14px; font-size: 15px; } .mbar-wa { width: 42px; height: 42px; } }
@media (max-width: 379px) { .mbar-info span { display: none; } .mbar-info strong { white-space: normal; font-size: 15px; line-height: 1.2; } }

/* ===== Check-in online ===== */
.ci-head { padding-bottom: 0; }
.ci-safe { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; background: var(--soft); border-radius: 12px; }
.ci-safe svg { flex: none; margin-top: 2px; }
.ci-body { padding-top: 28px; }
.ci .bk-step > .fld, .ci .bk-step > .grid-2 { margin: 0; }
fieldset.fld { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.fld legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { flex: 1 1 0; min-width: 110px; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 8px 12px; border: 1.5px solid #8a8a8a; border-radius: 10px; font-weight: 600; font-size: 16px; }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(43,108,255,.35); }
.seg-lg span { min-height: 58px; font-size: 18px; font-weight: 700; }
.ci-guests { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.ci-guest { border: 2px solid var(--ink); border-radius: 16px; padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ci-guest > legend { padding: 0 8px; font-size: 18px; font-weight: 800; }
.ci-sub { margin: 6px 0 0; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.ci-doc { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.ci-photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line); padding-top: 14px; }
.ci-photo-hint { grid-column: 1 / -1; margin: 0; }
.ci-file input[type=file] { padding: 10px; min-height: 54px; border-style: dashed !important; font-size: 15px !important; cursor: pointer; }
.ci-file input[type=file]::file-selector-button { font: 700 15px var(--font); border: 0; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 14px; margin-right: 10px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk [aria-invalid=true], .bk fieldset[aria-invalid=true] .seg span, label.check[aria-invalid=true] { border-color: var(--bad) !important; box-shadow: 0 0 0 2px rgba(179,38,30,.18); }
fieldset[aria-invalid=true] { border-radius: 10px; }
.alert ul { margin: 0; padding-left: 18px; }
.ci-done { text-align: left; padding: 20px 0 40px; }
.ci-done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; margin: 0 0 18px; }
.ci-done h2:focus { outline: none; }
.ci-done-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.page-checkin .mbar { display: none !important; }
@media (max-width: 760px) { .page-checkin.pub { padding-bottom: 0; } .ci-guest { padding: 14px; } }
.ci-note { margin: -4px 0 0; }

/* Select: freccia disegnata da noi, sempre dentro il riquadro (Safari/iOS e Android) */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230a0a0a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 14px 9px; background-position: right 14px center;
}
.bk select { padding-right: 42px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230a0a0a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px 9px; background-position: right 14px center; }
.qbar select { width: 100%; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230a0a0a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px 9px; background-position: right 4px center; }
select::-ms-expand { display: none; }
/* iOS Safari: i campi data non escono dal riquadro e restano allineati a sinistra */
input[type=date] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; display: block; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }

/* Extra per gli ospiti */
.ex-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ex-list li { display: flex; gap: 16px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; }
.ex-list h2 { margin: 0 0 4px; }
.ex-list p { margin: 0; color: var(--muted); }
.ex-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; }
.ex-card { margin-top: 28px; border: 2px solid var(--ink); border-radius: 16px; padding: 20px; }
.ex-card h3 { margin: 0 0 6px; }
.ex-card p { margin: 0 0 14px; }
.page-extra .mbar { display: none !important; }

/* Shop degli extra */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; }
.shop { padding-bottom: 60px; }
.shop-cat { padding-top: 36px; }
.shop-cat-lead { margin: -6px 0 18px; }
.pgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pcard { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); transition: border-color .15s; }
.pcard-in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pcard-off { opacity: .6; }
.pcard-img { aspect-ratio: 4 / 3; background: var(--soft); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.pcard-title { margin: 0; font-size: 18px; line-height: 1.25; }
.pcard-desc { margin: 0; color: var(--muted); font-size: 15px; }
.js .pcard-desc:not(.no-clamp) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-body .linklike { align-self: flex-start; min-height: 32px; }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.pcard-price { font-size: 20px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.qty button:disabled { opacity: .35; cursor: default; }
.bk .qty input[type=number] { width: 52px; min-height: 40px; padding: 6px 4px; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-checkout { margin: 48px auto 0; padding: 0; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.shop-sum { margin-bottom: 4px; }
.cartbar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 27; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; background: var(--ink); color: var(--paper); border-radius: 999px; box-shadow: 0 12px 36px rgba(0,0,0,.3); width: min(520px, calc(100% - 32px)); justify-content: space-between; transition: opacity .2s, transform .2s; }
.cartbar div { display: flex; flex-direction: column; line-height: 1.2; }
.cartbar strong { font-size: 18px; }
.cartbar span { font-size: 13px; opacity: .8; }
.cartbar .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cartbar-off { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }
.page-extra .wa-float { display: none; }

/* Logo: il disegno prende il colore del testo (bianco sopra la foto, nero sulla barra chiara) */
.logo-mark { display: inline-block; flex: none; width: 40px; height: 40px; background-color: currentColor; -webkit-mask: url("logo.png") center / contain no-repeat; mask: url("logo.png") center / contain no-repeat; }
.ft-logo { display: flex; align-items: center; gap: 12px; }
.ft-logo img { width: 56px; height: 56px; }

/* Moduli: etichette e campi sempre allineati nelle griglie (testi su una o due righe, note sotto il campo) */
.grid-2 { row-gap: 7px; align-items: start; }
.grid-2 > * { grid-row: span 3; }
.grid-2 > label:has(> .lt) { display: grid; grid-template-rows: subgrid; row-gap: 6px; align-items: start; }
.grid-2 > label > .lt, .grid-3 > label > .lt { align-self: end; }
.lh { display: flex; flex-direction: column; gap: 4px; font-weight: 400; }

/* Numeri dell'appartamento (valutazione, ospiti, m², prezzo): griglia regolare, centrata su telefono */
.ustats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); overflow: hidden; }
.ustats li, .ustats li + li { padding: 16px 20px; border-left: 0; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.ustats li:first-child { padding-left: 0; }
@media (max-width: 700px) {
  .ustats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ustats li, .ustats li + li, .ustats li:first-child { padding: 16px 8px; align-items: center; text-align: center; }
  .ustats strong { font-size: 28px; }
}

/* Lightbox: cornice sempre della stessa misura; la foto si vede intera, lo spazio libero è riempito dalla stessa foto sfocata */
.lightbox figure { max-width: none; max-height: none; }
.lb-frame { position: relative; width: min(92vw, calc(80vh * 3 / 2), 1400px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: #111 center / cover no-repeat; }
.lb-frame::before { content: ""; position: absolute; inset: -40px; background: inherit; filter: blur(28px) brightness(.55); }
.lightbox .lb-frame img { position: relative; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
@media (max-width: 700px) and (orientation: portrait) {
  .lb-frame { width: 100vw; aspect-ratio: 4 / 5; border-radius: 0; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
}

/* ---- 0.7.0 ---- */
/* Menu in alto tutto in maiuscolo, come M4 WHITE e M4 BLACK */
.nav ul a { text-transform: uppercase; letter-spacing: .05em; }
.ft .ft-nav a { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }

/* Numeri in home: il voto porta alle recensioni */
a.stat-link { color: inherit; text-decoration: none; }
a.stat-link:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.stat .ext { font-weight: 400; margin: 0; font-size: inherit; color: inherit; }
.ustats a { color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: inherit; }
.ustats a:hover strong { text-decoration: underline; text-underline-offset: 5px; }

/* Recensioni: provenienza, mese, appartamento; link a tutte */
.rev-meta { display: block; font-weight: 400; font-size: 13px; opacity: .75; margin-top: 2px; }
.rev-all { margin: 32px 0 0; }

/* Servizi: in home i primi sei, il resto con "Vedi tutti"; su telefono due colonne compatte */
.amen-short .amen-more { display: none; }
.amen-toggle { margin-top: 20px; }
@media (max-width: 700px) {
  .amen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .amen li { padding: 12px; gap: 10px; font-size: 14px; line-height: 1.25; align-items: center; }
  .amen li svg { width: 22px; height: 22px; flex: none; }
}

/* Calendario: prezzi leggibili */
.pm-price { font-size: 12.5px; color: #555; letter-spacing: -0.01em; }
.pm-day { gap: 2px; }
@media (max-width: 380px) { .pm-price { font-size: 11.5px; } }

/* Codice sconto nascosto finché non serve */
.bk-code { margin: 4px 0 8px; }
.bk-code summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 8px 0; min-height: 40px; list-style: none; }
.bk-code summary::-webkit-details-marker { display: none; }
.bk-code[open] summary { margin-bottom: 6px; }
.bk-code .fld { max-width: 320px; }
.field-msg { margin: -4px 0 12px; color: #a3160d; font-weight: 600; font-size: 15px; }

/* Pulsante "Torna su" */
.to-top { position: fixed; right: 22px; bottom: 86px; z-index: 24; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.15); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top svg { transform: rotate(-90deg); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 760px) {
  .to-top { right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .page-checkin .to-top, .page-extra .to-top { bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.page-extra:has(.cartbar:not([hidden]):not(.cartbar-off)) .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* E-shop: non disponibili leggibili (niente trasparenza sul testo), due prodotti per riga su telefono */
.pcard-off { opacity: 1; }
.pcard-off .pcard-img { filter: grayscale(1); opacity: .55; }
.pcard-off .pcard-title, .pcard-off .pcard-price { color: #555; }
.pcard-off .muted { color: #555; }
@media (max-width: 560px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { border-radius: 12px; }
  .pcard-img { aspect-ratio: 1 / 1; }
  .pcard-body { padding: 10px 10px 12px; gap: 6px; }
  .pcard-title { font-size: 15px; }
  .pcard-desc { font-size: 13px; }
  .js .pcard-desc:not(.no-clamp) { -webkit-line-clamp: 2; }
  .pcard-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard-price { font-size: 17px; }
  .pcard .qty { justify-content: space-between; }
  .pcard .qty button { width: 38px; height: 38px; }
  .pcard .qty input[type=number] { width: 100%; min-width: 0; flex: 1; }
}
@media (min-width: 1061px) { .nav ul a { font-size: 13px; } }
.hint-alert { color: #a3160d; font-weight: 700; }
/* Pulsanti a pillola: più aria ai lati, così il testo non tocca la curva */
.btn { padding-left: 26px; padding-right: 26px; white-space: nowrap; }
.btn-lg { padding-left: 32px; padding-right: 32px; }
.amen-toggle { padding-left: 28px; padding-right: 28px; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } .amen-toggle { white-space: nowrap; } }
/* Schermi da 320 px: il calendario non deve allargare la pagina */
fieldset.bk-step, .picker { min-width: 0; }
@media (max-width: 359px) { .picker { padding: 12px; } .picker-sel-item { flex-basis: 110px; padding: 8px 10px; } .picker-sel-item strong { font-size: 16px; } }

/* Home: più foto che scorrono in dissolvenza */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slides .hero-slide.is-on { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } .hero-slides .hero-slide.is-on { animation: none; } }
a.addr { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nav .btn, .hd-cta { text-transform: uppercase; letter-spacing: .05em; }

/* Biglietti e tour */
.tk-card { --card-pad: 26px; overflow: hidden; }
.tk-card .link-arrow { margin-top: auto; }
.tk-img { width: calc(100% + 2 * var(--card-pad, 24px)); max-width: none; margin: calc(-1 * var(--card-pad, 24px)) calc(-1 * var(--card-pad, 24px)) 6px; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.tk-head .chips { margin-top: 20px; }
.tk-sec { padding-top: 24px; }
.tk-after { margin-top: 28px; padding-top: 24px; border-top: 1.5px solid var(--line); text-align: left; }
.tk-mini { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 16px 0; }
.tk-mini .card h3 { font-size: 17px; }
.tk-car { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.anchor-alias { display: block; position: relative; top: -80px; height: 0; }

/* Video della home: solo su telefono, sopra le foto quando parte */
.hero-video { display: none; }
@media (max-width: 760px) {
  .hero-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .6s ease; }
  .hero-video.is-playing { opacity: 1; }
}
.hero-media::after { z-index: 2; }
/* Il video resta dietro al testo: la parte grafica ha un suo livello, il testo sta sopra */
.hero-media { z-index: 0; }
.hero-in { position: relative; z-index: 3; }
/* Leggibilità del testo sopra le foto chiare della home (su computer si vedono le foto, non il video) */
.hero-media::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.08) 75%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,.75) 100%);
}
@media (max-width: 760px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.8) 100%); }
}
.hero-in .eyebrow, .hero-title > span:first-child, .hero-lead { text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.35); }
