/* ============================================================
   PALAZZO SCOLARI — B&B · Polcenigo
   Design language: plaster ivory ground, ink-navy script brand,
   powder-blue bands (Suite Scolari walls), bronze-gold hairlines,
   arched image masks after the 15th-century portico.
   ============================================================ */

:root {
  /* palette — derived from the palazzo itself */
  --bianco:   #fdfcf9;   /* near-white warm ground */
  --calce:    #f4efe5;   /* plaster/sand section tint */
  --ocra:     #f6efdc;   /* pale ochre (Camera Sansone walls) */
  --inchiostro: #22304a; /* ink navy — their logo */
  --polvere:  #7593a9;   /* powder blue — Suite Scolari walls */
  --polvere-scuro: #5d7b91;
  --bronzo:   #9a825c;   /* Murano gold / bronze */
  --pietra:   #8c877c;   /* stone grey captions */
  --linea:    rgba(154, 130, 92, .45);

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-script:  "Great Vibes", cursive;
  --f-ui:      "Montserrat", -apple-system, sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --arch: 999px 999px 0 0; /* the signature portal shape */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--inchiostro);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
figure { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- type roles ---------- */
.h-display {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: .01em;
}
.h-display em {
  font-style: italic;
  font-weight: 300;
  color: var(--polvere-scuro);
}
.h-display--light { color: var(--bianco); }
.h-display--light em { color: #cfdde8; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--bronzo);
  margin-bottom: 18px;
}
.eyebrow--light { color: #d9c9a8; }

.script {
  font-family: var(--f-script);
  font-weight: 400;
  color: var(--inchiostro);
  line-height: 1;
}
.script--small { font-size: clamp(30px, 4vw, 40px); color: var(--inchiostro); }

.caption {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pietra);
  margin-top: 14px;
}

p + p { margin-top: 1.2em; }

/* ---------- buttons: the "ticket" notch, after Palazzo Sogni ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bianco);
  background: var(--polvere);
  padding: 17px 34px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px),
                     calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: background .35s ease, color .35s ease;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--inchiostro); }
.btn--ghost {
  background: transparent;
  color: var(--inchiostro);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.btn--ghost:hover { background: var(--inchiostro); color: var(--bianco); }
.btn--light { background: var(--bianco); color: var(--inchiostro); }
.btn--light:hover { background: var(--inchiostro); color: var(--bianco); }
.btn--small { padding: 12px 24px; font-size: 11px; }

.link-arrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--inchiostro);
  border-bottom: 1px solid var(--linea);
  padding-bottom: 6px;
  transition: border-color .3s ease, color .3s ease;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--polvere-scuro); border-color: var(--polvere-scuro); }

/* ---------- the arch: signature image mask ---------- */
.arch-img {
  position: relative;
}
.arch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--arch);
  aspect-ratio: 4 / 5;
}
/* ambient video in an arch frame: same 4/5 portrait crop as the photos.
   The source is 16:9, so the crop is biased right of centre to hold the
   fireplace rather than the empty end of the table. */
.arch-img .arch-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  border-radius: var(--arch);
  aspect-ratio: 4 / 5;
  background: var(--carta, #f4f1ea);
}
.arch-img--framed::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--linea);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

/* watercolor stain accent */
.stain {
  position: absolute;
  width: 340px;
  height: 190px;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%) rotate(-4deg);
  background: radial-gradient(ellipse 60% 55% at 40% 50%, rgba(117,147,169,.30), rgba(117,147,169,0) 70%),
              radial-gradient(ellipse 55% 60% at 65% 45%, rgba(154,130,92,.16), rgba(154,130,92,0) 72%);
  filter: blur(6px);
  pointer-events: none;
}

