/* ═══════════════════════════════════════════════════════════
   HOUSEBOAT SARDEGNA — style.css · v2 "quiet luxury"
   Minimal editorial: ivory, ink navy, hairlines, reserved gold.
   Motion: masked line reveals, clip-path image reveals, expo easing.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ivory: #faf8f3;
  --white: #fffdf9;
  --ink: #14242f;
  --ink-soft: #45555f;
  --navy: #0d2233;
  --navy-deep: #091a28;
  --gold: #b98a4e;
  --gold-bright: #d9b57f;
  --gold-mid: #a07338;   /* large text on light (≥3:1) */
  --gold-deep: #82602f;  /* small text on light (≥4.5:1) */
  --hair: rgba(20, 36, 47, .14);
  --hair-strong: rgba(20, 36, 47, .28);
  --hair-light: rgba(255, 255, 255, .14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --expo: cubic-bezier(.19, 1, .22, 1);
  --luxe: cubic-bezier(.65, 0, .35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--gold); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-mid);
  outline-offset: 3px;
}

.section--navy :focus-visible,
.hero :focus-visible,
.header :focus-visible,
.lightbox :focus-visible,
.footer :focus-visible {
  outline-color: var(--gold-bright);
}

/* ─────────────────────────── Type ─────────────────────────── */

.eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 30px;
}

.eyebrow--gold { color: var(--gold-bright); }

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -.005em;
  color: var(--ink);
  margin-bottom: 34px;
  text-wrap: balance;
}

.title em {
  font-style: italic;
  color: var(--gold-mid);
}

.title--light { color: #fff; }
.title--light em { color: var(--gold-bright); }

/* masked line reveal (lines built by JS) */
.title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.title .line-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1.35s var(--expo);
  transition-delay: calc(var(--li, 0) * 110ms);
  will-change: transform;
}

.title.is-in .line-inner { transform: translateY(0); }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

.lead { color: var(--ink-soft); }

/* ─────────────────────────── Buttons ─────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: background-color .45s var(--expo), color .45s var(--expo), border-color .45s, opacity .4s;
}

.btn svg { width: 16px; height: 16px; transition: transform .5s var(--expo); }
.btn:hover svg { transform: translateX(6px); }

.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: #fff; color: var(--ink); }

.btn--white {
  background: #fff;
  color: var(--ink);
  padding: 14px 28px;
}
.btn--white:hover { background: var(--gold-deep); color: #fff; }

.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover { background: var(--gold-deep); }

.btn--line {
  padding: 0 0 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--hair-strong);
  letter-spacing: .26em;
  position: relative;
}

.btn--line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--expo);
}

.btn--line:hover::after { transform: scaleX(1); transform-origin: left; }

.btn--line-light { color: #fff; border-bottom-color: rgba(255,255,255,.4); }

/* ─────────────────────────── Intro ─────────────────────────── */

.intro { position: fixed; inset: 0; z-index: 200; cursor: pointer; }
.intro.is-done { pointer-events: none; }

.intro__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: var(--navy-deep);
  transition: transform 1.3s var(--luxe);
}
.intro__panel--top { top: 0; }
.intro__panel--bottom { bottom: 0; }

.intro__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity .6s ease, transform .6s ease;
}

.intro__logo {
  width: min(240px, 52vw);
  aspect-ratio: 421 / 397;
  -webkit-mask: url("../images/logo.png") no-repeat center / contain;
  mask: url("../images/logo.png") no-repeat center / contain;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.05) 32%,
    #ffffff 50%,
    rgba(255,255,255,.92) 62%,
    #fff 100%);
  background-size: 320% 100%;
  background-position: 100% 0;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  animation: introLogo 2.7s var(--luxe) .2s forwards;
}

@keyframes introLogo {
  0%   { opacity: 0; transform: translateY(16px) scale(.96); background-position: 100% 0; }
  18%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); background-position: 0% 0; }
}

/* three waves: staggered draw, then a slow breathing swell */
.intro__waves {
  animation: waveBreathe 3s ease-in-out 3s infinite alternate;
  transform-origin: center;
}

.intro__waves svg {
  width: min(210px, 46vw);
  overflow: visible;
  display: block;
}

.intro__waves path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  opacity: 0;
}

.intro__waves .w1 {
  stroke: var(--gold-bright);
  stroke-width: 1.8;
  animation: waveDraw 1.8s var(--luxe) .9s forwards;
}

