/* ==========================================================================
   IN CENTRO · Tortolì — style.css
   Editorial "New Luxury" layout inspired by living.paisana.studio
   ========================================================================== */

:root {
  /* Brand — blu profondo In Centro (#00072f) + sabbia sarda + oro */
  --navy: #00072f;
  --navy-2: #061a44;
  --blue: #0f3266;
  --azure: #2f7f96;
  --gold: #f5b053;
  --sand: #e1dacb;

  --paper: #f5f1e8;
  --paper-2: #e8e1d4;
  --ink: #00072f;
  --ink-soft: rgba(0, 7, 47, 0.62);
  --ink-line: rgba(0, 7, 47, 0.15);
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.62);
  --white-line: rgba(255, 255, 255, 0.16);

  --sans: "Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Serif", "Playfair Display", Georgia, serif;

  --pad: clamp(1.25rem, 3vw, 3rem);
  --max: 1440px;
  --header-h: 76px;
  --radius: 4px;

  /* ritmo verticale del sito */
  --sy: clamp(3.25rem, 6vw, 5.5rem);
  --sy-tight: clamp(2.25rem, 4vw, 3.5rem);

  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }

::selection { background: var(--navy); color: var(--gold); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; z-index: 999;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.display em, .serif-em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}
.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 1;
}
.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section { padding: var(--sy) 0; position: relative; }
.section--tight { padding: var(--sy-tight) 0; }
.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.75rem;
  margin-bottom: clamp(1.75rem, 3.2vw, 3rem);
}
.section__head h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin-top: .7rem; }
.section__head .lead { margin-top: .9rem; }
.line { height: 1px; background: var(--ink-line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--ink);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .6s var(--ease-expo);
  border-radius: inherit;
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--paper); }
.btn--solid:hover { color: var(--ink); }
.btn--light { border-color: var(--white); color: var(--white); }
.btn--light::before { background: var(--white); }
.btn--light:hover { color: var(--ink); }
.btn svg { width: 14px; height: 14px; transition: transform .5s var(--ease-expo); }
.btn:hover svg { transform: translate(3px, -3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding-bottom: .35rem; position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform-origin: right;
  transition: transform .6s var(--ease-expo);
}
.link-arrow:hover::after { transform: scaleX(0); transform-origin: left; }

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.2rem;
}
.loader__word {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1;
  overflow: hidden;
}
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__count {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--white-soft);
  font-variant-numeric: tabular-nums;
}
.loader__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--white-line);
}
.loader__bar i { display: block; height: 100%; width: 0; background: var(--gold); }


/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: color .5s var(--ease), background .5s var(--ease), transform .6s var(--ease-expo);
}
.header::after {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0;
  height: 1px; background: currentColor; opacity: .14;
}
.header.is-scrolled { background: rgba(245, 241, 232, .88); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.is-hidden { transform: translateY(-100%); }
.header.is-open { color: var(--white); background: transparent; backdrop-filter: none; }
.header__inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.header__logo {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em;
}
.header__logo img { height: 34px; width: auto; }
.header.is-scrolled .header__logo img { filter: invert(1); }
.header__logo small { font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; display: none; }
@media (min-width: 900px) { .header__logo small { display: inline; } }

.nav { display: none; gap: 2.2rem; }
.nav a {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  position: relative; padding: .4rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-expo);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 1024px) { .nav { display: flex; } }