/* ---------- grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
}

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head__sub { margin-top: 18px; color: var(--pietra); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .45s ease, box-shadow .45s ease;
}
.nav.is-solid {
  background: rgba(253, 252, 249, .96);
  box-shadow: 0 1px 0 rgba(154,130,92,.25);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav__logo img {
  width: 96px;
  height: auto;
  transition: filter .45s ease, opacity .45s ease;
}
/* over the hero photo the navy script needs to read white */
.nav:not(.is-solid) .nav__logo img { filter: brightness(0) invert(1); }
.nav__links {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
}
.nav__links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bianco);
  transition: color .35s ease, opacity .3s ease;
}
.nav__links a:hover { opacity: .65; }
.nav.is-solid .nav__links a { color: var(--inchiostro); }

.nav__burger {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 34px;
  position: relative;
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--bianco);
  transition: transform .35s ease, top .35s ease, background .35s ease;
}
.nav__burger span:first-child { top: 13px; }
.nav__burger span:last-child { top: 20px; }
.nav.is-solid .nav__burger span, .nav.menu-open .nav__burger span { background: var(--inchiostro); }
.nav.menu-open .nav__burger span:first-child { top: 16px; transform: rotate(45deg); }
.nav.menu-open .nav__burger span:last-child { top: 16px; transform: rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--bianco);
  padding: 18px var(--pad) 30px;
  box-shadow: 0 12px 24px rgba(34,48,74,.08);
}
.nav__mobile a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(154,130,92,.18);
}
.nav__mobile .btn { margin-top: 18px; border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
.s-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--bianco);
}
.s-hero__media { position: absolute; inset: 0; }
.s-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 60% 40%;
}
.s-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,28,44,.72) 0%, rgba(20,28,44,.34) 40%, rgba(20,28,44,.18) 72%, rgba(20,28,44,.45) 100%);
}
.s-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(90px, 14vh, 150px);
}
.s-hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.08;
  max-width: 14em;
}
.s-hero__title em { font-style: italic; color: #d3e0ea; }
.s-hero__title .line { display: block; overflow: hidden; }
.s-hero__title .line > span { display: block; }
.s-hero__sub {
  max-width: 520px;
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(253,252,249,.88);
}
.s-hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  margin-top: 38px;
}
.s-hero__actions .link-arrow { color: var(--bianco); border-color: rgba(253,252,249,.4); }
.s-hero__actions .link-arrow:hover { color: #d3e0ea; border-color: #d3e0ea; }

.s-hero__badge {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 48px);
  bottom: clamp(90px, 14vh, 150px);
  text-align: center;
  border: 1px solid rgba(253,252,249,.35);
  border-radius: 999px 999px 0 0;
  padding: 22px 26px 14px;
}
.s-hero__badge strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
}
.s-hero__badge span {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(253,252,249,.75);
}

.s-hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
}
.s-hero__scroll-arch {
  display: block;
  width: 26px; height: 40px;
  border: 1px solid rgba(253,252,249,.55);
  border-radius: 999px 999px 0 0;
  position: relative;
}
.s-hero__scroll-arch i {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--bianco);
  transform: translateX(-50%);
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: 8px; opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { top: 26px; opacity: 0; }
}

/* ============================================================
   BENVENUTI
   ============================================================ */
.s-welcome {
  background: var(--calce);
  padding: clamp(90px, 12vw, 150px) 0 clamp(80px, 10vw, 130px);
  text-align: center;
}
.s-welcome__script {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}
.s-welcome__script .script { position: relative; font-size: clamp(54px, 8vw, 92px); }
.s-welcome__statement {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
  max-width: 860px;
  margin: 28px auto 0;
}
.s-welcome__grid {
  margin-top: clamp(60px, 8vw, 100px);
  text-align: left;
}
.s-welcome__grid .arch-img { max-width: 540px; justify-self: center; width: 100%; }
/* foto di Anna ed Egle affiancate: serve un arco orizzontale (4:3), in 4:5 una
   delle due verrebbe tagliata fuori */
.s-welcome__grid .arch-img img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
.s-welcome__sig { margin-top: 2em; }
.s-welcome__sig .caption { margin-top: 4px; }

