/* Pizza da Vila — palette taken from the dining room:
   white walls, red wall band, wooden ledge, logo black, teal plates. */
:root {
  --wall: #ffffff;
  --stone: #f1efec;
  --ink: #1b1817;
  --ink-2: #5a5452;
  --red: #b3121d;
  --red-deep: #8c0e17;
  --wood: #8a5a36;
  --plate: #2c7479;
  --line: #e2dedb;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Karla", system-ui, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.55 var(--sans); color: var(--ink); background: var(--wall); padding-bottom: 76px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 5.4vw, 2.5rem); }
h3 { font-size: 1.55rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* language */
html[data-lang="pt"] [lang="en"]:not(html) { display: none; }
html[data-lang="en"] [lang="pt"]:not(html) { display: none; }

/* demo ribbon */
.demo { background: var(--ink); color: #fff; font-size: .82rem; text-align: center; padding: 6px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px); }
.brand img { height: 46px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { font: 700 .9rem var(--sans); background: none; border: 1px solid var(--line); border-radius: var(--r);
  min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink); }
.lang:focus-visible, .btn:focus-visible, .mnav a:focus-visible, summary:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--r); font: 700 1rem var(--sans); text-decoration: none; transition: background-color .2s, color .2s; }
.btn.small { min-height: 44px; padding: 0 16px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }

/* hero */
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
.hero-text { padding: 22px 20px 30px; }
.status { display: inline-block; margin: 0 0 14px; padding: 4px 10px; border-radius: 99px; font-size: .9rem; font-weight: 700;
  background: var(--stone); color: var(--ink-2); }
.status.open { background: #e3f1ef; color: var(--plate); }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 0; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts .k { flex: 0 0 82px; font-weight: 700; }
.facts a { text-decoration-color: var(--line); text-underline-offset: 3px; }

/* red band (the wall) */
.band { background: var(--red); color: #fff; margin-top: 8px; }
.band-inner { max-width: 1080px; margin: 0 auto; padding: 38px 20px 30px; }
.band h2 { margin-bottom: .25em; }
.band-lead { font-size: 1.15rem; margin: 0 0 16px; }
.ledge { height: 16px; background: var(--wood); box-shadow: inset 0 4px 0 rgba(0,0,0,.22); }
details > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; font: 700 1.3rem var(--sans); width: 1ch; }
details[open] > summary::before { content: "–"; }
.lunch summary { text-decoration: underline; text-underline-offset: 4px; }
.lunch-list { list-style: none; padding: 0; margin: 8px 0 0; columns: 2 300px; column-gap: 40px; }
.lunch-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.28); break-inside: avoid; }

/* menu */
.menu { padding: 44px 0 20px; }
.note { color: var(--ink-2); margin-top: -4px; }
.mnav { position: sticky; top: 63px; z-index: 10; display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px;
  background: var(--wall); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mnav::-webkit-scrollbar { display: none; }
.mnav a { flex: none; padding: 8px 14px; min-height: 40px; display: flex; align-items: center; border-radius: 99px;
  background: var(--stone); text-decoration: none; font-weight: 700; font-size: .95rem; }
.mnav a:hover { background: var(--ink); color: #fff; }
.msecs { display: grid; gap: 8px 56px; }
@media (min-width: 900px) { .msecs { grid-template-columns: 1fr 1fr; align-items: start; } }
.msec { padding-top: 26px; }
.msec h3 { padding-bottom: 8px; border-bottom: 3px solid var(--red); }
.items { list-style: none; padding: 0; margin: 0; }
.items li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.items.compact li { padding: 7px 0; }
.row { display: flex; align-items: baseline; gap: 8px; }
.row h4 { margin: 0; font: 700 1.05rem/1.3 var(--sans); }
.dots { flex: 1; border-bottom: 2px dotted #cfc9c5; transform: translateY(-4px); min-width: 12px; }
.price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.desc { margin: 3px 0 0; color: var(--ink-2); font-size: .97rem; }
.fav { color: var(--red); margin-left: 6px; font-size: .9em; }
.wine h5 { font: 800 1.1rem var(--serif); margin: 18px 0 4px; }
.takeaway { margin-top: 36px; padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--line); }
.takeaway p { font-size: 1.15rem; margin: 0; }

/* party */
.party { display: grid; gap: 22px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.party img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 42%; border-radius: var(--r); }
.party p { font-size: 1.15rem; color: var(--ink-2); }
@media (min-width: 760px) { .party { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 1080px; margin: 0 auto; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery img + img { object-position: 50% 70%; }

/* visit */
.visit { display: grid; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
@media (min-width: 760px) { .visit { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.addr { font-size: 1.2rem; line-height: 1.45; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { width: 40%; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--red); }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--r); background: var(--stone); }

/* footer */
.foot { padding: 30px 20px 40px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); }
.foot img { width: 120px; margin: 0 auto 10px; }

/* quick-action dock (mobile) */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px;
  color: #fff; text-decoration: none; font-size: .82rem; font-weight: 700; }
.dock a:first-child { background: var(--red); }
.dock svg { width: 22px; height: 22px; fill: currentColor; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .top { padding: 10px 32px; }
  .brand img { height: 56px; }
  .mnav { top: 77px; justify-content: center; }
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; max-width: 1240px; margin: 0 auto; }
  .hero-photo img { aspect-ratio: 1 / 1; height: 100%; max-height: 620px; }
  .hero-text { padding: 40px 48px; }
  .gallery img { aspect-ratio: 4 / 3; }
}

.menu-warn { margin: 14px 0 0; font-weight: 500; padding: 12px 14px; border-left: 4px solid var(--red); background: var(--stone); font-size: .97rem; }
.note.small { font-size: .9rem; }
