/* ─────────────────────────────────────────────────────────────────────────────
   CANTINHO DA VILA — v4.0
   Dark cinematic · warm charcoal · terracotta · self-hosted fonts
   "A mesa está posta."
───────────────────────────────────────────────────────────────────────────── */

/* ── FONTS ─────────────────────────────────────────────────────────────────── */
@font-face { font-family:'Libre Baskerville'; src:url('../fonts/libre-baskerville/LibreBaskerville-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Libre Baskerville'; src:url('../fonts/libre-baskerville/LibreBaskerville-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Libre Baskerville'; src:url('../fonts/libre-baskerville/LibreBaskerville-Italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Lato'; src:url('../fonts/lato/Lato-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Lato'; src:url('../fonts/lato/Lato-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Courier Prime'; src:url('../fonts/courier-prime/CourierPrime-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Courier Prime'; src:url('../fonts/courier-prime/CourierPrime-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* ── CUSTOM PROPERTIES ─────────────────────────────────────────────────────── */
:root {
  --bg:          #1a1510;
  --bg-warm:     #231e17;
  --bg-card:     #2a241c;
  --cream:       #f0e6d6;
  --cream-mid:        rgba(240,230,214,0.60);
  --cream-dim:        rgba(240,230,214,0.12);
  --terracotta:       #c4663a;
  --terracotta-light: #a3471f;
  --terracotta-hover: #d4764a;
  --amber:            #d4a04a;
  --sienna:           #a0522d;
  --bg-light:         #f5efe5;
  --bg-light-2:       #ede4d4;
  --ink:              #2a1f14;
  --ink-mid:          rgba(42,31,20,0.75);
  --ink-dim:     rgba(42,31,20,0.15);

  --font-serif:  'Libre Baskerville', Georgia, serif;
  --font-body:   'Lato', system-ui, sans-serif;
  --font-mono:   'Courier Prime', 'Courier New', monospace;

  --nav-h:       68px;
  --max-w:       1160px;
  --menu-w:      680px;
  --section-gap: clamp(56px, 7vw, 96px);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── GRAIN OVERLAY ─────────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  animation: grainShift 0.8s steps(2) infinite;
}
@keyframes grainShift {
  0%  { background-position: 0 0; }
  50% { background-position: 30px 40px; }
}

/* ── UTILITY ───────────────────────────────────────────────────────────────── */
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.section__inner { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(20px, 5vw, 60px); }
.section { padding-block: var(--section-gap); }

/* ── HEADER ────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900; height: var(--nav-h);
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: rgba(26,21,16,0.92);
  backdrop-filter: blur(16px);
}
.header__inner {
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.header__logo { display: flex; align-items: center; gap: 0.6rem; line-height: 1.1; }
.header__logo-name { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.header__logo-name em { font-style: italic; font-weight: 400; color: var(--terracotta); }
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__links { display: flex; gap: 2rem; align-items: center; }
.header__link {
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.04em;
  color: var(--cream); position: relative; transition: color 0.2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.header__link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out);
}
.header__link:hover { color: var(--cream); }
.header__link:hover::after { transform: scaleX(1); }
.header__link--cta {
  padding: 0.4rem 1.1rem; border: 1px solid var(--cream-dim); color: var(--cream);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.header__link--cta::after { display: none; }
.header__link--cta:hover { background: var(--terracotta); border-color: var(--terracotta); }
.header__burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 11px; }
.header__burger span { display: block; width: 22px; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.header__burger.is-open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.header__burger.is-open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ───────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__close { position: absolute; top: calc((var(--nav-h) - 44px) / 2); right: clamp(20px, 5vw, 60px); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--cream); line-height: 1; }
.mobile-menu__list { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.mobile-menu__link { font-family: var(--font-serif); font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; color: var(--cream); opacity: 0; transform: translateY(20px); display: block; }
.mobile-menu__tagline { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); opacity: 0.6; }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.08); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,21,16,1) 0%, rgba(26,21,16,0.45) 45%, rgba(26,21,16,0.65) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  max-width: 900px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  font-weight: 700; line-height: 0.9;
  color: var(--cream); letter-spacing: -0.02em;
  display: flex; flex-direction: column; align-items: center; gap: 0.06em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45), 0 4px 40px rgba(0,0,0,0.3);
}
.hero__title-da { font-style: italic; font-weight: 400; font-size: 0.5em; color: var(--terracotta); letter-spacing: 0.04em; }
.hero__sub { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--cream); text-transform: uppercase; margin-bottom: 2.5rem; }
.hero__cta {
  display: inline-block; padding: 14px 40px;
  background: var(--terracotta); border: 1px solid var(--terracotta); color: var(--cream);
  font-family: var(--font-serif); font-size: 1rem; font-weight: 400;
  font-style: italic; letter-spacing: 0.02em; text-transform: none;
  transition: background 0.3s, border-color 0.3s; margin-bottom: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 6px rgba(0,0,0,0.2);
}
.hero__cta:hover { background: var(--terracotta-hover); border-color: var(--terracotta-hover); }
.hero__dateline { display: flex; align-items: center; gap: 1.2rem; justify-content: center; }
.hero__dateline-text { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero__dateline-rule { flex: 1; max-width: 100px; height: 1px; background: var(--cream-dim); }

/* ── HIGHLIGHTS ────────────────────────────────────────────────────────────── */
.highlights { background: var(--bg); padding-block: 0; }
.highlights__header {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(20px, 5vw, 60px) clamp(1.5rem, 3vw, 2.5rem);
  max-width: var(--max-w); margin-inline: auto;
}
.highlights__eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.8rem;
}
.highlights__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--cream); line-height: 1.15; text-wrap: balance;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.highlights__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.highlights__panel { position: relative; min-height: 480px; overflow: hidden; }
.highlights__panel-img { position: absolute; inset: 0; overflow: hidden; }
.highlights__panel-img img {
  width: 100%; height: 110%;
  object-fit: cover; object-position: center 30%;
  filter: saturate(0.8) brightness(0.7);
  transition: filter 0.6s var(--ease-out);
}
.highlights__panel:hover .highlights__panel-img img { filter: saturate(1) brightness(0.85); }
.highlights__panel-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem;
  background: linear-gradient(to top, rgba(26,21,16,0.95) 0%, transparent 100%); z-index: 1;
}
.highlights__panel-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.5rem; display: block; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.highlights__panel-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--cream); margin-bottom: 0.5rem; text-shadow: 0 2px 14px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.4); }
.highlights__panel-desc { font-size: 0.85rem; line-height: 1.6; color: var(--cream-mid); max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out), opacity 0.4s; opacity: 0; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.highlights__panel:hover .highlights__panel-desc { max-height: 120px; opacity: 1; }

/* ── EMENTA ────────────────────────────────────────────────────────────────── */
.ementa { background: var(--bg-warm); color: var(--cream); padding-block-start: clamp(28px, 3.5vw, 48px); padding-block-end: 0; }
.ementa__inner { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(20px, 5vw, 60px); }

.ementa__header { text-align: center; padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.ementa__eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem;
}
.ementa__heading {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: var(--cream); line-height: 1.15; text-wrap: balance;
  margin-bottom: 0.8rem; text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.ementa__sub { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--cream-mid); text-shadow: 0 1px 4px rgba(0,0,0,0.2); }

/* Meal sections — editorial split layout */
.ementa__meal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 600px;
  border-top: 1px solid rgba(240,230,214,0.06);
}
.ementa__meal--flip .ementa__meal-photo { order: 2; }
.ementa__meal--flip .ementa__meal-content { order: 1; }

.ementa__meal-photo { overflow: hidden; position: relative; height: 100%; }

.ementa__meal-content {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column;
  background: var(--bg-warm);
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
}
.ementa__meal-content::-webkit-scrollbar { display: none; }
.ementa__meal-hours {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.3rem;
}
.ementa__meal-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--cream);
  line-height: 1.1; margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(240,230,214,0.1);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.ementa__meal-list { display: flex; flex-direction: column; }