.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.lang { display: flex; align-items: center; gap: .1rem; font-size: .7rem; letter-spacing: .14em; font-weight: 600; }
.lang a { padding: .35rem .45rem; opacity: .5; transition: opacity .3s; }
.lang a:hover, .lang a[aria-current="page"] { opacity: 1; }
.lang a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.header .btn { padding: .7rem 1.2rem; font-size: .7rem; display: none; }
@media (min-width: 640px) { .header .btn { display: inline-flex; } }
.header .btn--light { border-color: currentColor; }
.header.is-scrolled .btn--light { color: var(--ink); }
.header.is-scrolled .btn--light::before { background: var(--ink); }
.header.is-scrolled .btn--light:hover { color: var(--paper); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; align-items: center;
}
.burger i { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-expo), opacity .3s; }
.header.is-open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
.header.is-open .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 1024px) { .burger { display: none; } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--pad) 3rem;
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: block;
  font-family: var(--display); font-size: clamp(2.6rem, 10vw, 5.5rem); line-height: 1.05;
  transform: translateY(140%); transition: transform .9s var(--ease-expo);
}
.menu.is-open .menu__list a { transform: translateY(0); }
.menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu__meta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; font-size: .8rem; color: var(--white-soft); }
.menu__meta a { color: var(--paper); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  padding-bottom: clamp(2rem, 3.5vw, 3.25rem);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.hero__bg video { position: absolute; inset: 0; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,7,47,.50) 0%, rgba(0,7,47,.16) 34%, rgba(0,7,47,.86) 100%),
    linear-gradient(90deg, rgba(0,7,47,.28) 0%, rgba(0,7,47,0) 55%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: end;
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.hero .eyebrow { color: var(--white-soft); }
.hero__title {
  font-size: clamp(3rem, 8.4vw, 8rem);
  margin-top: 1.2rem;
}
.hero__title .l { display: block; overflow: hidden; }
.hero__title .l > span { display: block; }
.hero__lead { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.3vw, 1.2rem); max-width: 38ch; line-height: 1.6; text-shadow: 0 1px 18px rgba(0,7,47,.7); }
.hero__actions { margin-top: 1.4rem; display: flex; gap: .85rem; flex-wrap: wrap; }
.hero__foot {
  margin-top: clamp(1.75rem, 3.2vw, 2.75rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--white-line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white-soft);
}
.scroll-hint { display: inline-flex; align-items: center; gap: .6rem; }
.scroll-hint i { width: 1px; height: 36px; background: currentColor; display: block; position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--white); animation: drop 2s var(--ease-io) infinite; }
@keyframes drop { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* --------------------------------------------------------------------------
   Manifesto / intro statement
   -------------------------------------------------------------------------- */
.manifesto { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.manifesto__text {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.18;
  max-width: 26ch;
  letter-spacing: -0.01em;
}
.manifesto__text .w { display: inline-block; opacity: .15; transition: opacity .3s; }
.manifesto__pillars {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink-line);
  padding-top: 1.75rem;
}
@media (min-width: 720px) { .manifesto__pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { display: grid; gap: .6rem; }
.pillar__n { font-size: .68rem; letter-spacing: .2em; color: var(--azure); }
.pillar h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.pillar p { color: var(--ink-soft); font-size: .95rem; max-width: 30ch; }

/* --------------------------------------------------------------------------
   Rooms (structures) — editorial list
   -------------------------------------------------------------------------- */
.rooms { background: var(--paper); }
.room {
  display: grid; gap: 1.5rem;
  padding: clamp(1.6rem, 2.8vw, 2.6rem) 0;
  border-top: 1px solid var(--ink-line);
  grid-template-columns: 1fr;
  align-items: center;
}
.room:last-child { border-bottom: 1px solid var(--ink-line); }
@media (min-width: 900px) {
  .room { grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 6rem); }
  .room:nth-child(even) .room__media { order: 2; }
}
.room__media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--paper-2);
}
.room__media img { width: 100%; height: 115%; object-fit: cover; transition: transform 1.2s var(--ease-expo); will-change: transform; }
.room:hover .room__media img { transform: scale(1.04); }
.room__media .reveal-mask { position: absolute; inset: 0; background: var(--paper); transform-origin: top; }
.room__body { display: grid; gap: 1.2rem; }
.room__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.room__title { font-family: var(--display); font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1; font-weight: 400; }
.room__title span { display: block; font-style: italic; font-size: .55em; color: var(--ink-soft); margin-top: .35em; }
.room__desc { color: var(--ink-soft); max-width: 46ch; }
.room__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.room__tags li { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .45rem .8rem; border: 1px solid var(--ink-line); border-radius: 999px; }
.room__actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }

/* --------------------------------------------------------------------------
   Apartments — dark grid
   -------------------------------------------------------------------------- */
