/**
 * Meio a Meio Pizzaria Child Theme - Main Stylesheet
 * 
 * Preserves 100% of the approved visual design and responsive behaviors.
 */

:root {
  --bg: #f6f1e7;
  --fg: #2b2622;
  --card: #fbf8f2;
  --muted: #ebe3d4;
  --muted-fg: #6b6157;
  --primary: #b8432c;
  --primary-dk: #9a3522;
  --primary-fg: #faf6ee;
  --secondary: #2f4a3c;
  --secondary-fg: #f5f1e8;
  --accent: #e3a33d;
  --accent-fg: #2b2622;
  --charcoal: #2b2622;
  --charcoal-fg: #f3eee4;
  --border: #ddd2bf;
  --ok: #3f8f5a;
  --shadow: 0 20px 50px -20px rgba(184, 67, 44, .45);
  --r: 14px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  background-image: radial-gradient(rgba(43, 38, 34, .045) 1px, transparent 1px);
  background-size: 4px 4px;
  overflow-x: hidden;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
}

.on-dark .eyebrow {
  color: var(--accent);
}

.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  margin-top: 14px;
}

.lead {
  color: var(--muted-fg);
  font-size: 1.08rem;
  margin-top: 14px;
  max-width: 60ch;
}

.on-dark .lead {
  color: rgba(243, 238, 228, .75);
}

section {
  position: relative;
}

.sec {
  padding: 96px 0;
}

em.hl {
  font-style: italic;
  color: var(--accent);
}

em.hl-p {
  font-style: italic;
  color: var(--primary);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s, box-shadow .18s;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 50px;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: currentColor;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
}

.btn-light {
  background: var(--charcoal-fg);
  color: var(--charcoal);
}

.btn-light:hover {
  transform: translateY(-2px);
}

.btn-wa {
  background: #1f8f4e;
  color: #fff;
}

.btn-wa:hover {
  background: #18763f;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Barra de status */
.status {
  background: var(--charcoal);
  color: var(--charcoal-fg);
  font-size: .82rem;
  text-align: center;
  padding: 8px 16px;
}

.status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  animation: ember 1.6s ease-in-out infinite;
}

.status.closed .dot {
  background: #9a8f84;
  animation: none;
}

@keyframes ember {
  50% { opacity: .3; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo em {
  color: var(--secondary);
}

.logo svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 26px;
  font-size: .92rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  border: 0;
  padding: 10px 18px;
  font-weight: 700;
  font-size: .92rem;
  transition: background-color .15s;
}

.cart-btn:hover {
  background: var(--primary-dk);
}

.cart-btn svg {
  width: 18px;
  height: 18px;
}

.badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: .75rem;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  font-weight: 800;
}

.badge[data-n="0"] {
  display: none;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.menu-btn svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

/* Hero */
.hero {
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--charcoal-fg);
  position: relative;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--charcoal) 4%, rgba(43, 38, 34, .78) 42%, rgba(43, 38, 34, .15));
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 140px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.2rem);
  line-height: 1.01;
  max-width: 13ch;
}

.hero .sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-top: 14px;
  opacity: .92;
}

.hero .desc {
  max-width: 52ch;
  opacity: .82;
  margin-top: 16px;
}

.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-size: .88rem;
  opacity: .9;
}

.trust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust b {
  color: var(--accent);
}

.hero-card {
  width: 290px;
  border-radius: 20px;
  background: rgba(251, 248, 242, .96);
  color: var(--fg);
  padding: 20px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6);
}

.hero-card small {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}

.hero-card p.t {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 8px 0 6px;
}

.hero-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.hero-card .price {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--primary);
}

.hero-card button {
  border: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-fg);
  padding: 10px 16px;
  font-weight: 700;
  font-size: .88rem;
  transition: opacity .15s;
}

.hero-card button:hover {
  opacity: .9;
}

/* História */
.hist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hist img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.hist .txt p {
  color: var(--muted-fg);
  font-size: 1.08rem;
  margin-top: 16px;
}

.sign {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 28px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.facts div {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  background: var(--card);
}

.facts b {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--primary);
  font-weight: 600;
}

.facts span {
  font-size: .82rem;
  color: var(--muted-fg);
}

