/* =========================================================
   Lumària — Ristorante
   ========================================================= */

:root {
  --cream: #FAF3E8;
  --sand: #F1E5D2;
  --line: #E4D4B8;
  --brown: #A5713A;
  --brown-dark: #8B5D2D;
  --ink: #1E1B18;
  --maroon: #4A1D0E;
  --text: #5E5249;
  --eyebrow: #76663F;
  --sage: #8BA99A;
  --sage-dark: #6F8E7F;
  --dark: #212322;
  --gold: #C98C46;
  --beige: #E6D6B8;
  --white: #fff;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1320px;
  --gutter: max(24px, calc((100vw - var(--maxw)) / 2));
  --header-h: 66px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
::selection { background: var(--brown); color: var(--cream); }
body.no-scroll { overflow: hidden; }

.container { padding-inline: var(--gutter); }
.text-center { text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--beige); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -.005em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 2.4vw, 36px);
  line-height: 1.15;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .35s var(--ease), box-shadow .45s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brown); color: var(--white); }
.btn--primary::before { background: var(--maroon); }
.btn--primary:hover { box-shadow: 0 10px 26px -12px rgba(74, 29, 14, .7); }
.btn--outline { border: 1.5px solid var(--maroon); color: var(--maroon); }
.btn--outline::before { background: var(--maroon); }
.btn--outline:hover { color: var(--cream); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--maroon);
}
.link-arrow span { display: inline-block; transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
.link-arrow--gold { color: var(--gold); }

/* ---------- Intro loader ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--dark);
  color: var(--cream);
}
.js .intro { display: grid; }
.intro__logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  clip-path: inset(0 100% 0 0);
  animation: introText 1s var(--ease) .1s forwards;
}
.intro__line {
  width: 120px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  animation: introLine .9s var(--ease) .35s forwards;
}
.intro.is-done {
  transform: translateY(-100%);
  transition: transform .9s var(--ease-in-out);
}
.intro.is-done .intro__logo, .intro.is-done .intro__line { opacity: 0; transition: opacity .3s; }
@keyframes introText { to { clip-path: inset(0 0 0 0); } }
@keyframes introLine { to { transform: scaleX(1); } }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--brown);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 232, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease), transform .5s var(--ease);
}
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(33, 35, 34, .35); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding-inline: var(--gutter);
}
.logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.01em;
}
.logo--sm { font-size: 28px; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 46px); }
.nav__link {
  position: relative;
  font-size: 17px;
  font-weight: 500;
  color: var(--maroon);
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__cta { height: 48px; padding: 0 28px; font-size: 15px; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  background: var(--cream);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-in-out); }
.mobile-menu li { overflow: hidden; }
.mobile-menu a:not(.btn) {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.25;
  color: var(--ink);
  transform: translateY(100%);
  transition: transform .6s var(--ease);
}
.mobile-menu.is-open a:not(.btn) { transform: none; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .19s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .23s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .27s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .31s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .35s; }
.mobile-menu.is-open li:nth-child(7) a { transition-delay: .39s; }
.mobile-menu .btn { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 47.2% 1fr;
  min-height: min(calc(100vh - var(--header-h)), 860px);
  border-bottom: 1px solid var(--line);
}
.hero__content {
  padding: 72px 48px 72px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__content .eyebrow { margin-bottom: 26px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 5.6vw, 88px);
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: -.012em;
  margin-bottom: 30px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__text { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.75; max-width: 34em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero__actions .btn { height: 58px; padding: 0 38px; font-size: 16px; }

.stats { display: flex; gap: 20px clamp(22px, 3.2vw, 56px); }
.stat { min-width: 0; }
.stat__value {
  font-weight: 700;
  font-size: 29px;
  line-height: 1.1;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-top: 2px;
}

.hero__media { position: relative; overflow: hidden; background: var(--dark); }
.hero__img, .story__img { position: absolute; inset: -8% 0; will-change: transform; }
.hero__img img, .story__img img { width: 100%; height: 100%; object-fit: cover; }

/* Hero intro animation */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__anim { opacity: 0; transform: translateY(24px); }
.js .hero__media { clip-path: inset(0 0 0 100%); }
.js .hero__img img { transform: scale(1.18); }
.is-loaded .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: .1s; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .2s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .3s; }
.is-loaded .hero__anim {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d) * .09s);
}
.is-loaded .hero__media { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.is-loaded .hero__img img { transform: scale(1); transition: transform 2.2s var(--ease); }

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: calc(var(--gutter) + 36.5%) 1fr;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  min-height: 780px;
}
.story__media {
  position: relative;
  margin-left: var(--gutter);
  overflow: hidden;
  border-radius: 0 0 6px 6px;
  background: var(--dark);
}
.story__content {
  padding: 120px var(--gutter) 120px clamp(40px, 4vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story__content .h2 { margin-bottom: 26px; }
.story__text { font-size: 18px; line-height: 1.8; margin-bottom: 22px; }
.story__quote { font-style: italic; font-size: 18px; color: var(--text); margin-bottom: 36px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--sage);
  transition: transform .5s var(--ease), background .4s;
}
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.06); background: var(--sage-dark); }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature__title { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); line-height: 1.2; margin-bottom: 4px; }
.feature p { font-size: 16px; line-height: 1.7; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--beige); }
.section--dark .h2 { color: var(--white); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.section-head--center-v { align-items: flex-end; margin-bottom: 56px; }
.section-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
}
.scroll-hint button {
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--sage);
  font-size: 16px;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.scroll-hint button:hover { background: var(--sage); color: var(--white); }