.apartments { background: var(--navy); color: var(--paper); }
.apartments .eyebrow, .apartments .lead { color: var(--white-soft); }
.apartments .line { background: var(--white-line); }
.apt-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .apt-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.apt { display: grid; gap: 1.2rem; }
.apt__media { overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--radius); position: relative; background: var(--navy-2); }
.apt__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.apt:hover .apt__media img { transform: scale(1.05); }
.apt__media .reveal-mask { position: absolute; inset: 0; background: var(--navy); transform-origin: top; }
.apt h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.apt__meta { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white-soft); }
.apt p { color: var(--white-soft); font-size: .95rem; }
.apt .link-arrow { color: var(--paper); }
.apartments .btn--light { margin-top: 3rem; }

/* --------------------------------------------------------------------------
   Experiences — horizontal scroll (pinned)
   -------------------------------------------------------------------------- */
.experiences { overflow: hidden; }
/* Il contenitore scorre in orizzontale da solo. Quando GSAP aggancia la
   sezione (solo da 1024px in su, e solo se parte) prende il controllo e lo
   scorrimento nativo viene disattivato. Così le schede sono sempre
   raggiungibili, anche senza JavaScript. */
.exp-scroll {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-line) transparent;
  padding-bottom: .75rem;
  overscroll-behavior-x: contain;
}
.exp-scroll::-webkit-scrollbar { height: 4px; }
.exp-scroll::-webkit-scrollbar-track { background: transparent; }
.exp-scroll::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 4px; }
.exp-scroll.is-pinned { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.exp-track { display: flex; gap: clamp(1rem, 2vw, 2rem); will-change: transform; padding-right: var(--pad); }
.exp-card { scroll-snap-align: start; }
.exp-card {
  flex: 0 0 auto;
  width: min(78vw, 420px);
  display: grid; gap: 1rem;
}
.exp-card__media { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--paper-2); }
.exp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.exp-card:hover .exp-card__media img { transform: scale(1.05); }
.exp-card__n { font-size: .68rem; letter-spacing: .2em; color: var(--azure); }
.exp-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.exp-card p { color: var(--ink-soft); font-size: .95rem; }
.exp-card--cta {
  width: min(78vw, 360px);
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  padding: 2rem; border: 1px solid var(--ink-line); border-radius: var(--radius);
}
.exp-card--cta h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
@media (min-width: 1024px) {
  .experiences.section { padding-bottom: 0; }
  .exp-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .exp-card { width: clamp(340px, 30vw, 460px); }
}

/* --------------------------------------------------------------------------
   Mood: full-bleed parallax + marquee
   -------------------------------------------------------------------------- */
.mood { position: relative; height: clamp(60vh, 90vw, 100vh); overflow: hidden; color: var(--white); }
.mood img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.mood::after { content: ""; position: absolute; inset: 0; background: rgba(0, 7, 47, .34); }
.mood__inner { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad); }
.mood__quote { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.12; max-width: 22ch; align-self: flex-end; text-align: right; }
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--white-line); border-bottom: 1px solid var(--white-line); padding: .9rem 0; }
.marquee__track { display: inline-flex; gap: 3rem; will-change: transform; }
.marquee__track span { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: "✦"; font-size: .7rem; opacity: .7; }