/* Cardápio */
.menu-sec {
  background: rgba(235, 227, 212, .6);
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-top: 40px;
  scrollbar-width: none;
  justify-content: center;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  padding: 10px 20px;
  font-weight: 700;
  font-size: .9rem;
  transition: all .15s;
}

.tab:hover {
  border-color: var(--primary);
}

.tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

.size-legend {
  text-align: center;
  font-size: .85rem;
  color: var(--muted-fg);
  margin-top: 6px;
}

.items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dfe9dc;
  color: #2f5a3a;
}

.tag.hot {
  background: #f6dccf;
  color: var(--primary-dk);
}

.item p {
  color: var(--muted-fg);
  font-size: .94rem;
  flex: 1;
}

.sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.sizes button, .add-one {
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  line-height: 1.25;
  transition: border-color .15s, background .15s;
}

.sizes button:hover, .add-one:hover {
  border-color: var(--primary);
  background: #fff;
}

.sizes button small {
  display: block;
  font-size: .72rem;
  color: var(--muted-fg);
  font-weight: 600;
}

.sizes button b, .add-one b {
  font-size: .95rem;
  color: var(--primary);
}

.sizes button .plus {
  color: var(--primary);
  font-weight: 800;
  margin-right: 2px;
}

.add-one {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-top: 10px;
  font-weight: 700;
}

.sig {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 52px;
}

.sig h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.sig ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 20px;
}

.sig .ln {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
}

.sig .ln i {
  flex: 1;
  border-bottom: 1.5px dotted rgba(107, 97, 87, .4);
}

.sig .ln b {
  color: var(--primary);
}

.sig li p {
  font-size: .9rem;
  color: var(--muted-fg);
  margin-top: 4px;
}

.in-cart {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ok);
}

.menu-full {
  width: min(680px, 100vw);
}

.menu-full .tabs {
  margin-top: 0;
  justify-content: flex-start;
  padding: 16px 22px 6px;
}

.menu-full .size-legend {
  text-align: left;
  padding: 0 22px;
}

.menu-full .items {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 14px 22px 22px;
  overflow-y: auto;
  flex: 1;
  align-content: start;
}

/* Combos */
.combos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.combo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: box-shadow .2s, transform .2s;
}

.combo:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.combo .mini {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px -2px rgba(0,0,0,.3);
  border: 2px solid var(--accent);
  display: block;
}

.combo p.t {
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.25;
  margin-top: 12px;
}

.combo p.n {
  font-size: .9rem;
  color: var(--muted-fg);
  margin-top: 6px;
}

/* Simulador */
.sim {
  background: var(--charcoal);
  color: var(--charcoal-fg);
  overflow: hidden;
  position: relative;
}

.sim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 100%, rgba(227, 163, 61, .32), transparent 60%);
  pointer-events: none;
}

.sim .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.pizza-stage {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#pizza {
  width: min(330px, 82vw);
  height: min(330px, 82vw);
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .65), 0 0 0 4px rgba(227, 163, 61, .25);
  background: #1e1916;
  user-select: none;
}

#pizza .half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: filter .25s ease, opacity .25s ease;
}

#pizza .half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

#pizza .half[data-half="esq"] {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

#pizza .half[data-half="dir"] {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

#pizza .half.dim {
  filter: brightness(.65) saturate(.85);
  opacity: .85;
}

#pizza .half:focus {
  outline: none;
}

#pizza .half:focus-visible {
  filter: brightness(1.15);
}

#pizza .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, #e3a33d, #d89a52, #e3a33d);
  box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
}

.side-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(360px, 100%);
}

.side-pick button {
  border-radius: 12px;
  border: 1.5px solid rgba(243, 238, 228, .2);
  background: transparent;
  padding: 10px;
  text-align: left;
  font-size: .85rem;
  color: inherit;
  transition: border-color .15s, background .15s;
}