/* ============================================================
   STORIA
   ============================================================ */
.s-storia { padding: clamp(90px, 12vw, 150px) 0; }
.s-storia__grid { align-items: start; }
.s-storia__grid .arch-img { max-width: 440px; width: 100%; justify-self: center; position: sticky; top: 110px; }
.s-storia__grid .arch-img img { filter: sepia(.14); }

.lineage {
  list-style: none;
  margin-top: 44px;
  position: relative;
  padding-left: 30px;
}
.lineage::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--linea);
  transform-origin: top;
}
.lineage li { position: relative; padding-bottom: 26px; }
.lineage li:last-child { padding-bottom: 0; }
.lineage li::before {
  content: "";
  position: absolute;
  left: -30px; top: 8px;
  width: 11px; height: 11px;
  border: 1px solid var(--bronzo);
  border-radius: 50%;
  background: var(--bianco);
}
.lineage__date {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bronzo);
  margin-bottom: 4px;
}
.lineage__event { font-size: 14px; }

/* storia del palazzo: cronologia apribile.
   Senza JS è tutta visibile; lo script aggiunge .is-collapsed e mostra il bottone. */
.storia-more { margin-top: 44px; }
.storia-more__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-style: italic;
  color: var(--inchiostro);
  line-height: 1.2;
}
.storia-more .lineage { margin-top: 24px; }
.storia-more__body {
  position: relative;
  overflow: hidden;
  transition: max-height .8s cubic-bezier(.22,.61,.36,1);
}
.storia-more__body::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(253,252,249,0), var(--bianco) 85%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.storia-more.is-collapsed .storia-more__body::after { opacity: 1; }
.storia-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--inchiostro);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--linea);
  padding: 0 0 6px;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.storia-more__btn:hover { color: var(--polvere-scuro); border-color: var(--polvere-scuro); }
.storia-more__icon {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .4s ease;
}
.storia-more:not(.is-collapsed) .storia-more__icon { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) {
  .storia-more__body, .storia-more__body::after, .storia-more__icon { transition: none; }
}

.s-storia__salone { margin-top: clamp(60px, 8vw, 100px); }
.s-storia__salone img { width: 100%; border-radius: 4px; }

/* ============================================================
   CAMERE
   ============================================================ */
.s-camere {
  background: var(--ocra);
  padding: clamp(90px, 12vw, 150px) 0;
}
.s-camere .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.room h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 27px;
  margin-top: 26px;
}
.room__line {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--polvere-scuro);
  margin-top: 2px;
}
.room__details {
  margin-top: 16px;
  border-top: 1px solid var(--linea);
  padding-top: 16px;
}
.room__details li {
  font-size: 13px;
  color: var(--pietra);
  padding: 3px 0;
}
.room--gallery {
  cursor: pointer;
  transition: transform .35s ease;
}
.room--gallery:hover { transform: translateY(-4px); }
.room--gallery:focus-visible {
  outline: 2px solid var(--polvere-scuro);
  outline-offset: 8px;
}
.room--gallery .arch-img { overflow: hidden; }
.room--gallery .arch-img img { transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.room--gallery:hover .arch-img img { transform: scale(1.035); }
.room__open {
  color: var(--inchiostro);
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 18px;
}
.room__open span { color: var(--bronzo); font-size: 15px; margin-left: 5px; }

body.lightbox-open { overflow: hidden; }
.room-lightbox[hidden] { display: none; }
.room-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.room-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 32, 47, .86);
  backdrop-filter: blur(5px);
}
.room-lightbox__panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(22px, 4vw, 42px);
  color: var(--bianco);
  background: var(--inchiostro);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.room-lightbox__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.room-lightbox__topline .eyebrow { color: rgba(253, 252, 249, .62); margin: 0; }
