:root:has(.forno) {
  --ink: #241d18;
  --paper: #f8f4ee;
  --wash: #eee6da;
  --text: #594d43;
  --green: #a32d24;
  --line: #ded2c5;
  --nav-height: 64px;
}

.forno { --header-backdrop: var(--paper); }
.forno .skip { border-radius: 8px; }
.forno .forno-topbar {
  border-color: #dfd4c8;
  background: #fffaf4;
  box-shadow: 0 4px 14px #4d27130b;
}
.forno .forno-topbar.is-scrolled { background: #fffaf4f2; }
.forno .forno-nav { flex-wrap: nowrap; }
.forno .forno-brand { gap: .24em; font-size: clamp(19px, 2.4vw, 24px); white-space: nowrap; }
.forno-brand > span,
.forno-hero h1 > span,
.forno-card-head h1 > span { color: var(--green); }
.forno-nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); font-size: 14px; font-weight: 800; }
.forno-nav-links > a { display: inline-flex; align-items: center; min-height: 44px; }
.forno-nav-links > a:not(.button):hover,
.forno-nav-links > a[aria-current] { color: var(--green); }
.forno-compact { display: none; }
.forno .forno-nav-reserve { padding-inline: 14px; }
.forno .button--primary:hover { background: #85231c; }
.forno .dot { background: var(--green); }
.forno .kicker { color: var(--text); }
.forno .text-link { gap: 8px; }

.forno-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4.8vw, 78px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 95px) clamp(52px, 7vw, 105px);
}
.forno-hero h1,
.forno-card-head h1 {
  margin-block: 17px 20px;
  font-size: clamp(52px, 7vw, 108px);
  line-height: .99;
  letter-spacing: -.081em;
  word-spacing: .07em;
  font-weight: 800;
}
.forno-lead { color: var(--text); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; }
.forno-actions { display: flex; flex-wrap: wrap; gap: 5px 19px; align-items: center; margin-top: 23px; }
.forno-logo-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 555px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.forno-logo-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 69% 10% 12%;
  border-radius: 50%;
  background: #60341b27;
  filter: blur(clamp(8px, 1.8vw, 26px));
  opacity: var(--stage-shadow, 1);
}
.forno-logo-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.forno-logo-stage.has-flight img { visibility: hidden; }
.forno-logo-stage button {
  position: absolute;
  inset: 18%;
  width: 64%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}
.forno-brand img { width: 34px; height: 34px; flex: none; }
.forno-logo-flight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  display: block;
  aspect-ratio: 1;
  pointer-events: none;
  transform-origin: center;
  will-change: transform, opacity;
}
.forno-logo-flight canvas, .forno-logo-flight img {
  display: block;
  width: 100%;
  height: 100%;
}
.forno-logo-flight img {
  position: absolute;
  inset: 0;
  visibility: hidden;
  transform: perspective(520px) rotateY(var(--logo-turn, 0deg)) rotateZ(var(--logo-bank, 0deg));
}
.forno-logo-flight.is-travelling canvas { visibility: hidden; }
.forno-logo-flight.is-travelling img { visibility: visible; }
.forno-menu-photo { margin-top: 22px; overflow: hidden; aspect-ratio: 1.65; border-radius: 16px; background: #ead9c4; }
.forno-menu-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }

