@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f8f6;
  --surface: #fbfdfc;
  --surface-2: #e6efec;
  --surface-3: #d9e7e2;
  --ink: #102e34;
  --muted: #526b70;
  --soft: #526b70;
  --line: #bdcfca;
  --control-line: #708985;
  --accent: #1555c8;
  --accent-hover: #0e43a2;
  --on-accent: #f7faff;
  --header: rgb(245 248 246 / 88%);
  --shadow: 0 24px 70px rgb(25 60 68 / 12%);
  --radius: 26px;
  --radius-small: 14px;
  --shell: 1320px;
  --header-height: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d2025;
  --surface: #13292f;
  --surface-2: #19353a;
  --surface-3: #214249;
  --ink: #ecf4f2;
  --muted: #b3c7c4;
  --soft: #94ada9;
  --line: #36565b;
  --control-line: #78979b;
  --accent: #8db4ff;
  --accent-hover: #b4ceff;
  --on-accent: #0c2344;
  --header: rgb(13 32 37 / 90%);
  --shadow: 0 24px 70px rgb(0 8 10 / 30%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d2025;
    --surface: #13292f;
    --surface-2: #19353a;
    --surface-3: #214249;
    --ink: #ecf4f2;
    --muted: #b3c7c4;
    --soft: #94ada9;
    --line: #36565b;
    --control-line: #78979b;
    --accent: #8db4ff;
    --accent-hover: #b4ceff;
    --on-accent: #0c2344;
    --header: rgb(13 32 37 / 90%);
    --shadow: 0 24px 70px rgb(0 8 10 / 30%);
  }
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Aptos", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

/* il browser applica di suo margin-inline-start: 40px ai dd: senza questo
   le didascalie di .facts e delle distanze restano rientrate rispetto al termine */
