/* Sicily Oriental Homes — foglio di stile unico */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2"); }

:root {
  --deep: #07171b;
  --teal: #0d2b31;
  --panel: #0a1f24;
  --cream: #faf6f0;
  --sand: #f2ebe1;
  --gold: #e0b184;
  --accent: #c1783f;
  --rust: #9a5728;
  --ink: #0d2b31;
  --muted: #45585a;
  --line: #ddd0bf;
  --on-dark: rgba(250, 246, 240, .82);
  --on-dark-2: rgba(250, 246, 240, .7);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--deep); color: var(--cream); font: 300 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sec-light :focus-visible, .sec-sand :focus-visible, .book-card :focus-visible, dialog :focus-visible { outline-color: var(--accent); }
main:focus { outline: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; letter-spacing: .02em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--cream); color: var(--deep); padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 980px; }

/* ── Tipografia ─────────────────────────────────────────────────────────── */
.kicker { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.sec-light .kicker, .sec-sand .kicker { color: var(--rust); }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker-line { display: flex; align-items: center; gap: 14px; color: var(--cream); }
.kicker-line::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.h1, .h2, .h3, .hero-title { font-family: var(--serif); font-weight: 300; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(40px, 6.4vw, 100px); line-height: .98; margin-top: 16px; }
.h2 { font-size: clamp(32px, 4.2vw, 62px); line-height: 1.04; margin-top: 16px; }
.h2-xl { font-size: clamp(36px, 6vw, 92px); line-height: 1; }
.h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: 0 0 18px; }
.h2 a { text-decoration: none; }
.h2 a:hover { color: var(--accent); }
.lead { margin: 22px 0 0; font-size: 17px; line-height: 1.8; max-width: 52ch; color: var(--on-dark); }
.sec-light .lead, .sec-sand .lead, .prose p { color: var(--muted); }
.lead-big { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--ink) !important; margin-top: 0; }
.lead-serif { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 40px); line-height: 1.42; color: var(--ink); }
.note { margin: 20px 0 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.5; max-width: 42ch; }
.address { margin: 18px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.address a { text-decoration: none; }
.address a:hover { text-decoration: underline; }
.hint, .muted { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ── Bottoni ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .35s ease, color .35s ease, border-color .35s ease, gap .35s ease; }
.btn:hover { gap: 18px; }
.btn-sm { min-height: 42px; padding: 10px 20px; font-size: 11px; }
.btn-lg { min-height: 58px; padding: 18px 32px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--deep); }
.btn-accent:hover { background: var(--cream); color: var(--deep); }
.btn-light { background: var(--cream); color: var(--deep); }
.btn-light:hover { background: var(--gold); }
.btn-deep { background: var(--teal); color: var(--cream); }
.btn-deep:hover { background: var(--accent); color: var(--deep); }
.btn-ghost, .btn-outline-light { border-color: rgba(250, 246, 240, .55); color: var(--cream); background: transparent; }
.btn-ghost:hover, .btn-outline-light:hover { background: var(--cream); color: var(--deep); }
.btn-outline-deep { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline-deep:hover { background: var(--teal); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.round { width: 46px; height: 46px; flex: 0 0 46px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(250, 246, 240, .35); background: transparent; color: var(--cream); cursor: pointer; font-size: 16px; transition: background .3s ease, color .3s ease; }
.round:hover { background: var(--cream); color: var(--deep); }
.round:disabled { opacity: .3; cursor: default; background: transparent; color: var(--cream); }
.chip { border: 1px solid rgba(250, 246, 240, .35); background: transparent; color: var(--on-dark); padding: 11px 18px; border-radius: 999px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--deep); }
.chip-light { border-color: var(--line); color: var(--muted); }
.chip-light[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--cream); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--accent); z-index: 101; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px clamp(16px, 4vw, 54px); background: rgba(7, 23, 27, .92); transition: background .5s ease, padding .5s ease, box-shadow .5s ease; }
.site-header.over-hero { background: linear-gradient(to bottom, rgba(7, 23, 27, .6), rgba(7, 23, 27, 0)); }
.site-header.solid { background: rgba(7, 23, 27, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-block: 12px; box-shadow: 0 1px 0 rgba(250, 246, 240, .08); }
.brand { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--cream); }
.brand-main { font-family: var(--serif); font-size: 23px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; opacity: .78; }
.main-nav { display: flex; gap: clamp(12px, 1.8vw, 30px); }
.main-nav a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; opacity: .8; transition: opacity .3s ease, border-color .3s ease; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; border-color: var(--gold); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { font-size: 11px; letter-spacing: .12em; padding: 8px 9px; border-radius: 999px; text-decoration: none; opacity: .72; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { background: rgba(250, 246, 240, .92); color: var(--deep); opacity: 1; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid rgba(250, 246, 240, .4); border-radius: 50%; background: transparent; cursor: pointer; place-items: center; }
.burger-lines, .burger-lines::before { display: block; width: 18px; height: 1px; background: var(--cream); transition: transform .35s ease; }
.burger-lines { position: relative; transform: translateY(-3px); }
.burger-lines::before { content: ""; position: absolute; top: 6px; }
.burger[aria-expanded="true"] .burger-lines { transform: translateY(0) rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines::before { transform: translateY(-6px) rotate(-90deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 79; background: var(--deep); padding: 110px 24px calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav:first-child { display: flex; flex-direction: column; }
.mobile-menu nav:first-child a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(250, 246, 240, .12); font-family: var(--serif); font-size: 40px; line-height: 1.05; text-decoration: none; }
.mobile-menu nav:first-child a[aria-current="page"] { color: var(--gold); }
.mobile-menu .num { font: 400 11px var(--sans); letter-spacing: .2em; color: var(--on-dark-2); }
.mobile-menu-foot { display: grid; gap: 12px; }
.mobile-menu .lang-switch a { font-size: 13px; padding: 10px 14px; }

@media (max-width: 1099px) {
  .main-nav, .header-tools > .lang-switch { display: none; }
  .burger { display: inline-grid; }
}
@media (max-width: 420px) {
  .header-tools .btn-sm { padding: 10px 14px; letter-spacing: .12em; }
  .brand-main { font-size: 20px; }
}

/* ── Sezioni ────────────────────────────────────────────────────────────── */
.sec { padding: clamp(72px, 12vh, 150px) 0; }
.sec-dark { background: var(--deep); color: var(--cream); }
.sec-light { background: var(--cream); color: var(--ink); }
.sec-sand { background: var(--sand); color: var(--ink); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(34px, 5vw, 80px); align-items: center; }
.split.top { align-items: start; }
@media (min-width: 860px) { .split.reverse > :first-child { order: 1; } .split.reverse > :last-child { order: 2; } }
.page-intro { padding: calc(var(--header-h) + clamp(60px, 12vh, 140px)) 0 clamp(50px, 8vh, 100px); }
.page-intro.full { min-height: 80vh; display: flex; align-items: center; }

/* Reveal: attivo solo con JS e se l'utente non ha chiesto meno animazioni */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Segnaposto per foto mancanti */
.ph { width: 100%; height: 100%; min-height: 200px; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #0f2a30 0 14px, #0c252a 14px 28px); color: var(--on-dark-2); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-align: center; padding: 20px; }
.sec-light .ph, .sec-sand .ph { background: repeating-linear-gradient(135deg, #e9dfd1 0 14px, #e4d8c8 14px 28px); color: var(--muted); }
picture { display: block; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero, .unit-hero, .about-hero { position: relative; min-height: 600px; overflow: hidden; background: var(--deep); display: flex; align-items: flex-end; }
.hero { height: 100svh; }
.unit-hero { height: 88svh; }
.about-hero { height: clamp(460px, 70vh, 720px); }
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img, .hero-media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-shade, .final-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 23, 27, .55), rgba(7, 23, 27, .08) 42%, rgba(7, 23, 27, .9)); }
.hero-content { position: relative; width: 100%; padding: 0 var(--gutter) clamp(34px, 7vh, 80px); }
.hero-title { margin-top: 18px; font-size: clamp(46px, 8.4vw, 136px); line-height: .94; letter-spacing: -.02em; }
.hero-title em { color: var(--gold); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px; margin-top: 26px; }
.hero-lead { margin: 0; max-width: 44ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.7; color: rgba(250, 246, 240, .9); }
.unit-hero .hero-lead { margin-top: 18px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: heroZoom 1.8s var(--ease) both; }
  .hero-title > * { display: inline-block; animation: rise 1.2s var(--ease) both; }
  .hero-title em { animation-delay: .12s; }
  .hero-foot, .hero .kicker { animation: fade 1.2s .35s ease both; }
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Striscia scorrevole ────────────────────────────────────────────────── */
.strip { background: var(--deep); padding: 16px 0; overflow: hidden; border-block: 1px solid rgba(250, 246, 240, .1); }
.strip ul { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.strip li { display: flex; align-items: center; gap: 22px; padding: 0 22px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-2); white-space: nowrap; }
.strip li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .strip ul { animation: marquee 44s linear infinite; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Capitolo 01: tastierino ────────────────────────────────────────────── */
.keypad { margin-top: 32px; }
.keypad-label { margin: 0 0 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }
.keypad.open .keypad-label { color: var(--gold); }
.code-dots { display: flex; gap: 10px; margin-bottom: 22px; }
.code-dots span { width: 46px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(250, 246, 240, .25); border-radius: 4px; color: var(--gold); font-size: 24px; transition: border-color .3s ease, background .3s ease; }
.code-dots span.on { border-color: var(--gold); background: rgba(224, 177, 132, .14); }
.code-dots span.on::after { content: "•"; }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 76px)); gap: 8px; }
.keys button { height: 56px; border: 1px solid rgba(250, 246, 240, .25); background: transparent; border-radius: 4px; font-size: 17px; cursor: pointer; transition: background .25s ease, color .25s ease; }
.keys button:hover { background: rgba(250, 246, 240, .1); }
.keys button:active { background: var(--cream); color: var(--deep); }
.door { position: relative; height: clamp(360px, 64vh, 620px); overflow: hidden; background: var(--panel); }
@media (max-width: 859px) { .door { height: clamp(280px, 50vh, 420px); } }
.door picture, .door img, .door .ph { width: 100%; height: 100%; object-fit: cover; }
.door-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--panel); transition: transform 1.4s cubic-bezier(.76, 0, .24, 1); }
.door-left { left: 0; border-right: 1px solid rgba(224, 177, 132, .35); display: flex; align-items: center; justify-content: flex-end; padding-right: 20px; }
.door-left span { width: 34px; height: 34px; border: 1px solid rgba(250, 246, 240, .3); border-radius: 50%; }
.door-right { right: 0; }
.door-msg { position: absolute; inset: auto 0 0; padding: 26px; background: linear-gradient(to top, rgba(7, 23, 27, .92), transparent); opacity: 0; transform: translateY(16px); transition: opacity .8s ease .5s, transform .8s ease .5s; }
.door-title { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); }
.door-badge { margin: 8px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.door.open .door-left { transform: translateX(-101%); }
.door.open .door-right { transform: translateX(101%); }
.door.open .door-msg { opacity: 1; transform: none; }
/* Senza JS la porta resta aperta: la foto è sempre visibile */
html:not(.js) .door-leaf { display: none; }
html:not(.js) .keypad { display: none; }

/* ── Capitolo 02 ────────────────────────────────────────────────────────── */
.comforts { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.comforts li { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 1.18fr .82fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(320px, 56vh, 580px); }
.mosaic > * { overflow: hidden; min-height: 0; }
.mosaic .m1 { grid-row: span 2; }
.mosaic img, .mosaic .ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }

/* ── Capitolo 03: galleria strutture ───────────────────────────────────── */
.gallery-sec { padding-bottom: clamp(40px, 8vh, 90px); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.track { display: flex; gap: clamp(12px, 1.6vw, 22px); margin: clamp(26px, 5vh, 48px) 0 0; padding: 0 var(--gutter) 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.card { flex: 0 0 clamp(270px, 30vw, 440px); scroll-snap-align: start; position: relative; background: var(--panel); overflow: hidden; transition: opacity .5s ease, transform .5s ease; }
@media (max-width: 859px) { .card { flex-basis: 82vw; } }
.card.dim { opacity: .3; transform: scale(.97); }
.card-link { display: block; position: relative; height: clamp(360px, 58vh, 560px); text-decoration: none; color: var(--cream); }
.card-media { position: absolute; inset: 0; }
.card-media picture, .card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 23, 27, .94), rgba(7, 23, 27, .05) 60%, rgba(7, 23, 27, .35)); }
.card-top { position: absolute; inset: 16px 16px auto; display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; }
.tag { background: rgba(250, 246, 240, .94); color: var(--deep); padding: 7px 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.card-num { font-family: var(--serif); font-size: 34px; line-height: 1; color: rgba(250, 246, 240, .6); }
.card-body { position: absolute; inset: auto 0 0; padding: 24px; z-index: 1; }
.card-area { display: block; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.card-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.5vw, 40px); line-height: 1.04; }
.card-body p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--on-dark); max-width: 34ch; }
.card-cta { display: inline-flex; gap: 9px; margin-top: 18px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; transition: gap .35s ease; }
@media (hover: hover) {
  .card-link:hover img { transform: scale(1.06); }
  .card-link:hover .card-cta { gap: 20px; }
}
.track-foot { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.match { font-size: 12px; letter-spacing: .16em; color: var(--on-dark-2); white-space: nowrap; }
.track-bar { flex: 1; height: 1px; background: rgba(250, 246, 240, .18); position: relative; overflow: hidden; }
.track-bar span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--accent); }
.track-nav { display: flex; gap: 8px; }

