/* Hostal Victor — full d'estil
   Direcció: «l'escenari partit». La meitat esquerra és una finestra fixa al Roc de les Hores;
   la dreta, una columna de lectura. Tipus: Besley (rètol del XIX) i Libre Franklin. */

@font-face { font-family: 'Besley'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/besley-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/libre-franklin-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/libre-franklin-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/libre-franklin-latin-600-normal.woff2') format('woff2'); }

/* Tipus de la carta impresa (Poppins; Italiana fa el paper del rètol fi, que a la carta és una font de demostració) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/poppins-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Italiana'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/italiana-latin-400-normal.woff2') format('woff2'); }

/* Colors de l'escena viva: registrats perquè puguin fer transició */
@property --sc-sky { syntax: '<color>'; inherits: true; initial-value: #A8D3E4; }
@property --sc-sun { syntax: '<color>'; inherits: true; initial-value: #FFFCEB; }
@property --sc-far { syntax: '<color>'; inherits: true; initial-value: #8EAFBA; }
@property --sc-roc { syntax: '<color>'; inherits: true; initial-value: #ECDDBF; }
@property --sc-shade { syntax: '<color>'; inherits: true; initial-value: #CFB892; }
@property --sc-hill { syntax: '<color>'; inherits: true; initial-value: #6A8B57; }
@property --sc-town { syntax: '<color>'; inherits: true; initial-value: #F0E7D5; }
@property --sc-win { syntax: '<color>'; inherits: true; initial-value: #66766F; }
@property --sc-water { syntax: '<color>'; inherits: true; initial-value: #2F7F86; }
@property --sc-fg { syntax: '<color>'; inherits: true; initial-value: #234030; }
@property --sc-glow { syntax: '<color>'; inherits: true; initial-value: #CBE6EF; }
@property --sc-stars { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --bg: #F4F1EE;
  --surface: #EAE4E1;
  --surface-2: #DDD3D2;
  --ink: #21171A;
  --muted: #5E5457;
  --accent: #551E27;
  --accent-hover: #3E141B;
  --accent-ink: #FFFFFF;
  --field: #2A1116;
  --field-ink: #F4F1EE;
  --field-muted: #CDBCBF;
  --ochre: #D8A31A;
  --font-display: 'Besley', 'Georgia', serif;
  --font-text: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 1.2rem + 5.6vw, 6.75rem);
  --margin: clamp(20px, 2.2vw, 32px);
  --gutter: clamp(32px, 5.4vw, 88px);
  --section: clamp(104px, 11vw, 192px);
  --bar-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; font-weight: 400; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ochre); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.logo { display: block; fill: currentColor; height: auto; overflow: visible; }
.logo--h { aspect-ratio: 603.5 / 64.9; }
.logo--v { aspect-ratio: 287.5 / 219.3; }
/* A mida petita els traços fins del logotip es perden: un contorn mínim els manté visibles */
.bar__mark .logo, .sheet__mark .logo { width: 232px; stroke: currentColor; stroke-width: 1.3px; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Tipus ---------- */
.h-display, .h-head, .h-sub, .stage__time, .plate__title, .dish__title, .dish__price, .menu__cat, .ticket__h, .letter__sign, .town__facts dd, .contact__mail, .letter__seal, .nf__num {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
}
.h-display { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.03em; }
.h-head { font-size: var(--step-head); line-height: 0.98; }
.h-sub { font-size: var(--step-lead); line-height: 1.1; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step-body); line-height: 1.2; text-align: center; text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--block { display: flex; width: 100%; }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: #3A2A2E; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link:hover { text-decoration-color: var(--accent); color: var(--accent); }

.field { display: grid; gap: 8px; }
.field__label { font-size: var(--step-small); font-weight: 600; color: var(--ink); }
input[type="date"], input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 0; background: var(--bg); color: var(--ink); font-size: var(--step-body); appearance: none; -webkit-appearance: none; }
select { background-image: none; padding-right: 36px; }
.field select { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2321171A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea { min-height: 72px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* ---------- Barra superior ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--margin); color: var(--field-ink); transition: background-color 300ms ease, color 300ms ease, transform 300ms var(--ease-out); }
.bar__mark { display: block; padding: 8px 0; text-decoration: none; line-height: 1; opacity: 0; transform: translateY(-6px); transition: opacity 300ms ease, transform 300ms var(--ease-out); pointer-events: none; }
.bar__nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.bar__links { display: flex; gap: 24px; }
.bar__links a, .langs a { font-size: var(--step-small); font-weight: 600; padding: 8px 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; text-decoration-color: transparent; transition: text-decoration-color var(--t-ui) ease; }
.bar__links a:hover, .langs a:hover, .langs a[aria-current] { text-decoration-color: currentColor; }
.langs { display: flex; gap: 12px; }
.langs a { font-size: var(--step-small); }
.bar__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: var(--step-small); transition: background-color var(--t-hover) ease; }
.bar__cta:hover { background: var(--accent-hover); }
.bar:not(.is-solid) .bar__cta { background: var(--field-ink); color: var(--accent); }
.bar:not(.is-solid) .bar__cta:hover { background: #FFFFFF; }
.bar__menu { display: none; }
.bar.is-solid { background: var(--bg); color: var(--ink); }
.bar.is-solid .bar__mark { opacity: 1; transform: none; pointer-events: auto; }
.bar :focus-visible { outline-color: var(--ochre); }
.bar.is-solid :focus-visible { outline-color: var(--accent); }

.sheet { position: fixed; inset: 0; z-index: 60; background: var(--field); color: var(--field-ink); padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.sheet__mark .logo { width: 200px; }
.sheet__close { background: var(--bg); color: var(--ink); border: 0; min-height: 44px; padding: 0 16px; font-weight: 600; }
.sheet__links { display: grid; gap: 4px; }
.sheet__links a { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 1.15; text-decoration: none; letter-spacing: -0.02em; }
.sheet .langs a { font-size: var(--step-body); padding: 10px 4px; }
.sheet :focus-visible { outline-color: var(--ochre); }

/* ---------- Capítol A: escenari + columna ---------- */
.split { position: relative; display: grid; grid-template-columns: 47% 53%; background: var(--field); }
.stage { grid-column: 1; grid-row: 1; position: sticky; top: 0; height: 100svh; min-height: 560px; padding: 20px; align-self: start; }
.stage__frame { position: relative; height: 100%; overflow: hidden; background: var(--sc-sky); color: var(--stage-ink, var(--ink));
  transition: --sc-sky 1.4s ease, --sc-sun 1.4s ease, --sc-far 1.4s ease, --sc-roc 1.4s ease, --sc-shade 1.4s ease, --sc-hill 1.4s ease, --sc-town 1.4s ease, --sc-win 1.4s ease, --sc-water 1.4s ease, --sc-fg 1.4s ease, --sc-glow 1.4s ease, --sc-stars 1.4s ease, color 600ms ease; }
.no-anim .stage__frame, .no-anim .sc-sun, .no-anim .sc-glow { transition: none !important; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc-stars { opacity: var(--sc-stars); }
.sc-sun, .sc-glow { transition: transform 1.6s var(--ease-in-out); }
.scene .lit { transition: fill 1.4s ease; }
.stage__clock { position: absolute; top: calc(var(--bar-h) + 20px); left: clamp(24px, 3vw, 40px); right: 24px; display: grid; gap: 6px; }
.stage__time { font-size: var(--step-head); line-height: 0.9; font-variant-numeric: tabular-nums; }
.stage__caption { font-weight: 600; font-size: var(--step-body); max-width: 24ch; }
.stage__sun { font-size: var(--step-small); font-weight: 500; }
.stage__clock .is-swap { animation: swap 600ms var(--ease-expo); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wordmark { position: absolute; z-index: 5; top: calc(max(100svh, 560px) - 36px); right: var(--margin); transform: translateY(-100%); transform-origin: 100% 100%; margin: 0; color: var(--field-ink); will-change: transform; }
.wordmark__h { width: min(calc(63vw - var(--margin)), 1480px); }
.wordmark__v, .foot__v { display: none; }

.column { grid-column: 2; grid-row: 1; background: var(--bg); min-width: 0; }
.column > section { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 900px) { .split { --gutter: calc(3vw + 12px); } .column > section { padding-right: clamp(32px, 5.4vw, 88px); } }

.hero { position: relative; min-height: max(100svh, 560px); background: var(--field); color: var(--field-ink); }
.hero__inner { position: absolute; top: 38%; left: var(--gutter); right: var(--gutter); display: grid; gap: 36px; }
.hero__sentence { font-size: var(--step-lead); line-height: 1.32; max-width: 26ch; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero .link:hover { color: var(--ochre); text-decoration-color: var(--ochre); }
.hero .btn { background: var(--field-ink); color: var(--accent); }
.hero .btn:hover { background: #FFFFFF; }
.hero :focus-visible { outline-color: var(--ochre); }

.intro { padding-top: var(--section); padding-bottom: calc(var(--section) * 0.8); display: grid; grid-template-columns: minmax(0, 36ch); gap: 18px; }
.intro p { color: var(--ink); }
.intro__first { font-weight: 600; font-size: var(--step-lead); line-height: 1.32; }

.rooms { padding-top: calc(var(--section) * 0.5); padding-bottom: calc(var(--section) * 0.7); }
.rooms .h-head { margin-bottom: 32px; }
.plate { display: grid; gap: 24px; max-width: 640px; }
.plate__tabs { display: flex; gap: 28px; order: 0; }
.plate__tabs [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 0; font-size: var(--step-lead); font-weight: 600; color: var(--muted); transition: color var(--t-hover) ease, border-color var(--t-ui) ease; }
.plate__tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.plate__tabs [role="tab"]:hover { color: var(--ink); }
.plate__panel { display: grid; gap: 28px; }
.plate__panel[hidden] { display: none; }
.plate__img { aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.plate__img img { width: 100%; height: 100%; object-fit: cover; }
.plate__panel:not([hidden]) .plate__img img { animation: plate-in 700ms var(--ease-expo); }
@keyframes plate-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.plate__text { display: grid; gap: 14px; max-width: 40ch; }
.plate__title { font-size: var(--step-head); line-height: 0.98; }
.plate__cap { font-weight: 600; }
.plate__cap span { color: var(--muted); font-weight: 400; margin-right: 6px; }
.plate__note { color: var(--muted); }
.plate__actions { display: grid; grid-template-columns: 1fr 1fr; }
.cell { display: flex; align-items: center; padding: 0 22px; min-height: 72px; text-decoration: none; font-weight: 600; transition: background-color var(--t-hover) ease; }
.cell--ink { background: var(--ink); color: var(--bg); }
.cell--ink:hover { background: #3A2A2E; }
.cell--tone { background: var(--surface); color: var(--ink); }
.cell--tone:hover { background: var(--surface-2); }

.book { padding-top: calc(var(--section) * 0.5); padding-bottom: var(--section); }
.book .h-head { margin-bottom: 16px; }
.book__lead { max-width: 40ch; margin-bottom: 32px; }
.book__form { display: grid; gap: 20px; padding: clamp(20px, 2.4vw, 36px); background: var(--surface); max-width: 640px; }
.book__dates, .book__guests { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book__guests { grid-template-columns: 1fr 1fr 1.3fr; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; min-height: 52px; background: var(--bg); }
.stepper button { border: 0; background: var(--surface-2); font-size: var(--step-body); font-weight: 600; transition: background-color var(--t-hover) ease; }
.stepper button:hover { background: #D3C8C6; }
.stepper input { min-height: 52px; text-align: center; padding: 0; -moz-appearance: textfield; font-variant-numeric: tabular-nums; font-weight: 600; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.book__summary { font-weight: 600; min-height: 1.5em; }
.book__err { color: #9B2C1B; font-weight: 600; }
.book__mail { justify-self: start; }
.book__note { font-size: var(--step-small); color: var(--muted); max-width: 60ch; }
[hidden] { display: none !important; }
[aria-invalid="true"] { box-shadow: inset 0 -3px 0 #9B2C1B; }
.btn[aria-busy="true"], .btn:disabled { background: var(--surface-2); color: var(--muted); pointer-events: none; }

/* Reserva directa amb la central: opcions, dades i senyal */
.offers, .guest { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.offers__h { padding: 0; margin-bottom: 4px; }
.offers__list { display: grid; gap: 2px; }
.offer { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "dot name price" "dot meta price"; gap: 2px 14px; align-items: center; padding: 16px 18px 16px 14px; background: var(--bg); cursor: pointer; transition: background-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.offer:hover { background: #FAF8F6; }
.offer input { grid-area: dot; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); background: var(--bg); transition: box-shadow var(--t-press) var(--ease-out); }
.offer input:checked { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 6px var(--bg), inset 0 0 0 12px var(--accent); }
.offer:has(input:checked) { box-shadow: inset 4px 0 0 var(--accent); }
.offer input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.offer__name { grid-area: name; font-weight: 600; font-size: var(--step-body); }
.offer__meta { grid-area: meta; font-size: var(--step-small); color: var(--muted); }
.offer__meta b { color: #9B2C1B; font-weight: 600; }
.offer__price { grid-area: price; display: grid; justify-items: end; text-align: right; font-variant-numeric: tabular-nums; }
.offer__price b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.1; }
.offer__price span { font-size: var(--step-small); color: var(--muted); }
.guest__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.guest__grid .field { align-content: start; }
.guest__full { grid-column: 1 / -1; }
.field__hint { font-size: var(--step-small); color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: var(--step-small); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); display: grid; place-items: center; }
.check input:checked { background: var(--accent); box-shadow: none; }
.check input:checked::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pay { display: grid; gap: 6px; padding: 16px 0 0; border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.pay:empty { display: none; }
.pay div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.pay div:last-of-type b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.pay p { font-size: var(--step-small); color: var(--muted); }

/* Pàgina de retorn del pagament */
.confirm { max-width: 760px; min-height: 70svh; padding: calc(var(--bar-h) + 80px) var(--margin) var(--section); margin: 0 auto; display: grid; gap: 24px; align-content: start; }
.confirm__kicker { font-weight: 600; color: var(--accent); }
.confirm__p { font-size: var(--step-lead); max-width: 34ch; }
.confirm__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px; margin-top: 8px; }
.confirm__facts div { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.confirm__facts dt { font-size: var(--step-small); color: var(--muted); }
.confirm__facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.confirm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }

.stay { margin-top: calc(var(--section) * 0.6); max-width: 560px; }
.h-sub { margin-bottom: 8px; }
.rows { margin-top: 32px; }
.rows__group { font-family: var(--font-text); font-weight: 400; letter-spacing: 0; font-size: var(--step-body); color: var(--muted); margin-bottom: 4px; }
.row { display: grid; grid-template-columns: 14px 1fr auto; align-items: baseline; gap: 10px; min-height: 38px; padding: 6px 0; }
.row__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); align-self: center; }
.row__dot--1 { background: var(--ochre); }
.row__dot--2 { background: #A9573B; }
.row__dot--3 { background: var(--field); }
.row__name { color: var(--ink); }
.row__val { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: var(--step-body); }

/* ---------- Restaurant: camp bordeus, com la portada de la carta ---------- */
.rest { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--section) var(--margin); background: var(--accent); color: var(--field-ink); }
.rest .link:hover { color: var(--ochre); text-decoration-color: var(--ochre); }
.rest .btn--ink { background: var(--field-ink); color: var(--accent); }
.rest .btn--ink:hover { background: #FFFFFF; }
.rest__head { grid-column: 1 / 7; padding-right: 24px; align-self: start; position: sticky; top: calc(var(--bar-h) + 32px); display: grid; gap: 28px; }
.rest__lead { font-size: var(--step-lead); line-height: 1.32; max-width: 22ch; font-weight: 500; }
.rest__clock { display: grid; gap: 4px; margin-top: clamp(16px, 4vh, 56px); }
.rest__time { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rest__clock span:last-child { font-weight: 600; }
.rest__clock.is-swap .rest__time { animation: swap 600ms var(--ease-expo); }
.rest__blocks { grid-column: 7 / 13; display: grid; gap: clamp(72px, 8vw, 120px); }
.dish { display: grid; gap: 24px; }
.dish__title { font-size: var(--step-head); line-height: 0.98; }
.dish__row { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 32px; align-items: start; }
.dish--flip .dish__row { grid-template-columns: 1fr minmax(160px, 220px); }
.dish--flip .dish__img { order: 2; }
.dish__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.dish:hover .dish__img img { transform: scale(1.04); }
.dish__body { display: grid; gap: 20px; justify-items: start; }
.dish__lines { display: grid; gap: 12px; }
.dish__lines li { font-size: var(--step-body); line-height: 1.4; }
.dish__price { font-size: var(--step-lead); }
.rest :focus-visible { outline-color: var(--ochre); }

/* ---------- Per emportar ---------- */
.take { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--section) var(--margin); }
.take__menu { grid-column: 1 / 7; }
.take .h-head { margin-bottom: 20px; }
.take__lead { max-width: 44ch; }
.take__hours { margin-top: 12px; font-weight: 600; }
.draft { margin-top: 16px; display: inline-block; background: var(--ochre); padding: 6px 12px; font-size: var(--step-small); font-weight: 600; }
.menu { margin-top: 40px; display: grid; border-bottom: 1px solid var(--surface-2); }
.menu__group { border-top: 1px solid var(--surface-2); }
.menu__group summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 2px 16px; padding: 20px 0; }
.menu__group summary::-webkit-details-marker { display: none; }
.menu__group summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 12px; height: 12px; justify-self: center; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--t-ui) var(--ease-out); }
.menu__group[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.menu__group summary:hover .menu__cat { color: var(--accent); }
.menu__group ul { padding-bottom: 20px; }
.menu__cat { font-size: var(--step-lead); grid-column: 1; transition: color var(--t-hover) ease; }
.menu__hours { grid-column: 1; font-size: var(--step-small); color: var(--muted); }
.take__more { margin-top: 28px; }
.menu__item { display: grid; grid-template-columns: 1fr auto 128px; align-items: center; gap: 16px; min-height: 64px; padding: 8px 0; }
.menu__text { display: grid; }
.menu__name { font-weight: 600; }
.menu__desc { color: var(--muted); font-size: var(--step-small); }
.menu__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu__qty { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; background: var(--surface); min-height: 44px; }
.menu__qty button { height: 44px; border: 0; background: transparent; font-size: var(--step-body); font-weight: 600; transition: background-color var(--t-hover) ease; }
.menu__qty button:hover { background: var(--surface-2); }
.menu__qty output { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.menu__item.has-qty .menu__qty { background: var(--ink); color: var(--bg); }
.menu__item.has-qty .menu__qty button:hover { background: #3A2A2E; }
.menu__item.bump .menu__qty output { animation: bump 300ms var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.3); } }

.ticket { grid-column: 9 / 13; align-self: start; position: sticky; top: calc(var(--bar-h) + 24px); background: var(--surface); padding: clamp(20px, 2.2vw, 32px); display: grid; gap: 16px; }
.ticket__h { font-size: var(--step-lead); }
.ticket__empty { color: var(--muted); }
.ticket__lines { display: grid; gap: 6px; }
.ticket__lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; }
.ticket__lines li span:last-child { font-variant-numeric: tabular-nums; }
.ticket__total { display: flex; justify-content: space-between; font-weight: 600; font-size: var(--step-lead); padding-top: 8px; }
.ticket__total span:last-child { font-variant-numeric: tabular-nums; }
.ticket__form { display: grid; gap: 14px; }
.ticket__how { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.ticket__closed { font-size: var(--step-small); color: var(--ink); background: var(--bg); padding: 10px 12px; }
.ticket__foot { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-small); color: var(--muted); }
.ticket__foot .link { color: var(--ink); font-size: var(--step-small); }
.cartbar { display: none; }

/* ---------- Capítol B: la casa ---------- */
.split--b { background: var(--field); }
.stage__frame--still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.stage__clock--fixed { color: var(--ink); }
.letter { padding-top: var(--section); padding-bottom: var(--section); }
.letter .h-head { margin-bottom: 40px; max-width: 12ch; }
.letter__body { display: grid; gap: 20px; max-width: 34em; }
.letter__seal { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: var(--step-body); line-height: 1; margin-bottom: 8px; }
.letter__body p { font-size: var(--step-body); line-height: 1.6; }
.draft-mark { background: var(--ochre); color: var(--ink); padding: 2px 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.letter__sign { margin-top: 12px; font-size: var(--step-lead); display: grid; gap: 4px; }
.letter__sign span { font-family: var(--font-text); font-weight: 400; letter-spacing: 0; font-size: var(--step-small); color: var(--muted); }

/* ---------- Oliana ---------- */
.town { padding: var(--section) 0 var(--section); background: var(--bg); overflow: hidden; }
.town__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding: 0 var(--margin); align-items: start; }
.town__head .h-display { grid-column: 1 / 5; }
.town__text { grid-column: 5 / 9; display: grid; gap: 16px; max-width: 54ch; }
.town__facts { grid-column: 9 / 13; display: grid; gap: 24px; margin: 0; padding-left: 0; }
.town__facts div { display: flex; flex-direction: column-reverse; }
.town__facts dd { font-size: var(--step-head); line-height: 1; }
.town__facts dt { color: var(--muted); font-size: var(--step-body); }
.gallery { margin-top: clamp(64px, 7vw, 112px); }
.gallery__count { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px 24px; padding: 0 var(--margin) 0 6vw; margin-bottom: 20px; font-weight: 600; }
.gallery__hint { color: var(--muted); font-weight: 400; }
.gallery__row { --gh: min(68svh, 640px); display: flex; gap: 12px; height: var(--gh); padding: 0 var(--margin) 0 6vw; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-left: 6vw; scrollbar-width: none; cursor: grab; }
.gallery__row::-webkit-scrollbar { display: none; }
.gallery__row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__row.is-dragging img { pointer-events: none; }
.g { flex: 0 0 auto; height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.g--tall { width: calc(var(--gh) * 0.75); }
.g--wide { width: calc(var(--gh) * 1.6); }
.g--pair { width: calc((var(--gh) - 12px) / 2 * 1.3333); }
.g-img { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; background: var(--surface); }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.g-img:hover img { transform: scale(1.03); }
.g-img figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--bg); color: var(--ink); padding: 8px 12px; font-size: var(--step-small); font-weight: 600; max-width: 90%; }

/* ---------- Rutes ---------- */
.routes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--section) var(--margin); background: var(--surface); }
.routes__pic { grid-column: 1 / 6; align-self: start; position: sticky; top: 12vh; aspect-ratio: 4 / 5; width: min(100%, 34vw); max-height: 80svh; overflow: hidden; background: var(--field); }
.routes__fig { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease; }
.routes__fig.is-on { opacity: 1; }
.routes__fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s var(--ease-out); }
.routes__fig.is-on img { transform: scale(1); }
.routes__list { grid-column: 7 / 12; }
.routes .h-head { margin-bottom: 20px; }
.routes__lead { max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { border: 0; background: var(--bg); color: var(--ink); min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.routes__count { margin-top: 24px; color: var(--muted); font-size: var(--step-small); }
.route-list { margin-top: 12px; }
.route[hidden] { display: none; }
.route__btn { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 60px; padding: 14px 0; background: none; border: 0; text-align: left; color: var(--muted); transition: color var(--t-hover) ease; }
.route__name { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; }
.route__val { font-size: var(--step-small); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.route__btn:hover, .route.is-active .route__btn { color: var(--ink); }
.route__desc { padding: 0 0 20px; max-width: 46ch; }
.route__desc p { color: var(--ink); }
.route__thumb { display: none; }
.route:not([hidden]) .route__desc:not([hidden]) p { animation: swap 500ms var(--ease-expo); }

/* ---------- Preguntes ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--section) var(--margin); }
.faq .h-head { grid-column: 1 / 4; }
.faq__text { grid-column: 5 / 13; columns: 2; column-gap: 56px; }
.faq__text p { break-inside: avoid; margin-bottom: 22px; line-height: 1.55; }
.faq__text strong { font-weight: 600; }

/* ---------- Contacte ---------- */
.contact { position: relative; min-height: 76svh; display: grid; grid-template-rows: auto 1fr auto auto; gap: 32px; padding: calc(var(--bar-h) + 32px) var(--margin) 32px; background: var(--field); color: var(--field-ink); }
.contact__lead { font-size: var(--step-lead); line-height: 1.3; max-width: 22ch; font-weight: 500; }
.contact__mail { grid-row: 3; align-self: end; display: block; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.035em; text-decoration: none; color: var(--field-ink); transition: color var(--t-ui) ease; overflow-wrap: anywhere; }
.contact__mail span { display: block; }
.contact__mail:hover { color: var(--ochre); }
.contact__foot { grid-row: 4; display: flex; justify-content: space-between; align-items: end; gap: 24px; font-size: var(--step-body); color: var(--field-ink); }
.contact__foot a { color: var(--field-ink); }
.contact__k { color: var(--field-muted); }
.contact__foot ul { display: flex; gap: 24px; flex-wrap: wrap; }
.contact :focus-visible { outline-color: var(--ochre); }

/* ---------- Peu ---------- */
.foot { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; color: var(--field-ink); overflow: hidden; background: #0E1A2B; }
.foot__bg { position: absolute; inset: 0; }
.foot__bg img { width: 100%; height: 100%; object-fit: cover; }
.foot__top { position: relative; display: flex; justify-content: space-between; gap: 32px; padding: 32px var(--margin); }
.foot__links { display: grid; gap: 6px; }
.foot__links a, .foot__contact a { color: var(--field-ink); }
.foot__links a { text-decoration: none; font-weight: 500; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.foot__contact { display: grid; gap: 16px; text-align: right; justify-items: end; }
.foot__mark { position: relative; grid-row: 3; justify-self: end; padding: 0 var(--margin) 8px; color: var(--field-ink); }
.foot__h { width: min(calc(63vw - var(--margin)), 1480px); }
.foot__legal { position: relative; grid-row: 4; padding: 24px var(--margin) 28px; font-size: var(--step-small); color: var(--field-ink); }
.foot__legal a { color: var(--field-ink); }
.foot :focus-visible { outline-color: var(--ochre); }

/* ---------- Diàleg de reserva de taula ---------- */
.dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(10, 20, 16, 0.35); } /* taste-skill-ignore: el diàleg sura de debò */
.dialog::backdrop { background: rgba(20, 38, 31, 0.72); }
.dialog[open] { animation: dialog-in 360ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dialog__inner { padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; }
.dialog__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.dialog__form { display: grid; gap: 16px; }
.dialog__form .field input, .dialog__form .field select, .dialog__form textarea { background: var(--surface); }
.dialog__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.dialog__frame { min-height: 520px; background: var(--surface); display: grid; place-items: center; }
.dialog__frame iframe { width: 100%; height: 620px; border: 0; }

/* ---------- Pàgines secundàries ---------- */
.page-legal .bar, .bar.is-solid { background: var(--bg); color: var(--ink); }
.page-legal .bar__mark { opacity: 1; transform: none; pointer-events: auto; }
.legal { max-width: 760px; padding: calc(var(--bar-h) + 80px) var(--margin) var(--section); margin: 0 auto; display: grid; gap: 48px; }
.legal section { display: grid; gap: 14px; }
.page-404 { background: var(--field); color: var(--field-ink); }
.nf { min-height: 100svh; display: grid; align-content: center; gap: 20px; padding: var(--margin); max-width: 900px; margin: 0 auto; }
.nf__num { font-size: var(--step-display); line-height: 0.9; color: var(--ochre); }

/* ---------- Entrades ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
.js .is-in[data-reveal], .js .is-in [data-reveal] { opacity: 1; transform: none; }
.js .menu__item { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js .is-in .menu__item { opacity: 1; transform: none; }
.js .g { transform: translateX(64px); transition: transform 1100ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 90ms); }
.js .gallery.is-in .g { opacity: 1; transform: none; }

/* ---------- Tauleta i mòbil ---------- */
@media (max-width: 1100px) {
  .book__guests { grid-template-columns: 1fr 1fr; }
  .book__guests .field:last-child { grid-column: 1 / -1; }
  .rest__head { grid-column: 1 / 6; }
  .take__menu { grid-column: 1 / 8; }
}

/* ---------- La carta (pàgina del restaurant): el disseny de la carta impresa ---------- */
.carta { --ct-paper: #EDEAE6; --ct-rose: #DCD2D1; --ct-dots: rgba(85, 30, 39, 0.5); display: grid; gap: clamp(12px, 1.6vw, 20px); color: var(--accent); font-family: 'Poppins', var(--font-text); scroll-margin-top: calc(var(--bar-h) + 16px); }
.carta__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(12px, 1.6vw, 20px); }
.carta__cover { position: relative; margin: 0; min-height: clamp(560px, 52vw, 700px); overflow: hidden; background: #8A3A4E; color: #F7F1EF; }
.carta__cover picture, .carta__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carta__brand { position: relative; display: grid; justify-items: center; gap: 18px; padding: 15% 24px 0; }
.carta__logo { width: min(64%, 250px); }
.carta__stars { display: flex; align-items: center; gap: 14px; font-size: 15px; letter-spacing: 0.25em; }
.carta__stars::before, .carta__stars::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: 0.85; }
.carta__motto { position: absolute; left: 24px; right: 24px; bottom: 7%; text-align: center; font-weight: 500; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); letter-spacing: 0.04em; }
.carta__welcome { display: grid; align-content: center; justify-items: center; gap: 22px; padding: clamp(36px, 6vw, 88px) clamp(24px, 5vw, 72px); background: var(--ct-rose); text-align: center; font-style: italic; font-weight: 500; font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem); line-height: 1.75; letter-spacing: 0.02em; }
.carta__welcome p { max-width: 40ch; }
.carta__rule { width: 76px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.75; }

.ct-sheet { background: var(--ct-paper); padding: clamp(36px, 6vw, 88px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 56px); }
.ct-sheet__head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.ct-sheet__title { font-family: 'Italiana', 'Didot', serif; font-weight: 400; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; }
.ct-sheet__title--caps { font-family: 'Poppins', var(--font-text); font-weight: 700; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: 0.06em; }
.ct-sheet__sub { max-width: 46ch; font-style: italic; font-weight: 500; font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem); line-height: 1.6; letter-spacing: 0.08em; text-transform: uppercase; }
.ct-sheet__thanks { margin-top: clamp(16px, 3vw, 40px); text-align: center; font-style: italic; font-weight: 500; line-height: 1.8; letter-spacing: 0.03em; }
.ct-cols { columns: 3 290px; column-gap: clamp(36px, 5vw, 72px); }
.ct-cols--vins { columns: 2 300px; max-width: 900px; margin: 0 auto; }
.ct-sec { break-inside: avoid; margin-bottom: clamp(44px, 5vw, 72px); }
.ct-sec__title { font-weight: 700; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.2; letter-spacing: 0.02em; }
.ct-sec__hours { margin-top: 2px; font-style: italic; font-weight: 500; font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); }
.ct-sec__note { margin-top: 16px; max-width: 36ch; font-style: italic; font-weight: 500; font-size: 0.9375rem; line-height: 1.45; }
.ct-sec__foot { margin-top: 12px; font-size: 0.9375rem; }
.ct-sec--box { padding: 30px clamp(18px, 2.4vw, 30px) 26px; border-radius: 32px; background: var(--ct-rose); }
.ct-sec--box .ct-sec__title, .ct-sec--box .ct-sec__hours { text-align: center; }
.ct-t { width: 100%; margin-top: 18px; border-collapse: collapse; font-weight: 500; font-size: 0.9688rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ct-t thead th { padding: 0 0 4px 12px; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.ct-t tbody th { padding: 11px 14px 3px 0; text-align: left; font-weight: 500; border-bottom: 1px dotted var(--ct-dots); }
.ct-t tbody td { width: 1%; padding: 11px 0 3px 12px; text-align: right; white-space: nowrap; vertical-align: bottom; }
.ct-t--2 tbody td, .ct-t--3 tbody td, .ct-t--4 tbody td { min-width: 58px; text-align: center; }
.ct-t__detail { font-style: italic; font-weight: 400; }
.carta__legal { margin-top: 4px; text-align: center; font-family: var(--font-text); font-size: var(--step-small); color: var(--muted); }
.carta :focus-visible { outline-color: var(--accent); }
@media (max-width: 599px) {
  .carta__top { grid-template-columns: 1fr; }
  .carta__cover { min-height: 0; aspect-ratio: 3 / 4; }
  .carta__logo { width: min(44%, 200px); }
  .carta__brand { padding-top: 8%; gap: 12px; }
}
@media (max-width: 799px) {
  .carta__cover { min-height: 520px; }
  .ct-t { font-size: 0.9375rem; }
  .ct-t thead th { padding-left: 6px; font-size: 0.6875rem; }
  .ct-t tbody td { padding-left: 6px; }
  .ct-t--2 tbody td, .ct-t--3 tbody td, .ct-t--4 tbody td { min-width: 50px; }
}

/* ---------- La nostra història (línia del temps amb fotos de la família) ---------- */
.lp > .hist { max-width: 1240px; }
.hist { display: grid; gap: clamp(56px, 8vw, 120px); padding: 0; margin: 0; list-style: none; position: relative; }
.hist__gen { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; scroll-margin-top: calc(var(--bar-h) + 24px); }
.hist__gen--flip .hist__pic { order: 2; }
.hist__pic { margin: 0; background: var(--surface); }
.hist__pic img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; }
.hist__gen:first-child .hist__pic img { max-height: 82vh; object-fit: contain; background: var(--surface); }
.hist__text { display: grid; gap: 16px; max-width: 54ch; }
.hist__period { justify-self: start; padding: 4px 12px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: var(--step-small); font-weight: 600; letter-spacing: 0.04em; }
.hist__gen-h { display: grid; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.hist__gen-h span { font-family: 'Italiana', serif; font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hist__end { justify-self: center; font-family: 'Italiana', serif; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); text-align: center; }

/* ---------- Activitats ---------- */
.lp > .acts { max-width: 1320px; }
.acts { display: grid; gap: 28px; }
.acts__chips { margin-top: 0; }
.acts__chips .chip { background: var(--surface); }
.acts__chips .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.acts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.act { display: grid; grid-template-rows: auto 1fr; background: var(--surface); scroll-margin-top: calc(var(--bar-h) + 24px); }
.act[hidden] { display: none; }
.act__pic { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.act__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 900ms var(--ease-out); }
.act:hover .act__pic img { transform: scale(1.04); }
.act__kind { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: var(--step-small); font-weight: 600; }
.act__body { display: grid; align-content: start; gap: 14px; padding: 22px clamp(18px, 2vw, 26px) 26px; }
.act__h { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.08; letter-spacing: -0.02em; }
.act__level { justify-self: start; padding: 3px 10px; border-radius: 4px; font-size: var(--step-small); font-weight: 600; color: #fff; background: #3F7A4B; }
.act__level--medium { background: #B57A12; }
.act__level--hard { background: var(--accent); }
.act__level--expert { background: var(--ink); }
.act__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; padding: 14px 0; border-top: 1px solid var(--surface-2); border-bottom: 1px solid var(--surface-2); }
.act__stats div { display: grid; gap: 2px; }
.act__stats .act__start { grid-column: 1 / -1; }
.act__stats dt { font-size: var(--step-small); color: var(--muted); }
.act__stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.act__desc { line-height: 1.5; }
.acts__note { max-width: 70ch; color: var(--muted); font-size: var(--step-small); }
.routes__more { margin-top: 32px; }
@media (max-width: 1099px) { .acts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 799px) {
  .hist__gen, .hist__gen--flip { grid-template-columns: 1fr; }
  .hist__gen--flip .hist__pic { order: 0; }
}
@media (max-width: 699px) { .acts__list { grid-template-columns: 1fr; } }

@media (max-width: 899px) {
  :root { --bar-h: 60px; --gutter: 20px; }
  .bar { gap: 8px; }
  .bar__nav { display: none; }
  .bar__mark .logo { width: 176px; stroke-width: 1.6px; }
  .bar__cta { margin-left: auto; }
  .bar__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; background: var(--bg); color: var(--ink); font-weight: 600; }
  .bar__cta { min-height: 44px; }
  .bar.is-solid .bar__menu { background: var(--surface); }

  .split { display: grid; grid-template-columns: 1fr; }
  .split--a .stage { grid-row: 1; position: relative; height: 62svh; min-height: 380px; padding: 12px; }
  .split--a .wordmark { grid-row: 2; position: relative; top: auto; right: auto; transform: none; margin: -14vw 20px 0; }
  .wordmark__h, .foot__h { display: none; }
  .wordmark__v, .foot__v { display: block; width: min(100%, 420px); }
  .split--a .column { grid-row: 3; grid-column: 1; }
  .hero { min-height: auto; }
  .hero__inner { position: static; padding: 24px 0 64px; gap: 28px; }
  .stage__clock { top: 76px; left: 24px; }
  .intro { padding-top: 88px; padding-bottom: 72px; grid-template-columns: 1fr; }
  .plate__actions { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .book__dates { grid-template-columns: 1fr 1fr; }
  .book__form { margin: 0 -20px; padding: 20px; }

  .split--b .stage { position: relative; grid-row: 1; height: 70svh; min-height: 420px; padding: 12px; }
  .split--b .column { grid-row: 2; grid-column: 1; }
  .letter { padding-top: 72px; padding-bottom: 96px; }

  .rest, .take, .routes, .faq { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .rest__head, .rest__blocks, .take__menu, .ticket, .routes__list, .faq .h-head, .faq__text { grid-column: 1; }
  .rest__head { position: relative; top: auto; margin-bottom: 72px; }
  .rest__clock { display: none; }
  .rest__blocks { gap: 96px; }
  .dish__title { order: 2; }
  .dish__row { order: 1; display: contents; }
  .dish__img { order: 1; }
  .dish__body { order: 3; }
  .dish__row, .dish--flip .dish__row { grid-template-columns: 1fr; }
  .dish--flip .dish__img { order: 1; }
  .dish__img { aspect-ratio: 4 / 3; }
  .ticket { position: relative; top: auto; margin: 48px -20px 0; scroll-margin-top: 80px; }
  .menu__item { grid-template-columns: 1fr auto; grid-template-areas: 'text qty' 'price qty'; row-gap: 2px; }
  .menu__text { grid-area: text; }
  .menu__price { grid-area: price; font-size: var(--step-small); font-weight: 600; }
  .menu__qty { grid-area: qty; width: 124px; }
  .cartbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; transform: translateY(140%); transition: transform 360ms var(--ease-out); box-shadow: 0 12px 30px rgba(10, 20, 16, 0.3); } /* taste-skill-ignore: barra flotant */
  .cartbar.is-on { transform: none; }

  .town__head { grid-template-columns: 1fr; padding: 0 20px; }
  .town__head .h-display, .town__text, .town__facts { grid-column: 1; }
  .town__facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .town__facts dd { font-size: var(--step-lead); }
  .town__facts dt { font-size: var(--step-small); }
  .gallery__count { padding: 0 20px; }
  .gallery__row { --gh: 62svh; padding: 0 20px; gap: 8px; scroll-padding-left: 20px; }
  .g--tall { width: 72vw; }
  .g--pair { width: 64vw; }
  .g--wide { width: 88vw; }
  .g--wide .g-img { flex: 0 0 auto; height: 55vw; margin: auto 0; }

  .routes__pic { display: none; }
  .route__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 14px; }
  .route__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .faq .h-head { margin-bottom: 28px; }
  .faq__text { columns: 1; }

  .contact { min-height: 86svh; padding: 96px 20px 28px; }
  .contact__mail { font-size: 9.2vw; }
  .contact__foot { flex-direction: column; align-items: start; }
  .contact__foot ul { flex-direction: column; gap: 12px; }

  .foot { min-height: 88svh; }
  .foot__top { flex-direction: column; padding: 28px 20px; }
  .foot__contact { text-align: left; justify-items: start; }
  .foot__mark { justify-self: start; padding: 0 20px 8px; width: 100%; }
  .foot__legal { padding: 20px; }
  .dialog__grid { grid-template-columns: 1fr 1fr; }
  .dialog__grid .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .guest__grid { grid-template-columns: 1fr; }
  .offer { grid-template-areas: "dot name name" "dot meta price"; padding: 14px 14px 14px 12px; }
}
@media (max-width: 420px) {
  .book__dates, .book__guests { grid-template-columns: 1fr; }
}

/* ---------- Moviment reduït ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .menu__item, .js .g { opacity: 1; transform: none; }
}

@media print {
  .bar, .sheet, .stage, .wordmark, .cartbar, .dialog, .foot__bg, .gallery { display: none !important; }
  .split { display: block; background: none; }
  .hero, .contact, .rest { background: none; color: #000; min-height: 0; }
}

/* Tauleta (600–899): aprofitar l'amplada */
@media (min-width: 600px) and (max-width: 899px) {
  .rest__head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px; }
  .rest__lead { max-width: none; }
  .contact__foot { flex-direction: row; align-items: end; }
  .contact__foot ul { flex-direction: column; gap: 8px; text-align: right; }
  .contact__mail { font-size: var(--step-display); }
  .contact__lead { max-width: 32ch; }
}

/* ---------- Pàgines dedicades (habitacions, restaurant) ---------- */
.lp { padding: calc(var(--bar-h) + 48px) var(--margin) var(--section); display: grid; justify-items: center; gap: clamp(48px, 6vw, 88px); }
.lp > * { width: 100%; max-width: 1056px; }
.lp > .carta { max-width: 1320px; }
.lp__crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step-small); color: var(--muted); }
.lp__crumbs li + li::before { content: "/"; margin-right: 8px; }
.lp__crumbs a { color: inherit; }
.lp__head { display: grid; gap: 12px; margin-top: -24px; }
.lp__kicker { font-weight: 600; color: var(--accent); }
.lp__head .h-head { max-width: 18ch; }
.lp__intro { display: grid; gap: 18px; max-width: 62ch; font-size: var(--step-lead); line-height: 1.5; }
.lp__intro p + p { font-size: var(--step-body); }
.lp__sec { display: grid; gap: 24px; }
.lp__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.lp__card { display: grid; gap: 10px; align-content: start; scroll-margin-top: calc(var(--bar-h) + 24px); }
.lp__card figure { margin: 0 0 8px; background: var(--surface); aspect-ratio: 1; overflow: hidden; }
.lp__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp__card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.1; }
.lp__card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.lp__meta { font-size: var(--step-small); color: var(--muted); }
.lp__meta b { color: var(--ink); font-size: var(--step-body); }
.lp__note { font-weight: 600; }
.lp__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.lp__rows--one { grid-template-columns: minmax(0, 560px); }
.lp__rows h3 { font-weight: 600; margin-bottom: 8px; }
.lp__rows dl { margin: 0; }
.lp__rows dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--surface-2); }
.lp__rows dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.lp__cta { display: grid; gap: 14px; padding: clamp(28px, 4vw, 56px); background: var(--field); color: var(--field-ink); scroll-margin-top: calc(var(--bar-h) + 24px); }
.lp__cta p { max-width: 52ch; color: var(--field-muted); }
.lp__cta .link { color: var(--field-ink); }
.lp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.lp__faq { display: grid; max-width: 760px; }
.lp__faq details { border-top: 1px solid var(--surface-2); padding: 16px 0; }
.lp__faq summary { cursor: pointer; font-weight: 600; }
.lp__faq details p { margin-top: 8px; max-width: 62ch; }
.lp__more ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
@media (max-width: 899px) {
  .lp__cards { grid-template-columns: 1fr; max-width: 520px; }
  .lp__rows { grid-template-columns: 1fr; }
  .lp__head { margin-top: -16px; }
}
