/* ============================================================
   RoomService / Ombrelloni — Frontend cliente
   Stile: immersivo, atmosfera spiaggia — foto a tutto schermo,
   card in vetro, gradienti tramonto. Mobile-first.
   ============================================================ */

:root {
  --gold: #e6b980;
  --gold-deep: #cf9a54;
  --sea: #4bb8c9;
  --ink: #0d1b1f;
  --green: #37d29b;
  --accent-ink: #17120c;

  --glass: rgba(15, 24, 28, 0.46);
  --glass-strong: rgba(12, 20, 24, 0.72);
  --glass-line: rgba(255, 255, 255, 0.16);

  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.74);
  --text-faint: rgba(255, 255, 255, 0.5);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.46);

  --tap: 54px;
  --maxw: 640px;

  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

body.rs {
  font-family: var(--font-body);
  color: var(--text);
  background: #0b1417;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- Sfondo immersivo fisso ---------- */

.rs-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: rs-kb 34s ease-in-out infinite alternate;
}
@keyframes rs-kb {
  from {
    transform: scale(1.06) translateY(0);
  }
  to {
    transform: scale(1.16) translateY(-14px);
  }
}
.rs-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 14, 0.42) 0%,
    rgba(6, 12, 14, 0.6) 45%,
    rgba(6, 12, 14, 0.82) 100%
  );
}

.rs h1,
.rs h2,
.rs h3,
.rs h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.4em;
}
.rs p {
  margin: 0 0 1em;
}
.rs a:not(.rs-btn) {
  color: var(--gold);
}
.rs img {
  max-width: 100%;
  display: block;
}

.rs__wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Vetro ---------- */

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}

/* ---------- Top bar ---------- */

.rs-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(6, 12, 14, 0.5), rgba(6, 12, 14, 0));
}
.rs-top__in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}
.rs-top__home {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit !important;
  text-decoration: none;
}
.rs-top__logo {
  height: 34px;
  width: auto;
  min-width: 0;
  max-width: 40vw;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.rs-top__brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.rs-top__spacer {
  flex: 1;
}

.rs-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
}

.rs .rs-badge--link {
  color: #fff;
  text-decoration: none;
}
.rs .rs-badge--link:hover {
  border-color: var(--gold);
}

.rs-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}
.rs-account-link:hover {
  color: var(--gold);
}

.rs-lang {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rs-lang a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-dim);
}
.rs-lang a.is-active {
  background: var(--gold);
  color: var(--accent-ink);
}

/* Telefoni stretti: logo + ombrellone + account + lingua non ci stanno,
   l'account resta solo come icona */
@media (max-width: 420px) {
  .rs-top__in {
    gap: 8px;
    padding: 10px 14px;
  }
  .rs-top .rs-account-link__txt {
    display: none;
  }
  .rs-top .rs-account-link i {
    font-size: 1rem;
  }
  .rs-lang a {
    padding: 6px 9px;
  }
}

/* ---------- Buttons ---------- */

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease;
}
.rs-btn:active {
  transform: scale(0.97);
}
.rs-btn--primary {
  background: var(--gold);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}
.rs-btn--primary:hover {
  filter: brightness(1.05);
}
.rs-btn--glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  color: #fff;
}
.rs-btn--ghost {
  background: transparent;
  border: 1px solid var(--glass-line);
  color: #fff;
}
.rs-btn--block {
  width: 100%;
}

/* ---------- Hero (home) ---------- */

.rs-hero {
  position: relative;
  /* vh come fallback: su mobile include la barra del browser e spinge giù i bottoni */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 max(42px, env(safe-area-inset-bottom));
}
/* Su telefono il contenuto in fondo lasciava mezzo schermo vuoto sopra */
@media (max-width: 559px) {
  .rs-hero {
    justify-content: center;
    padding: 48px 0 max(56px, env(safe-area-inset-bottom));
  }
}
.rs-hero__in {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}
.rs-hero__kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}
.rs-hero h1 {
  font-size: clamp(2.6rem, 10vw, 4rem);
  font-weight: 400;
  margin-bottom: 0.35em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.rs-hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.rs-hero p {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 34ch;
  margin-bottom: 26px;
}
.rs-hero__lang {
  margin-bottom: 22px;
}

.rs-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 1.4rem;
  animation: rs-bob 1.8s ease-in-out infinite;
}
@keyframes rs-bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}

