/* Forno da Vila — tomate, manjericão, farinha e o amarelo da muçarela derretida. */
:root {
  --tomato: #d7261e;
  --basil: #2f6b3a;
  --flour: #fffdf8;
  --char: #231f1c;
  --mozz: #f3c64b;
  --crust: #c98a4b;
  --gray: #6f655d;
  --line: #ece4d6;
  --fun: 'Shrikhand', Georgia, serif;
  --sans: 'Rubik', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--flour); color: var(--char); font: 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--fun); font-weight: 400; margin: 0; line-height: 1.05; }
img.img-missing { visibility: hidden; }
:focus-visible { outline: 3px solid var(--mozz); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 36px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--char); color: var(--flour); border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--basil); }
.btn.cheese { background: var(--mozz); color: var(--char); }

.hero { background: var(--tomato); color: var(--flour); overflow: hidden; }
.hero .top { display: flex; align-items: center; gap: 20px; padding: 20px 0; }
.logo { font: 28px var(--fun); text-decoration: none; }
.hero .top nav { margin-left: auto; display: flex; gap: 20px; font-weight: 500; }
.hero .top nav a { text-decoration: none; }
.hero .body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 30px 0 70px; }
.hero h1 { font-size: clamp(48px, 6.4vw, 88px); }
.hero p { font-size: 18.5px; max-width: 460px; margin: 18px 0 26px; color: #ffe7df; }
.hero .facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 14.5px; }
.hero .facts b { display: block; font: 30px var(--fun); color: var(--mozz); }
.plate { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: end; width: 100%; }
.plate::before { content: ''; position: absolute; inset: -6%; border-radius: 50%; background: repeating-conic-gradient(var(--flour) 0 15deg, #f1e9da 15deg 30deg); opacity: .18; }
.plate img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 10px solid var(--flour); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* monte sua pizza */
.builder { padding: 80px 0; }
.builder h2, .board h2 { font-size: clamp(40px, 5vw, 64px); color: var(--tomato); }
.builder > .wrap > p { color: var(--gray); margin: 8px 0 30px; }
.b-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.step { margin-bottom: 26px; }
.step h3 { font: 600 18px var(--sans); margin-bottom: 10px; }
.toggle { display: inline-flex; background: #f3ece0; border-radius: 999px; padding: 4px; }
.toggle button { border: 0; background: none; border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600; }
.toggle button[aria-pressed="true"] { background: var(--char); color: var(--flour); }
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.halves.whole { grid-template-columns: 1fr; }
.half label { display: block; font-weight: 600; font-size: 14px; color: var(--gray); margin-bottom: 6px; }
.flavors { display: grid; gap: 6px; max-height: 300px; overflow: auto; padding-right: 4px; }
.flavor { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 6px 10px 6px 6px; background: #fff; cursor: pointer; text-align: left; }
.flavor img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); }
.flavor small { color: var(--gray); }
.flavor[aria-pressed="true"] { border-color: var(--tomato); background: #fff5f3; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; }
.extras label { border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; background: #fff; font-weight: 500; }
.extras input { position: absolute; opacity: 0; }
.extras label:has(input:checked) { border-color: var(--basil); background: #eef6ef; }
.extras label:has(input:focus-visible) { outline: 3px solid var(--mozz); }

.ticket { position: sticky; top: 16px; background: #fff; border: 2px solid var(--char); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.pz { width: 180px; height: 180px; margin: 0 auto; }
.pz .crust { fill: var(--crust); }
.pz .sauce { fill: var(--tomato); }
.pz .a, .pz .b { fill: var(--mozz); transition: fill .3s; }
.pz .b.other { fill: #f6dd8d; }
.pz text { font: 600 11px var(--sans); fill: var(--char); }
.pz line { stroke: var(--crust); stroke-width: 4; }
.cur { text-align: center; }
.cur b { display: block; font-size: 18px; }
.cur span { color: var(--gray); font-size: 14px; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; border-top: 2px dashed var(--line); padding-top: 12px; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 14.5px; }
.lines button { border: 0; background: none; color: var(--tomato); cursor: pointer; font-size: 18px; }
.tot { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.tot b { font: 32px var(--fun); color: var(--tomato); }
.ticket select, .ticket input { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px; }

.board { background: var(--char); color: var(--flour); padding: 80px 0; }
.board h2 { color: var(--mozz); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; margin-top: 30px; }
.cols h3 { color: var(--mozz); font-size: 28px; grid-column: 1 / -1; margin-top: 10px; }
.mi { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 10px 0; border-bottom: 1px dashed #4a423c; }
.mi b { font-size: 18px; }
.mi span { text-align: right; white-space: nowrap; color: var(--mozz); font-weight: 600; }
.mi p { margin: 0; color: #c9bfb4; font-size: 14.5px; }
.mi small { display: block; color: #a99e92; font-weight: 400; }

.story { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.story figure { margin: 0; min-height: 420px; position: relative; background: var(--line); }
.story figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story > div { padding: clamp(32px, 6vw, 80px); background: var(--basil); color: var(--flour); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.story h2 { font-size: clamp(34px, 4vw, 52px); }
.story p { margin: 0; color: #dcebdc; }
.story blockquote { margin: 14px 0 0; font-size: 18px; border-left: 4px solid var(--mozz); padding-left: 14px; }
.story cite { display: block; font-size: 14px; color: #b9d3bb; font-style: normal; }
.foot { padding: 28px 0; font-size: 14px; color: var(--gray); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 920px) {
  .hero .top nav { display: none; }
  .hero .body, .b-grid, .story, .cols { grid-template-columns: 1fr; }
  .plate { justify-self: center; max-width: 340px; }
  .halves { grid-template-columns: 1fr; }
  .ticket { position: static; }
}
@media (prefers-reduced-motion: reduce) { .plate img { animation: none; } }