.intro__waves .w2 {
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 1.4;
  animation: waveDraw 1.8s var(--luxe) 1.15s forwards;
}

.intro__waves .w3 {
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 1.2;
  animation: waveDraw 1.8s var(--luxe) 1.4s forwards;
}

@keyframes waveDraw {
  0%   { stroke-dashoffset: 340; opacity: 0; }
  12%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes waveBreathe {
  from { transform: scaleY(1); }
  to   { transform: scaleY(.78); }
}

.intro.is-done .intro__center { opacity: 0; transform: scale(.98); }
.intro.is-done .intro__panel--top { transform: translateY(-101%); }
.intro.is-done .intro__panel--bottom { transform: translateY(101%); }
.intro.is-gone { display: none; }

/* ─────────────────────────── Header ─────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color .5s ease, border-color .5s ease, transform .55s var(--expo);
  border-bottom: 1px solid transparent;
}

.header__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 22px clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.header__logo img {
  width: 112px;
  height: auto;
  transition: width .5s var(--expo);
  filter: drop-shadow(0 2px 12px rgba(8, 24, 38, .3));
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  margin-left: auto;
}

.header__nav a:not(.btn) {
  color: rgba(255, 255, 255, .85);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color .35s;
}

.header__nav a:not(.btn):hover { color: #fff; }

.header__nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--expo);
}

.header__nav a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__cta-mobile { display: none; }

.header.is-scrolled {
  background: rgba(9, 26, 40, .9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--hair-light);
}

.header.is-scrolled .header__inner { padding-top: 14px; padding-bottom: 14px; }
.header.is-scrolled .header__logo img { width: 78px; }
.header.is-hidden { transform: translateY(-100%); }
.header.is-hidden:focus-within { transform: none; background: rgba(9, 26, 40, .9); }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  align-items: center;
  z-index: 110;
}

.header__burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: #fff;
  transition: transform .45s var(--expo);
}

.header__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ─────────────────────────── Hero ─────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero__slides, .hero__slide { position: absolute; inset: 0; }

.hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s var(--luxe), visibility 0s 2s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 2s var(--luxe), visibility 0s;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero__slide.is-active img { animation: kenburns 10s var(--luxe) forwards; }

@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(92% 72% at 50% 46%, rgba(9, 26, 40, .38) 0%, rgba(9, 26, 40, 0) 72%),
    linear-gradient(180deg, rgba(9, 26, 40, .62) 0%, rgba(9, 26, 40, .38) 38%, rgba(9, 26, 40, .44) 68%, rgba(9, 26, 40, .78) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 clamp(20px, 4vw, 64px);
}

.hero__eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 34px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.6vw, 6.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 34px;
  text-wrap: balance;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
  padding: 0 .06em;
}

.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.hero__title .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.45s var(--expo);
  transition-delay: calc(var(--wi) * 90ms);
  will-change: transform;
}

.hero__title.is-in .w > span { transform: translateY(0); }

.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  font-weight: 300;
  line-height: 1.9;
  max-width: 56ch;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 46px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-top: 30px;
}

.hero__badge svg { width: 13px; height: 13px; color: var(--gold-bright); }

/* intro sequencing */
[data-intro] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--expo), transform 1.1s var(--expo);
}

.hero.is-in [data-intro] { opacity: 1; transform: none; }
.hero.is-in [data-intro="1"] { transition-delay: .15s; }
.hero.is-in [data-intro="3"] { transition-delay: .65s; }
.hero.is-in [data-intro="4"] { transition-delay: .85s; }
.hero.is-in [data-intro="5"] { transition-delay: 1.05s; }

/* corner labels — like the original */
.hero__corner {
  position: absolute;
  z-index: 4;
  bottom: 44px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.hero__corner--left { left: clamp(24px, 4vw, 64px); }
.hero__corner--right { right: clamp(24px, 4vw, 64px); }

/* centered minimal slider UI */
.hero__ui {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 26px;
}

.hero__counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: .8rem;
  letter-spacing: .3em;
  font-weight: 600;
}

.hero__counter .sep { color: rgba(255, 255, 255, .45); }
.hero__counter span:last-child { color: rgba(255, 255, 255, .5); }

.hero__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .8);
  transition: color .3s, transform .4s var(--expo);
}

