@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit.woff2") format("woff2");
}

:root {
  --cream: #f3eadc;
  --cream-deep: #e7d9c6;
  --paper: #fff8ef;
  --ink: #2a1d16;
  --ink-soft: #5e4c40;
  --tomato: #c4372c;
  --tomato-dark: #8e241e;
  --basil: #245c42;
  --basil-deep: #143328;
  --gold: #a67c45;
  --line: rgba(42, 29, 22, 0.14);
  --shadow: 0 18px 50px rgba(42, 29, 22, 0.1);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header: 4.6rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  background:
    radial-gradient(900px 420px at -10% -10%, rgba(196, 55, 44, 0.08), transparent 60%),
    radial-gradient(800px 480px at 110% 0%, rgba(36, 92, 66, 0.1), transparent 55%),
    var(--cream);
}

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

a { color: var(--basil); }

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

[hidden] { display: none !important; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.8rem;
  z-index: 80;
}

.skip:focus { top: 0.6rem; }

.cloth {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #c4372c 0 12px,
    #f6efe4 12px 22px,
    #245c42 22px 34px,
    #f6efe4 34px 44px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 234, 220, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  min-width: 0;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__text strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 650;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  letter-spacing: -0.03em;
}
.brand__text small { color: var(--ink-soft); letter-spacing: 0.04em; }

.nav {
  display: flex;
  gap: 0.25rem;
  order: 3;
  width: 100%;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 560;
}

.nav a:hover { background: rgba(36, 92, 66, 0.08); }

.cart-btn {
  border: 1.5px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.75rem 0.45rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  min-height: 44px;
}

.cart-btn__count {
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--tomato);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 650;
}

.return-banner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.8rem auto 0;
  background: #fff4d8;
  border: 1px solid rgba(166, 124, 69, 0.45);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
}

.return-banner p { margin: 0; flex: 1 1 220px; }
.return-banner button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: grid;
  gap: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--tomato-dark);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  max-width: 11ch;
  color: var(--ink);
}

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
  color: var(--ink-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}

.btn-primary { background: var(--tomato); color: #fffaf4; }
.btn-primary:hover { background: var(--tomato-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: rgba(42, 29, 22, 0.05); }
.btn-block { width: 100%; }
.btn:disabled,
.btn[aria-disabled="true"] {
  background: #c8b8a8;
  color: #fff;
  cursor: not-allowed;
}

.hero__figure { margin: 0; position: relative; }

.hero__figure img {
  width: 100%;
  height: min(68vw, 420px);
  object-fit: cover;
  border-radius: 140px 140px 22px 22px;
  border: 6px solid #fff8ef;
  box-shadow: var(--shadow);
}

.ticket {
  margin: -2.2rem 0.8rem 0;
  position: relative;
  background: var(--paper);
  border-radius: 18px;
  padding: 1rem 1rem 1rem 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(42, 29, 22, 0.08);
}

.ticket::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 8px;
  background: radial-gradient(circle at 0 8px, transparent 7px, var(--tomato) 8px) 0 0 / 8px 18px repeat-y;
}

.ticket__kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--tomato-dark);
  font-weight: 700;
}

.ticket__when {
  margin: 0.25rem 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 620;
}

