/* ==========================================================================
   Isola Lo Scoglio Hotel - redesign prototype "Carta nautica"
   Fonts: Gambarino (display) + Author (text/UI), self-hosted.
   Radius rule: photos and panels are sharp (0); interactive pills
   (buttons, chips) are fully rounded; form fields use 2px.
   ========================================================================== */

@font-face { font-family: "Gambarino"; src: url("../fonts/gambarino-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Author"; src: url("../fonts/author-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Author"; src: url("../fonts/author-300i.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Author"; src: url("../fonts/author-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Author"; src: url("../fonts/author-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Author"; src: url("../fonts/author-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Author"; src: url("../fonts/author-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --posidonia: #0F3634;
  --ink: #0B1E1D;
  --tufo: #EFE7D8;
  --salt: #FAF7F1;
  --seaglass: #A9CEC6;
  --coral: #C9683E;
  --coral-ink: #A44F2A;      /* coral for small text on light grounds (AA) */
  --coral-light: #D98A63;    /* coral for small text on posidonia (AA) */
  --muted: #4E5F5C;          /* secondary text on salt/tufo (AA) */
  --line: rgba(11, 30, 29, .16);
  --line-dark: rgba(169, 206, 198, .22);
  --sunset: #E5B293;

  /* type */
  --f-display: "Gambarino", serif;
  --f-text: "Author", system-ui, sans-serif;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-lead: clamp(1.18rem, 1.05rem + .55vw, 1.5rem);
  --fs-h1: clamp(2.7rem, 1.2rem + 6.4vw, 8.4rem);
  --fs-h2: clamp(2.2rem, 1.3rem + 3.6vw, 5.2rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
  --fs-small: .875rem;

  /* layout */
  --gutter: clamp(16px, 4vw, 64px);
  --rail-w: 0px;
  --max: 1440px;
  --header-h: 72px;
  --sec: clamp(88px, 6rem + 6vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* z scale */
  --z-rail: 20;
  --z-header: 40;
  --z-mbar: 45;
  --z-menu: 60;
  --z-lightbox: 70;
  --z-toast: 80;
  --z-grain: 90;
}
@media (min-width: 1024px) { :root { --rail-w: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.02; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .menu :focus-visible, .hero :focus-visible, .phero :focus-visible { outline-color: var(--seaglass); }
::selection { background: var(--seaglass); color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: calc(var(--z-menu) + 5);
  background: var(--ink); color: var(--salt); padding: .7em 1.1em; border-radius: 999px;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--rail-w));
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: calc(var(--gutter) + var(--rail-w));
}
.sec { padding-block: var(--sec) calc(var(--sec) * 1.1); position: relative; }

/* chart typography details */
.marker {
  display: flex; align-items: center; gap: .9rem;
  font: 500 .8125rem/1 var(--f-text); letter-spacing: .12em; font-variant-caps: all-small-caps;
  font-variant-numeric: tabular-nums; text-transform: lowercase;
  color: var(--muted); margin: 0 0 2rem;
}
.marker::before { content: attr(data-n); font-size: 1.05rem; letter-spacing: .02em; color: var(--coral-ink); }
.marker .rule, .marker::after { content: ""; }
.marker span.rule { display: inline-block; width: 44px; height: 1px; background: currentColor; opacity: .55; }
.on-dark .marker { color: var(--seaglass); }
.on-dark .marker::before { color: var(--coral-light); }

.lead { font-size: var(--fs-lead); line-height: 1.42; font-weight: 400; }
.sub-italic { font-family: var(--f-text); font-style: italic; font-weight: 300; font-size: var(--fs-lead); line-height: 1.3; letter-spacing: 0; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.05; }
.measure { max-width: 34rem; }
.muted { color: var(--muted); }
.coords { font-variant-numeric: tabular-nums; letter-spacing: .06em; font-size: .78rem; font-weight: 500; }

/* ---------- buttons & links ---------- */
/* Tracked uppercase labels: Author's T-A kern pair plus whole-pixel glyph
   placement at 1x made "PRENOTA" read as "PRENO TA"; letter-spacing does the
   spacing here, so kerning is off and glyphs are positioned precisely. */
.btn, .mbar a, .menu-btn, .lang, .phero-kicker, .day-time, .svc-tag, .booking-meta dt,
.contact-meta dt, .room-specs dt, .pack-price small, .pack-inc h4, .f-h, .menu-h, .lb-close, .marker {
  font-kerning: none; text-rendering: geometricPrecision;
}
.btn {
  --bg: var(--coral); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.6em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 .9rem/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit;
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--salt); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: .6em 1.2em; font-size: .8rem; }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost::before { background: var(--salt); }
.btn-ghost:hover { color: var(--ink); }
.on-dark .btn-coral::before, .hero .btn-coral::before, .phero .btn-coral::before { background: var(--salt); }
.on-dark .btn-coral:hover, .hero .btn-coral:hover { color: var(--ink); }

.tlink {
  display: inline-flex; align-items: center; gap: .7em;
  font: 500 .95rem/1.2 var(--f-text); letter-spacing: .04em; text-decoration: none;
  padding-block: .4em; border-bottom: 1px solid currentColor;
}
.tlink .arr { width: 22px; height: 10px; transition: transform .35s var(--ease); }
.tlink:hover .arr { transform: translateX(6px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h); color: var(--salt);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid { background: var(--salt); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr-inner {
  height: 100%; display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--max) + var(--rail-w)); margin-inline: auto;
  padding-left: var(--gutter); padding-right: calc(var(--gutter) + var(--rail-w));
}
.brand { display: block; flex: none; }
.brand img { height: 42px; width: auto; transition: filter .35s var(--ease); }
.site-header.is-solid .brand img { filter: brightness(0) invert(14%) sepia(18%) saturate(1500%) hue-rotate(130deg) brightness(92%); }
.hdr-actions { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); margin-left: auto; }
.lang { display: flex; gap: 2px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; }
.lang a { text-decoration: none; padding: .45em .5em; opacity: .62; border-radius: 999px; display: inline-block; min-width: 2.2em; text-align: center; }
.lang a[aria-current] { opacity: 1; box-shadow: inset 0 0 0 1px currentColor; }
.lang a:hover { opacity: 1; }
.hdr-actions .lang, .hdr-book { transition: opacity .35s var(--ease); }

/* hamburger trigger: three hairlines that morph into a cross */
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer;
  padding: 8px 0 8px 8px; min-height: 44px; color: inherit;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.menu-btn-label { display: inline-block; min-width: 4.4em; text-align: right; }
.menu-btn-icon { position: relative; width: 30px; height: 18px; display: block; }
.menu-btn-icon i { position: absolute; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .55s var(--ease), width .45s var(--ease), opacity .3s, top .45s var(--ease); }
.menu-btn-icon i:nth-child(1) { top: 2px; width: 30px; }
.menu-btn-icon i:nth-child(2) { top: 8.25px; width: 20px; }
.menu-btn-icon i:nth-child(3) { top: 14.5px; width: 26px; }
.menu-btn:hover .menu-btn-icon i:nth-child(2) { width: 30px; }
.menu-btn:hover .menu-btn-icon i:nth-child(3) { width: 14px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:nth-child(1) { top: 8.25px; width: 26px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:nth-child(2) { opacity: 0; width: 0; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:nth-child(3) { top: 8.25px; width: 26px; transform: rotate(-45deg); }
.menu-btn-icon i { transform-origin: 50% 50%; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:nth-child(1), .menu-btn[aria-expanded="true"] .menu-btn-icon i:nth-child(3) { right: 2px; }

/* header while the overlay is open: floats above it, light on posidonia */
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); background: transparent; color: var(--salt); box-shadow: none; }
.menu-open .site-header .brand img { filter: none; }
.menu-open .hdr-actions .lang, .menu-open .hdr-book { opacity: 0; pointer-events: none; }

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .site-header .lang, .hdr-book { display: none; }
  .menu-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- side rail ---------- */
.rail { display: none; }
@media (min-width: 1024px) {
  .rail {
    position: fixed; top: 0; right: 0; bottom: 0; width: var(--rail-w); z-index: var(--z-rail);
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: calc(var(--header-h) + 28px) 0 28px;
    color: var(--salt); mix-blend-mode: difference; pointer-events: none;
    border-left: 1px solid rgba(250, 247, 241, .2);
  }
  .rail-index { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .rail-n { font: 400 1.35rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
  .rail-label, .rail-coords { writing-mode: vertical-rl; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .rail-label { max-height: 30vh; overflow: hidden; }
  .rail-ticks { display: flex; flex-direction: column; align-items: center; gap: 9px; pointer-events: auto; }
  .rail-ticks button { display: block; width: 22px; height: 7px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .rail-ticks button::before { content: ""; position: absolute; right: 4px; top: 3px; width: 8px; height: 1px; background: currentColor; opacity: .55; transition: width .35s var(--ease), opacity .35s; }
  .rail-ticks button[aria-current="true"]::before { width: 18px; opacity: 1; }
  .rail-coords { opacity: .85; }
}

/* ---------- menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--posidonia); color: var(--salt); overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu-bg { position: absolute; inset: 0; pointer-events: none; }
.menu-bg canvas { width: 100%; height: 100%; display: block; }
.menu-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 100%, rgba(11, 30, 29, .55), transparent 60%); }
.menu-inner {
  position: relative; min-height: 100%; max-width: var(--max); margin-inline: auto;
  padding: calc(var(--header-h) + 3vh) var(--gutter) 32px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-content: start;
}
.menu-list { counter-reset: m; }
.menu-list a { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; gap: 10px; text-decoration: none; padding-block: .02em; position: relative; }
.menu-n { font-size: .74rem; font-weight: 500; letter-spacing: .1em; color: var(--seaglass); font-variant-numeric: tabular-nums; transition: color .3s; }
.menu-l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.menu-li { display: inline-block; font: 400 clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem)/1.04 var(--f-display); letter-spacing: -.01em; transition: transform .6s var(--ease), color .3s; will-change: transform; }
.menu-list a:hover .menu-li, .menu-list a:focus-visible .menu-li { transform: translateX(.18em); color: var(--seaglass); }
.menu-list a[aria-current="page"] .menu-li { color: var(--coral-light); }
.menu-list a[aria-current="page"] .menu-n { color: var(--coral-light); }
.menu-list a[aria-current="page"] .menu-li::after { content: ""; display: inline-block; width: .55em; height: 1px; background: currentColor; vertical-align: middle; margin-left: .3em; }
.menu-preview { display: none; }
.menu-side { display: grid; gap: 22px; align-content: start; border-top: 1px solid var(--line-dark); padding-top: 24px; font-size: .95rem; }
.menu-h { font: 500 .72rem/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--seaglass); margin-bottom: 12px; }
.menu-side p { margin: 0; line-height: 1.8; }
.menu-side a { text-decoration: none; }
.menu-side a:hover { text-decoration: underline; }
.menu-cta { justify-self: start; }
.menu-cta:hover { text-decoration: none !important; }
.menu-cta::before { background: var(--salt) !important; }
.menu-cta:hover { color: var(--ink) !important; }
.menu-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.menu-legal { display: flex; gap: 18px; font-size: .82rem; color: var(--seaglass); }
@media (min-width: 1024px) {
  .menu-inner {
    min-height: 100vh; padding-top: calc(var(--header-h) + 4vh); padding-bottom: 5vh;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: 1fr auto; gap: 3vh clamp(32px, 5vw, 96px);
  }
  .menu-nav { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .menu-li { font-size: clamp(3rem, min(1rem + 4.6vw, 8.6vh), 6.2rem); line-height: 1.02; }
  .menu-list a { grid-template-columns: 3.2rem 1fr; }
  .menu-preview { display: block; grid-column: 2; grid-row: 1; align-self: end; }
  .menu-pv-mask { position: relative; aspect-ratio: 5 / 4; --s: 1.34; }
  .menu-pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
  .menu-pv.is-on { opacity: 1; transform: none; }
  .menu-cap { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 14px 0 0; font-size: .9rem; }
  .menu-cap span:first-child { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2; }
  .menu-cap-coords { font-size: .72rem; letter-spacing: .1em; color: var(--seaglass); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .menu-side { grid-column: 2; grid-row: 2; }
}
@media (max-width: 767px) {
  .menu-list a { grid-template-columns: 2.2rem 1fr; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: 100svh; color: var(--salt); background: var(--ink); overflow: hidden; display: flex; isolation: isolate; }
.hero-media, .hero-media picture, .hero-media img, .hero-video, .hero-contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img, .hero-video { object-fit: cover; object-position: 50% 55%; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-contours { pointer-events: none; mix-blend-mode: screen; opacity: .8; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 30, 29, .6) 0%, rgba(11, 30, 29, 0) 24%),
    linear-gradient(0deg, rgba(11, 30, 29, .88) 0%, rgba(11, 30, 29, .5) 36%, rgba(11, 30, 29, 0) 66%),
    linear-gradient(90deg, rgba(11, 30, 29, .45) 0%, rgba(11, 30, 29, 0) 55%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-rows: 1fr auto; padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(28px, 5vh, 64px); }
.hero-chart { display: flex; justify-content: flex-end; align-items: flex-start; gap: 28px; }
.scalebar { display: grid; gap: 6px; font-size: .7rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.scalebar-bar { display: flex; width: 132px; height: 6px; border: 1px solid currentColor; }
.scalebar-bar i { flex: 1; }
.scalebar-bar i:nth-child(odd) { background: currentColor; }
.scalebar-l { display: flex; justify-content: space-between; }
.hero-coords { text-align: right; font-size: .78rem; letter-spacing: .1em; line-height: 1.7; font-variant-numeric: tabular-nums; }
.hero-title { font-size: clamp(2.7rem, 1rem + 6.4vw, 7.6rem); line-height: .96; letter-spacing: -.02em; margin-bottom: clamp(18px, 3vh, 34px); }
@media (min-width: 900px) { .hero-title .ln { white-space: nowrap; } }
.hero-title .ln { display: block; }
.hero-title em { font-style: normal; color: var(--seaglass); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px 40px; }
.hero-sub { font-size: var(--fs-lead); font-style: italic; font-weight: 300; max-width: 32ch; line-height: 1.3; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (max-width: 1023px) { .hero-inner { padding-bottom: calc(56px + 28px); } }
@media (max-width: 767px) {
  .hero-chart .scalebar { display: none; }
}

/* word split reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- sub-page hero ---------- */
.phero { position: relative; min-height: min(86svh, 900px); color: var(--salt); background: var(--ink); overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.phero-media { position: absolute; inset: 0; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; }
.phero-contours { position: absolute; inset: -5%; background: url("../img/contours-dark.svg") center / cover no-repeat; opacity: .55; mix-blend-mode: screen; z-index: 1; pointer-events: none; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11, 30, 29, .85) 0%, rgba(11, 30, 29, .25) 48%, rgba(11, 30, 29, .45) 100%); }
.phero-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(36px, 7vh, 88px); display: grid; gap: 18px; }
.phero-kicker { font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--seaglass); margin: 0; display: flex; gap: 14px; align-items: center; }
.phero-kicker::after { content: ""; width: 44px; height: 1px; background: currentColor; }
.phero h1 { font-size: clamp(2.6rem, 1.3rem + 5.2vw, 7rem); max-width: 16ch; letter-spacing: -.018em; }
.phero-sub { font-style: italic; font-weight: 300; font-size: var(--fs-lead); margin: 0; max-width: 30ch; }
.phero-meta { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(250, 247, 241, .28); font-size: .78rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }

/* ---------- decorative layers ---------- */
.isobath { display: block; width: 100%; height: clamp(60px, 8vw, 120px); background: url("../img/isobath-light.svg") center / 100% 100% no-repeat; opacity: .7; }
.on-dark .isobath, .isobath-dark { background-image: url("../img/isobath-dark.svg"); }
.contour-bg { position: absolute; inset: 0; background: url("../img/contours-light.svg") center / cover no-repeat; pointer-events: none; opacity: .9; }
.on-dark { background: var(--posidonia); color: var(--salt); }
.on-dark .contour-bg { background-image: url("../img/contours-dark.svg"); }
.on-dark .muted { color: var(--seaglass); }
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* islet mask (polygon generated in islet.css, driven by --s) */
.islet-fig { position: relative; }
.islet-fig .islet-mask { overflow: hidden; }
.islet-fig .islet-mask img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- home: intro ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); align-items: center; }
.intro-text { grid-column: 1 / span 6; position: relative; z-index: 1; }
.intro-text .h2 { margin-bottom: 1.6rem; }
.intro-text .lead { margin-bottom: 1.2rem; max-width: 28ch; }
.intro-text p:not(.lead) { max-width: 40ch; color: var(--muted); }
.intro-visual { grid-column: 7 / span 6; position: relative; }
.intro-visual .islet-mask { aspect-ratio: 4 / 5; }
.intro-visual .ring { position: absolute; inset: -12%; background: url("../img/contours-light.svg") 64% 48% / 190% auto no-repeat; pointer-events: none; opacity: .9; z-index: -1; }
.intro-inset { position: absolute; left: -22%; bottom: -8%; width: 52%; box-shadow: 0 30px 60px -30px rgba(15, 54, 52, .55); }
.intro-inset img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.intro-inset figcaption, .figcap { font-size: .78rem; letter-spacing: .06em; color: var(--muted); margin-top: .7em; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .intro-text, .intro-visual { grid-column: 1 / -1; }
  .intro-visual { margin-top: 56px; width: 88%; margin-left: auto; }
  .intro-inset { left: -14%; width: 56%; }
}

/* ---------- features (staggered trio) ---------- */
.feat-head { display: grid; gap: .6rem; margin-bottom: clamp(48px, 7vw, 110px); max-width: 52rem; }
.feat-head .sub-italic { color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); align-items: start; }
.feat { position: relative; }
.feat figure { margin: 0; overflow: hidden; }
.feat img { width: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat a:hover img { transform: scale(1.04); }
.feat-1 { grid-column: 1 / span 5; }
.feat-1 img { aspect-ratio: 4 / 5; }
.feat-2 { grid-column: 7 / span 3; margin-top: 34%; }
.feat-2 img { aspect-ratio: 3 / 4; }
.feat-3 { grid-column: 10 / span 3; margin-top: -6%; }
.feat-3 img { aspect-ratio: 2 / 3; }
.feat-body { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-top: 18px; align-items: baseline; }
.feat-n { font: 400 1.05rem/1 var(--f-display); color: var(--coral-ink); font-variant-numeric: tabular-nums; grid-row: span 2; }
.feat-t { font: 400 clamp(1.5rem, 1.1rem + 1vw, 2.1rem)/1.05 var(--f-display); }
.feat-d { color: var(--muted); font-size: .98rem; margin: 0; }
.feat a { text-decoration: none; display: block; }
@media (max-width: 899px) {
  .feat-1, .feat-2, .feat-3 { grid-column: 1 / -1; margin-top: 0; }
  .feat-2 { width: 78%; margin-left: auto; }
  .feat-3 { width: 70%; }
  .feat-1 img, .feat-2 img, .feat-3 img { aspect-ratio: 4 / 3; }
}

/* ---------- full-bleed band with overlapping panel ---------- */
.band { position: relative; }
.band-media { position: relative; height: clamp(420px, 82vh, 880px); overflow: hidden; }
.band-media img { width: 100%; height: 118%; object-fit: cover; position: absolute; inset: -9% 0 auto; }
.band-panel { position: relative; z-index: 2; margin-top: clamp(-220px, -16vw, -90px); }
.band-card { background: var(--salt); padding: clamp(28px, 4vw, 64px); max-width: 46rem; margin-left: auto; box-shadow: 0 40px 80px -50px rgba(15, 54, 52, .55); }
.band-card .h2 { margin-bottom: 1.4rem; }
.band-card p { color: var(--muted); }
.band-card p.lead { color: var(--ink); }

/* ---------- split with bleeding image ---------- */
.bleed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.bleed-text .h2 { margin-bottom: 1.4rem; }
.bleed-media { overflow: hidden; }
.bleed-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) {
  .bleed { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
  .bleed-media { margin-right: calc(-1 * (var(--gutter) + var(--rail-w))); }
  .bleed-media img { aspect-ratio: 4 / 3; }
  .bleed.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .bleed.rev .bleed-media { order: -1; margin-right: 0; margin-left: calc(-1 * var(--gutter)); }
}
.clip-reveal { --cr: 0%; clip-path: inset(0 0 0 var(--cr)); }

/* ---------- dark band ---------- */
.dband { position: relative; overflow: hidden; }
.dband-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); align-items: end; }
.dband-title { grid-column: 1 / -1; font-size: clamp(2.6rem, 1.2rem + 6vw, 8rem); line-height: .95; max-width: 13ch; }
.dband-media { grid-column: 6 / span 7; margin-top: -4vw; }
.dband-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.dband-text { grid-column: 1 / span 4; grid-row: 2; align-self: end; }
.dband-text .lead { margin-bottom: 1rem; }
.dband-text p { color: var(--seaglass); }
.dband-text .tlink { margin-top: 1.6rem; color: var(--salt); }
@media (max-width: 899px) {
  .dband-media, .dband-text { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
}

/* ---------- rooms horizontal (home) ---------- */
.rooms-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 32px); margin-bottom: clamp(40px, 5vw, 72px); }
.rooms-head .h2-wrap { grid-column: 1 / span 6; }
.rooms-head .sub-italic { color: var(--muted); margin-bottom: .4rem; display: block; }
.rooms-head .copy { grid-column: 8 / span 5; color: var(--muted); font-size: 1rem; }
.rooms-head .copy p:last-child { color: var(--ink); font-size: var(--fs-lead); font-family: var(--f-display); line-height: 1.2; margin-top: 1.4rem; }
@media (max-width: 899px) { .rooms-head .h2-wrap, .rooms-head .copy { grid-column: 1 / -1; } }
.hscroll { position: relative; overflow: clip; }
.hscroll-track { display: flex; gap: clamp(16px, 2.4vw, 40px); padding-left: var(--gutter); padding-right: calc(var(--gutter) + var(--rail-w)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.hscroll-track::-webkit-scrollbar { display: none; }
.hroom { flex: 0 0 84%; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.hroom figure { margin: 0; overflow: hidden; }
.hroom img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hroom-body { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding-top: 20px; align-items: baseline; }
.hroom-n { font: 400 1.1rem/1 var(--f-display); color: var(--coral-ink); font-variant-numeric: tabular-nums; }
.hroom h3 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.6rem); }
.hroom ul { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .9rem; color: var(--muted); }
.hscroll-end { flex: 0 0 auto; display: flex; align-items: center; padding-inline: 4vw; }
.hscroll-nav { display: flex; gap: 10px; margin-top: 18px; padding-left: var(--gutter); }
@media (min-width: 768px) { .hroom { flex-basis: 62%; } }
@media (min-width: 1024px) {
  .is-pinned .hscroll-track { overflow: visible; scroll-snap-type: none; }
  .hroom { flex-basis: min(58vw, 980px); }
  .is-pinned .hscroll-nav { display: none; }
}
.iconbtn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid currentColor; background: none; display: inline-grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s; }
.iconbtn:hover { background: var(--ink); color: var(--salt); }
.iconbtn svg { width: 20px; height: 10px; }

/* ---------- statement over image ---------- */
.statement { position: relative; min-height: 92svh; display: flex; align-items: center; color: var(--salt); overflow: hidden; isolation: isolate; }
.statement-media { position: absolute; inset: 0; z-index: -2; }
.statement-media img { width: 100%; height: 100%; object-fit: cover; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 30, 29, .78) 0%, rgba(11, 30, 29, .35) 55%, rgba(11, 30, 29, .1) 100%); }
.statement .contour-bg { background-image: url("../img/contours-dark.svg"); opacity: .5; mix-blend-mode: screen; z-index: -1; }
.statement-text { max-width: 40rem; }
.statement-text .h2 { margin-bottom: 1.4rem; font-size: clamp(2.4rem, 1.4rem + 4vw, 6rem); }
.statement-text p { font-size: var(--fs-lead); line-height: 1.4; }

/* ---------- booking ---------- */
.booking { position: relative; background: var(--tufo); padding-block: var(--sec) calc(var(--sec) * 1.05); overflow: hidden; }
.booking-bg { position: absolute; inset: 0; background: url("../img/contours-light.svg") 85% 30% / 140% auto no-repeat; opacity: .6; pointer-events: none; }
.booking-grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 1024px) { .booking-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 120px); align-items: start; } .booking-intro { position: sticky; top: calc(var(--header-h) + 48px); } }
.booking-kicker { font: 400 1.2rem/1.2 var(--f-display); color: var(--coral-ink); margin-bottom: 1rem; }
.booking-title { font-size: var(--fs-h2); max-width: 11ch; margin-bottom: 2.2rem; }
.booking-meta { display: grid; gap: 14px; margin: 0 0 32px; }
.booking-meta div { display: grid; grid-template-columns: 6.5rem 1fr; border-top: 1px solid var(--line); padding-top: 10px; }
.booking-meta dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.booking-meta dd { margin: 0; }
.booking-meta a { text-decoration: none; font-weight: 500; }
.compass { width: 92px; color: var(--posidonia); opacity: .8; }
.compass text { font-family: var(--f-text); font-weight: 600; }
.booking-card { background: var(--salt); padding: clamp(12px, 2vw, 28px); min-height: 400px; box-shadow: 0 40px 80px -60px rgba(15, 54, 52, .7); position: relative; }
.booking-card iframe { display: block; width: 100%; min-height: 400px; background: var(--salt); }
.booking-noscript { padding: 24px; margin: 0; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--posidonia); color: var(--salt); overflow: hidden; padding-top: clamp(72px, 9vw, 140px); }
.footer-bg { position: absolute; inset: 0; background: url("../img/contours-footer.svg") center / cover no-repeat; opacity: .7; pointer-events: none; }
.footer-grid { position: relative; display: grid; gap: 40px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 56px; }
.f-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr)); } .f-brand { grid-column: auto; } }
.f-logo { width: 220px; height: auto; margin-bottom: 22px; }
.f-coords { font-size: .78rem; letter-spacing: .1em; color: var(--seaglass); font-variant-numeric: tabular-nums; margin-top: 1.2rem; }
.f-h { font: 500 .78rem/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--seaglass); margin-bottom: 18px; }
.f-col p, .f-col li { font-size: .95rem; line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-link[aria-current="page"] { color: var(--coral-light); }
.f-legal { margin-bottom: 18px; }
.f-credits { position: relative; border-top: 1px solid var(--line-dark); padding-top: 20px; padding-bottom: 28px; font-size: .82rem; color: var(--seaglass); }
.f-credits a { color: var(--salt); text-decoration: underline; text-decoration-color: rgba(250, 247, 241, .4); }
@media (max-width: 1023px) { .site-footer { padding-bottom: 64px; } }

/* ---------- mobile sticky bar ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mbar); display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--posidonia); box-shadow: 0 -1px 0 var(--line-dark); transition: transform .4s var(--ease); }
.mbar a { display: grid; place-items: center; min-height: 56px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; text-decoration: none; }
.mbar-call { color: var(--salt); }
.mbar-book { background: var(--coral); color: var(--ink); }
.menu-open .mbar { transform: translateY(100%); }
@media (min-width: 1024px) { .mbar { display: none; } }

/* ---------- camere ---------- */
.rintro { display: grid; gap: 32px; }
@media (min-width: 900px) { .rintro { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 120px); align-items: start; } }
.rintro .h2 { margin-bottom: 1.6rem; }
.rintro p { color: var(--muted); }
.rintro p.lead { color: var(--ink); }
.amen { background: var(--tufo); padding: clamp(24px, 3vw, 44px); position: relative; overflow: hidden; }
.amen h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); margin-bottom: 1.4rem; }
.amen ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.amen li { padding: .72em 0 .72em 24px; position: relative; font-size: .98rem; border-top: 1px solid var(--line); }
.amen li::before { content: ""; position: absolute; left: 0; top: 1.35em; width: 12px; height: 1px; background: var(--coral-ink); }
@media (max-width: 479px) { .amen ul { grid-template-columns: 1fr; } }