.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow:hover { color: var(--gold-bright); transform: scale(1.12); }

.hero__pause .ic-play { display: none; }
.hero__pause.is-paused .ic-pause { display: none; }
.hero__pause.is-paused .ic-play { display: block; }
.hero__pause svg { width: 17px; height: 17px; }

.hero__progress {
  width: 132px;
  height: 1px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}

.hero__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__progress span.is-running { animation: progress var(--slide-dur, 7000ms) linear forwards; }

@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ─────────────────────────── Booking bar ─────────────────────────── */

.booking {
  position: relative;
  z-index: 5;
  padding: 0 clamp(20px, 4vw, 64px);
  margin-top: -44px;
}

.booking__card {
  max-width: 1020px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--hair);
  box-shadow: 0 30px 60px -40px rgba(9, 26, 40, .35);
  padding: 26px clamp(24px, 3vw, 46px) 24px;
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 2.6vw, 40px);
  flex-wrap: wrap;
}

.booking__field {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking__field label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.booking__field input,
.booking__field select {
  font: inherit;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--hair);
  padding: 6px 2px 10px;
  background: transparent;
  outline: none;
  transition: border-color .3s;
  border-radius: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.booking__field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%2382602f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 15px;
  cursor: pointer;
}

.booking__field input:focus,
.booking__field select:focus { border-bottom-color: var(--gold); }

.booking__sep { width: 1px; align-self: stretch; background: var(--hair); }

.booking__submit { flex: 0 0 auto; padding: 17px 34px; }

.booking__note {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--ink-soft);
}

.booking__note.is-ok { color: #2e6b46; font-weight: 600; }
.booking__note.is-err { color: #a63a26; font-weight: 600; }

/* ─────────────────────────── Marquee ─────────────────────────── */

.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
  margin-top: clamp(40px, 6vw, 80px);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: .98rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee__track i {
  color: var(--gold);
  font-style: normal;
  font-size: .6rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────── Sections ─────────────────────────── */

.section {
  position: relative;
  padding: clamp(96px, 11vw, 170px) clamp(24px, 4vw, 64px);
}

.section__inner { max-width: 1240px; margin: 0 auto; }

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
}

/* statement intro */
.statement {
  padding-top: clamp(90px, 10vw, 150px);
  padding-bottom: clamp(60px, 7vw, 110px);
  text-align: center;
}

.statement .title { margin-bottom: 30px; }

.statement p {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--ink-soft);
}

/* ─────────────────────────── Reveals ─────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--expo), transform 1.2s var(--expo);
  transition-delay: calc(var(--i, 0) * 100ms);
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* titles animate by lines, not by block */
.title[data-reveal] { opacity: 1; transform: none; transition: none; }

.img-reveal { position: relative; overflow: hidden; }

.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.14);
  transition: clip-path 1.5s var(--expo), transform 1.9s var(--expo);
  transition-delay: calc(var(--i, 0) * 110ms);
  will-change: clip-path, transform;
}

.img-reveal.is-in img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* ─────────────────────────── 01 · La houseboat ─────────────────────────── */

.houseboat__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.houseboat__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: clamp(24px, 3.4vw, 52px);
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.houseboat__facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}

.houseboat__facts span {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.houseboat__collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, minmax(0, 46px));
}

.houseboat__img-main {
  grid-column: 1 / 10;
  grid-row: 1 / 9;
}

.houseboat__img-a {
  grid-column: 8 / 13;
  grid-row: 4 / 9;
  z-index: 2;
  outline: 10px solid var(--ivory);
}

.houseboat__img-b {
  grid-column: 3 / 8;
  grid-row: 8 / 11;
  z-index: 3;
  outline: 10px solid var(--ivory);
}

/* ─────────────────────────── Banner ─────────────────────────── */

.banner {
  position: relative;
  min-height: 66vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: clamp(100px, 13vw, 180px) clamp(24px, 4vw, 64px);
}

.banner__bg { position: absolute; inset: -18% 0; z-index: 0; will-change: transform; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }

.banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 26, 40, .55);
}

.banner__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.banner__content .title { margin-bottom: 0; }

/* ─────────────────────────── 02 · Posizione ─────────────────────────── */

.location__head { max-width: 820px; }
.location__intro { color: var(--ink-soft); }

.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 6vw, 100px);
  margin-top: clamp(48px, 5vw, 76px);
  align-items: start;
}