/* ---------- Sezioni ---------- */

.rs-section {
  padding: 54px 0;
}
.rs-section__title {
  font-size: 1.9rem;
  font-weight: 400;
  text-align: center;
}
.rs-section__title em {
  font-style: italic;
  color: var(--gold);
}
.rs-section__lead {
  text-align: center;
  color: var(--text-dim);
  margin: 0 auto 30px;
  max-width: 40ch;
}

.rs-steps {
  display: grid;
  gap: 14px;
}
.rs-step {
  border-radius: var(--r-lg);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.rs-step__n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.rs-step h4 {
  font-size: 1.15rem;
  margin: 0 0 0.15em;
}
.rs-step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Welcome (QR) ---------- */

.rs-welcome {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px calc(30px + env(safe-area-inset-bottom));
}
.rs-welcome__mark {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}
.rs-icon-badge {
  display: inline-flex;
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.45));
}
.rs-icon-badge__ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(230, 185, 128, 0.35),
    rgba(230, 185, 128, 0.08)
  );
  border: 1.5px solid rgba(230, 185, 128, 0.55);
}
.rs-icon-badge__ring svg {
  color: var(--gold);
}
.rs-welcome h1 {
  font-size: 2.3rem;
  font-weight: 400;
}
.rs-welcome h1 em {
  font-style: italic;
  color: var(--gold);
}
.rs-welcome__code {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.04em;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
}
.rs-welcome__lead {
  color: var(--text-dim);
  margin-top: 18px;
  max-width: 30ch;
}

.rs-form {
  width: 100%;
  max-width: 420px;
  margin-top: 24px;
  border-radius: var(--r-xl);
  padding: 24px;
  text-align: left;
}
.rs-field {
  margin-bottom: 15px;
}
.rs-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.rs-input,
.rs-textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}
select.rs-input option {
  background: var(--ink);
  color: #fff;
}
.rs-input::placeholder,
.rs-textarea::placeholder {
  color: var(--text-faint);
}
.rs-textarea {
  min-height: 86px;
  resize: vertical;
}
.rs-input:focus,
.rs-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}
.rs-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 5px 0 0;
}

.rs-order-link {
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease;
}
.rs-order-link:hover {
  border-color: var(--gold);
}

.rs-account-toggle {
  margin: 0 18px 14px;
}
.rs-account-toggle summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--gold);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
}
.rs-account-toggle summary::-webkit-details-marker {
  display: none;
}
.rs-account-toggle summary::after {
  content: "▾";
  float: right;
}
.rs-account-toggle[open] summary::after {
  content: "▴";
}
.rs-account-toggle .rs-form {
  max-width: none;
  margin-top: 10px;
  padding: 18px;
}

/* ---------- Prenotazioni ---------- */