.forno-section { padding-block: clamp(55px, 8vw, 112px); }
.forno-section h2,
.forno-card-group h2 {
  font-size: clamp(41px, 5.3vw, 76px);
  line-height: 1.05;
  letter-spacing: -.075em;
  word-spacing: .07em;
  font-weight: 800;
}
.forno-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(26px, 7vw, 112px); }
.forno-menu-preview { border-block: 1px solid var(--line); background: #fffcf8; }
.forno-menu-preview h2 + a { margin-top: 9px; }
.forno-dishes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.forno-dishes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
.forno-dishes h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.forno-dishes p { color: var(--text); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.forno-dishes li > span { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.forno-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: clamp(30px, 8vw, 125px); align-items: center; }
.forno-story img, .forno-room img { width: 100%; object-fit: cover; border-radius: 16px; }
.forno-story img { height: clamp(300px, 43vw, 540px); object-position: center 58%; }
.forno-story .forno-lead { margin-top: 15px; max-width: 33ch; }
.forno-visit { background: var(--wash); }
.forno-visit-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .87fr); align-items: center; }
.forno-visit .forno-lead { margin-top: 10px; }
.forno-visit h3 { margin-top: 24px; font-size: 15px; }
.forno-hours { display: grid; max-width: 325px; padding: 0; margin: 8px 0 0; }
.forno-hours > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 7px; }
.forno-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.forno-room {
  --product: var(--green);
  --product-dark: var(--ink);
  --product-art: #d8cab9;
  min-width: 0;
}
.forno-room .app-gallery__track { border-radius: 16px; padding-bottom: 0; scrollbar-width: none; }
.forno-room .app-gallery__track:focus-visible { outline-offset: 4px; }
.forno-room .app-gallery__cards { grid-auto-columns: 100%; gap: 10px; }
.forno-room .app-gallery__cards img { width: 100%; height: clamp(290px, 37vw, 470px); aspect-ratio: auto; object-fit: cover; }
.forno-room .app-gallery__controls { inset-inline: 12px; }
.forno-room figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
}
.forno-footer { border-top: 1px solid var(--line); padding-block: 25px calc(25px + env(safe-area-inset-bottom, 0px)); }
.forno-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.forno-footer p { color: var(--text); font-size: 13px; }
.forno-footer p a { text-decoration: underline; text-underline-offset: .18em; }

.forno-card-head { padding-block: clamp(32px, 5vw, 75px) clamp(34px, 5vw, 70px); }
.forno-categories { display: flex; gap: 7px 10px; flex-wrap: wrap; margin-top: 23px; }
.forno-categories a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 800; }
.forno-categories a:hover { border-color: var(--green); color: var(--green); }
.forno-card-list { display: grid; gap: clamp(45px, 7vw, 95px); padding-bottom: clamp(55px, 8vw, 115px); }
.forno-card-group h2 { font-size: clamp(35px, 4.6vw, 66px); }

.forno-dialog {
  width: min(515px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(21px, 5vw, 41px);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fffaf4;
  box-shadow: 0 14px 65px #2b180b42;
}
.forno-dialog::backdrop { background: #241d18a0; }
.forno-dialog h2 { font-size: clamp(28px, 5vw, 39px); letter-spacing: -.06em; line-height: 1.08; }
.forno-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.forno-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--wash); cursor: pointer; color: var(--ink); font-size: 25px; line-height: 1; }
.forno-dialog-copy, #reservation-result > p { margin-block: 10px; color: var(--text); }
.forno-book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.forno-book-grid label { display: grid; gap: 4px; font-weight: 800; font-size: 14px; }
.forno-date { grid-column: 1 / -1; }
.forno-book-grid input, .forno-book-grid select { width: 100%; min-width: 0; min-height: 46px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.forno-book-note { min-height: 2.2em; margin-top: 5px; color: var(--text); font-size: 13px; }
.forno-dialog .button { border: 0; cursor: pointer; }
#reservation-result .button { margin-top: 6px; }

@media (max-width: 760px) {
  :root:has(.forno) { --nav-height: 58px; }
  .forno .forno-nav { gap: 8px; }
  .forno-nav-links { gap: 12px; }
  .forno-nav-visit, .forno-wide { display: none !important; }
  .forno-compact { display: inline; }
  .forno-hero, .forno-split, .forno-story { grid-template-columns: minmax(0, 1fr); }
  .forno-hero { gap: 24px; padding-block: 28px 54px; }
  .forno-hero h1, .forno-card-head h1 { margin-block: 13px 12px; font-size: clamp(44px, 11.3vw, 69px); }
  .forno-logo-stage { width: min(100%, 390px); margin-block: -23px -30px; }
  .forno-brand img { width: 28px; height: 28px; }
  .forno-actions { margin-top: 17px; }
  .forno-hero .button { min-height: 46px; padding-inline: 11px; gap: 6px; }
  .forno-hero .text-link { font-size: 13px; }
  .forno-hero .forno-actions { column-gap: 12px; }
  .forno-story > div { grid-row: 1; }
  .forno-story img { height: clamp(260px, 90vw, 455px); }
}