.room-lightbox__close,
.room-lightbox__nav {
  border: 0;
  color: var(--bianco);
  background: transparent;
  cursor: pointer;
}
.room-lightbox__close {
  font-size: 30px;
  line-height: 1;
  padding: 4px 8px;
}
.room-lightbox__viewer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}
.room-lightbox__viewer figure { margin: 0; }
.room-lightbox__viewer figure img,
.room-lightbox__viewer figure video {
  display: block;
  width: 100%;
  height: min(62vh, 620px);
  object-fit: contain;
  background: rgba(255, 255, 255, .04);
}
.room-lightbox__viewer figure [hidden] { display: none; }
.room-lightbox__viewer figcaption {
  color: rgba(253, 252, 249, .72);
  font-family: var(--f-display);
  font-size: 18px;
  margin-top: 12px;
}
.room-lightbox__nav {
  font-family: var(--f-display);
  font-size: 34px;
  padding: 12px 4px;
  opacity: .72;
  transition: opacity .25s ease, color .25s ease;
}
.room-lightbox__nav:hover { color: var(--polvere); opacity: 1; }
.room-lightbox__count {
  color: rgba(253, 252, 249, .55);
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: .18em;
  text-align: center;
  margin: 14px 0;
}
.room-lightbox__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.room-lightbox__thumb {
  flex: 0 0 76px;
  height: 58px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  opacity: .52;
  cursor: pointer;
  transition: opacity .25s ease, border-color .25s ease;
}
.room-lightbox__thumb:hover,
.room-lightbox__thumb.is-active { opacity: 1; border-color: var(--bronzo); }
.room-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* a video entry in the strip gets a play mark so it reads as motion, not a photo */
.room-lightbox__thumb--video { position: relative; }
.room-lightbox__thumb--video::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--bianco);
  filter: drop-shadow(0 0 3px rgba(20, 28, 44, .85));
  pointer-events: none;
}
.s-camere__note {
  margin-top: clamp(48px, 6vw, 70px);
  text-align: center;
  font-size: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.s-camere__note strong { font-family: var(--f-display); font-size: 19px; font-weight: 500; }

/* ============================================================
   COLAZIONE
   ============================================================ */
.s-colazione { padding: clamp(90px, 12vw, 150px) 0; }
.s-colazione .arch-img { max-width: 460px; width: 100%; justify-self: center; }
.grid-2--rev figure { order: 2; }
.s-colazione__text { max-width: 460px; }

/* ============================================================
   GIARDINO
   ============================================================ */
.s-giardino__hero {
  position: relative;
  height: clamp(420px, 74vh, 680px);
  overflow: hidden;
}
.s-giardino__hero img {
  width: 100%; height: 120%;
  object-fit: cover;
}
.s-giardino__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,28,44,.55), rgba(20,28,44,.22) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 7vw, 80px) var(--pad);
}
.s-giardino__overlay .eyebrow { margin-bottom: 10px; }
.s-giardino__body { padding: clamp(70px, 9vw, 110px) var(--pad); }
.s-giardino__body .grid-2 { align-items: start; }
.s-giardino__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  margin-top: clamp(50px, 7vw, 80px);
  align-items: end;
}
.s-giardino__strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}
.s-giardino__strip .arch-img img { border-radius: var(--arch); }

/* ============================================================
   EVENTI — powder-blue band
   ============================================================ */
.s-eventi {
  background: var(--polvere);
  color: var(--bianco);
  padding: clamp(90px, 12vw, 150px) 0;
}
.s-eventi .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.evento h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 25px;
  margin-top: 24px;
}
.evento p { font-size: 13px; line-height: 1.8; color: rgba(253,252,249,.82); margin-top: 8px; }
.evento .arch-img img { aspect-ratio: 4 / 5; }
.s-eventi__cta { text-align: center; margin-top: clamp(48px, 6vw, 72px); }

/* ============================================================
   DOVE SIAMO
   ============================================================ */