.rs-bk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.rs-bk-card {
  padding: 16px 10px;
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.rs-bk-card:active {
  transform: scale(0.96);
}
.rs-bk-card__code {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold);
}
.rs-bk-card__row {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 3px;
}
.rs-bk-empty {
  text-align: center;
  color: var(--text-dim);
}
.rs-bk-confirm__sel {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Menu / ordine ---------- */

.rs-menu {
  padding-bottom: 150px;
}
.rs-menu__head {
  text-align: center;
  padding: 26px 0 6px;
}
.rs-menu__head h1 {
  font-size: 2rem;
  font-weight: 400;
}
.rs-menu__head h1 em {
  font-style: italic;
  color: var(--gold);
}
.rs-menu__head p {
  color: var(--text-dim);
  margin: 0;
}
/* ---------- Meteo (menu e prenota): pillola che si apre in card ---------- */
.rs-weather {
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  border-radius: 21px;
  text-align: left;
}
/* durante l'animazione di apertura/chiusura il contenuto non deve uscire */
.rs-weather.is-animating {
  overflow: hidden;
}
.rs-weather[open] {
  width: 100%;
  max-width: 420px;
  border-radius: var(--r-lg);
}
.rs-weather__pill {
  display: flex;
  transition: padding 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.rs-weather__pill::-webkit-details-marker {
  display: none;
}
.rs-weather[open] .rs-weather__pill {
  padding: 12px 16px 4px 12px;
}
.rs-weather__ico {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  transition:
    width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.rs-weather[open] .rs-weather__ico {
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
}
.rs-weather__ico--sun {
  color: var(--gold);
  background: rgba(230, 185, 128, 0.16);
}
.rs-weather__ico--night {
  color: #c9d6ff;
}
.rs-weather__ico--cloud {
  color: #dfe7ea;
}
.rs-weather__ico--rain {
  color: var(--sea);
  background: rgba(75, 184, 201, 0.14);
}
.rs-weather__ico--storm {
  color: #f5c96b;
  background: rgba(245, 201, 107, 0.14);
}
.rs-weather__temp {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  transition: font-size 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.rs-weather[open] .rs-weather__temp {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
}
.rs-weather__label {
  font-size: 0.82rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-weather__chev {
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-left: auto;
  padding-left: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.rs-weather[open] .rs-weather__chev {
  transform: rotate(180deg);
}
.rs-weather__body {
  /* larghezza fissa del contenuto: mentre la card si allarga il testo non va a capo di continuo */
  width: min(420px, calc(100vw - 36px));
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 16px 14px;
  animation: rs-weather-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}
.rs-weather.is-closing .rs-weather__body {
  opacity: 0;
  transition: opacity 0.12s ease;
}
.rs-weather.is-closing .rs-weather__chev {
  transform: none;
}
/* in chiusura <details> resta aperto fino alla fine: riportiamo subito
   pillola, icona e gradi alle misure da chiusa, così si restringono insieme */
.rs-weather.is-closing .rs-weather__pill {
  padding: 6px 14px 6px 6px;
}
.rs-weather.is-closing .rs-weather__ico {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
}
.rs-weather.is-closing .rs-weather__temp {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
}
@keyframes rs-weather-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rs .rs-weather__desc {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 6px 0 0;
}
.rs-weather__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.rs-weather__stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-line);
}
.rs-weather__stats span i {
  color: var(--sea);
}
.rs-weather__stats span.is-warn,
.rs-weather__stats span.is-warn i {
  color: var(--gold);
}
.rs .rs-weather__tip {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .rs-weather__body {
    animation: none;
  }
}

.rs-welcome-back {
  margin: 0 18px 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}

.cat-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 18px 8px;
  margin: 0 -18px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.cat-scroller::-webkit-scrollbar {
  display: none;
}
.cat-chip {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}
.cat-chip:active {
  transform: scale(0.96);
}
.cat-chip.is-active {
  background: var(--gold);
  color: var(--accent-ink);
  border-color: transparent;
}

.cat-chip--diet {
  background: rgba(55, 210, 155, 0.16);
  border-color: rgba(55, 210, 155, 0.4);
  color: #d7fbe9;
}
.cat-chip--diet.is-active {
  background: var(--green);
  color: var(--accent-ink);
}
.cat-chip__ico {
  font-size: 1rem;
  line-height: 1;
}

.cat-panel {
  display: none;
  padding-top: 6px;
}
.cat-panel.is-active {
  display: block;
}

.rs-cat {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  margin: 28px 4px 14px;
}

.dish {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.18s ease;
}
.dish.is-selected {
  box-shadow:
    0 0 0 2px var(--gold),
    var(--shadow);
}

.dish__img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.dish__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish__img--empty {
  background: #16303a;
  display: grid;
  place-items: center;
}
.dish__img--empty span {
  font-size: 16px;
  opacity: 0.55;
}
.dish__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 12, 14, 0.55));
}
.dish__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(6, 12, 14, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dish__info {
  padding: 14px 16px 16px;
}
.dish__name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.18rem;
  margin: 0 0 4px;
}
.dish__desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish__desc.is-open {
  -webkit-line-clamp: unset;
}
.dish__more {
  background: none;
  border: 0;
  padding: 4px 0 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.dish__allergens {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.4;
}
.dish__allergens__ico {
  flex: none;
  font-size: 0.82rem;
  line-height: 1.4;
}

.dish__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.dish__price {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--gold);
}
.dish__foot .rs-stepper {
  margin-left: auto;
}

.rs-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold);
  transition:
    border-color 0.15s ease,
    opacity 0.15s ease;
}
.rs-stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.rs-stepper button:active {
  background: rgba(255, 255, 255, 0.14);
}
.rs-stepper span {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-family: var(--font-head);
}
.rs-stepper.is-zero {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, 0.04);
}
.rs-stepper.is-zero span {
  color: var(--text-faint);
}
.rs-stepper.is-zero button[data-act="dec"] {
  opacity: 0.25;
  pointer-events: none;
}