.side-pick button small {
  display: block;
  opacity: .6;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.side-pick button[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(227, 163, 61, .12);
}

.panel {
  border-radius: 20px;
  background: rgba(243, 238, 228, .05);
  border: 1px solid rgba(243, 238, 228, .15);
  padding: 26px;
}

.panel .hint {
  font-size: .9rem;
  opacity: .75;
}

.panel .hint strong {
  color: var(--accent);
}

.flavors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.flavors button {
  text-align: left;
  border-radius: 12px;
  border: 1.5px solid rgba(243, 238, 228, .16);
  background: transparent;
  padding: 10px 14px;
  font-size: .9rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  transition: border-color .15s;
  color: inherit;
}

.flavors button span:last-child {
  opacity: .6;
  font-size: .8rem;
  white-space: nowrap;
}

.flavors button:hover {
  border-color: var(--accent);
}

.flavors button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.flavors button[aria-pressed="true"] span:last-child {
  opacity: .8;
}

.seg {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.seg button {
  flex: 1;
  border-radius: 999px;
  border: 1.5px solid rgba(243, 238, 228, .25);
  background: transparent;
  padding: 10px 6px;
  font-weight: 700;
  font-size: .88rem;
  color: inherit;
  transition: all .15s;
}

.seg button small {
  font-weight: 500;
  opacity: .6;
}

.seg button[aria-pressed="true"] {
  background: var(--charcoal-fg);
  color: var(--charcoal);
  border-color: var(--charcoal-fg);
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 22px;
}

.total .v {
  font-family: var(--display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}

.note {
  font-size: .8rem;
  opacity: .6;
  margin-top: 6px;
}

.sim-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

/* Massa */
.massa {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.pizza-top {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  clip-path: circle(41.6% at 50% 49.4%);
  will-change: transform;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 28px;
}

.steps li {
  display: flex;
  gap: 20px;
}

.steps .n {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  min-width: 52px;
}

.steps h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.steps p {
  color: var(--muted-fg);
  margin-top: 4px;
}

/* Salão */
.salao {
  background: var(--secondary);
  color: var(--secondary-fg);
}

.salao .photo {
  margin-top: 40px;
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
}

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.perks span {
  border: 1px solid rgba(245, 241, 232, .25);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .85rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}

.rating b {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
}

.rating span {
  font-size: .9rem;
  opacity: .8;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.review {
  border-radius: 18px;
  background: rgba(245, 241, 232, .06);
  border: 1px solid rgba(245, 241, 232, .15);
  padding: 24px;
  margin: 0;
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
}

.review blockquote {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.4;
}

.review figcaption {
  margin-top: 14px;
  font-size: .85rem;
  opacity: .72;
}

/* Reserva */
.reserva {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.bday {
  margin-top: 28px;
  border-radius: 20px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bday .ic {
  font-size: 2rem;
  line-height: 1;
}

.bday h3 {
  font-size: 1.4rem;
}

.bday p {
  opacity: .92;
  margin-top: 6px;
  font-size: .95rem;
}

.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: grid;
  gap: 16px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label.f {
  display: grid;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
}

.f input, .f select, .f textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 500;
  font-size: 1rem;
  min-height: 48px;
}

.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 67, 44, .15);
}

.f textarea {
  min-height: 80px;
  resize: vertical;
}

.warn {
  font-size: .85rem;
  color: var(--primary-dk);
  background: #f8e3da;
  border-radius: 10px;
  padding: 10px 12px;
}

.okmsg {
  font-size: .85rem;
  color: #245a36;
  background: #dcebdd;
  border-radius: 10px;
  padding: 10px 12px;
}

[hidden] {
  display: none !important;
}

/* FAQ */
.faq {
  max-width: 780px;
  margin: 40px auto 0;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 20px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform .2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 18px;
  color: var(--muted-fg);
}

/* Local */
.local {
  background: var(--charcoal);
  color: var(--charcoal-fg);
}

.local .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.info {
  margin: 30px 0 0;
  display: grid;
  gap: 18px;
}

.info dt {
  font-size: .82rem;
  opacity: .6;
}

.info dd {
  margin: 2px 0 0;
  font-size: 1.08rem;
}

.hours {
  font-size: .95rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
}

.hours .today {
  color: var(--accent);
  font-weight: 700;
}

.map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 228, .15);
  height: 250px;
  max-height: 260px;
  background: #3a342f;
  position: relative;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .45);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.35) contrast(1.05);
}