/* --------------------------------------------------------------------------
   Gallery — masonry-ish
   -------------------------------------------------------------------------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 14vw; } }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; background: var(--paper-2); }
.gallery-grid figure::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, rgba(0,7,47,0), rgba(0,7,47,.55)); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-grid figcaption { z-index: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid figcaption { position: absolute; left: 1rem; bottom: 1rem; color: var(--white); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: .5s var(--ease); }
.gallery-grid figure:hover figcaption { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .gallery-grid figure:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .gallery-grid figure:nth-child(2) { grid-column: 8 / span 5; grid-row: 1 / span 1; }
  .gallery-grid figure:nth-child(3) { grid-column: 8 / span 5; grid-row: 2 / span 2; }
  .gallery-grid figure:nth-child(4) { grid-column: 1 / span 7; grid-row: 3 / span 1; }
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-list { border-top: 1px solid var(--ink-line); }
.post {
  display: grid; gap: 1.25rem; align-items: center;
  grid-template-columns: 1fr;
  padding: 1.5rem 0; border-bottom: 1px solid var(--ink-line);
  position: relative;
}
@media (min-width: 760px) { .post { grid-template-columns: 120px 1fr auto; gap: 2.5rem; } }
.post__media { width: 120px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-expo); }
.post:hover .post__media img { transform: scale(1.06); }
.post__meta { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 1.2rem; margin-bottom: .6rem; }
.post h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.1; max-width: 26ch; }
.post__arrow { width: 44px; height: 44px; border: 1px solid var(--ink-line); border-radius: 50%; display: none; align-items: center; justify-content: center; transition: background .4s, color .4s; }
@media (min-width: 760px) { .post__arrow { display: inline-flex; } }
.post:hover .post__arrow { background: var(--ink); color: var(--paper); }
.post__arrow svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust { background: var(--paper-2); }
.trust__card h3 { color: var(--navy); }
.trust__inner { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .trust__inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.trust__card { display: flex; gap: 1.5rem; align-items: center; }
.trust__card img { width: 120px; border-radius: var(--radius); mix-blend-mode: multiply; }
.trust__card h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.trust__card p { color: var(--ink-soft); font-size: .9rem; margin-top: .3rem; }
.trust__partner { display: grid; gap: .6rem; }
.trust__partner img { max-width: 320px; mix-blend-mode: multiply; }

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.newsletter__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .newsletter__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.newsletter h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.newsletter__form { display: grid; gap: 1rem; }
.newsletter__row { display: flex; border-bottom: 1px solid var(--ink); }
.newsletter__row input { flex: 1; border: 0; background: transparent; font: inherit; font-family: var(--display); font-size: 1.5rem; padding: .8rem 0; outline: none; color: var(--ink); min-width: 0; }
.newsletter__row input::placeholder { color: var(--ink-soft); }
.newsletter__row button { padding: 0 .5rem; display: inline-flex; align-items: center; }
.newsletter__row button svg { width: 22px; height: 22px; transition: transform .5s var(--ease-expo); }
.newsletter__row button:hover svg { transform: translateX(6px); }
.newsletter small { color: var(--ink-soft); font-size: .78rem; }
.newsletter small a { text-decoration: underline; text-underline-offset: .25em; }
.newsletter__ok { color: var(--azure); font-size: .9rem; display: none; }

/* --------------------------------------------------------------------------
   Contact / Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy); color: var(--paper); padding-top: clamp(3.5rem, 6.5vw, 6rem); }
.footer__cta { text-align: left; }
.footer__cta h2 { font-size: clamp(2.6rem, 7.5vw, 7rem); line-height: .98; max-width: 10ch; }
.footer__cta .lead { color: var(--white-soft); margin-top: 1.1rem; }
.footer__cta .btn { margin-top: 2rem; }
.footer__grid {
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  padding: 2.25rem 0;
  border-top: 1px solid var(--white-line);
  display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__col h4 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white-soft); margin-bottom: 1.1rem; font-weight: 600; }
.footer__col li { margin: .45rem 0; font-size: .92rem; }
.footer__col a { position: relative; }
.footer__col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-expo); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; } }
.footer__brand img { height: 44px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { color: var(--white-soft); font-size: .9rem; max-width: 34ch; }
.footer__brand a { color: var(--paper); }
.footer__bottom {
  border-top: 1px solid var(--white-line);
  padding: 1.4rem 0 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white-soft);
}
.footer__bottom a { color: var(--paper); }
.footer__bottom span a { margin-left: 1rem; }

/* --------------------------------------------------------------------------
   Reveal helpers (JS-driven)
   -------------------------------------------------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal-line] .l, .hero__title .l { display: block; overflow: hidden; }
[data-reveal-line] .l > span, .hero__title .l > span { display: block; }
html.js .reveal-mask { transform: scaleY(1); }
html.no-js .reveal-mask { display: none; }
html.js .loader ~ * { }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .reveal-mask { display: none; }
  .manifesto__text .w { opacity: 1 !important; }
}

/* Brand accents ---------------------------------------------------------- */
.lang a[aria-current="page"] { text-decoration-color: var(--gold); }
.nav a::after, .link-arrow::after { background: var(--gold); }
.room__tags li { border-color: rgba(0, 7, 47, .18); }
.section__head h2 em, .hero__title em, .display em { color: var(--azure); }
.apartments .display em, .footer .display em { color: var(--gold); }
.mood__quote { text-shadow: 0 2px 30px rgba(0, 7, 47, .5); }
.hero__title { text-shadow: 0 2px 40px rgba(0, 7, 47, .35); }
.trust__partner img, .trust__card img { mix-blend-mode: multiply; }