.ticket__note, .ticket__place { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.steps {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.6rem auto 0;
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.steps li {
  background: rgba(255, 248, 239, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.steps span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--tomato);
  font-size: 1.3rem;
}

.carta, .resenas {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.4rem auto 0;
}

.section-head { text-align: center; margin-bottom: 1rem; }
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 0.45rem auto 0;
  background: linear-gradient(90deg, transparent, var(--tomato), transparent);
}
.section-head p { color: var(--ink-soft); margin: 0.7rem auto 0; max-width: 36rem; }
.section-head--light h2, .section-head--light p { color: #f6efe4; }
.section-head--light h2::after { background: linear-gradient(90deg, transparent, #e7c48a, transparent); }

.sheet {
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 0.4rem 1rem 0.6rem;
  border: 1px solid rgba(42, 29, 22, 0.06);
}

.pizza {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.9rem 0 1rem;
  border-bottom: 1px dashed rgba(42, 29, 22, 0.16);
  min-width: 0;
}

.pizza:last-child { border-bottom: 0; }

/* The photo box has a fixed size. The image is taken out of flow so
   Safari cannot stretch the card to the file's full pixel size. */
.pizza__photo {
  position: relative;
  width: 100%;
  height: 188px;
  flex: none;
  border-radius: 16px;
  background: #efe4d4;
}

.pizza__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.pizza__index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin: 0;
}

.pizza__top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.pizza h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.pizza__price {
  font-weight: 700;
  white-space: nowrap;
}

.pizza__extra {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}

.pizza__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.35rem;
}

.stepper button:disabled { color: #b5a496; cursor: not-allowed; }
.stepper span { min-width: 1.4rem; text-align: center; font-weight: 700; }

.bella-field { display: grid; gap: 0.3rem; }
.bella-field span { font-size: 0.92rem; color: var(--ink-soft); }

.pedido {
  margin-top: 2.6rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.04), transparent 80px),
    var(--basil-deep);
  color: #f6efe4;
  padding: 2.2rem 0 2.6rem;
}

.pedido__inner { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.order-layout { display: grid; gap: 1rem; }
.order-layout > * { min-width: 0; }

.summary-card, .order-form, .review-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.summary-card h3, .review-form h3, .confirm h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 620;
}

.progress { margin: 0.2rem 0 0.8rem; font-weight: 600; }
.progress.is-warn { color: var(--tomato-dark); }

.summary { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.summary li { display: flex; justify-content: space-between; gap: 0.8rem; }
.summary .ing { display: block; color: var(--ink-soft); font-size: 0.92rem; }
.summary__empty { color: var(--ink-soft); margin: 0; }
.summary__total {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  margin: 0.8rem 0 0;
  padding-top: 0.7rem;
  font-size: 1.15rem;
}
.summary__fine { color: var(--ink-soft); font-size: 0.95rem; }

fieldset { border: 0; margin: 0 0 0.9rem; padding: 0; min-width: 0; max-width: 100%; }
legend { font-weight: 650; margin-bottom: 0.45rem; }
.field-block { min-width: 0; max-width: 100%; margin-bottom: 0.9rem; }
.field-label { margin-top: 0; }

.dates {
  display: flex;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.date-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 112px;
  text-align: left;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: white;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  min-height: 84px;
}

.date-chip strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 620; }
.date-chip small { display: block; color: var(--ink-soft); }
.date-chip[aria-pressed="true"] {
  border-color: var(--basil);
  background: #e8f3ec;
}
.date-chip.is-short { border-color: var(--tomato); }
.date-chip:disabled { opacity: 0.55; cursor: not-allowed; background: #f3ebe3; }

.field { display: block; font-weight: 650; margin: 0.85rem 0 0.35rem; }
.optional { font-weight: 450; color: var(--ink-soft); }

input, select, textarea {
  width: 100%;
  font-size: 16px;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid rgba(42, 29, 22, 0.18);
  background: white;
}

textarea { resize: vertical; }

.choice { display: grid; gap: 0.45rem; }
.choice__opt {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}
.choice__opt input { width: auto; }

.callout, .hint, .form-errors, .thanks {
  border-radius: 12px;
}
.callout { background: #f6efe4; padding: 0.75rem 0.85rem; }
.callout p { margin: 0.15rem 0; }
.hint { color: var(--ink-soft); font-size: 0.92rem; margin: 0.4rem 0 0; }
.form-errors {
  background: #fde8e4;
  color: var(--tomato-dark);
  padding: 0.7rem 0.85rem;
  margin-top: 0.8rem;
}
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.thanks { background: #e8f3ec; padding: 0.75rem 0.85rem; margin: 0.7rem 0; }

.confirm { margin-top: 1rem; border-top: 1px dashed var(--line); padding-top: 0.8rem; }
.wa-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  background: #e9f8ee;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0.6rem 0;
}
.after-order {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
}

.resenas { margin-bottom: 5.5rem; }

.rating-summary {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}
.rating-summary p { margin: 0; font-weight: 650; }

.avg-stars { position: relative; display: inline-block; font-size: 1.4rem; letter-spacing: 0.08em; }
.avg-stars__base { color: #e4d3c0; }
.avg-stars__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--p);
  overflow: hidden;
  color: var(--tomato);
  white-space: nowrap;
}

.empty-reviews {
  text-align: center;
  background: var(--paper);
  border-radius: 24px;
  padding: 1.4rem 1rem;
  box-shadow: var(--shadow);
}
.empty-reviews__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 620;
}

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  margin: 0.8rem 0 1rem;
}
.carousel__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.3rem;
}
.carousel__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.5rem;
}
.review-card {
  scroll-snap-align: start;
  flex: 0 0 min(100%, 320px);
  background: var(--paper);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.review-card__stars { color: var(--tomato); letter-spacing: 0.08em; margin: 0; }
.review-card p { margin: 0.35rem 0; }
.review-card__by { color: var(--ink-soft); font-size: 0.92rem; }

.review-form { margin-top: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; }

.star-input {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}
.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.star-input label {
  font-size: 2.1rem;
  line-height: 1;
  color: #e0d0bf;
  cursor: pointer;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--tomato);
}
.star-input input:focus-visible + label {
  outline: 3px solid var(--tomato);
  outline-offset: 2px;
  border-radius: 6px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--ink);
  color: #f6efe4;
  padding: 2rem 1rem 6.5rem;
}
.site-footer a { color: #f0d7a4; }
.site-footer .footer__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  margin: 0 0 0.4rem;
}
.site-footer p { margin: 0.25rem 0; }
.footer__meta { margin-top: 1rem !important; opacity: 0.85; }
.site-footer > div, .footer__meta {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.wa-float {
  position: fixed;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(20, 80, 40, 0.28);
}

body.has-dock .wa-float { bottom: calc(148px + env(safe-area-inset-bottom)); }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 248, 239, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.dock strong, .dock span { display: block; }
.dock span { color: var(--ink-soft); }

.noscript {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  background: #fff4d8;
  padding: 1rem;
  border-radius: 16px;
}

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 2px;
}

@media (min-width: 760px) {
  .nav { order: 0; width: auto; }
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2rem;
    margin-top: 1.8rem;
  }
  .hero__figure img { height: 520px; }
  .ticket {
    position: absolute;
    left: -1.2rem;
    bottom: 1.2rem;
    width: min(320px, 80%);
    margin: 0;
    transform: rotate(-1.5deg);
  }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .pizza {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-areas: "photo body";
    align-items: center;
    column-gap: 1.15rem;
    row-gap: 0.35rem;
  }
  .pizza:has(.bella-field) {
    grid-template-areas:
      "photo body"
      "photo custom";
  }
  .pizza__photo {
    grid-area: photo;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px #fff8ef, 0 0 0 7px var(--tomato);
    justify-self: center;
  }
  .pizza__body { grid-area: body; min-width: 0; }
  .bella-field { grid-area: custom; }
  .order-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .summary-card { position: sticky; top: 5.4rem; }
  .dock { display: none !important; }
  body.has-dock .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.hero__figure img,
.date-chip,
.btn {
  transition: transform 0.18s ease;
}

.date-chip:hover,
.btn:hover { transform: translateY(-1px); }
