/* Dimora Conte: inchiostro e carta, grottesco leggero */

:root {
  /* fondo avorio caldo e fasce sabbia, come negli stampati della casa */
  --ground: #f6f1e9;
  --ground-2: #ede5d9;
  --sand: #d6c3aa;
  --sand-deep: #c9b393;
  --text: #1b2536;
  --text-soft: #555e6c;
  --rule: rgba(27, 37, 54, .14);

  /* fogli: carta più chiara appoggiata sul fondo */
  --sheet: #fffcf7;
  --sheet-rule: #e4dacb;

  /* azione di prenotazione: inchiostro blu notte */
  --cta: #1b2536;
  --cta-press: #0e1522;
  --on-cta: #fffcf7;


  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 300;
  --display-track: -.035em;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --band: clamp(72px, 10vw, 136px);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--sand-deep) var(--ground);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--cta);
}

::selection { background: var(--text); color: var(--sheet); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: var(--display-weight);
  line-height: 1.04;
  letter-spacing: var(--display-track);
  margin: 0 0 .55em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; background: var(--sheet); color: var(--text);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 48px; }

/* ---------- Monogramma ---------- */
.emboss::before {
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
}
.logo { display: block; flex: none; width: 46px; height: 34px; object-fit: contain; }

/* monogramma stampato tono su tono, senza finti rilievi */
.emboss { position: relative; display: block; flex: none; }
.emboss::before { content: ""; position: absolute; inset: 0; background: var(--emb-face); }

.emboss-map { --emb-face: var(--sand-deep); }
.emboss-footer { --emb-face: var(--text); }
.emboss-paper { --emb-face: var(--sheet-rule); }

/* motivo a monogramma ripetuto, come negli stampati */
.pattern { position: relative; isolation: isolate; }
.pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sand-deep);
  opacity: .32;
  -webkit-mask: url("../img/logo.png") 0 0 / 46px 34px repeat;
  mask: url("../img/logo.png") 0 0 / 46px 34px repeat;
  pointer-events: none;
}

/* ---------- Pulsanti e link ---------- */
.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--cta);
  color: var(--on-cta);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.btn-book:active { transform: scale(.97); }
.btn-book:focus-visible { outline-color: var(--text); }
@media (hover: hover) and (pointer: fine) { .btn-book:hover { background: var(--cta-press); } }

.text-btn,
.text-link {
  padding: 4px 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.text-link { color: var(--text); font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .text-btn:hover { text-decoration-thickness: 2px; }
  .text-link:hover { text-decoration-thickness: 2px; }
}

.outline-btn,
.strip-btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.outline-btn:active, .strip-btn:active { transform: scale(.97); }
.outline-btn { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .outline-btn:hover { background: var(--text); color: var(--ground); }
}

/* ---------- Intestazione ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--text);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header {
  background: rgba(246, 241, 233, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.is-solid { box-shadow: 0 1px 0 var(--rule); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; text-decoration: none; }
.brand-name { font-size: .86rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-soft);
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); }
}
.nav .nav-book { color: var(--text); padding: 6px 0 6px 26px; border-left: 1px solid var(--rule); }
.nav .nav-book::after { left: 26px; background: var(--cta); transform: scaleX(1); height: 2px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; }
.lang button {
  min-width: 36px;
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--text); }

.menu-toggle { display: none; }

@media (max-width: 1120px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 40px;
    background: var(--ground);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility 0s .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
  .nav a {
    padding: 16px 0;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -.02em;
    color: var(--text);
    border-bottom: 1px solid var(--rule);
  }
  .nav a::after { display: none; }
  .nav .nav-book { padding: 16px 0; border-left: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--cta); text-underline-offset: 8px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0 0 12px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
  }
}
@media (max-width: 480px) {
  .brand-name { font-size: .76rem; letter-spacing: .22em; }
  .logo { width: 38px; height: 28px; }
  .header-inner { gap: 12px; }
}

/* ---------- Primo schermo ---------- */
.hero {
  --photo-w: 56;
  --content-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  top: var(--header-h);
  right: 0;
  width: calc(var(--photo-w) * 1%);
  bottom: clamp(120px, 17vh, 170px);
  margin: 0;
  z-index: -1;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

.hero-grid {
  position: relative;
  min-height: inherit;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + clamp(24px, 6vh, 64px));
  padding-bottom: clamp(28px, 5vh, 48px);
}
.letterhead {
  /* la colonna del testo finisce sempre almeno 32px prima della foto */
  max-width: calc(100vw - var(--photo-w) * 1vw - var(--content-left) - 32px);
  align-self: center;
  padding-bottom: 24px;
}
.letterhead-line {
  margin: 0 0 1.4em;
  padding-bottom: 1.1em;
  border-bottom: 1px solid var(--rule);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-variant-numeric: lining-nums;
}
.hero h1 {
  font-size: clamp(3.2rem, min(6.8vw, 12vh), 6.4rem);
  font-weight: 200;
  line-height: .96;
  letter-spacing: -.045em;
  margin-bottom: .4em;
}
.hero-lead { max-width: 30ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--text-soft); margin: 0; }