/* ── Capitolo 04: mappa ─────────────────────────────────────────────────── */
.zone-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 20px; }
.zone-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.pins { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border-block: 1px solid var(--line); }
.pins li[hidden] { display: none; }
.pins a { display: flex; align-items: center; gap: 14px; padding: 18px 16px; background: var(--cream); text-decoration: none; color: var(--ink); transition: background .3s ease; }
.pins li.active a, .pins a:hover { background: #fff; }
.pin-dot { width: 8px; height: 2px; flex: 0 0 auto; background: rgba(13, 43, 49, .4); transition: width .35s ease, background .35s ease; }
.pins li.active .pin-dot { width: 20px; background: var(--accent); }
.pin-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.pin-text strong { font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.pin-text span { font-size: 13px; color: var(--muted); }
.pin-guests { font-size: 13px; color: var(--muted); white-space: nowrap; }
.map-box { position: relative; height: clamp(360px, 68vh, 680px); background: #e4dacb; overflow: hidden; }
.map-box.wide { height: clamp(300px, 54vh, 540px); }
.map-canvas { position: absolute; inset: 0; }
.map-canvas .leaflet-tile-pane { filter: grayscale(.55) sepia(.18) contrast(1.04); }
.map-consent { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; background: radial-gradient(circle at 30% 40%, #efe6d8, #e0d4c2); }
.map-consent p { margin: 0; max-width: 34ch; }
.map-box.loaded .map-consent { display: none; }
.som-pin { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 23, 27, .88); color: #fff; border: 1px solid rgba(255, 255, 255, .8); font: 400 12px var(--sans); box-shadow: 0 10px 24px -12px rgba(7, 23, 27, .85); transition: transform .35s ease, background .35s ease; }
.som-pin.on { background: var(--accent); transform: scale(1.18); }
.som-pin.cluster { background: var(--accent); color: var(--deep); font-weight: 500; box-shadow: 0 0 0 6px rgba(193, 120, 63, .28), 0 10px 24px -12px rgba(7, 23, 27, .85); cursor: zoom-in; }
.leaflet-container { font-family: var(--sans); }
.leaflet-tooltip.som-tip { background: var(--deep); color: var(--cream); border: 0; border-radius: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 11px; box-shadow: none; }
.leaflet-tooltip.som-tip::before { display: none; }

/* ── Capitolo 05 ────────────────────────────────────────────────────────── */
.tall { display: block; height: clamp(320px, 60vh, 580px); overflow: hidden; }
.tall picture, .tall img, .tall .ph { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 30px 0 32px; background: rgba(250, 246, 240, .15); border: 1px solid rgba(250, 246, 240, .15); }
.fact { background: var(--deep); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.fact-n { font-family: var(--serif); font-size: clamp(30px, 3vw, 46px); line-height: 1; color: var(--gold); }
.fact-l { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.facts-light { background: var(--line); border-color: var(--line); margin-top: clamp(36px, 6vh, 64px); }
.facts-light .fact { background: var(--cream); padding: clamp(24px, 3vw, 38px); }
.facts-light .fact-n { color: var(--rust); font-size: clamp(36px, 4vw, 56px); }
.facts-light .fact-l { color: var(--muted); }

/* ── Capitolo 06: prenota ───────────────────────────────────────────────── */
.final { position: relative; overflow: hidden; background: var(--deep); }
.final-media { position: absolute; inset: 0; }
.final-media picture, .final-media img, .final-media .ph { width: 100%; height: 100%; object-fit: cover; }
.final-shade { background: rgba(7, 23, 27, .74); }
.final-content { position: relative; padding: clamp(90px, 17vh, 200px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-content .lead { margin-inline: auto; max-width: 48ch; }
.final-content .booking-form { margin: 36px auto 18px; }

/* Modulo di prenotazione */
.booking-form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; padding: 10px; background: rgba(250, 246, 240, .96); border-radius: 28px; color: var(--ink); max-width: 760px; text-align: left; }
.booking-form label { flex: 1 1 130px; display: flex; flex-direction: column; gap: 3px; padding: 6px 14px; border-radius: 16px; }
.booking-form label span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.booking-form input, .booking-form select { border: 0; background: transparent; font-size: 15px; color: var(--ink); padding: 2px 0; min-height: 30px; width: 100%; }
.booking-form input:focus-visible, .booking-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.booking-form input[aria-invalid="true"] { color: #a3261b; }
.booking-form .btn { flex: 1 1 200px; }
.form-error { flex-basis: 100%; margin: 4px 14px; font-size: 14px; color: #a3261b; }
.book-card { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); position: sticky; top: calc(var(--header-h) + 20px); }
.book-card .booking-form { background: var(--sand); border-radius: 18px; flex-direction: column; }
.book-card .booking-form .btn { flex: 0 0 auto; }
.book-card .booking-form label, .booking-dialog .booking-form label { flex: 0 0 auto; }
.book-card .btn-row { margin-top: 16px; }
.book-card .btn-row .btn { flex: 1 1 auto; }

/* Barra fissa + dialog */
.bookbar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85; display: flex; gap: 8px; padding: 8px; background: rgba(250, 246, 240, .96); border-radius: 999px; box-shadow: 0 22px 50px -26px rgba(7, 23, 27, .8); transform: translate(-50%, 180%); transition: transform .6s var(--ease); }
.bookbar.show { transform: translate(-50%, 0); }
@media (max-width: 559px) {
  .bookbar { left: 12px; right: 12px; transform: translateY(180%); border-radius: 16px; display: grid; grid-template-columns: 1fr auto; }
  .bookbar.show { transform: none; }
  .bookbar .btn { border-radius: 10px; padding-inline: 16px; letter-spacing: .12em; }
}
html:not(.js) .bookbar { display: none; }
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(7, 23, 27, .7); }
.booking-dialog { width: min(560px, calc(100vw - 24px)); background: var(--cream); padding: 24px; border-radius: 20px; }
.booking-dialog .booking-form { flex-direction: column; background: #fff; border-radius: 14px; }
.booking-dialog .booking-form .btn { flex: 0 0 auto; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head .h3 { margin: 0; }
.dialog-head .round, .lb-close { border-color: var(--line); color: var(--ink); }

/* ── Pagine strutture ───────────────────────────────────────────────────── */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 26px 0 0; background: var(--line); border: 1px solid var(--line); }
.specs div { background: var(--cream); padding: 18px 20px; }
.sec-sand .specs div { background: var(--sand); }
.specs dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.specs dd { margin: 0; font-size: 16px; color: var(--ink); }
.codes { margin-top: 28px; font-size: 14px; color: var(--muted); }
.codes-title { margin: 0 0 8px; font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.codes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.codes strong { font-weight: 500; color: var(--ink); }
/* 4 colonne fisse: la prima foto occupa 2×2, così 13 foto riempiono esattamente 4 righe */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 859px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 859px) { .gallery li:first-child { grid-row: auto; } }
.gallery a { display: block; height: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery li:first-child a { aspect-ratio: auto; min-height: 100%; }
.gallery picture, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(7, 23, 27, .96); display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox .round { position: absolute; background: rgba(7, 23, 27, .6); color: var(--cream); border-color: rgba(250, 246, 240, .4); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; margin: 24px 0 0; padding: 0; list-style: none; background: rgba(250, 246, 240, .15); border: 1px solid rgba(250, 246, 240, .15); }
.others a { display: flex; flex-direction: column; gap: 8px; padding: 28px; background: var(--deep); text-decoration: none; transition: background .3s ease; }
.others a:hover { background: #0f2a30; }
.others span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.others strong { font-family: var(--serif); font-weight: 300; font-size: 30px; }

/* ── Contatti ───────────────────────────────────────────────────────────── */
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: rgba(250, 246, 240, .16); border: 1px solid rgba(250, 246, 240, .16); }
.contact-list a, .contact-list div { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 30px); background: var(--deep); text-decoration: none; transition: background .35s ease, padding-left .35s ease; }
.contact-list a:hover { background: #0f2a30; padding-left: 36px; }
.contact-list span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-2); }
.contact-list strong { font-weight: 300; font-size: 20px; }

.map-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 24px; padding: 0; list-style: none; }
.map-legend a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 14px; letter-spacing: .06em; }
.map-legend a:hover { color: var(--rust); }
.map-legend a > span:last-child { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.map-legend .som-pin { width: 28px; height: 28px; font-size: 11px; box-shadow: none; }

/* ── Pagine legali ──────────────────────────────────────────────────────── */
.prose { color: var(--muted); }
.prose .h3 { color: var(--ink); margin-top: 40px; }
.prose .h3:first-child { margin-top: 0; }
.prose a { color: var(--rust); }
.codes-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 14px; }
.codes-table th, .codes-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.codes-table th { font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 559px) { .codes-table { font-size: 12px; } .codes-table th, .codes-table td { padding: 8px 6px; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--deep); color: var(--on-dark); padding: clamp(50px, 8vh, 96px) 0 calc(30px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(28px, 4vw, 60px); }
.f-title { margin: 0 0 18px; font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); }
.site-footer p { margin: 0; font-size: 15px; line-height: 1.8; }
.site-footer a { text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--gold); }
.f-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.f-wordmark { margin-top: clamp(40px, 6vh, 72px); font-family: var(--serif); font-size: clamp(44px, 12.5vw, 230px); line-height: .82; letter-spacing: -.03em; color: rgba(250, 246, 240, .08); white-space: nowrap; user-select: none; }
.f-bottom { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(250, 246, 240, .12); display: grid; gap: 8px; }
.f-bottom p { font-size: 12px; letter-spacing: .06em; color: var(--on-dark-2); }
.f-cin { word-break: break-word; }
.page-home .site-footer, .has-bookbar .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* Suggerimento lingua */
.lang-hint { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; max-width: min(360px, calc(100vw - 32px)); background: var(--cream); color: var(--ink); padding: 16px 18px; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(7, 23, 27, .8); display: flex; align-items: center; gap: 12px; font-size: 14px; }
.lang-hint a { color: var(--rust); font-weight: 500; }
.lang-hint button { margin-left: auto; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
