/* ==========================================================================
   Bed & Breakfast Don Savè — foglio di stile
   Palette: navy #00407a (dal logo) + oro #fbc502
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2-variations'),
       url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2-variations'),
       url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #00407a;
  --navy-dark: #002d56;
  --navy-soft: #0b5498;
  --gold: #fbc502;
  --gold-dark: #d9a800;

  --ink: #16202b;
  --ink-soft: #4a5765;
  --ink-faint: #5f6b78;

  --cream: #fbf8f3;
  --sand: #f2ece2;
  --line: #e2dbd0;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 44, .06), 0 4px 12px rgba(11, 26, 44, .05);
  --shadow-md: 0 6px 18px rgba(11, 26, 44, .09), 0 18px 44px rgba(11, 26, 44, .08);
  --shadow-lg: 0 12px 32px rgba(11, 26, 44, .12), 0 32px 80px rgba(11, 26, 44, .12);

  --wrap: 1180px;
  --header-h: 74px;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- utilities ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--navy-soft);
  display: block; margin-bottom: .9rem;
}
.section-head { max-width: 660px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); color: var(--navy); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.rule { width: 56px; height: 3px; background: var(--gold); border-radius: 3px; margin-top: 1.4rem; }
.section-head.is-centered .rule { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 100px; border: 2px solid transparent;
  font-weight: 600; font-size: .97rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-dark); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: var(--navy-dark); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--onDark { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn--onDark:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--wa { background: #25d366; color: #06301a; }
.btn--wa:hover { background: #1eb85a; }
.btn .ic { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 248, 243, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11,26,44,.06); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; border-radius: 8px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
/* :not(.nav__cta) tiene fuori il pulsante WhatsApp e il numero di telefono:
   altrimenti questa regola batte .btn per specificità e li appiattisce. */
.nav__list > li:not(.nav__cta) > a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease, background-color .15s ease;
}
.nav__list > li:not(.nav__cta) > a:hover { color: var(--navy); background: rgba(0, 64, 122, .06); }
.nav__list > li > a[aria-current="page"], .nav__list > li > a.is-active { color: var(--navy); font-weight: 600; }
.nav__cta { display: none; }

/* Su desktop l'ultima voce ("Contattaci") prende l'aspetto di un pulsante:
   una sola voce nel menu, ma senza lasciare l'intestazione spoglia. */
.nav__list > li.nav__accent > a {
  margin-left: .5rem;
  padding: .62rem 1.25rem;
  border-radius: 100px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.nav__list > li.nav__accent > a:hover {
  background: var(--navy-dark);
  color: #fff;
}

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  /* il trattamento a pulsante vale solo su desktop */
  .nav__list > li.nav__accent > a {
    margin-left: 0; padding: 1.15rem .25rem;
    border-radius: 0; background: transparent; color: rgba(255, 255, 255, .92);
  }

  /* A menu aperto l'intestazione diventa navy e si salda al pannello:
     il logo ha già lo sfondo navy, quindi il riquadro sparisce e resta
     solo la scritta. */
  body.menu-open .site-header { background: var(--navy); border-bottom-color: transparent; box-shadow: none; }
  body.menu-open .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .35); }

  /* .site-header ha backdrop-filter, quindi è il blocco contenitore di questo
     elemento fixed: con bottom:0 l'altezza si calcolerebbe sui 74px
     dell'intestazione e il pannello collasserebbe. Altezza esplicita. */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    margin: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .26s ease, transform .26s ease, visibility 0s linear .26s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .26s ease, transform .26s ease, visibility 0s;
  }

  .nav .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.75rem 1.75rem .5rem;
    flex: 1;
  }

  .nav__list > li:not(.nav__cta) { position: relative; }
  .nav__list > li:not(.nav__cta) + li:not(.nav__cta)::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: rgba(255, 255, 255, .13);
  }
  .nav__list > li:not(.nav__cta) > a {
    display: block;
    padding: 1.15rem .25rem;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .92);
    transition: color .18s ease;
  }
  .nav__list > li:not(.nav__cta) > a:hover,
  .nav__list > li:not(.nav__cta) > a:active { background: transparent; color: var(--gold); }

  /* pagina corrente: filetto oro sotto la voce, come l'evidenziazione del sito */
  .nav__list > li > a[aria-current="page"],
  .nav__list > li > a.is-active { color: var(--gold); }
  .nav__list > li > a[aria-current="page"]::after,
  .nav__list > li > a.is-active::after {
    content: '';
    display: block;
    width: 34px; height: 3px;
    margin: .5rem auto 0;
    border-radius: 3px;
    background: var(--gold);
  }

  /* blocco contatti in fondo */
  .nav__cta {
    display: block;
    margin-top: auto;
    padding: 1.5rem 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .16);
    text-align: center;
  }
  .nav__cta .btn { width: 100%; font-size: 1rem; padding: 1rem 1.2rem; }
  .nav__cta .nav__phone {
    display: block;
    margin-top: 1rem;
    font-size: .95rem;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
  }
  .nav__cta .nav__phone strong { color: #fff; font-weight: 600; }
  .nav__social {
    display: flex; justify-content: center; gap: .7rem;
    margin-top: 1.25rem;
  }
  .nav__social a {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    display: grid; place-items: center; color: #fff;
    transition: background-color .18s ease, border-color .18s ease;
  }
  .nav__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
  .nav__social svg { width: 19px; height: 19px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,28,55,.62) 0%, rgba(0,28,55,.42) 42%, rgba(0,28,55,.78) 100%);
}
.hero__inner { max-width: 720px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  text-shadow: 0 2px 26px rgba(0, 20, 40, .38);
}
.hero p {
  margin-top: 1.4rem; font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,.93); max-width: 60ch;
  text-shadow: 0 1px 14px rgba(0, 20, 40, .35);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