.room { padding-block: clamp(56px, 7vw, 120px); border-top: 1px solid var(--line); }
.room-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .room-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 72px); align-items: start; } .room:nth-of-type(even) .room-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .room:nth-of-type(even) .room-info { order: -1; } }
.room-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--posidonia) transparent; padding-bottom: 12px; }
.room-strip a { flex: 0 0 86%; scroll-snap-align: start; display: block; overflow: hidden; cursor: zoom-in; }
.room-strip a:first-child { flex-basis: 100%; }
.room-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ease); }
.room-strip a:hover img { transform: scale(1.03); }
.room-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.room-ctrl .count { font-size: .8rem; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.room-ctrl .btns { display: flex; gap: 8px; }
.room-info { position: sticky; top: calc(var(--header-h) + 24px); }
.room-n { font: 400 1.2rem/1 var(--f-display); color: var(--coral-ink); display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.room-info h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); margin-bottom: 22px; }
.room-specs { display: flex; gap: 0; margin-bottom: 22px; border-block: 1px solid var(--line); }
.room-specs div { flex: 1; padding: 14px 0; }
.room-specs div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.room-specs dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.room-specs dd { margin: 4px 0 0; font: 400 1.6rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.room-am { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: .95rem; margin-bottom: 26px; }
.room-am li { padding-left: 18px; position: relative; }
.room-am li::before { content: ""; position: absolute; left: 0; top: .8em; width: 9px; height: 1px; background: var(--coral-ink); }

/* ---------- servizi ---------- */
.svc-wrap { display: grid; gap: 0; }
.svc-sticky { display: none; }
@media (min-width: 1024px) {
  .svc-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 120px); }
  .svc-sticky { display: block; position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100vh - var(--header-h) - 8vh); align-self: start; }
  .svc-sticky .islet-mask { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); --s: 2.1; }
  .svc-sticky .islet-mask.is-on { opacity: 1; }
  .svc-sticky img { width: 100%; height: 100%; object-fit: cover; }
  .svc-item figure { display: none; }
  .svc-item { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
}
.svc-item { padding-block: 48px; border-top: 1px solid var(--line); }
.svc-item:first-child { border-top: 0; }
.svc-item figure { margin: 0 0 24px; }
.svc-item figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.svc-tag { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); font-weight: 600; margin-bottom: 1.2rem; display: flex; gap: 12px; align-items: center; }
.svc-tag::before { content: attr(data-n); font: 400 1.1rem/1 var(--f-display); letter-spacing: 0; color: var(--ink); }
.svc-item h3 { font-size: var(--fs-h3); margin-bottom: 1.2rem; }
.svc-item p { color: var(--muted); max-width: 36ch; }
.quote-sec { position: relative; text-align: center; overflow: hidden; }
.quote-sec .contour-bg { background-position: 50% 50%; background-size: 120% auto; opacity: .9; }
.quote-sec blockquote { position: relative; margin: 0 auto; max-width: 22ch; font: 400 clamp(2rem, 1.2rem + 3.2vw, 4.6rem)/1.08 var(--f-display); text-wrap: balance; }
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); }
.duo-a { grid-column: 1 / span 6; }
.duo-b { grid-column: 8 / span 5; margin-top: 22%; }
.duo a { text-decoration: none; display: block; }
.duo figure { margin: 0 0 20px; overflow: hidden; }
.duo img { width: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.duo-a img { aspect-ratio: 5 / 6; }
.duo-b img { aspect-ratio: 4 / 5; }
.duo a:hover img { transform: scale(1.04); }
.duo h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.duo p { color: var(--muted); max-width: 30ch; }
@media (max-width: 767px) { .duo-a, .duo-b { grid-column: 1 / -1; margin-top: 0; } .duo-b { width: 82%; margin-left: auto; } }

/* ---------- ristorante ---------- */
.rest-intro { display: grid; gap: 40px; }
@media (min-width: 1024px) { .rest-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); align-items: center; } }
.rest-intro .h2 { margin-bottom: 1.6rem; }
.rest-intro p { color: var(--muted); }
.rest-intro p.lead { color: var(--ink); }
.rest-img { position: relative; }
.rest-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.tradition { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .tradition { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); } }
.tradition .islet-mask { aspect-ratio: 16 / 12; }
.tradition .h2 { margin-bottom: 1.4rem; }
.day { --day-bg: var(--salt); --day-fg: var(--ink); background: var(--day-bg); color: var(--day-fg); transition: background-color 1.1s var(--ease), color .9s var(--ease); position: relative; }
.day-head { padding-block: var(--sec) 40px; display: grid; gap: 24px; }
@media (min-width: 900px) { .day-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: clamp(32px, 6vw, 120px); } }
.day-head .h2 { font-size: clamp(2.6rem, 1.4rem + 5vw, 7rem); line-height: .95; }
.day-head h3 { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); margin-bottom: 1rem; }
.day-head p { opacity: .85; }
.day[data-phase="aperitivo"] { --day-bg: var(--sunset); }
.day[data-phase="cena"] { --day-bg: var(--ink); --day-fg: var(--salt); }
.day-panel { min-height: 92svh; display: grid; align-items: center; padding-block: 56px; }
.day-panel-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .day-panel-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 140px); } .day-panel:nth-child(even) .day-panel-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .day-panel:nth-child(even) figure { order: 2; } }
.day-panel figure { margin: 0; overflow: hidden; }
.day-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 78vh; }
.day-time { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.day-time::after { content: ""; flex: 0 0 56px; height: 1px; background: currentColor; opacity: .6; }
.day-panel h3 { font-size: clamp(3rem, 1.6rem + 6vw, 8.5rem); line-height: .92; margin-bottom: 1.2rem; }
.day-panel p { font-size: var(--fs-lead); font-style: italic; font-weight: 300; line-height: 1.35; max-width: 22ch; }
.sun { width: 64px; height: 64px; margin-bottom: 1.4rem; color: inherit; }
/* no-JS: give each panel its own ground */
html:not(.motion) .day-panel[data-p="aperitivo"] { background: var(--sunset); }
html:not(.motion) .day-panel[data-p="cena"] { background: var(--ink); color: var(--salt); }
.day-close { padding-block: 40px var(--sec); text-align: left; }
.day-close p { font: 400 clamp(1.8rem, 1.1rem + 2.6vw, 3.8rem)/1.1 var(--f-display); max-width: 24ch; margin-bottom: 2rem; }
html:not(.motion) .day-close { background: var(--ink); color: var(--salt); }
.day[data-phase="cena"] .tlink, html:not(.motion) .day-close .tlink { color: var(--salt); }

/* ---------- spiaggia ---------- */
.beach-intro { display: grid; gap: 48px; }
@media (min-width: 1024px) { .beach-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); } }
.beach-intro .h2 { margin-bottom: 1.6rem; }
.beach-intro p { color: var(--muted); max-width: 40ch; }
.beach-intro p.lead { color: var(--ink); }
.collage { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: auto; align-self: start; }
.collage a { display: block; overflow: hidden; cursor: zoom-in; align-self: start; }
.collage img { display: block; height: auto; }
.collage img { width: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.collage a:hover img { transform: scale(1.03); }
.collage .c1 { grid-column: 1 / span 8; grid-row: 1; }
.collage .c1 img { aspect-ratio: 5 / 4; }
.collage .c2 { grid-column: 6 / span 5; grid-row: 2; margin-top: -24%; position: relative; z-index: 1; box-shadow: 0 30px 60px -30px rgba(15, 54, 52, .6); }
.collage .c2 img { aspect-ratio: 1 / 1; }
.collage .c3 { grid-column: 1 / span 5; grid-row: 2; margin-top: 10%; }
.collage .c3 img { aspect-ratio: 4 / 5; }
.places-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 96px); }
.places-head .h2 { margin-bottom: 1.4rem; }
.places-head p { color: var(--muted); }
.places { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 32px); }
.place { grid-column: span 6; }
.place:nth-child(2) { grid-column: 7 / span 6; margin-top: 18%; }
.place .islet-mask { aspect-ratio: 1 / 1; }
.place-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.place-label h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.8rem); }
.place-label .coords { color: var(--muted); }
@media (max-width: 767px) { .place, .place:nth-child(2) { grid-column: 1 / -1; margin-top: 0; } }
.choose { display: grid; gap: 32px; }
@media (min-width: 900px) { .choose { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 120px); align-items: center; } }
.choose .h2 { margin-bottom: 1.4rem; }
.choose p { font-size: var(--fs-lead); line-height: 1.45; }
.choose p + p { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); line-height: 1.15; margin-top: 1.6rem; }
.choose img { width: 100%; aspect-ratio: 1024 / 519; object-fit: cover; }