.s-dove {
  background: var(--calce);
  padding: clamp(90px, 12vw, 150px) 0;
}
.s-dove__grid { align-items: start; }
address {
  font-style: normal;
  font-family: var(--f-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.5;
}
.s-dove__near { margin-top: 20px; color: var(--pietra); font-size: 14px; }
.s-dove__info .link-arrow { display: inline-block; margin-top: 26px; }
.s-dove__amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.s-dove__amenities li {
  font-size: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--linea);
}

/* ============================================================
   CONTATTI
   ============================================================ */
.s-contatti {
  padding: clamp(70px, 9vw, 110px) 0 clamp(55px, 7vw, 85px);
  text-align: center;
}
.s-contatti__card { max-width: 640px; margin: 0 auto; }
.s-contatti__pre {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 21px;
  color: var(--polvere-scuro);
  margin-bottom: 6px;
}
.s-contatti__sub { color: var(--pietra); margin-top: 14px; }
.s-contatti__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
  margin: 36px auto 0;
}
.s-contatti__sig { margin-top: 44px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--polvere); }
.footer__art {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(50px, 7vw, 80px) var(--pad) 0;
  transform: translateY(1px);
}
.footer__art img { width: 100%; border-radius: 4px 4px 0 0; }
.footer__band {
  text-align: center;
  color: var(--bianco);
  padding: 34px var(--pad) 40px;
}
.footer__line { font-size: 12px; letter-spacing: .06em; }
.footer__tiny { font-size: 11px; letter-spacing: .1em; color: rgba(253,252,249,.78); margin-top: 10px; }
/* riga con denominazione e CIN: sono indicazioni obbligatorie di legge
   (D.Lgs 70/2003 art. 7 e DL 145/2023), non testo decorativo.
   Devono restare leggibili: non scendere sotto 11px / .78 di opacità. */
.footer__legal { margin-top: 4px; }

/* ============================================================
   REVEAL STATES (JS adds .is-in; no-motion shows everything)
   ============================================================ */
html:not(.no-motion) [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
html:not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; }

html:not(.no-motion) [data-arch] {
  clip-path: inset(6% 6% 6% 6% round 999px 999px 0 0);
  opacity: 0;
  transition: clip-path 1.2s cubic-bezier(.22,.61,.36,1), opacity 1s ease;
}
html:not(.no-motion) [data-arch].is-in {
  clip-path: inset(0 0 0 0 round 999px 999px 0 0);
  opacity: 1;
}
html:not(.no-motion) .arch-img--framed::before { transition: opacity .8s ease .5s; }

html:not(.no-motion) .s-hero__title .line > span {
  transform: translateY(110%);
}
html:not(.no-motion) [data-hero-fade] { opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--rev figure { order: 0; }
  .grid-3 { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .s-storia__grid .arch-img { position: static; }
  .s-hero__badge { display: none; }
  .s-giardino__strip { grid-template-columns: 1fr 1fr; }
  .s-giardino__strip figure:last-child { display: none; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.menu-open .nav__mobile { display: flex; }
  .s-hero__title { font-size: clamp(38px, 11vw, 54px); }
  .s-hero__media img { object-position: 42% 48%; }
  .s-dove__amenities { grid-template-columns: 1fr; margin-top: 10px; }
  .s-welcome__statement { letter-spacing: .08em; }
  .s-giardino__hero img { object-position: 42% 48%; }
  .room-lightbox { padding: 12px; }
  .room-lightbox__panel { max-height: calc(100vh - 24px); padding: 20px 14px 14px; }
  .room-lightbox__viewer { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 4px; }
  .room-lightbox__viewer figure img { height: 56vh; }
  .room-lightbox__nav { font-size: 27px; }
}

@media (max-width: 420px) {
  .s-giardino__strip { grid-template-columns: 1fr; }
  .s-giardino__strip figure:last-child { display: block; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--polvere-scuro);
  outline-offset: 3px;
}