/* Hero video controls */
.hero__mute {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) + 6.5rem); z-index: 2;
  width: 42px; height: 42px; border: 1px solid var(--white-line); border-radius: 50%;
  color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background .4s var(--ease);
}
.hero__mute:hover { background: rgba(255,255,255,.14); }
.hero__mute svg { width: 15px; height: 15px; }

/* Hero video crossfade over poster */
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__fallback { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* Hero refinements ------------------------------------------------------- */
/* gold reads on both the dark water and the bright sand of the hero video */
.hero__title em { color: var(--gold); }

@media (max-width: 720px) {
  .hero__foot { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero__foot > span:last-child { font-size: .62rem; letter-spacing: .12em; }
  .hero__mute { bottom: auto; top: calc(var(--header-h) + 1rem); right: var(--pad); }
}

/* ==========================================================================
   PAGINE INTERNE
   ========================================================================== */

/* Header sempre visibile sulle pagine interne (niente hero a tutto schermo) */
.header--solid { color: var(--ink); background: rgba(245, 241, 232, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header--solid .header__logo img { filter: invert(1); }
.header--solid .btn--light { color: var(--ink); border-color: var(--ink); }
.header--solid .btn--light::before { background: var(--ink); }
.header--solid .btn--light:hover { color: var(--paper); }
.header--solid.is-open { color: var(--white); background: transparent; }
.header--solid.is-open .header__logo img { filter: none; }

/* Intestazione di pagina --------------------------------------------------- */
.phero { padding-top: calc(var(--header-h) + clamp(1.75rem, 3.6vw, 3rem)); padding-bottom: clamp(1.5rem, 2.6vw, 2.25rem); }
.phero__title { font-size: clamp(2.4rem, 5.4vw, 5rem); margin-top: .75rem; }
.phero__lead { margin-top: 1.1rem; max-width: 52ch; }
.phero__meta {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
  border-top: 1px solid var(--ink-line); padding-top: 1.1rem;
}
.phero__meta li { display: grid; gap: .3rem; }
.phero__meta span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.phero__meta strong { font-weight: 500; font-size: .95rem; }
.phero__media {
  position: relative; overflow: hidden; margin-top: clamp(1.5rem, 2.8vw, 2.5rem);
  height: clamp(260px, 40vw, 540px); background: var(--paper-2);
}
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media .reveal-mask { position: absolute; inset: 0; background: var(--paper); transform-origin: top; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumbs > * + *::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ink); }

.section--top { padding-top: clamp(2rem, 3.6vw, 3.25rem); }

/* Elenco strutture / appartamenti ------------------------------------------ */
.stay-list { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .stay-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stay-list--compact { grid-template-columns: repeat(3, 1fr); } }
.stay { display: grid; gap: 1.25rem; }
.stay__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--paper-2); display: block; }
.stay__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.stay:hover .stay__media img { transform: scale(1.045); }
.stay__media .reveal-mask { position: absolute; inset: 0; background: var(--paper); transform-origin: top; }
.stay__body { display: grid; gap: .7rem; }
.stay__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.stay__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.stay__body p { color: var(--ink-soft); font-size: .95rem; max-width: 44ch; }

/* Corpo scheda struttura --------------------------------------------------- */
.stay-intro__grid { display: grid; gap: clamp(1.75rem, 3.4vw, 3.25rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .stay-intro__grid { grid-template-columns: 1.5fr .85fr; } }
.stay-intro__text > p { margin-bottom: 1.1rem; max-width: 62ch; color: var(--ink-soft); }
.stay-intro__text > p.lead { color: var(--ink); font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; max-width: 24ch; margin-bottom: 1.8rem; }
.stay-intro__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }

.ticks { display: grid; gap: .6rem; margin: 1.25rem 0; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.ticks svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: .22rem; color: var(--azure); }

.facts { border: 1px solid var(--ink-line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); background: rgba(255,255,255,.5); }
.facts h2 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 1.4rem; }
.facts dl { display: grid; gap: 1rem; margin: 0; }
.facts dl > div { display: grid; gap: .2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink-line); }
.facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font-size: .95rem; }
.facts dd a { text-decoration: underline; text-underline-offset: .25em; }