dd {
  margin-inline-start: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

p {
  color: var(--muted);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: clamp(82px, 10vw, 148px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px) saturate(130%);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 32px rgb(16 46 52 / 8%);
}

.header-sentinel {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-nav {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand small {
  margin-top: 3px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-panel,
.nav-links,
.nav-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.nav-panel {
  flex: 1;
  justify-content: flex-end;
  gap: clamp(24px, 4vw, 64px);
}

.nav-links {
  gap: clamp(18px, 2.2vw, 34px);
}

.nav-links a,
.footer-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  gap: 10px;
}

.language-switch {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch button {
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.theme-toggle {
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 26px rgb(21 85 200 / 18%);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: var(--accent-hover);
  box-shadow: 0 14px 30px rgb(21 85 200 / 24%);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-small {
  min-height: 44px;
  padding: 11px 17px;
  font-size: 0.84rem;
}

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--accent);
}

.hero {
  display: grid;
  min-height: calc(100dvh - var(--header-height));
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding-block: clamp(36px, 6vw, 76px);
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8.5ch;
  font-size: clamp(3.35rem, 6.8vw, 6.7rem);
  line-height: 0.91;
}

.hero-lead {
  max-width: 510px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: calc(100dvh - 148px);
  margin: 0;
  aspect-ratio: 1.18 / 1;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 0;
}

.facts dl > div {
  min-width: 0;
  padding: 24px clamp(12px, 2.5vw, 34px);
}

.facts dl > div + div {
  border-left: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.facts dd {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.intro h2,
.rooms h2,
.breakfast h2,
.location h2,
.reviews h2,
.services h2,
.booking h2 {
  font-size: clamp(2.8rem, 5.7vw, 5.8rem);
}

/* la prima frase e' un'affermazione, la seconda il seguito: stessa colonna,
   due pesi diversi */
.intro-main p {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.intro-main p + p {
  max-width: 880px;
  margin-top: 4px;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
}

.rooms {
  overflow: hidden;
  padding-bottom: clamp(92px, 11vw, 160px);
  background: var(--surface-2);
}

.rooms-heading {
  position: relative;
  padding-bottom: clamp(42px, 5vw, 72px);
}

.rooms-heading h2 {
  max-width: 920px;
}

.rooms-heading > p {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: 1.08rem;
}

.rail-controls {
  position: absolute;
  right: 0;
  bottom: clamp(42px, 5vw, 72px);
  display: flex;
  gap: 10px;
}

.rail-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.rail-controls button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.rail-controls button:disabled {
  opacity: 0.42;
  cursor: default;
}

.room-rail {
  display: grid;
  grid-auto-columns: min(82vw, 1040px);
  grid-auto-flow: column;
  gap: clamp(18px, 2.5vw, 36px);
  overflow-x: auto;
  /* 100% e non 100vw: 100vw include la barra di scorrimento, quindi il carosello
     risultava disallineato di ~8px rispetto al titolo di sezione qui sopra */
  padding-right: max(24px, calc((100% - var(--shell)) / 2));
  padding-bottom: 12px;
  padding-left: max(24px, calc((100% - var(--shell)) / 2));
  scroll-padding-inline: max(24px, calc((100% - var(--shell)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

.room {
  display: grid;
  overflow: hidden;
  min-width: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.72fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 48px rgb(25 60 68 / 7%);
  scroll-snap-align: start;
}

.room > img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.room-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 58px);
}

.room-meta {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.room h3 {
  font-size: clamp(2.45rem, 4vw, 4.5rem);
}

.room-copy > p:not(.room-meta) {
  margin: 24px 0 34px;
  font-size: 1rem;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.amenities li {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.amenities li:not(:last-child)::after {
  margin-left: 12px;
  color: var(--line);
  content: "/";
}

.breakfast {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: stretch;
  gap: clamp(18px, 3vw, 42px);
}

.breakfast-media {
  overflow: hidden;
  min-height: 680px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.breakfast-media img {
  height: 100%;
  object-fit: cover;
}

.breakfast-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5.4vw, 78px);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.breakfast-copy > p {
  margin: 30px 0;
  font-size: 1.06rem;
}

.breakfast-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  list-style: none;
}

.breakfast-list li {
  position: relative;
  padding-left: 18px;
  font-weight: 700;
}

.breakfast-list li::before {
  position: absolute;
  top: 0.73em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.breakfast blockquote {
  margin: 44px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.breakfast blockquote p {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.breakfast cite,
.review-quote cite {
  color: var(--soft);
  font-size: 0.78rem;
  font-style: normal;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: clamp(42px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.location-copy > p {
  max-width: 650px;
  margin: 28px 0 50px;
  font-size: 1.06rem;
}

.distance-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.distance-groups h3 {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.distance-groups dl {
  margin-bottom: 0;
}

.distance-groups dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.distance-groups dt {
  color: var(--ink);
  font-size: 0.86rem;
}

.distance-groups dd {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.map-wrap {
  overflow: hidden;
  min-height: 650px;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 650px;
  border: 0;
}

:root[data-theme="dark"] .map-wrap iframe {
  filter: grayscale(0.25) brightness(0.78) contrast(1.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map-wrap iframe {
    filter: grayscale(0.25) brightness(0.78) contrast(1.08);
  }
}

.reviews {
  display: grid;
  grid-template-columns: minmax(230px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(50px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.reviews h2 {
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 4vw, 46px);
}

.review-score,
.review-card {
  display: grid;
  align-content: start;
  margin: 0;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.review-score-value {
  margin: 0;
  color: var(--accent);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.review-score-value small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0;
}

.review-score-label {
  margin: 16px 0 0;
  font-weight: 600;
}

.review-score-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.review-stars {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  color: #e0a92b;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.review-mark {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.review-headline {
  margin: 0;
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.review-card cite {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.86rem;
  font-style: normal;
}

.review-card .review-source {
  color: var(--muted);
  font-size: 0.8rem;
}

.review-quote p {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(1.85rem, 3.8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.review-note {
  grid-column: 2;
  max-width: 620px;
  margin: -100px 0 0;
  padding: 0 clamp(34px, 5vw, 72px) 28px;
  font-size: 0.76rem;
}

.services {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(54px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.services-heading h2 {
  font-size: clamp(2.8rem, 4.9vw, 5rem);
}

.services-heading p {
  margin: 28px 0 0;
  font-size: 1.06rem;
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
}

.service-group {
  border-top: 3px solid var(--accent);
}

.service-group > h3 {
  padding: 24px 0 34px;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.service-group article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-group h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service-group p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  margin-bottom: clamp(72px, 9vw, 132px);
  padding: clamp(42px, 6vw, 88px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.booking h2 {
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.booking-copy > p {
  margin: 28px 0 0;
  font-size: 1.02rem;
}

.booking-copy .demo-note {
  color: var(--soft);
  font-size: 0.78rem;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 54px rgb(25 60 68 / 9%);
}

.booking-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.booking-form label span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-small);
  background: var(--bg);
  color: var(--ink);
  padding-inline: 14px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.booking-form input:focus,
.booking-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(21 85 200 / 14%);
}

.booking-form label:nth-child(3),
.booking-form .button {
  grid-column: span 2;
}

.booking-form .button {
  margin-top: 4px;
}

.site-footer {
  padding: clamp(68px, 8vw, 112px) 0 28px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr) auto;
  gap: clamp(36px, 7vw, 100px);
}

.footer-brand > p {
  max-width: 450px;
  margin: 24px 0 0;
}

.footer-contact p {
  margin-bottom: 8px;
  color: var(--ink);
}

.footer-contact p + p {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 28px;
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.asset-note {
  max-width: 650px;
}

.asset-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.legal-links {
  display: flex;
  gap: 16px;
  font-size: 0.72rem;
}

.booking-dialog {
  width: min(calc(100% - 32px), 560px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.booking-dialog::backdrop {
  background: rgb(8 26 31 / 58%);
  backdrop-filter: blur(7px);
}

.booking-dialog > div {
  padding: clamp(30px, 6vw, 64px);
}

.dialog-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.booking-dialog h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.booking-dialog p:not(.dialog-mark) {
  margin: 24px 0 30px;
}

body.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 17px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .theme-toggle {
    padding-inline: 8px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .room {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  }

  .room > img {
    min-height: 520px;
  }
}

@media (max-width: 900px) {
  /* un elemento con backdrop-filter diventa blocco contenitore per i figli position:fixed:
     con il blur attivo .nav-panel calcolava inset dentro l'header (72px) e restava alto 0px,
     cioe' il menu non compariva. Su mobile header opaco e niente blur. */
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 52;
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    padding: 42px 24px 30px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    display: grid;
    align-content: start;
    gap: 0;
  }

  .nav-links a {
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.8rem, 7vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .nav-actions .button {
    width: 100%;
    margin-top: 8px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 7.6vw, 5.5rem);
  }

  .breakfast {
    grid-template-columns: 1fr;
  }

  .breakfast-media {
    min-height: 560px;
  }

  .location,
  .reviews,
  .services,
  .booking {
    grid-template-columns: 1fr;
  }

  .review-note {
    grid-column: 1;
    margin: -78px 0 0;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 520px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 66px;
    --radius: 20px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .section {
    padding-block: 78px;
  }

  .site-nav {
    min-height: var(--header-height);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 44px 36px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .hero-lead {
    margin: 22px 0 26px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .hero-media {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .hero-media img {
    object-position: 44% center;
  }

  .facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts dl > div {
    padding: 20px 16px;
  }

  .facts dl > div:nth-child(3) {
    border-left: 0;
  }

  .facts dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .facts dd {
    font-size: 0.78rem;
  }

  .intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
  }

  .intro h2,
  .rooms h2,
  .breakfast h2,
  .location h2,
  .reviews h2,
  .services h2,
  .booking h2 {
    font-size: clamp(2.55rem, 11.5vw, 4.1rem);
  }

  .intro-main p {
    margin-top: 24px;
    font-size: 1.08rem;
  }

  .rooms-heading {
    padding-bottom: 34px;
  }

  .rooms-heading > p {
    margin-top: 22px;
  }

  .rail-controls {
    position: static;
    margin-top: 26px;
  }

  .room-rail {
    grid-auto-columns: calc(100vw - 32px);
    gap: 14px;
    padding-right: 16px;
    padding-left: 16px;
    scroll-padding-inline: 16px;
  }

  .room {
    grid-template-columns: 1fr;
  }

  .room > img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .room-copy {
    padding: 28px 24px 32px;
  }

  .room h3 {
    font-size: 2.65rem;
  }

  .room-copy > p:not(.room-meta) {
    margin: 18px 0 26px;
  }

  .breakfast {
    gap: 14px;
  }

  .breakfast-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .breakfast-copy {
    padding: 34px 24px;
  }

  .location {
    gap: 44px;
  }

  .location-copy > p {
    margin: 24px 0 36px;
  }

  .distance-groups,
  .service-groups {
    grid-template-columns: 1fr;
  }

  .distance-groups {
    gap: 34px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 420px;
  }

  .reviews,
  .services {
    gap: 42px;
  }

  .review-quote {
    padding: 30px 24px 80px;
  }

  .review-quote p {
    font-size: clamp(1.75rem, 8.7vw, 2.7rem);
  }

  .review-note {
    margin: -84px 0 0;
    padding: 0 24px 24px;
  }

  .booking {
    width: min(calc(100% - 32px), var(--shell));
    gap: 38px;
    padding: 34px 20px 20px;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .booking-form label:nth-child(3),
  .booking-form .button {
    grid-column: 1;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: start;
    gap: 20px;
    margin-top: 52px;
  }

  .footer-nav {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 3.15rem;
  }

  .button {
    width: 100%;
  }

  .facts dt {
    font-size: 1.18rem;
  }

  .amenities li:not(:last-child)::after {
    margin-left: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-media img,
  .room > img,
  .breakfast-media img {
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-media:hover img,
  .room:hover > img,
  .breakfast-media:hover img {
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
  }

  .booking-dialog::backdrop {
    backdrop-filter: none;
  }
}

@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* quinta scheda del carosello: l'alternativa "tutte e quattro le camere",
   che i dati Booking mostrano essere una richiesta reale */
/* colori fissi, non i token del tema: in modalità notte --ink diventa chiaro e la scheda
   si invertiva in bianca. Resta scura in entrambe le modalità */
.room-whole {
  border-color: #102e34;
  background: #102e34;
  color: #f5f8f6;
}

.room-whole .room-meta {
  color: #c5d8d4;
}

.room-whole .room-copy > p {
  color: #c5d8d4;
}

.room-whole h3 {
  color: #f5f8f6;
}

.room-whole .button {
  margin-top: 20px;
  background: #f5f8f6;
  color: #102e34;
}

/* di notte tutte le schede sono scure: il bordo azzurro distingue questa */
:root[data-theme="dark"] .room-whole {
  border-color: rgb(141 180 255 / 55%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .room-whole {
    border-color: rgb(141 180 255 / 55%);
  }
}

.room-whole .button:hover {
  background: #fff;
}

.room-whole-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ---------- Go-live: prenotazione senza motore, consenso cookie, mappa su richiesta, privacy ---------- */

.booking-dialog h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.booking-dialog .dialog-summary {
  margin: 16px 0 26px;
  font-weight: 700;
}

.dialog-actions {
  display: grid;
  gap: 12px;
}

.dialog-actions .button {
  width: 100%;
}

.booking-dialog .dialog-note {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.dialog-actions .text-link {
  justify-self: center;
  margin-top: 8px;
}

.button-outline {
  border: 1px solid var(--control-line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--surface-2);
  box-shadow: none;
}

.dialog-close,
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.dialog-close {
  display: block;
  margin: 26px auto 0;
  color: var(--muted);
}

.map-consent {
  display: grid;
  min-height: inherit;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}

.map-consent p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
}

.map-consent .map-consent-place {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 6px;
}

.consent {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  max-width: 520px;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.consent p {
  margin: 0;
}

.consent a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--accent);
}

.consent-actions {
  display: flex;
  gap: 10px;
}

.consent-actions .button {
  flex: 1;
}

html[lang="en"] [data-legal-lang="it"],
html[lang="it"] [data-legal-lang="en"] {
  display: none;
}

.legal-body {
  max-width: 76ch;
}

.legal-body h2 {
  margin: 44px 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.legal-body li {
  margin-bottom: 10px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.legal-body table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-body th,
.legal-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  color: var(--muted);
  font-weight: 700;
}

.notfound {
  display: grid;
  min-height: 100dvh;
  place-content: center;
  justify-items: start;
  gap: 18px;
}

.footer-legal p + p {
  margin-top: 4px;
  color: var(--muted);
}

/* la colonna del testo legale non si allarga per la tabella (elemento di griglia) */
.legal-body {
  min-width: 0;
}

/* su telefono la tabella dei cookie diventa una scheda per riga: niente da scorrere di lato */
@media (max-width: 640px) {
  .legal-body table {
    min-width: 0;
  }

  .legal-body thead {
    display: none;
  }

  .legal-body table,
  .legal-body tbody,
  .legal-body tr,
  .legal-body td {
    display: block;
    width: 100%;
  }

  .legal-body tr {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
  }

  .legal-body td {
    padding: 4px 0;
    border: 0;
  }

  .legal-body td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
  }
}