/* il cartoncino di risposta */
.reply-card {
  position: relative;
  width: min(100%, 980px);
  padding: 30px 36px 24px;
  background: var(--sheet);
  color: var(--text);
  box-shadow: 0 14px 30px -16px rgba(74, 54, 28, .28), 0 1px 3px rgba(74, 54, 28, .1);
}
.reply-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--text);
}
.reply-fields {
  display: grid;
  grid-template-columns: 1fr 1fr .8fr auto;
  gap: 24px;
  align-items: end;
}
.field { display: grid; gap: 2px; min-width: 0; }
.field label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 300;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::-webkit-date-and-time-value { text-align: left; }
.field input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.field select {
  padding-right: 26px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231b2536' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 11px 7px;
}
.field select option { font-family: var(--sans); color: var(--text); background: var(--sheet); }
.field input:focus,
.field select:focus { outline: none; box-shadow: 0 2px 0 0 var(--cta); border-bottom-color: var(--cta); }

.reply-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 24px;
  margin-top: 14px;
  font-size: .86rem;
  color: var(--text-soft);
}
.reply-foot p { margin: 0; }
.nights { font-weight: 600; color: var(--text); margin-right: .5em; }
.nights:empty { display: none; }
.reply-alt { display: flex; align-items: baseline; gap: 14px; }
.reply-alt .text-btn { color: var(--text); font-size: .86rem; }
.form-error { margin: 10px 0 0; color: #a3301f; font-size: .9rem; font-weight: 600; }

/* entrata: la foto si apre, il cartoncino si posa */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: photo-open 1.3s var(--ease-expo) both; }
  .hero h1 { animation: rise .9s var(--ease-out) .15s both; }
  .letterhead-line { animation: rise .9s var(--ease-out) .22s both; }
  .hero-lead { animation: rise .9s var(--ease-out) .3s both; }
  .reply-card { animation: settle .9s var(--ease-expo) .45s both; }
}
@keyframes photo-open {
  from { opacity: .45; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: .4; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: .5; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .hero { --photo-w: 52; }
  .reply-fields { grid-template-columns: 1fr 1fr .8fr; }
  .btn-book { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-photo {
    position: relative;
    top: auto;
    width: 100%;
    margin-top: var(--header-h);
    height: min(26svh, 220px);
    min-height: 170px;
    bottom: auto;
  }
  .hero-grid { padding-top: 22px; margin-top: 0; }
  .letterhead { max-width: none; padding-bottom: 16px; }
  .letterhead-line { margin-bottom: .8em; padding-bottom: .8em; letter-spacing: .14em; }
  .reply-card { padding: 18px 20px 16px; }
  .reply-title { margin-bottom: 10px; }
  .reply-fields { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .field-guests { grid-column: 1 / -1; }
  .field input { font-size: 1.08rem; }
  .field input::-webkit-calendar-picker-indicator { margin-left: 0; padding: 0; width: 14px; }
  .btn-book { width: 100%; }
  .reply-foot { flex-direction: column; }
}

/* ---------- Fasce e fogli ---------- */
.band { padding: var(--band) 0; }
.band-letter + .band-rooms,
.band-info + .band-contact { padding-top: calc(var(--band) * .5); }
.band-guests { background: var(--ground-2); }
.band-contact { background: var(--ground-2); }
.sheet {
  position: relative;
  background: var(--sheet);
  color: var(--text);
  border: 1px solid var(--sheet-rule);
}

/* la lettera */
.letter {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 6vw, 88px);
}
.letter h2 { max-width: 15ch; }
.salutation { font-size: 1.2rem; font-weight: 400; margin: 1.6em 0 .8em; }
.letter-body > p:not(.salutation):not(.postscript) { color: var(--text-soft); max-width: 56ch; }
.signoff { margin-top: 2em; }
.signoff p { margin: 0; color: var(--text-soft); }
.dateline { font-size: .9rem; }
.signature {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  letter-spacing: -.03em;
  line-height: 1.2;
  padding-bottom: 4px;
  color: var(--text) !important;
}
.postscript {
  margin: 2.4em 0 0;
  padding-top: 1.2em;
  border-top: 1px solid var(--sheet-rule);
  font-size: .95rem;
  color: var(--text-soft);
  max-width: 56ch;
}
.letter-photo { margin: 0; align-self: center; }
.letter-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.letter-photo figcaption { margin-top: 12px; font-size: .88rem; color: var(--text-soft); }
.emboss-paper { position: absolute; right: clamp(28px, 4vw, 56px); bottom: clamp(24px, 3vw, 40px); width: 64px; height: 47px; }
@media (max-width: 860px) {
  .letter { grid-template-columns: 1fr; }
  .letter-photo { order: -1; }
  .letter-photo img { aspect-ratio: 4 / 3; }
  .emboss-paper { display: none; }
}

/* ---------- Le camere ---------- */
.band-rooms { padding-bottom: 0; }
.rooms-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.rooms-intro > p { color: var(--text-soft); max-width: 40ch; font-size: 1.08rem; }
.inventory { margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--rule); color: var(--text-soft); }
.inventory-title {
  margin-bottom: 12px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
}
.inventory ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
  font-size: .95rem;
}
.inventory li { padding: 5px 0; break-inside: avoid; }