.location__list { border-top: 1px solid var(--hair); }

.place {
  display: grid;
  grid-template-columns: 96px 220px 1fr;
  gap: clamp(18px, 2.4vw, 40px);
  align-items: baseline;
  padding: clamp(26px, 2.6vw, 38px) 0;
  border-bottom: 1px solid var(--hair);
  transition: padding-left .5s var(--expo);
}

.place:hover { padding-left: 14px; }

.place__min { white-space: nowrap; }

.place__min strong {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold-mid);
  line-height: 1;
}

.place__min small {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 8px;
}

.place h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
}

.place p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.location__imgs {
  display: grid;
  gap: 26px;
  position: sticky;
  top: 120px;
}

.location__img-a { aspect-ratio: 4 / 3; }
.location__img-b { aspect-ratio: 16 / 9; }

/* ─────────────────────────── 03 · Comfort ─────────────────────────── */

.comfort__head { max-width: 840px; }
.comfort__intro { color: rgba(255, 255, 255, .68); }

.comfort__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(36px, 4vw, 72px);
  row-gap: clamp(40px, 4.5vw, 64px);
  margin-top: clamp(52px, 6vw, 90px);
}

.feature {
  padding-top: 26px;
  border-top: 1px solid var(--hair-light);
  position: relative;
}

.feature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--expo);
}

.feature:hover::before { transform: scaleX(1); }

.feature svg {
  width: 34px;
  height: 34px;
  color: var(--gold-bright);
  margin-bottom: 18px;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}

.feature p {
  font-size: .9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .6);
  margin: 0;
}

.comfort__welcome {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 4.5vw, 72px);
  align-items: center;
  margin-top: clamp(60px, 7vw, 110px);
  padding-top: clamp(48px, 5vw, 76px);
  border-top: 1px solid var(--hair-light);
}

.comfort__welcome figure { width: 100%; aspect-ratio: 1 / 1; }

.comfort__welcome-text h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 400;
  color: #fff;
  margin: 18px 0 18px;
}

.comfort__welcome-text > p:last-child { color: rgba(255, 255, 255, .68); margin: 0; }

.comfort__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: clamp(60px, 7vw, 100px);
}

.comfort__strip figure { aspect-ratio: 3 / 4; }

.comfort__strip img { transition: transform 1.6s var(--expo), filter .6s, clip-path 1.5s var(--expo); }
.comfort__strip figure:hover img { transform: scale(1.05); filter: brightness(1.07); }

/* ─────────────────────────── 04 · Galleria ─────────────────────────── */

.gallery__head { text-align: center; }
.gallery__head .eyebrow { margin-bottom: 24px; }

.gallery__grid {
  columns: 3;
  column-gap: 28px;
  margin-top: clamp(48px, 5.5vw, 72px);
}

.gallery__item {
  margin: 0 0 28px;
  break-inside: avoid;
  cursor: zoom-in;
  position: relative;
}

.gallery__item:focus-visible {
  outline: 2px solid var(--gold-mid);
  outline-offset: 4px;
}

.gallery__item img { transition: transform 1.5s var(--expo), clip-path 1.5s var(--expo), filter .7s; }
.gallery__item:hover img { transform: scale(1.03); filter: brightness(1.05); }

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 46px 22px 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: .98rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(9, 26, 40, .68));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .55s ease, transform .55s var(--expo);
  pointer-events: none;
}

.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption { opacity: 1; transform: none; }

/* ─────────────────────────── 05 · Contatti ─────────────────────────── */

.contact { text-align: center; }

.contact__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  margin: 44px 0 34px;
}

.contact__actions .btn--line-light svg { width: 15px; height: 15px; }

.contact__phone {
  color: rgba(255, 255, 255, .6);
  letter-spacing: .06em;
  font-size: .95rem;
  margin: 0 0 60px;
}

.contact__phone a {
  color: var(--gold-bright);
  font-weight: 600;
}

.contact__news {
  width: min(560px, 100%);
  padding-top: 48px;
  border-top: 1px solid var(--hair-light);
}

.contact__news h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
}

.contact__news > p {
  font-size: .92rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 26px;
}

.contact__form {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
}

.contact__form input {
  flex: 1 1 220px;
  font: inherit;
  font-size: .98rem;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding: 12px 2px;
  outline: none;
  transition: border-color .3s;
  border-radius: 0;
  text-align: center;
}