/* Carousel */
.ementa__carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.ementa__carousel-track {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.ementa__carousel-slide { flex: 0 0 100%; position: relative; overflow: hidden; }
.ementa__carousel-slide img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center 40%;
  filter: saturate(0.65) brightness(0.62);
}
.ementa__carousel-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 2rem 2.5rem 2.5rem; text-align: center; gap: 0.4rem;
  background: linear-gradient(to top, rgba(26,21,16,0.75) 0%, rgba(26,21,16,0.1) 50%, transparent 100%);
}
.ementa__carousel-nome {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--cream); line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.ementa__carousel-desc {
  font-size: 0.88rem; font-style: italic; color: var(--cream);
  margin-top: 0.4rem; max-width: 26ch; line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 2px 16px rgba(0,0,0,0.6);
}
.ementa__carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(26,21,16,0.65);
  border: 1px solid rgba(240,230,214,0.3);
  cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ementa__carousel-btn svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.ementa__carousel-btn:hover {
  background: rgba(26,21,16,0.92);
  border-color: rgba(240,230,214,0.65);
  transform: translateY(-50%) scale(1.1);
}
.ementa__carousel-btn--prev { left: 1rem; }
.ementa__carousel-btn--next { right: 1rem; }

/* Rows */
.ementa__row { padding-block: 0.85rem; }
.ementa__row + .ementa__row { border-top: 1px solid rgba(240,230,214,0.07); }