.room-list { display: grid; gap: 20px; }
.room-type { padding: clamp(28px, 4vw, 48px); }
.room-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.room-head h3 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 300; letter-spacing: -.03em; }
.room-count {
  margin: 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}
.room-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px 28px;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--sheet-rule);
}
.room-facts dt {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.room-facts dd { margin: 4px 0 0; font-size: 1.1rem; font-weight: 400; }

@media (max-width: 860px) {
  .rooms-grid { grid-template-columns: 1fr; }
  .inventory ul { columns: 1; }
}

/* provini fotografici */
.photos { margin-top: var(--band); padding-bottom: var(--band); }
.photos-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.photos-head h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.strip-controls { display: flex; gap: 10px; }
.strip-btn { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .strip-btn:hover { background: var(--text); color: var(--ground); }
  .lightbox .strip-btn:hover { background: #f6f1e9; color: #12100d; }
}
.strip-btn:disabled { opacity: .35; cursor: default; }

.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--sand-deep) transparent;
  overscroll-behavior-x: contain;
}
.strip:focus-visible { outline-offset: -2px; }
.shot {
  flex: none;
  height: clamp(260px, 34vw, 440px);
  padding: 0;
  border: 0;
  background: var(--ground-2);
  scroll-snap-align: start;
  cursor: zoom-in;
  overflow: hidden;
}
.shot img { height: 100%; width: auto; transition: transform .7s var(--ease-out), filter .4s ease; filter: saturate(.92); }
@media (hover: hover) and (pointer: fine) {
  .shot:hover img { transform: scale(1.03); filter: none; }
}
@media (max-width: 600px) {
  .photos-head { align-items: start; flex-direction: column; }
}

