/* Caratteri ospitati sul sito (niente collegamenti a Google): Inter, Cormorant Garamond e il suo vero corsivo */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("fonts/cormorant-garamond-italic.woff2") format("woff2"); }

:root {
  --navy: #0f1a2b;
  --navy-2: #17243a;
  --gold: #c9a96a;
  --gold-2: #b08f50;
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --ink: #1d2433;
  --muted: #5f6573;
  --gold-text: #86692f; /* oro per testo su fondo chiaro: contrasto ≥ 4,5 */
  --line: #e7e0d4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 26, 43, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h1 em, h2 em, .brand em { font-style: italic; color: var(--gold); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; color: var(--gold-text); margin-bottom: .9rem; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .9rem 1.6rem; border-radius: 999px; border: 1px solid var(--gold); transition: .25s; }
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: .3s; }
.nav.scrolled { background: rgba(15, 26, 43, .94); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
picture { display: contents; }
.brand .logo { display: block; width: auto; height: 56px; }
.footer .brand .logo { height: 96px; }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) { color: rgba(255,255,255,.88); text-decoration: none; font-size: .92rem; position: relative; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--gold); transition: .25s; }
.menu a:not(.btn):hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 5px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; margin: 7px 4px; transition: .3s; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; }
/* Il ritaglio della foto sta nel contenitore: il calendario della ricerca può uscire dalla copertina */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: zoom 18s ease-out forwards; }
@keyframes zoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,26,43,.88) 0%, rgba(15,26,43,.55) 55%, rgba(15,26,43,.25) 100%); }
.hero-content { position: relative; padding-top: 80px; max-width: 760px; margin-left: max(20px, (100% - 1180px) / 2); }
.hero .eyebrow, .section-dark .eyebrow, .cta-band .eyebrow, .page-hero .eyebrow, .page-hero .eyebrow a { color: var(--gold); }
.lead { font-size: 1.15rem; font-weight: 300; margin: 1.4rem 0 2.2rem; max-width: 560px; color: rgba(255,255,255,.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) auto; gap: .5rem; align-items: stretch; background: var(--paper); color: var(--ink); padding: .6rem; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-width: 720px; }
.bk-field { display: flex; flex-direction: column; gap: .15rem; padding: .45rem .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.bk-field:focus-within { border-color: var(--gold); }
.bk-field span { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.bk-field input, .bk-field select, .bk-val { font: inherit; font-size: .95rem; color: var(--ink); border: 0; background: transparent; padding: 0; width: 100%; min-width: 0; outline: none; cursor: pointer; }
.booking .btn { height: 100%; min-height: 56px; border-radius: 12px; cursor: pointer; font-family: inherit; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.1rem; font-size: .88rem; color: rgba(255,255,255,.88); }
.trust li { display: flex; align-items: center; gap: .45rem; }
.trust li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg) translateY(-2px); flex: none; }
.trust a { color: var(--gold); text-decoration: none; }
.trust a:hover { text-decoration: underline; }
.booking-note { margin-top: 1rem; font-size: .88rem; color: rgba(255,255,255,.8); }
.booking-note a { color: var(--gold); text-decoration: none; white-space: nowrap; }
.booking-note a:hover { text-decoration: underline; }