/* Galleria a striscia ------------------------------------------------------ */
.gallery-strip { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
@media (min-width: 760px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.gallery-strip figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--paper-2); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.gallery-strip figure:hover img { transform: scale(1.05); }

/* Servizi ------------------------------------------------------------------ */
/* Niente spazio fra le colonne: così i filetti superiori si toccano e
   formano una riga continua invece di trattini staccati. */
.amenities { display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); margin-top: 1.25rem; }
@media (min-width: 700px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .amenities { grid-template-columns: repeat(4, 1fr); } }
.amenities li {
  display: flex; align-items: center; gap: .75rem;
  padding: .95rem 1.5rem .95rem 0;
  border-top: 1px solid var(--ink-line);
  font-size: .92rem;
}
.amenities svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--azure); }

/* Nei dintorni ------------------------------------------------------------- */
.nearby { background: var(--paper-2); }
.nearby__inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .nearby__inner { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; } }
.nearby h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin-top: .8rem; }
.nearby ul { display: grid; gap: 0; }
.nearby li { padding: .9rem 0; border-bottom: 1px solid var(--ink-line); font-size: 1.02rem; }
.nearby li:first-child { border-top: 1px solid var(--ink-line); }

/* Esperienze: pagina completa ---------------------------------------------- */
.exp-list { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.exp-full { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; scroll-margin-top: calc(var(--header-h) + 2rem); }
@media (min-width: 900px) {
  .exp-full { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .exp-full:nth-child(even) .exp-full__media { order: 2; }
}
.exp-full__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--paper-2); }
.exp-full__media img { width: 100%; height: 100%; object-fit: cover; }
.exp-full__media .reveal-mask { position: absolute; inset: 0; background: var(--paper); transform-origin: top; }
.exp-full__n { font-size: .68rem; letter-spacing: .2em; color: var(--azure); }
.exp-full__body h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin: .6rem 0 1rem; }
.exp-full__body > p { color: var(--ink-soft); max-width: 50ch; }
.exp-full__body > p.lead { color: var(--ink); margin-bottom: 1rem; }
.mood--short { height: clamp(45vh, 60vw, 62vh); }

/* Blog --------------------------------------------------------------------- */
.pgrid { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pgrid--lead { grid-template-columns: 1fr; margin-bottom: clamp(2rem, 3.6vw, 3rem); }
.pcard { display: grid; gap: 1.1rem; }
.pcard__media { overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--paper-2); display: block; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.pcard h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.12; }
.pcard p { color: var(--ink-soft); font-size: .93rem; }
.pcard--featured { gap: 1.5rem; }
@media (min-width: 800px) {
  .pcard--featured { grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); }
  .pcard--featured .pcard__media { aspect-ratio: 16 / 10; }
  .pcard--featured h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
  .pcard--featured p { font-size: 1.02rem; max-width: 46ch; }
}

/* Articolo ----------------------------------------------------------------- */
.phero--post .phero__title { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 20ch; }
.phero__media--post { height: clamp(260px, 42vw, 560px); }
.post-page__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.25rem; }