/* ---------- Libro degli ospiti ---------- */
.register {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px);
  padding: clamp(40px, 6vw, 88px);
}
.register-head h2 { margin-bottom: .4em; }
.register-score { display: flex; align-items: baseline; gap: 14px; margin-bottom: 2em; color: var(--text-soft); }
.score-big {
  font-size: clamp(3.6rem, 5.4vw, 4.8rem);
  font-weight: 200;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: lining-nums;
}

.ledger { margin: 0; display: grid; gap: 2px; font-size: .95rem; }
.ledger > div { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.ledger dt { color: inherit; }
.ledger dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  order: 3;
}
.ledger > div::after {
  /* puntini di guida, come in un indice */
  content: "";
  order: 2;
  flex: 1;
  border-bottom: 1px dotted currentColor;
  opacity: .45;
  transform: translateY(-4px);
}
.register .ledger { color: var(--text-soft); }
.register .ledger dd { color: var(--text); }

.entries { list-style: none; margin: 0; padding: 0; }
.entries li { padding: 26px 0; border-top: 1px solid var(--sheet-rule); }
.entries li:first-child { padding-top: 0; border-top: 0; }
.entries blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.01em;
  max-width: 48ch;
}
.entries li:first-child blockquote { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.35; letter-spacing: -.025em; }
.entry-sign {
  margin: 12px 0 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
@media (max-width: 860px) { .register { grid-template-columns: 1fr; } }

/* ---------- L'isola ---------- */
.island { position: relative; min-height: 760px; display: flex; align-items: flex-end; overflow: hidden; }
.island-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island-inner { position: relative; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 80px); }
.island-slip { max-width: 520px; padding: clamp(32px, 4vw, 52px); }
.island-slip h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.island-slip > p { color: var(--text-soft); margin: 0; }
@media (max-width: 600px) {
  .island { display: block; min-height: 0; }
  .island-img { position: relative; height: 320px; }
  .island-inner { padding: 0 var(--gutter); margin-top: -64px; padding-bottom: var(--band); }
}

/* ---------- I nostri consigli ---------- */
.band-guide { padding-top: var(--band); }
.guide-title { max-width: 18ch; margin-bottom: clamp(32px, 5vw, 56px); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px) clamp(32px, 6vw, 96px);
}
.guide-item { padding-top: 22px; border-top: 1px solid var(--text); }
.guide-item h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 300; letter-spacing: -.025em; margin-bottom: .6em; }
.guide-item p { color: var(--text-soft); max-width: 58ch; }
.guide-item ul { list-style: none; margin: 0 0 1em; padding: 0; }
.guide-item li { padding: 7px 0 7px 22px; position: relative; }
.guide-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 1px;
  background: var(--text);
}
.guide-note { font-size: .92rem; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- Foglio informativo ---------- */
.info { padding: clamp(40px, 6vw, 88px); }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); margin-top: 12px; }
.info-block { padding-top: 20px; border-top: 1px solid var(--text); }
.info-block h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: .5em; }
.info-block p { font-size: .95rem; color: var(--text-soft); }
.info-big {
  font-size: 1.5rem !important;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--text) !important;
  font-variant-numeric: lining-nums;
}
.rules { list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--text-soft); }
.rules li { padding: 4px 0; }
.season { margin: clamp(28px, 4vw, 44px) 0 0; font-size: 1.05rem; color: var(--text-soft); }
@media (max-width: 1000px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "text map" "dir map";
  gap: clamp(32px, 4vw, 56px) clamp(36px, 6vw, 96px);
  align-items: start;
}
.contact-text { grid-area: text; }
.map { grid-area: map; }
.directions { grid-area: dir; }
.directions h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -.02em; margin-bottom: .4em; }
.directions h3 + .directions-lead { margin-top: -.2em; }
.directions-lead { color: var(--text-soft); font-size: .95rem; }
.directions ol { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }
.directions ol li { position: relative; padding: 8px 0 8px 40px; counter-increment: step; }
.directions ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
}
.directions p { color: var(--text-soft); max-width: 52ch; }
.contact-text address { font-style: normal; font-size: 1.05rem; color: var(--text-soft); margin-bottom: 28px; }
.contact-list { margin: 0 0 28px; }
.contact-list > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.contact-list > div:last-child { border-bottom: 1px solid var(--rule); }
.contact-list dt { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.contact-list dd { margin: 2px 0 0; font-size: 1.4rem; font-weight: 300; letter-spacing: -.02em; }
.contact-list a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; } }