.scroll-hint button[data-dir="-1"]:hover { transform: translateX(-3px); }
.scroll-hint button[data-dir="1"]:hover { transform: translateX(3px); }
.scroll-hint button:disabled { opacity: .35; pointer-events: none; }
.scroll-hint--center { margin-top: 14px; margin-bottom: 44px; }

/* ---------- Carousel ---------- */
.carousel__track {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 22px;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track.is-dragging * { pointer-events: none; user-select: none; }
.carousel__track > li { scroll-snap-align: start; flex: none; }
.carousel__bar {
  position: relative;
  height: 3px;
  background: rgba(165, 113, 58, .15);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}
.carousel__bar span {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 68%;
  background: var(--brown);
  border-radius: 3px;
  transition: left .15s linear;
}

/* Dish cards */
.dish {
  width: clamp(270px, 22.2vw, 415px);
  background: var(--sand);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.dish:hover { transform: translateY(-8px); box-shadow: 0 26px 40px -28px rgba(74, 29, 14, .45); }
.dish__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.dish:hover .dish__img img { transform: scale(1.08); }
.dish__img--placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(165,113,58,.08) 0 14px, transparent 14px 28px),
    #EADBC1;
}
.dish__img--placeholder svg { width: 46%; fill: none; stroke: var(--brown); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 1.2s var(--ease); }
.dish__img--placeholder svg circle { fill: var(--brown); stroke: none; }
.dish:hover .dish__img--placeholder svg { transform: translateX(10px) rotate(-3deg); }
.dish__img--placeholder span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); }
.dish__body { padding: 24px 22px 44px; }
.dish__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dish__head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 1.6vw, 28px); line-height: 1.15; color: var(--ink); }
.price { font-weight: 700; font-size: 17px; color: var(--maroon); white-space: nowrap; }
.dish p { font-size: 16px; line-height: 1.7; }

/* ---------- Wines ---------- */
.wines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 64px; }
.wine-col__head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.wine-col__img {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: var(--sand);
  border: 1px dashed var(--beige);
}
.wine-col__img svg { width: 36px; height: 36px; fill: none; stroke: var(--maroon); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wine { stroke: none; transform-origin: 50% 100%; transform-box: fill-box; }
.wine--red { fill: #7A2331; }
.wine--white { fill: #D9B35A; }
.wine-col:hover .wine { animation: slosh 1.4s var(--ease-in-out); }
.bubble { fill: var(--white); stroke: none; animation: bubble 2.4s ease-in infinite; }
.bubble.b2 { animation-delay: .8s; }
.bubble.b3 { animation-delay: 1.6s; }
@keyframes slosh { 0%,100% { transform: none; } 30% { transform: skewX(-8deg) scaleY(.92); } 60% { transform: skewX(6deg); } }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
.wine-col__head h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; color: var(--white); }
.wine-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(230, 214, 184, .12);
}
.wine-list li::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.wine-list li:hover::after { transform: scaleX(1); }
.wine-list strong { display: block; font-weight: 700; font-size: 18px; color: var(--white); line-height: 1.35; transition: color .3s; }
.wine-list li:hover strong { color: var(--gold); }
.wine-list span { font-size: 16px; color: var(--beige); }
.wine-list em { font-style: normal; font-weight: 700; font-size: 18px; color: var(--gold); white-space: nowrap; }

/* ---------- Gallery ---------- */
#galleria .h2 { margin-bottom: 48px; }
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(200px, 21vw));
  gap: 30px;
  max-height: 900px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
  cursor: zoom-in;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.gallery__item::after {
  content: "+";
  position: absolute;
  right: 16px; bottom: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(250, 243, 232, .92);
  color: var(--maroon);
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  transform: scale(.6) rotate(-90deg);
  transition: opacity .4s, transform .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); filter: brightness(.9); }
