/* =========================================================
   La Collezione — App Demo
   ========================================================= */
:root {
  --brown: #5A5040;
  --brown-90: #5A5040E6;
  --brown-80: #5A5040CC;
  --bg: #F6F5F4;
  --card: #FFFFFF;
  --muted: #E6E6E2;
  --ink-soft: #DADADA;
  --theme: var(--brown);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --f-display: "Playfair Display", Georgia, serif;
  --f-ui: "Figtree", system-ui, sans-serif;
  --f-body: "Poppins", system-ui, sans-serif;
  --f-pill: "Geist", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--brown); }
body {
  font-family: var(--f-ui);
  color: var(--brown);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
img { display: block; max-width: 100%; -webkit-user-drag: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

html[data-mode="landing"] #app { display: none; }
html[data-mode="app"] #landing { display: none; }

/* ---------- Shared bits ---------- */
.kicker {
  margin: 0;
  font: 400 15px/18px var(--f-ui);
  letter-spacing: .05em;
  text-align: center;
  color: var(--brown);
}
.kicker--light { color: #fff; }
.display {
  margin: 0;
  font: italic 400 40px/48px var(--f-display);
  color: #fff;
  text-align: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  font: 600 15px/18px var(--f-ui);
  letter-spacing: .01em;
  transition: transform .25s var(--ease-out), background-color .3s, opacity .3s;
}
.btn:active { transform: scale(.97); }
.btn--block { width: 100%; }
.btn--solid { background: var(--brown); color: #fff; }
.btn--outline { box-shadow: inset 0 0 0 1px var(--brown); color: var(--brown); }
.btn--white { background: #fff; color: var(--brown); }
.btn--ghost { box-shadow: inset 0 0 0 1px #fff; color: #fff; }

.btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 20px;
  border-radius: 5px;
  font: 400 15px/18px var(--f-body);
  white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .3s;
}
.btn-sm:active { transform: scale(.96); }
.btn-sm--solid { background: var(--brown); color: #fff; font-weight: 500; }
.btn-sm--outline { box-shadow: inset 0 0 0 1px var(--brown); }
.btn-sm--light { box-shadow: inset 0 0 0 1px #fff; color: #fff; }

.logo-row {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(4px, 2.5vw, 14px);
}
.logo-row img { width: clamp(52px, min(17vw, 8dvh), 72px); height: auto; aspect-ratio: 1; object-fit: contain; }

/* =========================================================
   LANDING — DEMO DOWNLOAD (sempre 100dvh, niente scroll)
   ========================================================= */
.landing {
  position: fixed; inset: 0;
  height: 100vh; height: 100dvh;
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #5A5040 7%, #9C958B 62%, var(--bg) 100%);
}
@media (min-width: 481px) {
  body:has(#landing) { background: #2E2920; }
}
.landing__shade {
  position: absolute; inset: 0; z-index: 1;
  background: #00000080;
  opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease-soft);
}
.landing[data-step="howto"] .landing__shade { opacity: 1; }

.landing__top {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(6px, 1.6dvh, 16px);
  padding: calc(var(--safe-top) + clamp(16px, 4dvh, 48px)) 28px clamp(28px, 4dvh, 44px);
  color: #fff; text-align: center;
  justify-content: safe center;
  animation: fadeIn 1.2s var(--ease-soft) both;
}
.landing[data-step="howto"] .landing__top { justify-content: flex-start; }
.landing__studio-logo { width: 80px; height: auto; margin-bottom: clamp(2px, 1dvh, 10px); }
.landing__studio-title { margin: 0; font: 600 clamp(17px, 2.6dvh, 20px)/1.2 var(--f-ui); }
.landing__studio-text { margin: 0; font: 400 clamp(12px, 1.75dvh, 15px)/1.22 var(--f-ui); max-width: 380px; }
.landing__studio-text a { text-decoration: none; border-bottom: 1px solid #ffffff66; }

.landing__sheet {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: clamp(20px, 4dvh, 36px) 20px calc(max(var(--safe-bottom), 12px) + clamp(14px, 3dvh, 30px));
  box-shadow: 0 -20px 50px #00000014;
  animation: sheetRise 1.1s var(--ease-out) .15s both;
  transition: height .7s var(--ease-sheet);
  overflow: hidden;
}
.landing__vde { width: 68px; height: auto; flex: none; margin-bottom: clamp(14px, 3.6dvh, 38px); }

.landing__panel { width: 100%; display: flex; flex-direction: column; align-items: center; }
.landing__panel--intro { gap: 0; }
.landing__panel--intro .kicker { margin-bottom: clamp(4px, 1dvh, 10px); }
.landing__title {
  margin: 0 0 clamp(16px, 4dvh, 40px);
  font: italic 400 clamp(32px, 5.2dvh, 40px)/1.2 var(--f-display);
  text-align: center;
}
.landing__panel--intro .logo-row { margin-bottom: clamp(18px, 4.4dvh, 42px); }
.landing__panel.is-entering { animation: panelIn .6s var(--ease-out) both; }

/* how-to */
.landing__panel--howto { flex: 1; min-height: 0; }
.landing__panel--howto .kicker { margin-bottom: 18px; }
.segmented {
  position: relative;
  display: grid; grid-template-columns: 100px 190px; gap: 10px;
  margin-bottom: clamp(16px, 3dvh, 28px);
}
.segmented button {
  position: relative; z-index: 1;
  height: 38px; border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--brown);
  font: 400 15px/18px var(--f-body);
  transition: color .35s var(--ease-soft);
}
.segmented button[aria-selected="true"] { color: #fff; }
.segmented__thumb {
  position: absolute; top: 0; left: 0; height: 38px; width: 100px;
  background: var(--brown); border-radius: 5px;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.steps-wrap { width: 100%; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.steps { list-style: none; margin: 0 auto; padding: 0 6px; max-width: 380px; display: grid; gap: clamp(8px, 1.8dvh, 16px); }
.steps-wrap { scrollbar-width: none; }
.steps-wrap::-webkit-scrollbar { display: none; }
.steps li.steps__note { display: block; margin-top: 2px; padding-left: 46px; font-size: 12px; line-height: 1.4; opacity: .75; }
.steps li {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center;
  font: 400 14px/1.4 var(--f-body);
  opacity: 0; transform: translateY(10px);
  animation: stepIn .6s var(--ease-out) forwards;
}
.steps li:nth-child(1) { animation-delay: .15s; }
.steps li:nth-child(2) { animation-delay: .25s; }
.steps li:nth-child(3) { animation-delay: .35s; }
.steps li:nth-child(4) { animation-delay: .45s; }
.steps li:nth-child(5) { animation-delay: .55s; }
.landing[data-step="howto"] .landing__vde { margin-bottom: clamp(12px, 2.4dvh, 24px); }
.landing__panel--howto .kicker { margin-bottom: clamp(12px, 2dvh, 18px) !important; }
.steps b { font-weight: 500; }
.steps__n {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--brown);
  font: 500 14px/1 var(--f-ui);
}
.chip {
  display: inline-grid; place-items: center; vertical-align: -6px;
  width: 26px; height: 24px; border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px #5A504026;
}
.chip svg { width: 16px; height: 16px; fill: var(--brown); stroke: var(--brown); }
.chip svg[fill="none"] { fill: none; }
.landing__actions { width: 100%; display: grid; gap: 10px; padding-top: 16px; flex: none; }

/* =========================================================
   APP SHELL
   Spazi verticali presi dai frame (iPhone 18 Pro Max, 440×956):
   contenuti in alto a 80px dal bordo, tab bar e pop-up a 30px dal fondo.
   ========================================================= */
/* iOS 26 (web app da Home): il viewport finisce sopra la barra home e il colore
   sotto la status bar viene preso dal body. --app-h = altezza reale dello schermo (JS),
   il body prende il colore dell'header corrente. */
html[data-mode="app"] { background: var(--bg); height: var(--app-h, 100%); overflow: hidden; overscroll-behavior: none; }
html[data-mode="app"] body { background: var(--body-bg, #5A5040); height: var(--app-h, 100%); overflow: hidden; overscroll-behavior: none; }
.app {
  --top: max(80px, calc(var(--safe-top) + 18px));
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--app-h, 100vh);
  max-width: 480px; margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}
@media (min-width: 481px) {
  html[data-mode="app"], html[data-mode="app"] body { background: #2E2920; }
}

/* ---------- Splash (statico) ---------- */
.splash {
  position: absolute; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--brown);
}
.splash__logo { width: 150px; height: auto; }
.splash__props { position: absolute; left: 0; right: 0; bottom: max(70px, calc(var(--safe-bottom) + 40px)); display: flex; justify-content: center; gap: 14px; }
.splash__props img { width: 46px; height: 46px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.splash.is-out { display: none; }

/* ---------- Onboarding (First access) ---------- */
.onboarding {
  position: absolute; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: #222;
  transition: opacity .8s var(--ease-soft);
}
.onboarding.is-out { opacity: 0; pointer-events: none; }
.onboarding__bg { position: absolute; inset: 0 0 auto; height: 82%; overflow: hidden; }
.onboarding__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); animation: kenburns 14s var(--ease-soft) both; }
.onboarding__shade { position: absolute; inset: 0 0 auto; height: 200px; background: linear-gradient(180deg, #5A5040 20%, #5A504000 100%); }
.onboarding__logo { position: absolute; top: var(--top); left: 50%; translate: -50% 0; width: 68px; z-index: 2; }
.onboarding__hero {
  position: relative; z-index: 1;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 24px;
  padding: calc(var(--top) + 70px) 20px 19dvh;
  transition: padding .8s var(--ease-sheet);
}
.onboarding:not([data-step="welcome"]) .onboarding__hero { padding-bottom: 9dvh; }
.onboarding__sheet {
  position: relative; z-index: 2; flex: none;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 36px 20px 30px;
  overflow: hidden;
  animation: sheetRise 1.2s var(--ease-out) .2s both;
  transition: height .8s var(--ease-sheet);
}
.onboarding__sheet.is-full { border-radius: 0; }
.ob-panel { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ob-panel .logo-row { margin-bottom: 44px; }
.ob-panel.is-entering > * { animation: panelIn .7s var(--ease-out) both; }
.ob-panel.is-entering > *:nth-child(2) { animation-delay: .06s; }
.ob-panel.is-entering > *:nth-child(3) { animation-delay: .12s; }
.ob-panel.is-entering > *:nth-child(4) { animation-delay: .18s; }
.ob-icon { width: 40px; height: 40px; margin-top: 6px; }
.ob-title { margin: 24px 0 0; font: 600 20px/24px var(--f-ui); letter-spacing: .02em; }
.ob-text { margin: 20px 0 44px; font: 400 12px/16px var(--f-ui); max-width: 360px; }

.reveal-up { opacity: 0; transform: translateY(14px); animation: revealUp 1.1s var(--ease-out) calc(.35s + var(--d, 0s)) forwards; }

/* ---------- Schermate e pagine: header fisso + contenuto che scorre ---------- */
/* Tra le sezioni della tab bar il cambio è netto; le pagine aperte scorrono da destra. */
.screens, .stack { position: absolute; inset: 0; }
.screens { transition: transform .55s var(--ease-sheet), filter .55s; }
.screens.is-covered { transform: translateX(-28%); filter: brightness(.82); }
.stack { z-index: 20; pointer-events: none; }
.screen { position: absolute; inset: 0; background: var(--bg); display: none; }
.screen.is-active { display: block; z-index: 1; }
.page {
  position: absolute; inset: 0; z-index: 1; isolation: isolate;
  background: var(--bg); pointer-events: auto;
  transform: translateX(100%);
  transition: transform .55s var(--ease-sheet), filter .55s;
  box-shadow: -10px 0 40px #00000026;
}
.page.is-in { transform: translateX(0); }
.page.is-covered { transform: translateX(-28%); filter: brightness(.82); }

.scroll {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  padding-bottom: 130px;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }

.head { position: absolute; top: 0; left: 0; right: 0; z-index: 10; pointer-events: none; }
.head > * { pointer-events: auto; }
.head__shade {
  position: absolute; top: 0; left: 0; right: 0; height: var(--h, 200px); pointer-events: none;
  background: linear-gradient(180deg, var(--theme) 0, var(--theme) var(--solid, 20%), color-mix(in srgb, var(--theme) 0%, transparent) 100%);
}
.head__title {
  position: absolute; left: 0; right: 0; top: var(--top);
  margin: 0; text-align: center; pointer-events: none;
  font: 500 20px/24px var(--f-body); color: #fff; letter-spacing: .02em;
}
.head__title--btn { top: calc(var(--top) + 7px); }
.head__logo { position: absolute; left: 50%; top: var(--top); translate: -50% 0; width: 68px; pointer-events: none; }
.head__crest { position: absolute; left: 50%; top: var(--top); translate: -50% 0; height: 100px; width: auto; max-width: 140px; object-fit: contain; pointer-events: none; }
.head__crest--png { filter: brightness(0) invert(1); height: 104px; }
.head .pills { position: absolute; left: 0; right: 0; top: calc(var(--top) + 40px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #3b342a; }
.hero__img { position: absolute; inset: 0; will-change: transform; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--dim img { filter: brightness(.78); }
.hero__fadein { position: absolute; left: 0; right: 0; top: -1px; height: 80px; background: linear-gradient(180deg, var(--bg) 0%, #F6F5F400 100%); pointer-events: none; z-index: 1; }
.hero-caption {
  position: absolute; left: 0; right: 0; z-index: 2;
  text-align: center; color: #fff;
  font: 400 clamp(13px, 3.55vw, 15px)/18px var(--f-ui); letter-spacing: .05em;
  padding: 0 12px;
}

/* search pills */
.pills { z-index: 2; display: flex; gap: 8px; padding: 0 22px; }
.pill {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--brown-80);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font: 500 14px/18px var(--f-pill);
  white-space: nowrap; flex: none;
}
.pill svg { width: 15px; height: 15px; flex: none; }
.pill--search { flex: 1 1 auto; min-width: 0; padding: 0 12px; gap: 8px; font-weight: 400; }
.pill--search input {
  all: unset; flex: 1; min-width: 0;
  font: 400 14px/18px var(--f-pill); color: #fff;
  text-overflow: ellipsis;
  -webkit-user-select: text; user-select: text;
}
.pill--search input::placeholder { color: #fff; opacity: 1; }
.pill--search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Horizontal cards ---------- */
.hscroll {
  position: relative; z-index: 3;
  display: flex; gap: 7px;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  padding: 0 20px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hscroll > * { scroll-snap-align: start; flex: none; }
.hscroll::after { content: ""; flex: 0 0 13px; }

.tile { width: 200px; padding: 10px 10px 14px; background: var(--card); border-radius: 10px; text-align: left; }
.tile__img { height: 100px; border-radius: 5px; overflow: hidden; background: var(--muted); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__title { margin: 10px 3px 4px; font: 600 15px/18px var(--f-ui); }
.tile__text { margin: 0 3px; font: 400 12px/16px var(--f-ui); }

.event { width: 195px; padding: 10px 10px 16px; border-radius: 10px; text-align: left; }
.event.is-featured { background: var(--muted); }
.event__img { height: 110px; border-radius: 5px; overflow: hidden; }
.event__img img { width: 100%; height: 100%; object-fit: cover; }
.event__meta { display: flex; justify-content: space-between; margin: 20px 3px 5px; font: 400 10px/12px var(--f-ui); letter-spacing: .02em; }
.event__meta i { font-weight: 300; }
.event__title { margin: 0 3px; font: 400 15px/18px var(--f-display); }

.section-title { margin: 37px 20px 22px; font: italic 400 25px/30px var(--f-display); }
.section-title--caps { font-style: normal; text-transform: uppercase; margin-left: 30px; }

.prop-card { width: 250px; height: 310px; border-radius: 10px; overflow: hidden; position: relative; color: #fff; text-align: left; }
.prop-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prop-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #00000000 55%, #00000099 100%); }
.prop-card b { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; font: italic 400 24px/28px var(--f-display); }

/* ---------- Home ---------- */
.home-hero { height: 450px; }
.home-hero .hero-caption { bottom: 43px; }
.home-cards { margin-top: -22px; }

/* ---------- Listings (Stay / Eat & Drink) ---------- */
.list-hero { height: 500px; }
.listing { position: relative; }
.listing + .listing { margin-top: 50px; }
.listing__media { position: relative; height: 300px; overflow: hidden; }
.listing__card { position: relative; z-index: 3; margin: -44px 20px 0; padding: 38px 20px 21px; background: var(--card); border-radius: 10px; }
.listing__badge {
  position: absolute; left: 50%; top: -47px; translate: -50% 0;
  width: 80px; height: 80px; padding: 5px; border-radius: 10px;
  background: #fff; box-shadow: 0 0 5px #0000001A;
}
.listing__badge img { width: 100%; height: 100%; object-fit: contain; }
.listing__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.listing__name { margin: 0; font: italic 400 25px/30px var(--f-display); }
.listing__keys { display: flex; padding-top: 2px; }
.listing__keys img { width: 15px; height: 18px; }
.listing__place { margin: 2px 0 0; font: 400 10px/14px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.listing__text { margin: 10px 0 0; font: 300 12px/16px var(--f-body); }
.listing__actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 27px; }
.listing__actions .right { display: flex; gap: 11px; }
.listing__actions .btn-sm--outline { min-width: 66px; }
.listing--compact .listing__card { padding-top: 20px; margin-top: -36px; }
.listing--compact .listing__badge { left: auto; right: 26px; translate: 0 0; top: -16px; width: 50px; height: 50px; padding: 3px; border-radius: 6px; }
.listing--compact .listing__name { padding-right: 56px; }
.listing--compact .listing__text { margin-top: 15px; }
.listing--compact .listing__actions { margin-top: 25px; }
.list-hero--compact { height: 340px; }
.empty { padding: 40px 30px; text-align: center; font: italic 400 20px/26px var(--f-display); opacity: .7; }

/* ---------- Back button ---------- */
.back-btn {
  position: absolute; z-index: 5; left: 20px; top: var(--top);
  height: 38px; padding: 0 20px; border-radius: 5px;
  box-shadow: inset 0 0 0 1px #fff; color: #fff;
  font: 400 15px/18px var(--f-body);
  background: #00000014;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.back-btn--icon { width: 38px; padding: 0; display: grid; place-items: center; top: calc(var(--top) - 7px); border-radius: 50%; }
.back-btn--icon svg { width: 18px; height: 18px; }

/* ---------- Property page ---------- */
.prop-hero { height: 450px; }
.prop-cards { margin-top: -22px; }
.prop-quote { margin: 54px auto 0; padding: 0 36px; max-width: 420px; text-align: center; font: italic 400 25px/30px var(--f-display); }
.room { width: 260px; text-align: left; }
.room__img { height: 170px; border-radius: 10px; overflow: hidden; }
.room__img img { width: 100%; height: 100%; object-fit: cover; }
.room__name { margin: 12px 4px 2px; font: italic 400 18px/22px var(--f-display); }
.room__meta { margin: 0 4px; font: 400 11px/14px var(--f-body); opacity: .8; }
.prop-cta { padding: 40px 20px 0; display: grid; gap: 10px; }
.prop-cta .btn { background: var(--theme); }
.prop-cta .btn--outline { background: none; box-shadow: inset 0 0 0 1px var(--theme); color: var(--theme); }

/* ---------- Event page ---------- */
.ev-hero { height: 450px; }
.ev-body { position: relative; z-index: 3; margin: -44px 20px 0; padding: 28px 20px 24px; background: var(--card); border-radius: 10px; }
.ev-kicker { margin: 0; display: flex; justify-content: space-between; font: 400 10px/12px var(--f-ui); letter-spacing: .08em; }
.ev-title { margin: 12px 0 0; font: italic 400 30px/36px var(--f-display); }
.ev-date { margin: 10px 0 0; font: 500 13px/18px var(--f-ui); }
.ev-lead { margin: 22px 0 0; font: italic 400 18px/24px var(--f-display); }
.ev-text { margin: 14px 0 0; font: 300 13px/19px var(--f-body); }
.ev-sub { margin: 28px 0 10px; font: 500 12px/16px var(--f-body); letter-spacing: .04em; text-transform: uppercase; }
.ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #5A504022; }
.ev-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #5A504022; font: 400 13px/18px var(--f-body); }
.ev-list li b { font: 500 13px/18px var(--f-ui); }
.ev-contact { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-contact .btn-sm { width: 100%; }
.ev-cta { padding: 24px 20px 0; display: grid; gap: 10px; }

/* ---------- Discover ---------- */
.disc-section { position: relative; }
.disc-section + .disc-section { margin-top: 30px; }
.disc-section__media { position: relative; height: 250px; overflow: hidden; }
.disc-section:first-child .disc-section__media { height: 350px; }
.disc-label { position: absolute; left: 0; right: 0; bottom: 45px; z-index: 2; text-align: center; color: #fff; font: 600 15px/18px var(--f-ui); letter-spacing: .05em; }
.disc-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -27px 20px 0; }
.disc-tile { padding: 10px 10px 16px; background: var(--card); border-radius: 10px; text-align: left; }
.disc-tile__img { aspect-ratio: 175 / 120; border-radius: 5px; overflow: hidden; }
.disc-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.disc-tile__label { display: block; margin: 14px 3px 0; font: 500 15px/18px var(--f-ui); text-transform: uppercase; }

/* ---------- Menu ---------- */
.menu-hero { height: 300px; margin-bottom: -58px; }
.menu-label { position: relative; z-index: 3; margin: 0 30px 7px; font: 500 12px/16px var(--f-body); color: var(--brown); }
.menu-label--light { color: #fff; }
.menu-note { margin: -5px 30px 7px; font: 400 10px/12px var(--f-body); }
.menu-group { position: relative; z-index: 3; display: grid; gap: 10px; margin: 0 20px 30px; }
.menu-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; min-height: 100px; padding: 10px; border-radius: 10px; background: var(--card); text-align: left; }
.menu-row__img { height: 80px; border-radius: 5px; overflow: hidden; }
.menu-row__img img { width: 100%; height: 100%; object-fit: cover; }
.menu-row__title { display: block; font: 500 18px/22px var(--f-ui); text-transform: uppercase; }
.menu-row__text { display: block; margin-top: 7px; font: 400 12px/16px var(--f-body); }
.menu-row--text { grid-template-columns: 1fr auto; min-height: 57px; padding: 0 17px; }
.menu-row--text .menu-row__title { font-weight: 400; text-transform: none; }
.menu-row--text small { font: 400 12px/16px var(--f-body); opacity: .7; }
.menu-foot { margin: 10px 20px 0; padding: 30px 0 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font: 400 11px/16px var(--f-body); }
.menu-foot__logos { display: flex; align-items: center; gap: 18px; }
.menu-foot__logos i { width: 1px; height: 34px; background: #5A504040; }
.menu-foot__vde { width: 56px; }
.menu-foot__2442 { width: 64px; }
.menu-foot button { text-decoration: underline; text-underline-offset: 3px; font-size: 11px; opacity: .7; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: absolute; z-index: 30;
  left: 50%; bottom: 30px;
  translate: -50% 0;
  width: 325px; height: 64px; padding: 0 6px;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme) 90%, transparent);
  border: 1px solid #FFFFFF29;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--theme) 35%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
}
.tabbar.is-hidden { display: none; }
.tabbar__thumb { position: absolute; left: 6px; top: 5px; width: 74px; height: 52px; border-radius: 999px; background: #FFFFFF1F; }
.tab {
  position: relative; z-index: 1;
  width: 74px; height: 52px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-soft);
  font: 500 13px/16px var(--f-ui);
}
.tab svg { width: 20px; height: 20px; }
.tab.is-active { color: #F4F5F6; }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop { position: absolute; inset: 0; z-index: 70; background: #1d18104d; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-soft); }
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; z-index: 71;
  left: 10px; right: 10px; bottom: 30px;
  max-height: calc(100% - var(--top) - 30px);
  display: flex; flex-direction: column;
  border-radius: 40px;
  background: var(--brown-90);
  border: 1px solid #FFFFFF29;
  box-shadow: 0 10px 30px #5A504059;
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  color: #fff;
  transform: translateY(calc(100% + 60px));
  transition: transform .6s var(--ease-sheet);
  touch-action: none;
}
.sheet.is-open { transform: translateY(0); }
.sheet.is-dragging { transition: none; }
.sheet__handle { display: block; flex: none; width: 50px; height: 5px; margin: 7px auto 0; border-radius: 999px; background: #DADADA80; }
.sheet__body { overflow-y: auto; overscroll-behavior: none; padding: 19px 19px 22px; touch-action: pan-y; scrollbar-width: none; }
.sheet__body > * { animation: panelIn .55s var(--ease-out) both; }
.sheet__body > *:nth-child(2) { animation-delay: .05s; }
.sheet__body > *:nth-child(3) { animation-delay: .1s; }
.sheet__body > *:nth-child(4) { animation-delay: .15s; }
.sheet__body > *:nth-child(n+5) { animation-delay: .2s; }
.sh-title { margin: 6px 0 0; text-align: center; font: 500 20px/24px var(--f-ui); }
.sh-name { margin: 6px 0 0; text-align: center; font: italic 400 30px/36px var(--f-display); }
.sh-sub { margin: 26px 0 0; text-align: center; font: 400 15px/18px var(--f-body); white-space: pre-wrap; }
.sh-text { margin: 18px 6px 0; text-align: center; font: 300 13px/19px var(--f-body); }
.sh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 30px; }
.sh-actions .btn { height: 50px; }
.sh-actions .btn--white { grid-column: 1 / -1; margin-bottom: 4px; }
.sh-actions--single { grid-template-columns: 1fr; }
.sh-rows { margin-top: 36px; display: grid; gap: 10px; }
.sh-row { display: grid; grid-template-columns: 1fr 70px 70px; gap: 6px; align-items: center; padding-left: 7px; }
.sh-row__name { font: 500 clamp(16px, 4.6vw, 20px)/24px var(--f-ui); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-row__name small { display: block; font: 400 11px/14px var(--f-body); text-transform: none; opacity: .75; }
.sh-row--single { grid-template-columns: 1fr 70px; }
.icon-btn { height: 50px; border-radius: 999px; display: grid; place-items: center; }
.icon-btn svg { width: 25px; height: 25px; }
.icon-btn--white { background: #fff; }
.icon-btn--ghost { box-shadow: inset 0 0 0 1px #fff; }
.sh-kicker { text-align: center; font: 400 11px/14px var(--f-ui); letter-spacing: .1em; opacity: .85; }
.wifi-state { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; font: 400 14px/18px var(--f-body); }
.wifi-state .dot { width: 8px; height: 8px; border-radius: 50%; background: #ffffff66; }
.wifi-state.is-on .dot { background: #9BD28B; box-shadow: 0 0 0 4px #9BD28B33; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ffffff55; border-top-color: #fff; animation: spin .8s linear infinite; }

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 90; left: 50%; top: calc(var(--top) - 10px);
  translate: -50% 0;
  max-width: calc(100% - 40px);
  padding: 12px 18px; border-radius: 999px;
  background: var(--brown-90); color: #fff;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid #FFFFFF29;
  font: 400 13px/17px var(--f-body); text-align: center;
  box-shadow: 0 10px 30px #00000030;
  transform: translateY(-20px); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translateY(0); opacity: 1; }

/* ---------- Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-soft), transform 1s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Feedback al tocco ---------- */
.tile, .event, .room, .disc-tile, .prop-card, .menu-row, .pill, .btn-sm, .back-btn, .icon-btn { transition: transform .3s var(--ease-out); }
.tile:active, .event:active, .room:active, .disc-tile:active, .prop-card:active { transform: scale(.975); }
.menu-row:active { transform: scale(.98); }
.pill:active, .btn-sm:active, .back-btn:active, .icon-btn:active { transform: scale(.95); }

/* ---------- Keyframes ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetRise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes stepIn { to { opacity: 1; transform: none; } }
@keyframes revealUp { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Small heights (iPhone SE / mini con barre Safari) ---------- */
@media (max-height: 640px) {
  .landing__studio-text br:first-of-type { display: none; }
  .onboarding__hero { gap: 14px; }
  .display { font-size: 34px; line-height: 40px; }
}
@media (max-height: 600px) {
  .landing__studio-logo { width: 64px; }
  .landing__top { gap: 6px; padding-top: calc(var(--safe-top) + 18px); padding-bottom: 26px; }
  .landing__vde { width: 56px; margin-bottom: 12px; }
  .landing__panel--intro .kicker { font-size: 13px; }
  .landing__title { font-size: 29px; margin-bottom: 14px; }
  .landing__sheet { padding-top: 18px; }
}

/* I <button> centrano il contenuto in verticale: le card vanno allineate in alto */
.tile, .event, .room, .disc-tile { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }

/* Video hero (Vimeo in background): parte invisibile e sfuma sopra la foto */
.hero__video { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease-soft); background: transparent; }
.hero__video.is-on { opacity: 1; }
.hero__video iframe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