.map { position: relative; aspect-ratio: 4 / 3; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--sheet-rule); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }
.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
  font-size: .92rem;
  color: var(--text-soft);
}
.map-consent p { max-width: 34ch; margin: 0; }
.emboss-map { width: 88px; height: 65px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; grid-template-areas: "text" "dir" "map"; } }

/* ---------- Piede ---------- */
.site-footer { padding: clamp(56px, 8vw, 96px) 0 calc(40px + env(safe-area-inset-bottom)); background: var(--sand); color: var(--text); }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: 10px; }
.emboss-footer { width: 120px; height: 88px; margin-bottom: 8px; }
.footer-name { margin: 0; font-size: .9rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.footer-legal { margin: 0; font-size: .82rem; line-height: 1.8; color: var(--text); }

/* ---------- Galleria a schermo intero ---------- */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(18, 16, 13, .96);
  color: #f6f1e9;
}
.lightbox .strip-btn { color: #f6f1e9; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; gap: 18px; align-items: center; justify-items: center; }
.lightbox::backdrop { background: rgba(18, 16, 13, .96); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; min-height: 0; }
.lightbox img { max-width: min(92vw, 1200px); max-height: calc(100dvh - 150px); object-fit: contain; }
.lightbox figcaption { font-size: .9rem; color: rgba(246, 241, 233, .7); font-variant-numeric: lining-nums; }
.lb-controls { display: flex; gap: 10px; }
.lightbox[open] img { animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Pagina privacy ---------- */
.legal { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); }
.legal-sheet { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); }
.legal-back { display: inline-block; margin-bottom: 28px; font-size: .9rem; }
.legal-sheet h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 300; letter-spacing: -.035em; margin-bottom: .5em; }
.legal-sheet h2 {
  margin: 2.2em 0 .6em;
  padding-top: 1.1em;
  border-top: 1px solid var(--sheet-rule);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.legal-sheet h3 { margin: 1.4em 0 .4em; font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.legal-sheet ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal-sheet li { margin-bottom: .4em; }
.legal-sheet a:not(.text-link) { color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--text-soft); }
.legal-date { margin-top: 2.4em; font-size: .86rem; color: var(--text-soft); }
.footer-legal a { color: inherit; text-underline-offset: 4px; }
.stay-note a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Disponibilità e richiesta ---------- */
html:has(dialog[open]) { overflow: hidden; }
.stay {
  width: min(100% - 32px, 760px);
  max-width: none;
  max-height: min(92dvh, 940px);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--sheet);
  color: var(--text);
  box-shadow: 0 30px 60px -24px rgba(27, 37, 54, .45), 0 2px 6px rgba(27, 37, 54, .12);
  overscroll-behavior: contain;
}
.stay::backdrop { background: rgba(27, 37, 54, .42); }
.stay[open] { animation: stay-in .45s var(--ease-expo); }
.stay[open]::backdrop { animation: fade-in .3s ease; }
@keyframes stay-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.stay-sheet { padding: clamp(24px, 4vw, 44px); }
.stay-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sheet-rule);
}
.stay-kicker {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.stay-dates {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.035em;
  font-variant-numeric: lining-nums;
}
.stay-meta { grid-column: 1; margin: 4px 0 0; color: var(--text-soft); font-variant-numeric: lining-nums; }
.stay-change { grid-column: 2; grid-row: 2; color: var(--text); font-size: .86rem; justify-self: end; }

.stay-status { margin: 22px 0 0; color: var(--text); max-width: 56ch; }
.stay-status.is-loading { color: var(--text-soft); }
.stay-status.is-loading::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, var(--text) 50%, transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: stay-scan 1.2s ease-in-out infinite;
}
@keyframes stay-scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.stay-form fieldset { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.stay-form .stay-contact { margin-top: 32px; }
.stay-form legend {
  padding: 0;
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
#stay-rooms { display: grid; gap: 10px; }
.room-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--sheet-rule);
  background: var(--sheet);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.room-opt input {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.room-opt input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  transform: scale(0);
  transition: transform .18s var(--ease-out);
}
.room-opt input:checked::before { transform: scale(1); }
.room-opt input:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.room-opt:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
@media (hover: hover) and (pointer: fine) {
  .room-opt:not(.is-off):hover { border-color: var(--text); }
}
.room-opt.is-off { cursor: default; background: transparent; }
.room-opt.is-off .room-opt-body, .room-opt.is-off input { opacity: .45; }
.room-opt-body { display: grid; gap: 2px; min-width: 0; }
.room-opt-name { font-size: 1.15rem; font-weight: 400; letter-spacing: -.015em; }
.room-opt-detail { font-size: .86rem; color: var(--text-soft); font-variant-numeric: lining-nums; }
.room-opt-price { display: grid; justify-items: end; line-height: 1.15; text-align: right; }
.room-opt-price strong { font-size: 1.5rem; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.room-opt-from { font-size: .78rem; color: var(--text-soft); font-variant-numeric: lining-nums; }

.stay-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.stay-fields .field:first-child, .field-wide { grid-column: 1 / -1; }
.stay-fields .field input { font-size: 1.1rem; height: 44px; }
.field textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 300 1.05rem/1.5 var(--sans);
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea:focus { outline: none; box-shadow: 0 2px 0 0 var(--cta); border-bottom-color: var(--cta); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.stay-form .form-error { margin-top: 18px; }
.stay-form .form-error a { color: inherit; text-underline-offset: 4px; }
.stay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.stay-actions .btn-book:disabled { opacity: .6; cursor: progress; }
.stay-note { flex: 1 1 260px; margin: 0; font-size: .84rem; color: var(--text-soft); }

.stay-done { padding-top: 26px; }
.stay-done-title { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 300; letter-spacing: -.03em; }
.stay-done p { max-width: 52ch; }
.stay-done .outline-btn { margin-top: 10px; }

@media (max-width: 760px) {
  .stay {
    width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
  }
  .stay[open] { animation-name: stay-up; }
  @keyframes stay-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .stay-sheet { padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
  .stay-head { grid-template-columns: 1fr; }
  .stay-change { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .room-opt { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px; }
  .room-opt-price { grid-column: 2; justify-items: start; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .stay-fields { grid-template-columns: 1fr; }
  .stay-fields .field input { font-size: 16px; }
  .field textarea { font-size: 16px; }
  .stay-actions .btn-book { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .stay[open], .stay[open]::backdrop { animation: none; }
  .stay-status.is-loading::after { animation: none; background: var(--rule); }
}

/* ---------- Comparsa dei fogli ---------- */
.js-reveal .reveal { opacity: .4; transform: translateY(16px); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
  .hero-photo, .hero h1, .letterhead-line, .hero-lead, .reply-card { animation: none !important; }
}