.prose { max-width: 720px; margin-top: clamp(2rem, 3.6vw, 3.25rem); font-size: 1.04rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.35rem; }
.prose p { color: rgba(0, 7, 47, .8); }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin-top: 2.75rem; }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.2; margin-top: 2.25rem; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: .6rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: rgba(0, 7, 47, .8); padding-left: .25rem; }
.prose li::marker { color: var(--azure); }
.prose a { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--azure); }
.prose a:hover { color: var(--azure); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 2px solid var(--gold); font-family: var(--display); font-size: 1.4rem; line-height: 1.35; color: var(--ink); }
.post-page__foot { max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(2.25rem, 4vw, 3.25rem); padding-top: 1.75rem; border-top: 1px solid var(--ink-line); }

/* Contatti ----------------------------------------------------------------- */
.contact__grid { display: grid; gap: clamp(2rem, 3.6vw, 3.25rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 950px) { .contact__grid { grid-template-columns: 1.35fr .8fr; } }
.contact__form-wrap h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.contact__form-wrap .lead { margin-top: 1rem; }
.contact__form { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 620px) { .contact__form { grid-template-columns: 1fr 1fr; } }
.contact__form label { display: grid; gap: .5rem; }
.contact__full { grid-column: 1 / -1; }
.contact__form span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.contact__form input, .contact__form textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-line);
  padding: .7rem 0; outline: none; width: 100%; resize: vertical;
  transition: border-color .35s var(--ease);
}
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--navy); }
.contact__form input::placeholder { color: rgba(0, 7, 47, .35); }
.contact__form button { grid-column: 1 / -1; justify-self: start; }

.contact__side { display: grid; gap: 1.5rem; }
.contact__direct { display: grid; gap: 1rem; }
.contact__direct li { display: flex; align-items: center; gap: .9rem; font-size: 1.02rem; }
.contact__direct svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--azure); }
.contact__direct a { position: relative; }
.contact__direct a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-expo); }
.contact__direct a:hover::after { transform: scaleX(1); transform-origin: left; }

.places__list { display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.places__list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--ink-line); }
.places__list h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.places__list p { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }

/* Footer: seconda colonna di link ------------------------------------------ */
.footer__col-second { margin-top: 1.75rem; }
.footer__actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Card cliccabili: titolo con link ----------------------------------------- */
.stay__title a, .pcard h3 a, .apt h3 a, .exp-card h3 a, .room__title a, .places__list h3 a { display: inline; }

/* Rifiniture ---------------------------------------------------------------- */
/* Credito fotografico sotto l'immagine dell'articolo */
.phero__credit { margin-top: .85rem; font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); text-align: right; }

/* Card del blog: testo allineato in alto, link in fondo */
.pcard { grid-template-rows: auto 1fr; align-content: start; }
.pcard__body { display: grid; gap: .55rem; align-content: start; }
.pcard__body .link-arrow { align-self: end; margin-top: .4rem; justify-self: start; }
@media (min-width: 800px) { .pcard--featured .pcard__body { align-content: center; } }

/* Card strutture: stessa regola */
.stay { grid-template-rows: auto 1fr; align-content: start; }
.stay__body { align-content: start; }