/* ---------- Barra ordine ---------- */

.rs-orderbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  transform: translateY(130%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 13px 16px calc(13px + env(safe-area-inset-bottom));
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-line);
}
.rs-orderbar.is-visible {
  transform: translateY(0);
}
.rs-orderbar__in {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rs-orderbar__count {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.rs-orderbar__total {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #fff;
}
.rs-orderbar .rs-btn {
  margin-left: auto;
  flex: none;
}

.rs-scan-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 18px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.rs-flash {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 90;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
}

/* ---------- Bottom sheet ---------- */

.rs-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.rs-sheet.is-open {
  display: block;
}
.rs-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 11, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.rs-sheet.is-open .rs-sheet__scrim {
  opacity: 1;
}
.rs-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  padding: 8px 18px calc(24px + env(safe-area-inset-bottom));
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border-top: 1px solid var(--glass-line);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.rs-sheet.is-open .rs-sheet__panel {
  transform: translateY(0);
}
.rs-sheet__panel {
  overscroll-behavior: contain;
}
/* Pannello ridotto a linguetta: resta in fondo solo grip + titolo, lo sfondo
   scuro sparisce e la pagina sotto torna cliccabile */
.rs-sheet.is-min {
  pointer-events: none;
}
.rs-sheet.is-min .rs-sheet__scrim {
  opacity: 0;
}
.rs-sheet.is-min .rs-sheet__panel {
  pointer-events: auto;
  overflow: hidden;
  cursor: pointer;
  transform: translateY(calc(100% - 78px - env(safe-area-inset-bottom)));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}
/* la barra ordine del menu starebbe sotto la linguetta: la nascondiamo */
.rs-sheet-min .rs-orderbar {
  transform: translateY(130%);
}
.rs-sheet__grip {
  position: relative;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 8px auto 16px;
  cursor: grab;
}
/* area di presa più grande della barretta, più facile da prendere col dito */
.rs-sheet__grip::before {
  content: "";
  position: absolute;
  inset: -14px -40px;
}
.rs-sheet__title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 14px;
}
.rs-sheet__title em {
  font-style: italic;
  color: var(--gold);
}

.rs-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.rs-line__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}
.rs-line__price {
  font-family: var(--font-head);
  color: var(--gold);
  min-width: 70px;
  text-align: right;
}

.rs-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0 4px;
}
.rs-total span {
  color: var(--text-dim);
}
.rs-total strong {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.6rem;
  color: #fff;
}

/* ---------- Toast ---------- */

.rs-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translate(-50%, 16px);
  z-index: 70;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.rs-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Tracking ---------- */