@media (max-width: 560px) {
  .hero__actions { gap: .7rem; }
  .hero__actions .btn { width: 100%; }
}
/* su schermi stretti è meglio un pulsante su due righe che uno tagliato */
@media (max-width: 620px) {
  .btn { white-space: normal; }
}

/* ---------- amenities strip ---------- */
.amenities { background: var(--navy); color: #fff; padding: 2.2rem 0; }
.amenities__grid {
  display: grid; gap: 1.25rem 1rem;
  /* 120px tiene due colonne anche a 320px di larghezza */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  text-align: center;
}
.amenity { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.amenity svg { width: 26px; height: 26px; color: var(--gold); }
.amenity span { font-size: .88rem; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.9); }

/* ---------- room cards ---------- */
.rooms-grid {
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.room-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .28s ease, box-shadow .28s ease;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* <picture> è un blocco ad altezza automatica: senza questa regola
   height:100% sull'<img> non si risolve, object-fit non entra mai in gioco
   e l'immagine resta alla sua proporzione naturale dentro il contenitore. */
.hero__bg picture,
.room-card__media picture,
.feature__media picture,
.place__media picture,
.room-slider__viewport picture { display: block; width: 100%; height: 100%; }

.room-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover .room-card__media img { transform: scale(1.05); }
.room-card__body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.room-card__body h3 { font-size: 1.4rem; color: var(--navy); }
.room-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .85rem 0 1.2rem; }
.tag {
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  padding: .28rem .65rem; border-radius: 100px;
  background: var(--sand); color: var(--ink-soft);
}
.room-card__more {
  margin-top: auto; font-weight: 600; font-size: .94rem; color: var(--navy);
  display: inline-flex; align-items: center; gap: .4rem;
}
.room-card__more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.room-card:hover .room-card__more svg { transform: translateX(4px); }

/* ---------- alternating feature rows ---------- */
.feature {
  display: grid; align-items: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
}
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--sand); }
.feature__media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; aspect-ratio: 4/3; }
.feature__body h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); color: var(--navy); }
.feature__body p { margin-top: 1rem; color: var(--ink-soft); }
.feature__note {
  margin-top: 1.25rem; padding-left: 1rem; border-left: 3px solid var(--gold);
  font-size: .93rem; color: var(--ink-faint);
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

/* ---------- itinerary ---------- */
.itinerary-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.place {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
.place:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.place__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.place__media img { width: 100%; height: 100%; object-fit: cover; }
.place__body { padding: 1.5rem 1.5rem 1.75rem; }
.place__body h3 { font-size: 1.32rem; color: var(--navy); }
.place__body p { margin-top: .8rem; font-size: .95rem; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery {
  columns: 3 260px; column-gap: 14px;
}
.gallery__item {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: var(--sand); box-shadow: var(--shadow-sm); break-inside: avoid;
  transition: transform .28s ease, box-shadow .28s ease;
}
.gallery__item img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery__item:hover { box-shadow: var(--shadow-md); }
.gallery__item:hover img { transform: scale(1.04); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 14, 26, .94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .18s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: clamp(1rem, 3vw, 2rem); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .85rem; letter-spacing: .06em;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr 1.15fr; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item__ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
}
.contact-item__ic svg { width: 20px; height: 20px; }
.contact-item dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.contact-item dd { margin: .15rem 0 0; font-size: 1.05rem; font-weight: 500; }
.contact-item dd a { text-decoration: none; color: var(--navy); border-bottom: 1px solid rgba(0,64,122,.25); }
.contact-item dd a:hover { border-bottom-color: var(--navy); }
.contact-item small { display: block; color: var(--ink-faint); font-size: .86rem; font-weight: 400; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.badge-24h {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(37, 211, 102, .12); color: #0d7a3c;
  border: 1px solid rgba(37, 211, 102, .3);
  padding: .35rem .8rem; border-radius: 100px;
  font-size: .82rem; font-weight: 600;
}
.badge-24h::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #25d366; }

/* form */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: .4rem; }
.form-card > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; }
.field .req { color: #c2410c; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 64, 122, .12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-card button[type="submit"] { width: 100%; margin-top: .4rem; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; font-size: .93rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: rgba(37, 211, 102, .12); color: #0d6b36; border: 1px solid rgba(37, 211, 102, .3); }
.form-status.is-err { background: rgba(220, 38, 38, .08); color: #b02020; border: 1px solid rgba(220, 38, 38, .25); }
.form-fallback { margin-top: 1.25rem; font-size: .88rem; color: var(--ink-faint); text-align: center; }
.form-fallback a { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; }
.site-footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer img.footer-logo { height: 46px; width: auto; margin-bottom: 1.1rem; border-radius: 8px; }
.site-footer p { font-size: .92rem; max-width: 42ch; }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .muted { display: block; font-size: .8rem; color: rgba(255,255,255,.62); margin-top: .1rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.site-footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(37, 211, 102, .55); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- room detail page ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 4.5rem); }
.page-hero .back {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  color: rgba(255,255,255,.8); margin-bottom: 1.5rem;
}
.page-hero .back:hover { color: var(--gold); }
.page-hero .back svg { width: 16px; height: 16px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { margin-top: .9rem; color: rgba(255,255,255,.82); max-width: 60ch; }

.room-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1.55fr 1fr; align-items: start; }
/* Senza min-width:0 un elemento di griglia non scende sotto la larghezza
   minima del suo contenuto: il pulsante nowrap più lungo allargava l'intera
   colonna oltre il viewport, trascinandosi dietro anche lo slider. */
.room-layout > *, .contact-grid > *, .feature > * { min-width: 0; }
@media (max-width: 900px) { .room-layout { grid-template-columns: 1fr; } }

.room-slider { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--sand); position: relative; }
.room-slider__viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.room-slider__viewport::-webkit-scrollbar { display: none; }
.room-slider__viewport figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.room-slider__viewport img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }
.room-slider__nav { position: absolute; inset: 0; pointer-events: none; }
.room-slider__nav button {
  pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background-color .18s ease;
}
.room-slider__nav button:hover { background: #fff; }
.room-slider__nav button svg { width: 20px; height: 20px; }
.room-slider__nav .prev { left: 12px; }
.room-slider__nav .next { right: 12px; }
.room-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.room-thumbs button {
  flex: none; width: 84px; height: 62px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--sand); opacity: .62;
  transition: opacity .18s ease, border-color .18s ease;
}
.room-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.room-thumbs button.is-active, .room-thumbs button:hover { opacity: 1; border-color: var(--navy); }

.room-specs { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .room-specs { position: static; } }
.room-specs h2 { font-size: 1.3rem; color: var(--navy); margin-bottom: 1.1rem; }
.room-specs ul { display: grid; gap: .7rem; list-style: none; padding: 0; margin: 0 0 1.6rem; }
.room-specs li { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; }
.room-specs li svg { width: 19px; height: 19px; flex: none; margin-top: .22rem; color: #17a34a; }
.room-specs .btn { width: 100%; }
.room-specs .btn + .btn { margin-top: .6rem; }

.other-rooms { border-top: 1px solid var(--line); }

/* ---------- legal / prose ---------- */
.prose h2 { font-size: 1.6rem; color: var(--navy); margin: 2.5rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0; padding-left: 1.3rem; list-style: disc; display: grid; gap: .5rem; }
.prose a { color: var(--navy); }
.prose .updated { font-size: .88rem; color: var(--ink-faint); margin-bottom: 2rem; }

/* ---------- reveal on scroll ---------- */
/* La comparsa graduale si attiva solo se il JavaScript è vivo: la classe .js
   la mette lo script inline nell'head. Senza, il contenuto resta visibile
   invece di sparire per sempre a opacity 0. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