/* Contatti: meno vuoto sotto la colonna del modulo */
.contact.section--top { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.contact__form textarea { min-height: 170px; }

/* ==========================================================================
   Maschere di riga: spazio per discendenti e accenti
   Le righe animate hanno overflow:hidden. Senza respiro sotto la linea di
   base, la "g" di "Ogliastra" o la "p" di "Esperienze" vengono tagliate.
   Il padding apre il riquadro, il margine negativo lascia il layout invariato.
   ========================================================================== */
[data-reveal-line] .l,
.hero__title .l,
.phero__title .l,
.menu__list li,
.loader__word {
  /* clip-path invece di overflow:hidden. Il riquadro di ritaglio si estende
     oltre il box senza occupare spazio, quindi i discendenti restano interi
     e l'interlinea non cambia di un pixel. */
  overflow: visible;
  clip-path: inset(-0.2em -0.12em -0.3em -0.12em);
}

/* ==========================================================================
   Stato iniziale prima che parta l'animazione
   La classe .js viene messa da uno script inline nell'head, quindi queste
   regole valgono già al primo disegno: niente lampeggio del testo.
   Il fallback in fondo rivela tutto se lo script principale non parte.
   ========================================================================== */
html.js [data-reveal-line] .l > span,
html.js .hero__title .l > span,
html.js .phero__title .l > span { transform: translateY(140%); }
html.js .hero .eyebrow,
html.js .hero__lead,
html.js .hero__actions,
html.js .hero__foot,
html.js .phero .crumbs,
html.js .phero .eyebrow,
html.js .phero__lead,
html.js .phero__meta,
html.js .post-page__meta { opacity: 0; }
html.js .header { transform: translateY(-100%); }

html.reveal-all [data-reveal],
html.reveal-all [data-reveal-line] .l > span,
html.reveal-all .hero__title .l > span,
html.reveal-all .phero__title .l > span,
html.reveal-all .hero .eyebrow,
html.reveal-all .hero__lead,
html.reveal-all .hero__actions,
html.reveal-all .hero__foot,
html.reveal-all .phero .crumbs,
html.reveal-all .phero .eyebrow,
html.reveal-all .phero__lead,
html.reveal-all .phero__meta,
html.reveal-all .post-page__meta { opacity: 1 !important; transform: none !important; }
html.reveal-all .header { transform: none !important; }
html.reveal-all .loader { display: none !important; }

/* Il link "Scopri" è un elemento di griglia: senza questo si allarga a tutta
   la colonna e la sottolineatura corre oltre il testo. */
.stay__body .link-arrow,
.apt .link-arrow,
.exp-card .link-arrow,
.pcard__body .link-arrow,
.room__body .link-arrow { justify-self: start; }

/* Rifiniture finali ---------------------------------------------------------- */
/* Le foto delle strutture sono 16:9: usando lo stesso rapporto non vengono
   ritagliate (molte sono collage, e il taglio mangiava parte dell'immagine). */
.gallery-strip figure { aspect-ratio: 16 / 9; }

/* Voce di menu della pagina corrente */
.nav a[aria-current="page"] { color: var(--azure); }
.header--solid .nav a[aria-current="page"] { color: var(--azure); }

/* Con sei voci la barra si stringe: meno spazio fra le voci sotto i 1280px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav { gap: 1.4rem; }
  .nav a { font-size: .7rem; letter-spacing: .12em; }
}

/* Bersagli di tocco: sul telefono briciole e voci del menu erano sotto i 24px */
@media (max-width: 720px) {
  .crumbs { gap: .35rem .5rem; }
  .crumbs a, .crumbs span { padding: .35rem 0; }
  .menu__meta { gap: .5rem 2rem; }
  .menu__meta a { padding: .5rem 0; display: inline-block; }
  .newsletter small a { padding: .25rem 0; display: inline-block; }
}

/* Bersagli di tocco nel footer: sul telefono le righe erano alte 15-20px,
   sotto il minimo di 24px raccomandato. */
@media (max-width: 720px) {
  .footer__col li { margin: .2rem 0; }
  .footer__col a { display: inline-block; padding: .35rem 0; }
  .footer__bottom { gap: .75rem 1rem; }
  .footer__bottom a { display: inline-block; padding: .3rem 0; }
  .footer__bottom span a { margin-left: 0; margin-right: 1.25rem; }
  .contact__direct li { padding: .2rem 0; }
  .facts dd a { display: inline-block; padding: .25rem 0; }
}

/* ==========================================================================
   Copertine del blog
   Sono locandine verticali 2:3. Inserite in riquadri orizzontali venivano
   ritagliate fino a mostrarne circa un quarto, tagliando testo e crediti.
   Qui vengono mostrate intere.
   ========================================================================== */

/* Intestazione dell'articolo: la locandina intera, centrata su fondo sabbia */
.phero__media--post {
  height: auto;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 2.5vw, 2.25rem) var(--pad);
}
.phero__media--post img {
  width: auto;
  height: auto;
  max-width: min(100%, 460px);
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Schede: riquadro verticale, come la locandina */
.pcard__media { aspect-ratio: 2 / 3; }
@media (min-width: 800px) {
  .pcard--featured .pcard__media { aspect-ratio: 2 / 3; max-width: 340px; }
}
/* Elenco in home */
.post__media { aspect-ratio: 2 / 3; }