.rs-track {
  padding: 46px 0 70px;
}
.rs-track__card {
  border-radius: var(--r-xl);
  padding: 30px 22px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.rs-track h1 {
  font-size: 1.9rem;
  font-weight: 400;
}
.rs-track h1 em {
  font-style: italic;
  color: var(--gold);
}
.rs-track__sub {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.rs-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 0 auto 24px;
  max-width: 340px;
}
.rs-timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 26px;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.rs-timeline__fill {
  position: absolute;
  left: 26px;
  top: 26px;
  height: 3px;
  width: 0;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.rs-tl-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 33%;
}
.rs-tl-step__dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(12, 20, 24, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.18);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.rs-tl-step__label {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 600;
  text-align: center;
}
.rs-tl-step.is-done .rs-tl-step__dot {
  border-color: var(--green);
}
.rs-tl-step.is-current .rs-tl-step__dot {
  border-color: var(--gold);
  transform: scale(1.1);
  box-shadow: 0 0 0 7px rgba(243, 193, 122, 0.16);
}
.rs-tl-step.is-done .rs-tl-step__label,
.rs-tl-step.is-current .rs-tl-step__label {
  color: #fff;
}

.rs-statusbox {
  border-radius: var(--r-md);
  padding: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-line);
  margin-bottom: 24px;
}
.rs-statusbox.is-prep {
  border-color: rgba(243, 193, 122, 0.5);
}
.rs-statusbox.is-done {
  border-color: rgba(55, 210, 155, 0.5);
  color: #bff3df;
}

.rs-summary {
  margin-top: 26px;
}
.rs-summary h4 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.rs-summary__list {
  text-align: left;
  border-radius: var(--r-md);
  padding: 4px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
}
.rs-summary__item {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-weight: 600;
}
.rs-summary__item:last-child {
  border-bottom: 0;
}
.rs-summary__note {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 3px;
}

/* ---------- Footer ---------- */

.rs-foot {
  text-align: center;
  padding: 34px 18px calc(34px + env(safe-area-inset-bottom));
  color: var(--text-faint);
  font-size: 0.8rem;
}
.rs-foot a {
  color: var(--text-faint);
}

/* ---------- Lara chat ---------- */

.rs-chat-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--gold);
  color: var(--accent-ink);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.15s ease,
    bottom 0.3s ease;
}
.rs-chat-fab:active {
  transform: scale(0.92);
}
.rs-chat-fab svg {
  width: 24px;
  height: 24px;
}
.rs-orderbar.is-visible ~ .rs-chat-fab {
  bottom: calc(90px + env(safe-area-inset-bottom));
}

.rs-chat {
  position: fixed;
  right: 16px;
  left: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 55;
  width: min(380px, calc(100vw - 32px));
  margin-left: auto;
  border-radius: 22px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lg);
}
.rs-chat.is-open {
  display: flex;
}
.rs-chat__head {
  background: var(--gold);
  color: var(--accent-ink);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rs-chat__head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.rs-chat__head button {
  background: none;
  border: 0;
  color: var(--accent-ink);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 4px;
}
.rs-chat__body {
  height: 320px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}
.rs-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  line-height: 1.45;
}
.rs-msg--bot {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.rs-msg--user {
  background: var(--gold);
  color: var(--accent-ink);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.rs-msg--typing {
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.82rem;
}
.rs-msg p {
  margin: 0 0 0.5em;
}
.rs-msg p:last-child {
  margin: 0;
}
.rs-chat__foot {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--glass-line);
}
.rs-chat__foot input {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
}
.rs-chat__foot input::placeholder {
  color: var(--text-faint);
}
.rs-chat__foot input:focus {
  outline: none;
  border-color: var(--gold);
}
.rs-chat__foot button {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 560px) {
  .rs-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rs-bg {
    animation: none;
  }
  .rs-scroll-hint {
    animation: none;
  }
}