.contact__form input::placeholder { color: rgba(255, 255, 255, .55); letter-spacing: .06em; }
.contact__form input:focus { border-bottom-color: var(--gold-bright); }

.contact__form .btn--line-light { padding-bottom: 12px; }

.contact__form-msg {
  margin: 16px 0 0;
  font-size: .84rem;
  color: var(--gold-bright);
  min-height: 1.4em;
}

/* ─────────────────────────── Footer ─────────────────────────── */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .55);
  padding: clamp(64px, 7vw, 100px) clamp(24px, 4vw, 64px) 44px;
  text-align: center;
}

.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.footer__logo { width: 104px; height: auto; opacity: .95; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3.4vw, 44px);
}

.footer__nav a {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  transition: color .3s;
}

.footer__nav a:hover { color: var(--gold-bright); }

.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, .45);
  margin: 0;
}

.footer__copy {
  font-size: .74rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
  margin: 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  width: 100%;
}

/* ─────────────────────────── Lightbox ─────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(9, 26, 40, .97);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s .5s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility 0s;
}

.lightbox__stage {
  max-width: min(1200px, 88vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  transform: scale(.98);
  transition: transform .5s var(--expo);
}

.lightbox.is-open .lightbox__stage img { transform: scale(1); }

.lightbox__stage figcaption {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255, 255, 255, .7);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .8);
  width: 50px;
  height: 50px;
  transition: transform .4s var(--expo), color .3s;
}

.lightbox__close:hover { transform: rotate(90deg); color: var(--gold-bright); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, .75);
  display: grid;
  place-items: center;
  transition: color .3s, transform .4s var(--expo);
}

.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav:hover { color: var(--gold-bright); }
.lightbox__nav--prev { left: 28px; }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-4px); }
.lightbox__nav--next { right: 28px; }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(4px); }

.lightbox__count {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .8rem;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .55);
}

/* ─────────────────────────── Responsive ─────────────────────────── */

@media (max-width: 1100px) {
  .houseboat__grid { grid-template-columns: 1fr; }
  .location__grid { grid-template-columns: 1fr; }
  .location__imgs { position: static; grid-template-columns: 1fr 1fr; }
  .comfort__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { columns: 2; }
  .place { grid-template-columns: 90px 180px 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }

  .header__inner { padding: 16px 20px; }
  .header__logo img { width: 84px; }
  .header.is-scrolled .header__logo img { width: 64px; }
  .header__cta { display: none; }
  .header__burger { display: flex; }

  .header__nav {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility 0s .5s;
    z-index: 105;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease, visibility 0s;
  }

  .header__nav a:not(.btn) { font-size: 1rem; letter-spacing: .3em; }
  .header__cta-mobile { display: inline-flex; margin-top: 18px; }

  .hero { min-height: 580px; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero__content { padding-bottom: 130px; }
  .hero__corner { display: none; }
  .hero__ui { bottom: 30px; }

  .booking { margin-top: -34px; padding: 0 16px; }
  .booking__card { padding: 24px 22px 22px; gap: 16px; }
  .booking__sep { display: none; }
  .booking__field { flex: 1 1 100%; }
  .booking__submit { width: 100%; }

  .houseboat__facts { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .houseboat__collage { grid-template-rows: repeat(10, minmax(0, 30px)); }
  .houseboat__img-a, .houseboat__img-b { outline-width: 6px; }

  .place { grid-template-columns: 1fr; gap: 8px; }
  .place:hover { padding-left: 0; }
  .location__imgs { grid-template-columns: 1fr; }

  .comfort__grid { grid-template-columns: 1fr; }
  .comfort__welcome { grid-template-columns: 1fr; }
  .comfort__welcome figure { aspect-ratio: 4 / 3; }
  .comfort__strip { grid-template-columns: 1fr 1fr; gap: 14px; }

  .gallery__grid { columns: 1; }

  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* ─────────────────────────── Reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .intro { display: none; }

  [data-reveal],
  [data-intro],
  .hero__title .w > span,
  .title .line-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .img-reveal img { clip-path: none !important; transform: none !important; transition: none !important; }

  .hero__slide.is-active img { animation: none; }
  .marquee__track { animation: none; }
  .hero__progress span.is-running { animation: none; transform: scaleX(1); }
}