.ementa__row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.ementa__row-nome { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 400; color: var(--cream); text-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.ementa__row--feat .ementa__row-nome { font-weight: 400; }
.ementa__row-preco { font-family: var(--font-mono); font-size: 0.95rem; color: var(--amber); white-space: nowrap; flex-shrink: 0; }
.ementa__row-desc { font-size: 0.8rem; font-style: italic; color: var(--cream-mid); margin-top: 0.25rem; line-height: 1.5; }


/* ── HISTÓRIA ──────────────────────────────────────────────────────────────── */
.story { background: var(--bg-light); color: var(--ink); }
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(3rem,6vw,5rem);
  row-gap: 0;
  align-items: start;
}
.story__content { grid-column: 1; grid-row: 1; }
.story__images  { grid-column: 2; grid-row: 1 / 3; }
.story__quote   { grid-column: 1; grid-row: 2; }
.story__content { position: relative; }

.story__year {
  font-family: var(--font-serif); font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 700; color: var(--terracotta); opacity: 0.07;
  position: absolute; top: -0.15em; left: -0.1em;
  line-height: 1; pointer-events: none; user-select: none; z-index: 0;
  will-change: transform;
}
.story__eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; display: block; position: relative; z-index: 1; }
.story__title { font-family: var(--font-serif); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 400; line-height: 1.25; color: var(--ink); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.story__text { font-size: 1rem; line-height: 1.8; color: var(--ink-mid); margin-bottom: 1.2rem; position: relative; z-index: 1; }
.story__quote { margin-top: 2rem; position: relative; padding: 0; border: none; z-index: 1; }
.story__quote::before { content: "\201C"; font-family: var(--font-serif); font-size: 5rem; color: var(--terracotta); opacity: 0.3; line-height: 1; display: block; margin-bottom: -20px; }
.story__quote p { font-family: var(--font-serif); font-size: 1.15rem; font-style: italic; line-height: 1.6; color: var(--ink); margin-bottom: 0.5rem; }
.story__quote cite { font-family: var(--font-mono); font-size: 0.72rem; font-style: normal; letter-spacing: 0.1em; color: var(--terracotta); }

.story__images { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 0.6rem; overflow: hidden; }
.story__img { width: 100%; object-fit: cover; display: block; filter: sepia(0.06) contrast(1.04); border-radius: 2px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.story__img--main { grid-column: 1; grid-row: 1 / 3; height: 420px; object-position: center 30%; }
.story__img--secondary { grid-column: 2; grid-row: 1 / 3; height: 420px; object-position: center 40%; }

/* ── O AMBIENTE ────────────────────────────────────────────────────────────── */
.ambiente { background: var(--bg); padding-block: var(--section-gap); overflow: hidden; }
.ambiente__top {
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.ambiente__eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.8rem;
}
.ambiente__heading {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: var(--cream); line-height: 1.15; text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.ambiente__grid {
  columns: 3;
  column-gap: 8px;
  padding-inline: clamp(20px, 5vw, 60px);
}
.ambiente__item {
  break-inside: avoid;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ambiente__img-wrap { overflow: hidden; }
.ambiente__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.08) saturate(0.88);
  transition: filter 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  will-change: transform;
}
.ambiente__item:hover .ambiente__img-wrap img {
  filter: sepia(0) saturate(1.05);
  transform: scale(1.04);
}
.ambiente__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(26,21,16,0.84) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.ambiente__item:hover .ambiente__overlay { opacity: 1; }
.ambiente__legend {
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.88rem; color: var(--cream);
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  transform: translateY(6px);
  transition: transform 0.4s var(--ease-out);
}
.ambiente__item:hover .ambiente__legend { transform: translateY(0); }
.ambiente__legend::before {
  content: '';
  display: block; width: 18px; height: 1px;
  background: var(--terracotta); opacity: 0.85; margin-bottom: 0.45rem;
}

@media (max-width: 768px) {
  .ambiente__grid { columns: 2; column-gap: 6px; }
  .ambiente__item { margin-bottom: 6px; }
  .ambiente__overlay { opacity: 1; }
  .ambiente__legend  { transform: translateY(0); }
}
@media (max-width: 420px) {
  .ambiente__grid { columns: 1; column-gap: 0; }
  .ambiente__item { margin-bottom: 4px; }
}

@media (min-width: 769px) {
  .ambiente__grid {
    columns: unset;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
    gap: 8px;
  }
  .ambiente__item {
    margin-bottom: 0;
  }
  .ambiente__img-wrap { height: 100%; }
  .ambiente__img-wrap img { height: 100%; object-fit: cover; }
  .ambiente__item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .ambiente__item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .ambiente__item:nth-child(3) { grid-column: 1; grid-row: 2; }
  .ambiente__item:nth-child(4) { grid-column: 2; grid-row: 2; }
  .ambiente__item:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }
  .ambiente__item:nth-child(6) { grid-column: 3; grid-row: 1 / 4; }
}

/* ── VISIT ─────────────────────────────────────────────────────────────────── */
.visit { background: var(--bg-light); color: var(--ink); padding-block-start: 0; }
.visit > .section__inner { position: relative; z-index: 1; padding-block-start: clamp(2.5rem, 4vw, 4rem); }

/* Cinematic hero header — height driven by content */
.visit__hero { position: relative; width: 100%; overflow: hidden; }
.visit__hero-bg { position: absolute; inset: 0; }
.visit__hero-img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 45%; display: block;
  filter: saturate(0.70) brightness(0.48);
}
.visit__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,21,16,0.18) 0%, rgba(26,21,16,0.60) 100%);
}