/* ---------- gallery ---------- */
.gal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.gal-head .h2 { max-width: 14ch; }
.gal-head p { margin: 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 11.5vw, 200px); gap: clamp(8px, 1vw, 16px); grid-auto-flow: dense; }
.gal a { position: relative; display: block; overflow: hidden; cursor: zoom-in; background: var(--tufo); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.gal a:hover img { transform: scale(1.04); }
.gal a::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: .8rem; color: var(--salt); background: linear-gradient(0deg, rgba(11, 30, 29, .7), transparent); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.gal a:hover::after, .gal a:focus-visible::after { opacity: 1; transform: none; }
.gal .c3 { grid-column: span 3; } .gal .c4 { grid-column: span 4; } .gal .c5 { grid-column: span 5; } .gal .c7 { grid-column: span 7; }
.gal .r2 { grid-row: span 2; } .gal .r3 { grid-row: span 3; }
@media (max-width: 767px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
  .gal > a[class] { grid-column: span 1; grid-row: span 1; }
  .gal > a[class]:nth-child(3n+1) { grid-column: span 2; }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(11, 30, 29, .96); color: var(--salt); display: grid; grid-template-rows: auto 1fr auto; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); font-size: .82rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); transition: opacity .3s; }
.lb-stage img.is-loading { opacity: .35; }
.lb-cap { padding: 14px var(--gutter) 22px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.lb-cap p { margin: 0; font: 400 clamp(1.1rem, .9rem + .6vw, 1.5rem)/1.2 var(--f-display); }
.lb-btns { display: flex; gap: 10px; }
.lb .iconbtn { color: var(--salt); }
.lb .iconbtn:hover { background: var(--salt); color: var(--ink); }
.lb-close { background: none; border: 0; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; min-height: 44px; }

/* ---------- offerte ---------- */
.off-intro { display: grid; gap: 32px; }
@media (min-width: 900px) { .off-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); align-items: end; } }
.off-intro .kick { font-style: italic; font-weight: 300; font-size: var(--fs-lead); color: var(--muted); display: block; margin-bottom: .3rem; }
.off-intro p { font-size: var(--fs-lead); line-height: 1.45; }
.off-intro p + p { color: var(--muted); font-size: var(--fs-body); }
.packs { position: relative; display: grid; gap: 28px; }
.pack { position: sticky; top: calc(var(--header-h) + 20px + var(--i) * 18px); background: var(--tufo); overflow: hidden; display: grid; gap: 28px; padding: clamp(24px, 3.5vw, 56px); box-shadow: 0 -1px 0 var(--line), 0 30px 60px -50px rgba(15, 54, 52, .7); transform-origin: 50% 0; }
.pack:nth-child(2) { background: #E6DCC8; }
.pack:nth-child(3) { background: var(--posidonia); color: var(--salt); }
.pack:nth-child(3) .pack-inc li::before { background: var(--coral-light); }
.pack:nth-child(3) .pack-kick, .pack:nth-child(3) .pack-price small { color: var(--seaglass); }
.pack:nth-child(3) .pack-valid { color: var(--seaglass); }
@media (min-width: 1024px) { .pack { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 64px); align-items: end; min-height: 62vh; } }
.pack-kick { font: 400 1.05rem/1.2 var(--f-display); color: var(--coral-ink); margin-bottom: .8rem; }
.pack h3 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5.4rem); line-height: .95; margin-bottom: 1rem; }
.pack-valid { font-size: .85rem; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 1.2rem; }
.pack-desc { max-width: 38ch; }
.pack-inc h4 { font: 600 .78rem/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.pack-inc li { position: relative; padding: .55em 0 .55em 22px; border-top: 1px solid var(--line); font-size: .98rem; }
.pack:nth-child(3) .pack-inc li { border-color: var(--line-dark); }
.pack-inc li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 1px; background: var(--coral-ink); }
.pack-price { display: grid; gap: 4px; justify-items: start; }
.pack-price small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pack-price strong { font: 400 clamp(3.6rem, 2.4rem + 4vw, 6.6rem)/.9 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pack-price .btn { margin-top: 18px; }
.pack-flower { position: absolute; right: -40px; top: -30px; width: clamp(120px, 14vw, 220px); opacity: .9; pointer-events: none; z-index: 0; }
.pack > *:not(.pack-flower) { position: relative; z-index: 1; }
@media (max-width: 1023px) { .pack { position: relative; top: auto; } .pack-flower { width: 110px; right: -24px; top: -20px; opacity: .7; } }

/* ---------- dove & info ---------- */
.contact-sheet { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-sheet { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 120px); align-items: end; } }
.contact-big a { display: block; text-decoration: none; font: 400 clamp(2.2rem, 1.2rem + 4.4vw, 6.2rem)/1.02 var(--f-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.contact-big a.mail { font-size: clamp(1.3rem, .8rem + 2.4vw, 3.2rem); margin-top: .6rem; overflow-wrap: anywhere; }
.contact-big a:hover { color: var(--coral-ink); }
.contact-meta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-meta div { display: grid; grid-template-columns: 8rem 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.contact-meta dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .25em; }
.contact-meta dd { margin: 0; }

.reach-head { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 900px) { .reach-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: clamp(32px, 6vw, 120px); } }
.reach-head p { color: var(--muted); margin: 0; }
.reach { display: grid; gap: 20px; }
@media (min-width: 1024px) { .reach { grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: 28px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
@media (min-width: 1024px) { .chips { flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: 1px solid var(--line); } }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: .5em 1.1em; border-radius: 999px; border: 1px solid rgba(11, 30, 29, .35); background: transparent; cursor: pointer; font-size: .92rem; font-weight: 500; text-align: left; transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--salt); border-color: var(--ink); }
.chip .ab { font-size: .72rem; letter-spacing: .1em; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
.chip .fig { display: none; }
@media (min-width: 1024px) {
  .chip { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; display: grid; grid-template-columns: 2.6rem 1fr; gap: 2px 12px; width: 100%; }
  .chip .ab { grid-row: span 2; align-self: start; padding-top: .25em; }
  .chip .nm { font-size: 1.05rem; }
  .chip .fig { display: block; grid-column: 2; font-size: .82rem; opacity: .75; font-variant-numeric: tabular-nums; font-weight: 400; }
  .chip[aria-pressed="true"] { background: var(--posidonia); }
}
.map-wrap { position: relative; }
.map { height: clamp(420px, 68vh, 720px); background: #E6EEEA; position: relative; z-index: 0; }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.35) hue-rotate(118deg) saturate(.55) brightness(1.06) contrast(.9); }
.map.leaflet-container { font-family: var(--f-text); background: #DCE8E3; }
.map .leaflet-control-attribution { font-size: 11px; background: rgba(250, 247, 241, .9); color: var(--ink); }
.map .leaflet-control-attribution a { color: var(--posidonia); }
.map .leaflet-control-zoom a { color: var(--ink); width: 36px; height: 36px; line-height: 36px; }
.map-readout { position: absolute; left: 12px; bottom: 30px; z-index: 500; background: var(--salt); padding: 14px 18px; max-width: calc(100% - 24px); box-shadow: 0 20px 40px -24px rgba(15, 54, 52, .6); pointer-events: none; }
.map-readout .from { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map-readout .val { font: 400 clamp(1.3rem, 1rem + 1vw, 1.8rem)/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.map-hint { position: absolute; inset: 0; z-index: 600; display: grid; place-items: center; background: rgba(11, 30, 29, .55); color: var(--salt); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .3s; text-align: center; padding: 20px; }
.map-hint.is-on { opacity: 1; }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.map-actions p { margin: 0; max-width: 60ch; }
.route-line { stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.route-casing { stroke: var(--salt); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: .9; }
.pin-hotel, .pin-origin { background: none; border: 0; }
.leaflet-popup-content-wrapper { border-radius: 0; background: var(--salt); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(15, 54, 52, .6); }
.leaflet-popup-tip { background: var(--salt); }
.leaflet-popup-content { margin: 18px 20px; font-family: var(--f-text); font-size: .92rem; line-height: 1.5; }
.leaflet-popup-content h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.leaflet-popup-content p { margin: 0 0 .7rem; }
.leaflet-popup-content .btn { color: var(--ink); min-height: 40px; }
.leaflet-popup-content .btn:hover { color: var(--salt); }
.ways { margin-top: clamp(56px, 7vw, 110px); border-top: 1px solid var(--line); }
.way { display: grid; gap: 14px; padding-block: 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .way { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: start; } }
.way h3 { font-size: var(--fs-h3); }
.way-fig { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.way-fig span { display: block; }
.way-fig b { font: 400 1.5rem/1.1 var(--f-display); }
.way-fig small { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.way p { color: var(--muted); margin: 0; }
.note-small { font-size: .8rem; color: var(--muted); margin-top: 18px; }

/* ---------- motion helpers (only when motion is on) ---------- */
.motion .rv { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print { .site-header, .rail, .mbar, .grain, .menu { display: none !important; } }

picture { display: contents; }

/* ---------- cookie consent ---------- */
.cc { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-toast); width: min(460px, calc(100vw - 32px)); }
.cc[hidden] { display: none; }
.cc-card { background: var(--salt); color: var(--ink); padding: 22px 22px 18px; box-shadow: 0 30px 70px -20px rgba(11, 30, 29, .55), 0 0 0 1px var(--line); max-height: calc(100svh - 32px); overflow-y: auto; }
.cc-title { font: 400 1.45rem/1.1 var(--f-display); margin-bottom: .6rem; }
.cc-text { font-size: .88rem; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.cc-text a { color: var(--coral-ink); }
.cc-prefs fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.cc-opt { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .85rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.cc-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--posidonia); }
.cc-opt b { display: block; color: var(--ink); font-weight: 600; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-actions .btn { flex: 1 1 auto; min-height: 42px; }
.cc-btn-outline { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cc-btn-outline:hover { color: var(--salt); }
@media (max-width: 1023px) { .cc { bottom: calc(56px + 10px + env(safe-area-inset-bottom)); left: 8px; width: calc(100vw - 16px); } }
.f-linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.f-linkbtn:hover { text-decoration: underline; }
.lb-404 { min-height: 70svh; display: grid; align-content: center; gap: 1.2rem; padding-top: calc(var(--header-h) + 40px); }
.lb-404 .h2 { max-width: 16ch; }
.lb-404 ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.cc [hidden] { display: none !important; }
@media (max-width: 600px) { .cc-card { padding: 16px 16px 14px; } .cc-title { font-size: 1.2rem; } .cc-text { font-size: .8rem; line-height: 1.5; margin-bottom: 10px; } .cc-actions .btn { min-height: 40px; } }