.gallery__item:hover::after { opacity: 1; transform: none; }

/* ---------- Reviews ---------- */
#recensioni .h2 { margin-bottom: 0; }
.review {
  width: clamp(290px, 25.5vw, 472px);
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 34px 34px 34px;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.review:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -30px rgba(74, 29, 14, .45); }
.stars { display: flex; gap: 5px; margin-bottom: 20px; }
.stars i {
  width: 22px; height: 22px;
  background: var(--sage);
  display: block;
  position: relative;
}
.stars i::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--white);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.review__text { font-style: italic; font-size: 18px; line-height: 1.85; color: var(--text); margin-bottom: 26px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--brown);
  transition: background .4s, color .4s;
}
.review:hover .avatar { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.review__author strong { display: block; color: var(--maroon); font-size: 17px; line-height: 1.3; }
.review__author span { font-size: 16px; }

/* ---------- Booking ---------- */
.booking { padding: 190px 0; }
.booking__grid { display: grid; grid-template-columns: 1fr 1.66fr; gap: clamp(40px, 5vw, 96px); align-items: center; }
.booking__intro .h2 { margin-bottom: 26px; }
.booking__text { font-size: 19px; line-height: 1.75; color: var(--beige); max-width: 30em; }
.booking__card { position: relative; background: var(--white); padding: 54px; min-height: 100%; }
.form__row { display: grid; gap: 28px; margin-bottom: 36px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.form__row--3 { grid-template-columns: repeat(3, 1fr); }
.field span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 10px;
}
.field input {
  width: 100%;
  height: 66px;
  padding: 0 20px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input:hover { border-color: #d7c3a0; }
.field input:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 4px rgba(165, 113, 58, .14); background: #fffdf9; }
.field.is-invalid input { border-color: #B4533A; animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.form__error { min-height: 1.4em; margin: -18px 0 10px; font-size: 15px; color: #B4533A; }
.form .btn--block { height: 70px; font-size: 18px; }
.form .btn.is-loading span { opacity: 0; }
.form .btn.is-loading::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 24px 0; }
.form-success:not([hidden]) { animation: fadeUp .7s var(--ease); }
.form-success h3 { font-family: var(--serif); font-weight: 500; font-size: 38px; color: var(--ink); margin: 18px 0 10px; }
.form-success p { font-size: 18px; margin: 0 auto 28px; max-width: 28em; }
.form-success strong { color: var(--maroon); }
.check { width: 76px; height: 76px; margin: 0 auto; fill: none; stroke: var(--brown); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) .1s forwards; }
.check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(40px, 5vw, 96px); align-items: stretch; }
.contacts__info .h3 { margin-bottom: 26px; }
.info-block { margin-bottom: 26px; }
.info-block h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.info-block p, .hours li { font-size: 19px; line-height: 1.75; }
.hours li { position: relative; line-height: 1.65; transition: color .3s; }
.hours li.is-today { color: var(--maroon); font-weight: 600; }
.hours li.is-today::before {
  content: "";
  position: absolute;
  left: -16px; top: .72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(139, 169, 154, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(139, 169, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 169, 154, 0); } }
.note { font-style: italic; font-size: 16px !important; margin-top: 4px; }
.info-block a { background: linear-gradient(var(--brown), var(--brown)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.info-block a:hover { color: var(--maroon); background-size: 100% 1px; }

.map {
  position: relative;
  min-height: 540px;
  border: 1.5px dashed #8F7E5A;
  background:
    repeating-linear-gradient(135deg, #E6D6B6 0 22px, #F1E5D2 22px 44px);
  overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.35) saturate(.8) contrast(.95); }
.map__label {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 10px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--eyebrow);
  box-shadow: 0 10px 24px -14px rgba(33,35,34,.5);
  transition: background .3s, color .3s;
}
.map__label:hover { background: var(--brown); color: var(--white); }

/* ---------- Footer ---------- */
.footer { background: var(--sand); border-top: 1px solid var(--line); }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-block: 88px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 38px; }
.footer__nav a { position: relative; font-size: 17px; font-weight: 500; color: var(--maroon); }
.footer__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.socials { display: flex; gap: 20px; justify-self: center; }
.socials a {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--maroon);
  transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease);
}
.socials a:hover { background: var(--brown); border-color: var(--brown); color: var(--white); transform: translateY(-4px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer__copy { font-size: 16px; justify-self: end; }
.footer__credits p {
  padding-block: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.footer__credits a {
  color: var(--maroon);
  background: linear-gradient(var(--brown), var(--brown)) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .4s var(--ease), color .3s;
}
.footer__credits a:hover { color: var(--brown); background-size: 100% 1px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: rgba(24, 25, 24, .94);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { max-width: min(1100px, 86vw); max-height: 84vh; }
.lightbox__figure img {
  max-height: 84vh;
  width: auto;
  border-radius: 4px;
  transform: scale(.94);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.lightbox.is-open .lightbox__figure img.is-ready { transform: none; opacity: 1; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(230, 214, 184, .35);
  color: var(--cream);
  font-size: 22px;
  transition: background .3s, color .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--cream); color: var(--dark); }
.lightbox__close { top: 24px; right: 24px; font-size: 30px; line-height: 1; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--beige); font-size: 14px; letter-spacing: .15em; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .reveal-clip[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-in-out); transition-delay: var(--delay, 0s); }
.js .reveal-clip[data-reveal] img { transform: scale(1.25); transition: transform 1.8s var(--ease), filter .6s; transition-delay: var(--delay, 0s); }
.js .reveal-clip[data-reveal].is-in { clip-path: inset(0 0 0 0); }
.js .reveal-clip[data-reveal].is-in img { transform: scale(1); }
.js .gallery__item.is-in:hover img { transform: scale(1.06); transition-delay: 0s; }

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow .5s var(--ease);
  transition-delay: calc(var(--i, 0) * .09s);
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-stagger].is-in > .dish:hover, .js [data-stagger].is-in > .review:hover { transition-delay: 0s; }
.js [data-stagger].is-in > .dish:hover { transform: translateY(-8px); }
.js [data-stagger].is-in > .review:hover { transform: translateY(-6px); }

.js .wine-list li { opacity: 0; transform: translateX(-20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .wine-col.is-in .wine-list li { opacity: 1; transform: none; }
.js .wine-col.is-in .wine-list li:nth-child(1) { transition-delay: .25s; }
.js .wine-col.is-in .wine-list li:nth-child(2) { transition-delay: .35s; }
.js .wine-col.is-in .wine-list li:nth-child(3) { transition-delay: .45s; }

.js .stars i { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.js .is-in .stars i { transform: scale(1); }
.js .is-in .stars i:nth-child(1) { transition-delay: .35s; }
.js .is-in .stars i:nth-child(2) { transition-delay: .42s; }
.js .is-in .stars i:nth-child(3) { transition-delay: .49s; }
.js .is-in .stars i:nth-child(4) { transition-delay: .56s; }
.js .is-in .stars i:nth-child(5) { transition-delay: .63s; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__copy { justify-self: start; }
  .socials { justify-self: end; }
  .features { grid-template-columns: 1fr; gap: 18px; }
}
@media (min-width: 1181px) { .mobile-menu { display: none; } }

@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .hero { grid-template-columns: 1fr; }
  .hero__content { padding: 56px 24px 64px; order: 2; }
  .hero__media { order: 1; aspect-ratio: 4 / 3; }
  .js:not(.is-loaded) .hero__media { clip-path: inset(0 0 100% 0); }
  .story { grid-template-columns: 1fr; min-height: 0; }
  .story__media { margin: 0 24px; aspect-ratio: 4 / 4.6; border-radius: 6px; margin-top: 64px; }
  .story__content { padding: 48px 24px 88px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .wines { grid-template-columns: 1fr 1fr; }
  .booking { padding: 96px 0; }
  .booking__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; max-height: none; gap: 16px; }
  .gallery__item { aspect-ratio: 4 / 3; }
  .gallery__item--tall { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 12; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --header-h: 62px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head__side { align-items: flex-start; }
  .hero__actions .btn { flex: 1; padding: 0 20px; }
  .stats { flex-wrap: wrap; }
  .stat__label { font-size: 12px; }
  .features { grid-template-columns: 1fr; }
  .wines { grid-template-columns: 1fr; }
  .carousel__track { gap: 16px; }
  .dish { width: 82vw; }
  .review { width: 84vw; padding: 26px; }
  .booking__card { padding: 28px 20px; }
  .form__row { gap: 18px; margin-bottom: 26px; }
  .form__row--2, .form__row--3 { grid-template-columns: 1fr; }
  .field input { height: 56px; }
  .form .btn--block { height: 60px; font-size: 16px; }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; padding-block: 56px; }
  .socials { justify-self: start; }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
  .lightbox__count { bottom: 38px; }
  .scroll-hint span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .intro { display: none; }
}