.visit__hero-inner {
  position: relative; z-index: 3;
  padding: clamp(2.5rem, 4vw, 4rem) clamp(20px, 5vw, 60px) clamp(2rem, 3.5vw, 3.5rem);
}

.visit__heading-wrap { margin-bottom: 0; }
.visit__eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.8rem;
}
.visit__heading {
  font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400; color: var(--cream); line-height: 1.05;
}
.visit__heading em { font-style: italic; color: var(--terracotta); }

/* Info column — single vertical stack */
.visit__info-col {
  display: flex; flex-direction: column;
}
.visit__infoblock {
  padding-block: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--ink-dim);
}
.visit__infoblock:last-child { border-bottom: 1px solid var(--ink-dim); }
.visit__infoblock-title {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 0.9rem; line-height: 1;
  font-weight: 400; font-style: normal;
}

/* Horário — vertical list */
.visit__horario { display: flex; flex-direction: column; gap: 0.85rem; }
.visit__horario-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.visit__horario-dia { font-size: 0.95rem; color: var(--ink-mid); font-weight: 400; }
.visit__horario-hora { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink); }

/* Address */
.visit__address { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink-mid); transition: color 0.2s; }
.visit__address:hover { color: var(--terracotta); }
.visit__pin { width: 13px; height: 13px; color: var(--terracotta); flex-shrink: 0; margin-top: 0.22rem; }

/* Contacts */
.visit__contacts { display: flex; flex-direction: column; gap: 0.7rem; }
.visit__tel { display: block; font-size: 1.05rem; color: var(--ink-mid); transition: color 0.2s; }
.visit__tel:hover { color: var(--terracotta); }
.visit__whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: #fff;
  padding: 0.5rem 1rem; font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; transition: background 0.2s;
  align-self: flex-start;
}
.visit__whatsapp:hover { background: #1ebe5c; }
.visit__wa-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Main: map + form */
.visit__main {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: stretch;
}
.visit__map { overflow: hidden; border-radius: 2px; height: 100%; }
.visit__map-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(0.1) brightness(0.95); }
.visit__map iframe, .visit__map-osm { width: 100%; height: 100%; border: none; display: block; filter: sepia(0.15) contrast(0.92) brightness(1.02); }



/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--cream-dim); }