/* Highlights */
.highlights { background: var(--navy); color: #fff; border-top: 1px solid rgba(201,169,106,.25); }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hl-grid div { padding: 2rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.hl-grid div:last-child { border-right: 0; }
.reviews { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.6rem; padding: 1.1rem 0 1.3rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: rgba(255,255,255,.75); }
.reviews p { display: flex; align-items: center; gap: .6rem; }
.rv-score { background: var(--gold); color: var(--navy); font-weight: 700; padding: .2rem .55rem; border-radius: 8px 8px 8px 2px; }
.reviews ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; }
.reviews b { color: var(--gold); font-weight: 600; }
.hl-grid strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--gold); line-height: 1.2; }
.hl-grid span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark p { color: rgba(255,255,255,.8); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head p:last-child { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-rev .split-img { order: 2; }
.split-img img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-text > p { margin-bottom: 1.6rem; color: #4b5563; }
.section-dark .split-text > p { color: rgba(255,255,255,.8); }

.amenities { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.amenities li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.amenities li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

.distances { list-style: none; margin-bottom: 1rem; }
.distances li { display: flex; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.distances b { color: var(--gold); font-weight: 500; }
.note { font-size: .8rem; opacity: .6; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.map { position: relative; background: var(--navy-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }

/* Apartments */
.filters { display: flex; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.chip { font: inherit; font-size: .9rem; padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .2s; color: var(--ink); }
.chip span { color: var(--muted); margin-left: .25rem; font-size: .8rem; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.active span, .chip:hover span { color: var(--gold); }

.apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.apt { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.apt:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,26,43,.14); }
.apt-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.apt-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.apt:hover .apt-img img { transform: scale(1.06); }
.apt-tag { position: absolute; top: 12px; left: 12px; background: rgba(15,26,43,.85); color: #fff; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; }
.apt-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.apt-body h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.apt-meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.apt-meta b { color: var(--ink); font-weight: 600; }
.apt-beds { font-size: .88rem; color: #4b5563; margin-bottom: 1.2rem; }
.apt-cin { font-size: .72rem; line-height: 1.5; color: var(--muted); margin: -.7rem 0 .4rem; letter-spacing: .02em; }
.apt-link { font-size: .9rem; font-weight: 600; color: var(--gold-text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; } /* il link resta in fondo, le informazioni restano unite */
.apt-link:hover { color: var(--navy); }
.apt.hide { display: none; }
.apt.unfit { opacity: .45; }
.apt.unfit .apt-link { pointer-events: none; color: var(--muted); }
.apt-fit { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.apt-hint { text-align: center; font-size: .85rem; color: var(--muted); margin: -1.4rem 0 1.6rem; min-height: 1.3em; }

/* CTA band */
.cta-band { background: linear-gradient(rgba(15,26,43,.82), rgba(15,26,43,.82)), url("img/quartiere.jpg") center/cover; background-image: linear-gradient(rgba(15,26,43,.82), rgba(15,26,43,.82)), image-set(url("img/quartiere.avif") type("image/avif"), url("img/quartiere.jpg") type("image/jpeg")); color: #fff; text-align: center; }
.cta-inner { max-width: 640px; }
.cta-inner p { margin-bottom: 2rem; color: rgba(255,255,255,.85); }
.cta-band .hero-cta { justify-content: center; }

/* Footer */
.footer { background: #0a1220; color: rgba(255,255,255,.75); padding: 4rem 0 0; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .muted { margin-top: 1rem; max-width: 260px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; font-size: .8rem; color: rgba(255,255,255,.5); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; }
.footer a.foot-powered { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; margin-left: auto; color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; transition: opacity .2s; }
.footer a.foot-powered:hover { color: rgba(255,255,255,.75); opacity: 1; }
.foot-powered img { display: block; width: 49px; height: 18px; }

.sticky-bar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 920px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: var(--navy); padding: 1rem 20px 1.5rem; transform: translateY(-120%); transition: .35s; align-items: stretch; }
  .menu { visibility: hidden; transition: transform .35s, visibility 0s .35s; }
  .menu.open { transform: none; visibility: visible; transition: transform .35s; }
  .menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu .btn { margin-top: 1rem; text-align: center; }
  .burger.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .split { grid-template-columns: 1fr; }
  .split-rev .split-img { order: 0; }
  .hl-grid { grid-template-columns: 1fr 1fr; }
  .hl-grid div:nth-child(2) { border-right: 0; }
  .hl-grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sticky-bar { display: flex; gap: 10px; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; transition: transform .3s, opacity .3s; }
  .sticky-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .sticky-book { flex: 1; display: block; text-align: center; background: var(--gold); color: var(--navy); font-weight: 600; text-decoration: none; padding: 1rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .sticky-wa { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .footer { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .booking .btn { padding-inline: .8rem; }
  .amenities { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-content { margin-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Galleria */
.apt-img { cursor: zoom-in; }
.apt-count { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,13,22,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: rgba(255,255,255,.75); margin-top: .8rem; font-size: .9rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: var(--navy); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } }

/* Mappa con consenso */
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; text-align: center; padding: 1.6rem 1.6rem 1.8rem; background: radial-gradient(circle at 30% 30%, rgba(201,169,106,.18), transparent 60%), var(--navy-2); }
.map-consent p { color: #fff; margin: 0; }
.map-schema { width: 100%; flex: 1 1 auto; min-height: 0; font-family: var(--sans); }
.map-info { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.map-consent .map-note { font-size: .8rem; color: rgba(255,255,255,.6); max-width: 320px; }
.map-consent .map-note a { color: var(--gold); }

/* Pagine interne */
.subpage .nav { position: sticky; }
.page-hero { background: var(--navy); color: #fff; padding: 4.5rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .updated { color: rgba(255,255,255,.7); margin-top: 1rem; max-width: 620px; }
.narrow { width: min(780px, 100% - 40px); }
.prose-wrap { padding-top: 3.5rem; }
.prose { font-size: 1.04rem; color: #374151; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); margin: 2.6rem 0 .9rem; }
.prose h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold-text); }
.prose a.btn { color: var(--navy); text-decoration: none; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .callout { background: var(--cream); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; }
.prose .note-lang { font-size: .88rem; color: var(--muted); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.post-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow); }
.inline-cta { margin: 1.6rem 0 2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold-text) !important; }
.btn-outline:hover { background: var(--gold); color: var(--navy) !important; }
.back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,26,43,.14); }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card-body h2 { font-size: 1.5rem; margin-bottom: .7rem; }
.post-card-body p { color: #4b5563; font-size: .95rem; margin-bottom: 1rem; flex: 1; }
.post-meta { font-size: .8rem !important; color: var(--muted) !important; flex: 0 !important; margin-bottom: .5rem !important; }

/* Domande frequenti */
.faq { display: grid; gap: .7rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; transition: border-color .2s; }
.faq-item[open] { border-color: var(--gold); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--gold-2); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 1.2rem; color: #4b5563; }
.faq-item a, .faq-more a { color: var(--gold-text); }
.faq-more { text-align: center; margin-top: 1.8rem; color: var(--muted); }

/* Appartamenti a scorrimento orizzontale su telefono: evita 8 schermate di schede */
@media (max-width: 640px) {
  .apt-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 0 20px 1.2rem; scroll-padding-inline: 20px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .apt-grid::-webkit-scrollbar { display: none; }
  .apt { flex: 0 0 84%; scroll-snap-align: center; }
  .apt:hover { transform: none; }
  .apt.hide { display: none; }
  .filters { gap: .4rem; flex-wrap: nowrap; }
  .chip { padding: .5rem .85rem; font-size: .85rem; }
}

/* Widget di prenotazione: calendario con intervallo di date */
.booking { position: relative; z-index: 5; }
.bk-val { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-val.is-empty { color: var(--muted); }
.bk-n { font-size: .85em; color: var(--muted); }
.booking.is-open .bk-date:focus-within { border-color: var(--gold); }
.bk-pop { position: absolute; left: 0; top: calc(100% + 10px); z-index: 60; width: min(660px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(15,26,43,.3); padding: 1rem 1.2rem .9rem; text-align: left; }
.bk-pop[hidden] { display: none; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.bk-hint { font-size: .85rem; font-weight: 600; color: var(--gold-text); text-align: center; }
.bk-nav { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.bk-nav:hover:not(:disabled) { border-color: var(--gold); }
.bk-nav:disabled { opacity: .3; cursor: default; }
.bk-months { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.bk-mtitle { text-align: center; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; text-transform: capitalize; margin-bottom: .3rem; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.bk-wd { font-size: .68rem; text-align: center; text-transform: uppercase; color: var(--muted); padding: .35rem 0; }
.bk-day { height: 40px; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; border-radius: 50%; transition: background .15s; }
.bk-day:hover:not(:disabled) { background: var(--cream); }
.bk-day:disabled { color: #cfcfcf; cursor: default; }
.bk-day.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bk-day.in-range, .bk-day.in-preview { background: #f3ead8; border-radius: 0; }
.bk-day.is-start, .bk-day.is-end { background: var(--navy) !important; color: #fff; border-radius: 50%; }
.bk-cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.bk-cal-foot b { color: var(--ink); }
.bk-close { border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; }

@media (max-width: 640px) {
  .bk-months { grid-template-columns: 1fr; }
  .bk-n { display: none; }
  .bk-pop:not(.is-inline) { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(15,26,43,.35); }
}

/* Usabilità: focus visibile da tastiera, salto al contenuto, testi che non vanno a capo male */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.section:not(.section-dark) :focus-visible, .footer-light :focus-visible { outline-color: var(--gold-text); }
.bk-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,106,.4); }
.bk-field .bk-val:focus-visible, .bk-field select:focus-visible { outline: none; }
.bk-day:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); font-weight: 600; padding: .7rem 1.1rem; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.footer a.link-pad { display: inline-block; padding: .55rem 0; }
.footer h2 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 600; }

/* Animazioni d'impatto (disattivate per chi chiede movimento ridotto) */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes underline { to { background-size: 100% 2px; } }
@keyframes march { to { stroke-dashoffset: -18; } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

/* "backwards" e non "both": finita l'animazione non resta un transform attivo, che farebbe
   da riferimento agli elementi fissi interni (calendario su mobile, menu) spostandoli */
.nav { animation: drop .8s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-content > *, .page-hero .container > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-content > :nth-child(1), .page-hero .container > :nth-child(1) { animation-delay: .15s; }
.hero-content > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .3s; }
.hero-content > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .5s; }
.hero-content > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .7s; }
.hero-content > :nth-child(5) { animation-delay: .9s; }
.hero h1 em { display: inline-block; padding-bottom: .08em; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; animation: rise 1s .5s cubic-bezier(.2,.7,.2,1) backwards, underline 1.2s 1.4s cubic-bezier(.6,0,.2,1) forwards; }

/* Trattino oro davanti alle etichette, che si allunga all'entrata */
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin: -.2em .7rem 0 0; transform-origin: left; transition: transform .9s .35s cubic-bezier(.6,0,.2,1); }
.hero .eyebrow::before, .page-hero .eyebrow::before { animation: grow 1s .6s cubic-bezier(.6,0,.2,1) both; }
.reveal:not(.in) .eyebrow::before { transform: scaleX(0); }

/* Foto a sipario: si aprono dal centro mentre lo zoom rientra */
.split-img.reveal { opacity: 1; transform: none; clip-path: inset(10% 10% 10% 10% round var(--radius)); transition: clip-path 1.3s cubic-bezier(.2,.7,.2,1); }
.split-img.reveal img { transform: scale(1.18); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.split-img.reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.split-img.reveal.in img { transform: none; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); } /* lo zoom d'entrata non allarga la pagina */

/* Punteggi: barre che si riempiono fino al voto */
.reviews li { position: relative; padding-bottom: 7px; }
.reviews li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) calc(var(--v, 0) * 10%), rgba(255,255,255,.12) 0); transform-origin: left; }
.reviews.reveal li::after { transform: scaleX(0); transition: transform 1.4s .4s cubic-bezier(.6,0,.2,1); }
.reviews.reveal.in li::after { transform: none; }

/* Mappa: percorsi in movimento e punto che pulsa */
.map-schema g:nth-of-type(2) path { animation: march 1.1s linear infinite; }
.map-schema > circle:first-of-type { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }

/* Pulsanti: riflesso al passaggio del mouse */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn:hover::after { animation: shine .9s ease; }

/* Barra di avanzamento della lettura */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .split-img.reveal { clip-path: none; }
  .split-img.reveal img, .reveal:not(.in) .eyebrow::before, .reviews.reveal li::after { transform: none; }
  .hero h1 em { background-size: 100% 2px; }
  .scroll-progress { display: none; }
}

/* Scelta della lingua: menu a tendina su computer, fila di pulsanti nel menu su telefono */
.langs { position: relative; }
.langs-btn { font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: rgba(255,255,255,.88); background: none; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; min-width: 44px; min-height: 44px; padding: 0 .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; }
.langs-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.langs-btn:hover, .langs:focus-within .langs-btn { border-color: var(--gold); color: var(--gold); }
.langs-list { list-style: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; margin: 0; padding: .4rem; background: var(--navy); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility 0s .2s; z-index: 60; }
.langs-list::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.langs:hover .langs-list, .langs:focus-within .langs-list { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.menu .langs-list a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; }
.menu .langs-list a::after { display: none; }
.langs-list .lc { font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--gold); width: 1.6rem; }
.menu .langs-list a:hover, .menu .langs-list a[aria-current] { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 920px) {
  .langs { align-self: center; margin-top: 1rem; }
  .langs-btn { display: none; }
  .langs-list { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .langs-list::before, .langs-list .ln { display: none; }
  .menu .langs-list a { justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
  .langs-list .lc { width: auto; color: inherit; }
  .menu .langs-list a[aria-current] { border-color: var(--gold); color: var(--gold); background: none; }
}

/* Telefono e tablet: scorrimento fluido */
@media (max-width: 920px) {
  /* Barra in alto senza sfocatura sopra la foto (pesante da ricalcolare a ogni scorrimento) */
  .nav.scrolled { background: rgba(15, 26, 43, .97); backdrop-filter: none; }
  /* Menu aperto: logo e voci sullo stesso fondo blu notte, senza stacco */
  .nav.menu-open { background: var(--navy); box-shadow: none; backdrop-filter: none; transition: none; }
  .nav.menu-open .menu { box-shadow: 0 24px 40px rgba(0, 0, 0, .3); }
}
/* Schermi touch: niente effetti al passaggio del mouse, che al tocco fanno saltare le schede */
@media (hover: none) {
  .apt:hover, .post-card:hover { transform: none; box-shadow: var(--shadow); }
  .apt:hover .apt-img img, .post-card:hover .post-card-img img { transform: none; }
}