.local .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.footer {
  background: var(--charcoal);
  color: rgba(243, 238, 228, .6);
  border-top: 1px solid rgba(243, 238, 228, .1);
  padding: 28px 0 40px;
  font-size: .85rem;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer a {
  color: var(--charcoal-fg);
}

.demo-flag {
  display: inline-block;
  border: 1px dashed rgba(243, 238, 228, .35);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .75rem;
}

/* Barra Mobile + Flutuante */
.mbar {
  display: none;
}

.fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 45;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1f8f4e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .2s;
}

.fab:hover {
  transform: scale(1.06);
}

.fab svg {
  width: 30px;
  height: 30px;
}

/* Dialogs */
dialog {
  border: 0;
  padding: 0;
  color: var(--fg);
  background: var(--bg);
}

dialog::backdrop {
  background: rgba(43, 38, 34, .6);
  backdrop-filter: blur(3px);
}

.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(480px, 100vw);
  max-width: 100vw;
  display: none;
  flex-direction: column;
}

.drawer[open] {
  display: flex;
  animation: slide .28s ease;
}

@keyframes slide {
  from { transform: translateX(40px); opacity: 0; }
}

.d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.d-head h2 {
  font-size: 1.7rem;
}

.x {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  transition: background .15s;
}

.x:hover {
  background: var(--muted);
}

.d-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.d-foot {
  border-top: 1px solid var(--border);
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
}

.empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--muted-fg);
}

.empty .big {
  font-size: 3rem;
}

.line {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.line .nm {
  flex: 1;
  font-size: .92rem;
  line-height: 1.3;
}

.line .nm small {
  display: block;
  color: var(--muted-fg);
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 700;
  transition: border-color .15s;
}

.qty button:hover {
  border-color: var(--primary);
}

.qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.sum {
  display: grid;
  gap: 4px;
  font-size: .92rem;
}

.sum div {
  display: flex;
  justify-content: space-between;
}

.sum .tot {
  font-weight: 800;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.radio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.radio-row.two {
  grid-template-columns: 1fr 1fr;
}

.radio-row label {
  position: relative;
}

.radio-row input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.radio-row span {
  display: block;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 6px;
  font-weight: 700;
  font-size: .88rem;
  background: #fff;
  transition: all .15s;
}

.radio-row input:checked + span {
  border-color: var(--primary);
  background: #f8e6df;
  color: var(--primary-dk);
}

.radio-row input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.legend {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mnav {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(340px, 88vw);
  display: none;
  flex-direction: column;
}

.mnav[open] {
  display: flex;
  animation: slide .25s ease;
}

.mnav nav {
  display: grid;
  padding: 10px 22px;
}

.mnav nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--fg);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  z-index: 80;
  background: var(--charcoal);
  color: var(--charcoal-fg);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: .92rem;
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: .25s;
  pointer-events: none;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 32px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast button {
  border: 0;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
}

/* Revelação */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsividade */
@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-card {
    display: none;
  }
  .sim .wrap, .massa, .reserva, .local .wrap, .hist {
    grid-template-columns: 1fr;
  }
  .combos, .reviews {
    grid-template-columns: 1fr 1fr;
  }
  .sig {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .sec {
    padding: 72px 0;
  }
  .items, .combos, .reviews, .sig {
    grid-template-columns: 1fr;
  }
  .tabs {
    justify-content: flex-start;
  }
  .hero .wrap {
    padding-top: 110px;
    padding-bottom: 48px;
  }
  .hero .ctas .btn {
    width: 100%;
  }
  .cart-btn .lbl {
    display: none;
  }
  .cart-btn {
    padding: 10px 14px;
  }
  .fab {
    display: none;
  }
  .mbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(246, 241, 231, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
  .mbar .btn {
    min-height: 46px;
    padding: 10px;
    font-size: .92rem;
  }
  body {
    padding-bottom: 70px;
  }
  .toast {
    bottom: 84px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .facts b {
    font-size: 1.4rem;
  }
  .flavors {
    grid-template-columns: 1fr;
  }
  .sim-actions {
    grid-template-columns: 1fr;
  }
  .salao .photo {
    aspect-ratio: 4/3;
  }
  .massa .pizza-top {
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