/* Brand — centred column */
.footer__brand-center {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(20px, 5vw, 60px) clamp(2rem, 4vw, 3.5rem);
  gap: 0;
}
.footer__brand-name {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700; color: var(--cream); line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.footer__brand-name em { font-style: italic; font-weight: 400; color: var(--terracotta); }
.footer__brand-tags {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--terracotta); margin-top: 0.75rem;
}
.footer__social {
  display: flex; gap: 1.4rem; align-items: center;
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
}
.footer__social-link {
  color: var(--cream-mid); transition: color 0.2s;
  display: flex; align-items: center;
}
.footer__social-link:hover { color: var(--cream); }


/* Bottom bar — copyright */
.footer__bottom {
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
  padding-block: clamp(1rem, 2vw, 1.4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.06em; color: var(--cream-mid);
}
.footer__credit {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.06em; color: var(--cream-mid);
}
.footer__credit a {
  color: var(--terracotta);
  text-shadow: 0 0 8px rgba(196,102,58,0.5), 0 0 22px rgba(196,102,58,0.2);
  animation: sitejaglow 3s ease-in-out infinite;
}
@keyframes sitejaglow {
  0%, 100% { text-shadow: 0 0 6px rgba(196,102,58,0.4); }
  50%       { text-shadow: 0 0 14px rgba(196,102,58,0.9), 0 0 32px rgba(196,102,58,0.35); }
}
@media (max-width: 600px) {
  .footer__bottom { flex-direction: column; gap: 0.5rem; }
}

/* ── FOCUS STYLES ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 1px;
}
/* On light backgrounds, use the darker terracotta shade */
.visit > .section__inner :focus-visible,
.story :focus-visible {
  outline-color: var(--terracotta-light);
}

/* ── SCROLL REVEAL BASE ────────────────────────────────────────────────────── */
[data-reveal], [data-reveal-word], [data-reveal-img] { will-change: transform, opacity; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .highlights__grid { grid-template-columns: 1fr 1fr; }
  .highlights__panel:last-child { grid-column: 1 / -1; min-height: 360px; }
  .story__grid { display: flex; flex-direction: column; gap: 2rem; }
  .story__content { order: 1; }
  .story__images  { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .story__quote   { order: 3; }
  .story__img--main, .story__img--secondary { height: 220px; display: block; }
  /* Ambiente tablet: 3 cols mais baixas */

  .visit__main { grid-template-columns: 1fr; }
  .visit__map-img, .visit__map iframe, .visit__map-osm { height: 320px; }

}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .header__links { display: none; }
  .header__burger { display: flex; }
  .hero__title { font-size: clamp(3rem, 13vw, 5rem); }

  /* Highlights carousel on mobile */
  .highlights__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 3px;
    scrollbar-width: none;
  }
  .highlights__grid::-webkit-scrollbar { display: none; }
  .highlights__panel {
    flex: 0 0 88vw;
    scroll-snap-align: start;
    min-height: 380px;
  }
  .highlights__panel:last-child { grid-column: auto; }
  .highlights__panel-desc { max-height: none !important; opacity: 1 !important; }

  .ementa__meal { grid-template-columns: 1fr; height: auto; }
  .ementa__meal-photo { height: 320px; }
  .ementa__meal-content { height: auto; max-height: none; }
  .ementa__meal--flip .ementa__meal-photo { order: 0; }
  .ementa__meal--flip .ementa__meal-content { order: 0; }
  .ementa__carousel-label {
    align-items: flex-start; text-align: left;
    padding: 1.5rem 1.2rem 1.2rem;
  }
  .ementa__carousel-desc {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
  }
  .story__year { font-size: clamp(5rem, 22vw, 9rem); }

  /* Ambiente mobile: stack vertical */
  .ambiente__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 220px 220px 220px;
    height: auto;
  }
  .ambiente__item--large { grid-column: 1; grid-row: auto; }
  .ambiente__item--tall  { grid-column: 1; grid-row: auto; }




}
@media (max-width: 480px) {
  .ambiente__grid { grid-template-rows: 260px 190px 190px 190px; }
  .story__img--main, .story__img--secondary { height: 170px; }
}

/* ── WHATSAPP FLUTUANTE ─────────────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 1px 4px rgba(0,0,0,0.12);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.wa-float:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.26), 0 2px 6px rgba(0,0,0,0.14);
}
.wa-float:active { transform: translateY(0); }
.wa-float__icon { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float__label { display: none; }

/* ── REDUCED MOTION ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  body::after { display: none; animation: none; }
  .highlights__panel-desc { max-height: none !important; opacity: 1 !important; }
  .ambiente__legend { opacity: 1 !important; transform: none !important; }
}
