/* ================= tokens ================= */
:root {
  --amarena: #890057;
  --amarena-2: #6f0047;
  --escuro: #3d0428;
  --noite: #250218;
  --rosa: #f5e1e2;
  --rosa-2: #e9cfd2;
  --creme: #fcf7f4;
  --papel: #fffcfa;
  --ouro: #d4ae68;
  --ouro-2: #e6c88e;
  --ouro-txt: #84601f;
  --tinta: #2a1520;
  --tinta-2: #5b4351;
  --creme-txt: #f7e9ec;
  --creme-txt-2: #e4c9d4;
  --r: 4px;
  --gut: clamp(20px, 5vw, 80px);
  --max: 1240px;

  /* tipografia escolhida pelo Gui em 16/11: Mona Sans larga nos títulos, Mona Sans normal no texto.
     As gamas abaixo (.gama) só servem pro mostruário tipos.html. */
  --display: 'Mona Sans', system-ui, sans-serif;
  --d-w: 700;
  --d-track: -0.03em;
  --d-lh: 1.04;
  --h1-lh: 1.02;
  --d-stretch: 125%;
  --texto: 'Mona Sans', system-ui, sans-serif;
}
.gama { --display: 'Archivo', system-ui, sans-serif; --d-stretch: 115%; --d-track: -0.028em; --texto: 'Instrument Sans', system-ui, sans-serif; }
.gama[data-tipo="mona"] { --display: 'Mona Sans', system-ui, sans-serif; --d-w: 700; --d-stretch: 125%; --d-track: -0.03em; --texto: 'Mona Sans', system-ui, sans-serif; }
.gama[data-tipo="hubot"] { --display: 'Hubot Sans', system-ui, sans-serif; --d-w: 700; --d-stretch: 125%; --d-track: -0.025em; --texto: 'Instrument Sans', system-ui, sans-serif; }
.gama[data-tipo="anybody"] { --display: 'Anybody', system-ui, sans-serif; --d-w: 700; --d-stretch: 130%; --d-track: -0.03em; --texto: 'Instrument Sans', system-ui, sans-serif; }
.gama[data-tipo="encode"] { --display: 'Encode Sans Expanded', system-ui, sans-serif; --d-w: 700; --d-stretch: 100%; --d-track: -0.03em; --texto: 'Albert Sans', system-ui, sans-serif; }
.gama[data-tipo="krona"] { --display: 'Krona One', system-ui, sans-serif; --d-w: 400; --d-stretch: 100%; --d-track: -0.035em; --d-lh: 1.1; --h1-lh: 1.08; --texto: 'Albert Sans', system-ui, sans-serif; }
.gama[data-tipo="funnel"] { --display: 'Funnel Display', system-ui, sans-serif; --d-w: 700; --d-stretch: 100%; --d-track: -0.025em; --texto: 'Instrument Sans', system-ui, sans-serif; }
.gama[data-tipo="syne"] { --display: 'Syne', system-ui, sans-serif; --d-w: 700; --d-stretch: 100%; --d-track: -0.02em; --texto: 'Instrument Sans', system-ui, sans-serif; }
.gama[data-tipo="lexend"] { --display: 'Lexend Exa', system-ui, sans-serif; --d-w: 600; --d-stretch: 100%; --d-track: -0.06em; --texto: 'Albert Sans', system-ui, sans-serif; }
.gama[data-tipo="gabarito"] { --display: 'Gabarito', system-ui, sans-serif; --d-w: 800; --d-stretch: 100%; --d-track: -0.025em; --texto: 'Instrument Sans', system-ui, sans-serif; }
.gama[data-tipo="unbounded"] { --display: 'Unbounded', system-ui, sans-serif; --d-w: 600; --d-stretch: 100%; --d-track: -0.03em; --d-lh: 1.08; --h1-lh: 1.06; --texto: 'Albert Sans', system-ui, sans-serif; }
h1, h2, h3, legend, .tipo-nome, .sabor-n, .sabor-p, .peca figcaption b, .caixa-linhas dd, .caixa-total strong, .sg-nome, .gelato-preco, .menu-indice b, .bolo-leg b, .dia-n { font-stretch: var(--d-stretch); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 18px;
  line-height: 1.62;
  color: var(--tinta);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "calt";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, legend { font-family: var(--display); font-weight: var(--d-w); margin: 0; letter-spacing: var(--d-track); text-wrap: balance; }
h2 { font-size: clamp(42px, 5.4vw, 76px); line-height: var(--d-lh); padding-top: .07em; }
h3 { font-size: 26px; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ================= botões ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; gap: 10px;
  border: 0; border-radius: 999px;
  font-family: var(--texto); font-weight: 600; font-size: 17px; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-ouro { background: var(--ouro); color: var(--noite); }
.btn-ouro:hover { background: var(--ouro-2); }
.btn-claro { background: var(--papel); color: var(--amarena-2); }
.btn-claro:hover { background: #fff; color: var(--amarena); }
.btn-amarena { background: var(--amarena); color: var(--papel); }
.btn-amarena:hover { background: var(--amarena-2); }
.btn-linha { background: var(--rosa); color: var(--amarena-2); }
.btn-linha:hover { background: var(--rosa-2); }
.btn span[aria-hidden] { transition: transform .25s; }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn[disabled] { background: #dccbd1; color: #7a6470; cursor: not-allowed; }

/* ================= topo ================= */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 36px;
  padding: 22px var(--gut);
  color: var(--creme-txt);
  transition: background-color .35s, padding .35s, transform .4s;
}
.topo.cheio { background: rgba(37, 2, 24, .94); backdrop-filter: blur(10px); padding-top: 12px; padding-bottom: 12px; }
.topo.some { transform: translateY(-100%); }
.topo-logo { display: block; line-height: 0; }
.topo-logo img { height: 46px; width: auto; transition: height .35s; }
.topo.cheio .topo-logo img { height: 40px; }
.topo-nav { display: flex; gap: 30px; margin-left: auto; }
.topo-nav a { text-decoration: none; font-weight: 500; font-size: 17px; color: var(--creme-txt); text-underline-offset: 7px; text-decoration-thickness: 1.5px; }
.topo-nav a:hover { text-decoration: underline; text-decoration-color: var(--ouro); }
.topo-whats { min-height: 44px; padding: 0 20px; font-size: 16px; }

/* ================= abertura ================= */
.abre {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 44%);
  grid-template-rows: minmax(130px, 1fr) auto auto minmax(90px, 1.45fr);
  background: var(--amarena);
  color: var(--creme-txt);
}
.cetim { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.abre::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(37,2,24,.62) 0%, rgba(37,2,24,.3) 50%, rgba(37,2,24,.1) 100%);
}
.abre-titulo {
  position: relative; z-index: 2;
  grid-column: 1; grid-row: 2;
  padding: .1em var(--gut) 0;
  font-size: clamp(32px, 3.35vw, 60px);
  line-height: var(--h1-lh);
  letter-spacing: calc(var(--d-track) - .004em);
  color: #fff5f7;
}
.abre-titulo span { display: block; white-space: nowrap; }
.abre-acoes {
  position: relative; z-index: 2;
  grid-column: 1; grid-row: 3;
  display: flex; flex-wrap: wrap; gap: 14px;
  padding: clamp(28px, 3vw, 44px) var(--gut) 0;
}

/* vitrine que gira, como a de balcão */
.vitrine {
  position: relative; z-index: 2;
  grid-column: 2; grid-row: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  height: 100svh; min-height: 640px;
  padding-right: var(--gut);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0, transparent 86px, #000 200px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(transparent 0, transparent 86px, #000 200px, #000 calc(100% - 80px), transparent 100%);
}
.abre-status { display: none; }
.so-celular-btn { display: none; }
.vitrine-col { min-width: 0; }
.vitrine-col.so-celular { display: none; }
.vitrine-trilho { display: flex; flex-direction: column; gap: 14px; animation: vit-sobe 56s linear infinite; will-change: transform; }
.vitrine-col[data-dir="desce"] .vitrine-trilho { animation-direction: reverse; animation-duration: 64s; }
.vitrine:hover .vitrine-trilho { animation-play-state: paused; }
@keyframes vit-sobe { to { transform: translateY(calc(-50% - 7px)); } }
@keyframes vit-corre { to { transform: translateX(calc(-50% - 6px)); } }

.peca { margin: 0; }
.peca img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--escuro); box-shadow: 0 24px 50px -30px rgba(15, 0, 10, .8); }
.peca.alta img { aspect-ratio: 4 / 5.2; }
.peca figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 2px 4px; }
.peca figcaption b { font-family: var(--display); font-weight: var(--d-w); font-size: 20px; line-height: 1.2; letter-spacing: var(--d-track); color: #fff5f7; }
.peca figcaption span { font-size: 15px; line-height: 1.3; color: var(--ouro-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ================= cortina de entrada ================= */
.cortina { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer; }
html.sem-cortina .cortina { display: none; }
html.com-cortina { overflow: hidden; }
.cortina-tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cortina.sem-gl { background: radial-gradient(120% 90% at 70% 20%, #a3106c, #6f0047 50%, #2e0220); transition: opacity .9s ease; }
.cortina.sem-gl.abrindo { opacity: 0; }
.cortina-marca { position: relative; width: min(560px, 74vw); opacity: 0; transform: translateY(14px); animation: marca-entra 1.2s .2s cubic-bezier(.2, .7, .2, 1) forwards; }
.cortina-marca img { width: 100%; height: auto; clip-path: inset(0 100% 0 0); animation: marca-escreve 1.5s .25s cubic-bezier(.65, 0, .25, 1) forwards; filter: drop-shadow(0 6px 18px rgba(20, 0, 12, .45)); }
.cortina-brilho {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(img/logo-ouro.png) center / 100% 100% no-repeat;
          mask: url(img/logo-ouro.png) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 222, .95) 50%, transparent 62%) 130% 0 / 300% 100% no-repeat;
  animation: marca-brilho 1.3s 1.55s ease-in-out forwards;
}
@keyframes marca-entra { to { opacity: 1; transform: none; } }
@keyframes marca-escreve { to { clip-path: inset(0 -2% 0 0); } }
@keyframes marca-brilho { to { background-position: -30% 0; } }

/* ================= card "Monte seu bolo" (página inicial) ================= */
.monte { background: var(--creme); padding: clamp(72px, 9vw, 130px) var(--gut); }
/* mesmo formato do card da Delícias: metade cor com texto, metade foto até a borda */
.monte-card {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 26px; overflow: hidden;
  background: var(--amarena); color: var(--creme-txt);
  box-shadow: 0 50px 90px -60px rgba(61, 4, 40, .8);
}
.monte-texto { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 60px); }
.monte-texto h2 { color: #fff5f7; font-size: clamp(40px, 4.4vw, 60px); }
.monte-texto p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--creme-txt-2); max-width: 36ch; }
.monte-btn { align-self: flex-start; gap: 10px; margin-top: 30px; min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 999px; transition: background-color .25s, transform .25s; }
.monte-btn:hover { transform: translateY(-2px); }
.monte-btn span { transition: transform .25s; }
.monte-btn:hover span { transform: translateX(4px); }
.monte-foto { position: relative; display: block; overflow: hidden; min-height: 380px; background: #efe6d6; }
.monte-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.45); transform-origin: center 62%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.monte-card:hover .monte-foto img { transform: scale(1.52); }

/* ================= página de pedidos ================= */
.pg-encomenda .enc { padding-top: clamp(130px, 14vw, 170px); }
.voltar { display: inline-block; margin-bottom: 18px; font-weight: 600; font-size: 16px; color: var(--amarena); text-underline-offset: 6px; }
.enc-cab h1 { color: var(--amarena-2); font-size: clamp(46px, 6vw, 84px); line-height: var(--d-lh); padding-top: .07em; }
.passo-nota a { color: var(--amarena); font-weight: 600; text-underline-offset: 4px; }
/* foto das camadas ampliada, de ponta a ponta no topo do cartão (como na Delícias) */
.corte-img { height: 230px; overflow: hidden; padding: 0; background: #efe6d6; }
.corte-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.corte:hover .corte-img img { transform: scale(1.78); }
.rodape-curto { padding-top: 64px; }
.rodape-curto .rodape-logo { width: min(260px, 60vw); }
.rodape-curto .rodape-linha { margin-top: 32px; }

/* ================= encomendas ================= */
.enc { background: var(--rosa); padding: clamp(88px, 11vw, 150px) var(--gut); }
.enc-cab, .enc-grid { max-width: var(--max); margin: 0 auto; }
.enc-cab { margin-bottom: clamp(48px, 6vw, 80px); }
.enc-cab h2 { color: var(--amarena-2); max-width: 13ch; }
.enc-cab p { color: var(--tinta-2); max-width: 52ch; margin-top: 22px; font-size: 19px; }
.enc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(36px, 6vw, 88px); align-items: start; }

.passo { border: 0; margin: 0 0 60px; padding: 0; min-width: 0; }
.passo[hidden] { display: none; }
.passo legend { font-size: 32px; line-height: 1.15; color: var(--tinta); padding: 0; margin-bottom: 20px; }
.passo-nota { font-size: 16px; line-height: 1.5; color: var(--tinta-2); margin-top: 14px; }
.passo legend + .passo-nota { margin-top: -8px; margin-bottom: 22px; }
.passo.entra { animation: entra .5s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }

.tipos { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rosa-2); }
.tipo {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  border: 0; background: none; padding: 4px 16px 18px 0;
  color: var(--tinta-2);
  transition: color .25s;
}
.tipo::after { content: ""; position: absolute; left: 0; right: 16px; bottom: -1px; height: 3px; background: var(--amarena); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tipo:hover { color: var(--tinta); }
.tipo-nome { font-family: var(--display); font-weight: var(--d-w); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: var(--d-track); }
.tipo-sub { font-size: 16px; margin-top: 4px; }
.tipo[aria-checked="true"] { color: var(--amarena-2); }
.tipo[aria-checked="true"]::after { transform: scaleX(1); }
.tipo-quadro { margin-top: 26px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: center; }
.tipo-quadro[hidden] { display: none; }
.tipo-quadro img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); animation: entra .5s ease both; }
.tipo-quadro p { color: var(--tinta-2); font-size: 18px; max-width: 40ch; }

/* sabores em cartões com o corte do bolo (esquema "monte seu bolo") */
.linha-tipo { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: -4px 0 22px; }
.linha-op span { font-weight: 400; font-size: 15px; color: var(--tinta-2); margin-left: 4px; }
.cortes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.corte {
  position: relative; display: flex; flex-direction: column; text-align: left;
  padding: 0; overflow: hidden;
  background: var(--papel); color: var(--tinta);
  border: 2px solid transparent; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(61, 4, 40, .06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .2s ease;
}
.corte:hover { transform: translateY(-4px); box-shadow: 0 18px 38px -20px rgba(61, 4, 40, .4); }
.corte-txt { display: flex; flex-direction: column; padding: 18px 20px 20px; flex: 1; }
.corte-n { font-family: var(--display); font-weight: var(--d-w); font-stretch: var(--d-stretch); letter-spacing: var(--d-track); font-size: 22px; line-height: 1.2; color: var(--amarena-2); }
.corte-d { font-size: 15px; line-height: 1.45; color: var(--tinta-2); margin-top: 6px; }
.corte-p { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 600; color: var(--amarena-2); font-variant-numeric: tabular-nums; }
.corte-ag { font-size: 14px; color: var(--ouro-txt); font-weight: 500; }
.corte::after {
  content: ""; position: absolute; z-index: 2; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ouro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23250218' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.corte[aria-checked="true"] { border-color: var(--ouro); box-shadow: 0 18px 38px -20px rgba(176, 130, 60, .6); }
.corte[aria-checked="true"]::after { transform: scale(1); }

.pessoas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-bottom: 26px; }
.contador { display: inline-flex; align-items: stretch; background: var(--papel); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rosa-2); }
.cont-btn { width: 54px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--amarena-2); border-radius: 12px; transition: background-color .2s; }
.cont-btn:hover { background: #fff; }
.contador input {
  width: 74px; border: 0; background: none; text-align: center;
  font-family: var(--display); font-weight: var(--d-w); font-stretch: var(--d-stretch); font-size: 34px; line-height: 1; padding: 10px 0 8px; color: var(--tinta);
  font-variant-numeric: tabular-nums lining-nums; -moz-appearance: textfield;
}
.contador input::-webkit-outer-spin-button, .contador input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.contador input:focus { outline: 2px solid var(--amarena); outline-offset: -2px; border-radius: 6px; }
.pessoas-leg { font-size: 17px; font-weight: 600; color: var(--tinta-2); }
/* calculadora: três resultados, como na Delícias */
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.calc-item { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px 10px 18px; border-radius: 18px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--rosa-2); min-height: 112px; }
.calc-item b { font-family: var(--display); font-weight: var(--d-w); font-stretch: var(--d-stretch); letter-spacing: var(--d-track); font-size: clamp(26px, 3vw, 36px); line-height: 1.05; color: var(--amarena-2); font-variant-numeric: tabular-nums lining-nums; }
.calc-item:last-child b { font-size: clamp(20px, 2.2vw, 26px); }
.calc-item span { margin-top: 6px; font-size: 15px; line-height: 1.3; color: var(--tinta-2); }
.calc-nota { margin-top: 10px; font-size: 15px; color: var(--tinta-2); }
.sugestao { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--tinta); }
.sugestao b { color: var(--amarena-2); font-weight: 600; }
.bolos-cima.apagado { opacity: .35; pointer-events: auto; }
.so-bolo { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 17px; cursor: pointer; }
.so-bolo input { width: 22px; height: 22px; accent-color: var(--amarena); margin: 0; }
.so-bolo small { color: var(--tinta-2); font-size: 15px; }

.bolos-cima { display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 26px); max-width: 620px; }
.bolo-cima { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.bolo-cima svg { display: block; overflow: visible; width: 100%; height: auto; }
.bolo-cima .massa { fill: var(--papel); stroke: var(--rosa-2); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.bolo-cima .confeito { fill: #cfadb7; transition: fill .3s; }
.bolo-cima:hover .massa { stroke: var(--amarena); }
.bolo-cima[aria-pressed="true"] .massa { fill: var(--amarena); stroke: var(--amarena); }
.bolo-cima[aria-pressed="true"] .confeito { fill: var(--ouro); }
.bolo-leg { display: flex; flex-direction: column; align-items: center; line-height: 1.3; text-align: center; }
.bolo-leg b { font-family: var(--display); font-weight: var(--d-w); font-size: 21px; letter-spacing: var(--d-track); }
.bolo-leg span { font-size: 16px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.bolo-cima[aria-pressed="true"] .bolo-leg b { color: var(--amarena-2); }

.sabores { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.sabor {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; align-items: baseline;
  text-align: left; border: 0; background: transparent;
  padding: 16px 14px 15px; margin: 0 -14px;
  border-radius: var(--r);
  box-shadow: inset 0 -1px 0 var(--rosa-2);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.sabor:hover { background: rgba(255, 252, 250, .7); }
.sabor-n { font-family: var(--display); font-weight: var(--d-w); font-size: 22px; line-height: 1.2; letter-spacing: var(--d-track); }
.sabor-p { font-family: var(--display); font-weight: var(--d-w); font-size: 21px; font-variant-numeric: tabular-nums; color: var(--amarena-2); }
.sabor-d { grid-column: 1 / -1; font-size: 16px; color: var(--tinta-2); line-height: 1.45; }
.sabor-ag { grid-column: 1 / -1; font-size: 15px; color: var(--ouro-txt); font-weight: 500; }
.sabor[aria-checked="true"] { background: var(--amarena); color: var(--papel); box-shadow: none; }
.sabor[aria-checked="true"] .sabor-p { color: var(--ouro-2); }
.sabor[aria-checked="true"] .sabor-d { color: var(--creme-txt-2); }
.sabor[aria-checked="true"] .sabor-ag { color: var(--ouro-2); }

.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.dia {
  flex: 0 0 auto; width: 72px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center;
  padding: 11px 0 9px; border: 0; border-radius: var(--r);
  background: var(--papel);
  transition: background-color .2s, color .2s;
}
.dia-sem { font-size: 15px; color: var(--tinta-2); }
.dia-n { font-family: var(--display); font-weight: var(--d-w); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.dia-mes { font-size: 14px; color: var(--tinta-2); min-height: 20px; }
.dia:hover:not([disabled]) { background: #fff; }
.dia[aria-pressed="true"] { background: var(--amarena); color: var(--papel); }
.dia[aria-pressed="true"] .dia-sem, .dia[aria-pressed="true"] .dia-mes { color: var(--creme-txt-2); }
.dia[disabled] { background: transparent; color: #a8939c; cursor: not-allowed; }
.dia[disabled] .dia-sem, .dia[disabled] .dia-mes { color: #a8939c; }

.dia-linha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; margin-top: 28px; }
.jeito { display: flex; gap: 28px; padding-bottom: 12px; }
.jeito-op { border: 0; background: none; padding: 4px 0; font-weight: 600; font-size: 18px; color: var(--tinta-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 9px; text-decoration-thickness: 2px; transition: color .2s, text-decoration-color .2s; }
.jeito-op:hover { color: var(--tinta); }
.jeito-op[aria-checked="true"] { color: var(--amarena-2); text-decoration-color: var(--amarena); }

.campo { display: flex; flex-direction: column; gap: 7px; margin-top: 22px; }
.campo[hidden] { display: none; }
.campo span { font-weight: 600; font-size: 16px; }
.campo input, .campo select {
  font: inherit; font-size: 17px; color: var(--tinta);
  background: var(--papel); border: 1px solid var(--rosa-2); border-radius: var(--r);
  padding: 13px 14px; width: 100%; min-height: 52px;
}
.campo input::placeholder { color: #9d8792; }
.campo input:focus, .campo select:focus { outline: 2px solid var(--amarena); outline-offset: 0; border-color: transparent; }
.dia-linha .campo { margin-top: 0; }
.campo-hora { width: 200px; }
.campos-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 18px; max-width: 640px; }
#campo-numero { max-width: 220px; }

.velas { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; max-width: 640px; }
.vela {
  display: flex; gap: 14px; align-items: center;
  border: 0; background: none; text-align: left;
  padding: 13px 0; box-shadow: inset 0 -1px 0 var(--rosa-2);
  font-size: 17px;
}
.vela::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 4px;
  background: var(--papel); box-shadow: inset 0 0 0 1.5px #b79faa;
  transition: background-color .2s, box-shadow .2s;
}
.vela span:first-child { margin-right: auto; }
.vela-p { font-variant-numeric: tabular-nums; color: var(--tinta-2); }
.vela[aria-pressed="true"]::before { background: var(--amarena) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fffcfa' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: none; }
.vela[aria-pressed="true"] { font-weight: 600; }

/* tampa da caixa de bolo, com a fita */
.caixa-wrap { position: sticky; top: 100px; }
.caixa {
  position: relative; overflow: hidden;
  background: var(--papel);
  border-radius: var(--r);
  box-shadow: 0 1px 0 rgba(111, 0, 71, .06), 0 2px 6px rgba(61, 4, 40, .06), 0 40px 70px -40px rgba(61, 4, 40, .45);
  min-height: 360px;
}
.caixa::before { /* aba da tampa */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: linear-gradient(#f3e6e3, rgba(243, 230, 227, 0));
}
.fita {
  position: absolute; top: 0; bottom: 0; left: 26px; width: 26px;
  background: linear-gradient(90deg, #5a0039 0%, #9a1069 38%, #b4307f 50%, #8d005a 64%, #5e003c 100%);
  overflow: hidden;
}
.fita::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(transparent, rgba(255, 225, 170, .55), transparent); }
.caixa.completa .fita::after { animation: brilho 1.4s ease .1s; }
@keyframes brilho { to { top: 110%; } }
.caixa-conteudo { padding: 34px 30px 30px 82px; }
.caixa-logo { width: 150px; height: auto; margin-bottom: 26px; }
.caixa-vazia { color: var(--tinta-2); font-size: 17px; }
.caixa-linhas { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.caixa-linhas div { display: flex; flex-direction: column; }
.caixa-linhas dt { font-size: 15px; color: var(--tinta-2); }
.caixa-linhas dd { margin: 0; font-family: var(--display); font-weight: var(--d-w); font-size: 22px; line-height: 1.25; letter-spacing: var(--d-track); color: var(--tinta); }
.caixa-linhas dd small { display: block; font-family: var(--texto); font-size: 16px; letter-spacing: 0; color: var(--tinta-2); margin-top: 2px; }
.caixa-linhas .novo dd { animation: pisca .8s ease; }
@keyframes pisca { from { color: var(--amarena); } }
.caixa-total { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rosa-2); }
.caixa-total[hidden] { display: none; }
.caixa-total span { font-size: 15px; color: var(--tinta-2); }
.caixa-total strong { font-family: var(--display); font-weight: var(--d-w); font-size: 42px; line-height: 1.05; white-space: nowrap; color: var(--amarena-2); font-variant-numeric: tabular-nums lining-nums; }
.enviar { width: 100%; margin-top: 18px; min-height: 60px; font-size: 18px; }
.enviar-falta { margin-top: 12px; font-size: 16px; color: var(--tinta-2); text-align: center; }

.barra-enc { display: none; }

/* ================= gelato ================= */
.gelato { background: var(--escuro); color: var(--creme-txt); padding: clamp(88px, 11vw, 150px) var(--gut); overflow: hidden; }
.gelato-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.gelato-fotos { position: relative; padding: 0 12% 18% 0; }
.gf-grande { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; border-radius: 26px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.gf-pequena { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75); }
.gelato h2 { color: #fff5f7; }
.gelato-texto > p { margin-top: 20px; max-width: 46ch; color: var(--creme-txt-2); font-size: 18px; }
.gl-bloco { margin-top: 36px; }
.gl-titulo { font-size: 24px; color: var(--ouro-2); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.gl-titulo span { font-family: var(--texto); font-weight: 400; font-stretch: 100%; letter-spacing: 0; font-size: 15px; color: var(--creme-txt-2); }
.gl-lista { list-style: none; margin: 14px 0 0; padding: 0; }
.gl-lista li { padding: 10px 0; border-top: 1px solid rgba(230, 200, 142, .18); }
.gl-lista li:last-child { border-bottom: 1px solid rgba(230, 200, 142, .18); }
.gl-linha { display: flex; align-items: baseline; gap: 10px; }
.gl-n { font-weight: 600; font-size: 17px; color: #fff5f7; }
.gl-linha i { flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(230, 200, 142, .35); transform: translateY(-4px); }
.gl-p { font-family: var(--display); font-weight: var(--d-w); font-stretch: var(--d-stretch); letter-spacing: var(--d-track); font-size: 18px; color: var(--ouro-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gl-d { display: block; margin-top: 2px; font-size: 15px; color: var(--creme-txt-2); }
.gl-duas { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.gl-duas li:nth-last-child(2) { border-bottom: 1px solid rgba(230, 200, 142, .18); }
.gl-btn { margin-top: 36px; gap: 10px; }

/* ================= cardápio ================= */
.menu { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 170px) var(--gut); display: grid; place-items: center; background: var(--noite); }
.menu-fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.85); transform: scale(1.04); }
.menu-carta {
  position: relative; z-index: 1;
  width: min(720px, 100%);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(32px, 4vw, 44px);
  background: var(--papel); color: var(--tinta);
  border-radius: 28px;
  text-decoration: none; text-align: center;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.menu-carta:hover { transform: translateY(-6px); box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .8); }
.menu-logo { width: 160px; height: auto; margin: 0 auto 22px; }
.menu-carta h2 { color: var(--amarena-2); font-size: clamp(40px, 4.6vw, 58px); }
.menu-indice { list-style: none; padding: 0; margin: 26px 0 30px; text-align: left; columns: 2; column-gap: 36px; }
.menu-indice li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; break-inside: avoid; }
.menu-indice b { font-family: var(--display); font-weight: var(--d-w); font-stretch: var(--d-stretch); font-size: 18px; letter-spacing: var(--d-track); white-space: nowrap; }
.menu-indice i { flex: 1; min-width: 12px; border-bottom: 2px dotted #d9c3ca; transform: translateY(-5px); }
.menu-indice span { font-size: 15px; color: var(--tinta-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-abrir { gap: 10px; }

/* ================= casa ================= */
.casa { background: var(--rosa); padding: clamp(88px, 11vw, 150px) var(--gut); }
.casa > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.casa-topo { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(36px, 6vw, 96px); align-items: end; }
.casa h2 { color: var(--amarena-2); }
.casa-texto p { color: var(--tinta-2); max-width: 44ch; margin-top: 20px; font-size: 18px; }

.aval { background: #fff; border-radius: 20px; padding: 22px 24px 20px; box-shadow: 0 1px 2px rgba(60, 20, 40, .08), 0 18px 40px -26px rgba(60, 20, 40, .35); }
.aval-topo { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.aval-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--amarena); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 19px; font-family: Roboto, Arial, sans-serif; }
.aval-nome { font-weight: 600; font-size: 17px; line-height: 1.3; font-family: Roboto, Arial, var(--texto); }
.aval-meta { font-size: 15px; color: #5f6368; font-family: Roboto, Arial, var(--texto); }
.estrelas { color: #fbbc04; letter-spacing: 1px; margin-right: 6px; }
.aval-g { width: 24px; height: 24px; margin-left: auto; }
.aval-texto { font-size: 17px; line-height: 1.55; color: #202124; font-family: Roboto, Arial, var(--texto); }
.aval-rodape { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ececec; font-size: 15px; color: #5f6368; font-family: Roboto, Arial, var(--texto); }

.casa-fotos { display: grid; grid-template-columns: 2.1fr 1fr 1fr; gap: 16px; height: clamp(300px, 38vw, 540px); margin-top: clamp(48px, 6vw, 72px); }
.casa-fotos img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.casa-fotos img:hover { transform: scale(1.015); }
.casa-fotos img:nth-child(2) { object-position: 50% 38%; }

/* cartão de visita: endereço, horário e mapa */
.onde {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--papel); border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(61, 4, 40, .06), 0 30px 60px -40px rgba(61, 4, 40, .4);
}
.onde-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; padding: clamp(28px, 4vw, 48px); align-content: start; }
.onde h3 { margin-bottom: 10px; color: var(--amarena-2); font-size: 24px; }
.onde-end p { color: var(--tinta-2); font-size: 17px; }
.onde-hora { grid-row: span 2; }
.onde-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-self: end; }
.onde-acoes .btn { min-height: 48px; padding: 0 20px; font-size: 16px; gap: 8px; }
.onde-mapa { position: relative; min-height: 380px; background: #efe1df; }
.onde-mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.agora { font-weight: 600; color: var(--amarena-2); margin-top: 10px; font-size: 16px; }
.horario { border-collapse: collapse; width: 100%; font-size: 16px; }
.horario td { padding: 6px 0; color: var(--tinta-2); border-bottom: 1px solid var(--rosa-2); }
.horario td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.horario tr.hoje td { color: var(--tinta); font-weight: 600; }

/* ================= rodapé ================= */
.rodape { background: var(--noite); color: var(--creme-txt); padding: clamp(80px, 10vw, 130px) var(--gut) 44px; text-align: center; }
.rodape-logo { width: min(420px, 78vw); height: auto; margin: 0 auto; }
.rodape-chamada { margin-top: 40px; font-size: 19px; color: var(--creme-txt-2); }
.rodape-whats { margin-top: 22px; }
.rodape-linha { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 34px; margin-top: 52px; }
.rodape-linha a { font-weight: 500; text-decoration: none; color: var(--creme-txt); }
.rodape-linha a:hover { color: var(--ouro-2); text-decoration: underline; text-underline-offset: 6px; }
.rodape-legal { margin-top: 36px; font-size: 15px; color: #b597a6; }

/* ================= entrada ================= */
.anima .sobe { opacity: 0; transform: translateY(24px); }
.anima .sobe.ok { opacity: 1; transform: none; transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.anima .revela { opacity: 0; transform: translateY(26px); }
.anima .revela.ok { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .anima .sobe, .anima .revela { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================= responsivo ================= */
@media (max-width: 1100px) {
  .enc-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .sabores, .velas { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topo { padding-top: 16px; padding-bottom: 16px; }
  .topo-nav { display: none; }
  .topo-whats { margin-left: auto; }
  .topo-logo img { height: 38px; }
  .topo.cheio .topo-logo img { height: 34px; }

  .abre { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: start; min-height: 100svh; }
  .abre::before { background: linear-gradient(180deg, rgba(37,2,24,.5), rgba(37,2,24,.15)); }
  /* no celular a abertura é só foto: o título fica pra leitor de tela e busca */
  .abre-titulo { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* status discreto em cima das fotos, botões embaixo */
  .abre-status {
    grid-row: 1; position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    margin: 88px var(--gut) 0; padding: 0 0 12px;
    border-bottom: 1px solid rgba(230, 200, 142, .22);
    color: var(--creme-txt-2); text-decoration: none; font-size: 15px; line-height: 1.3;
  }
  .as-hora b { font-weight: 600; color: var(--ouro-2); }
  .abre-status.fechado .as-hora b { color: var(--creme-txt); }
  .as-local { white-space: nowrap; }
  .abre-acoes { display: flex; grid-row: 3; flex-wrap: nowrap; gap: 10px; padding: 22px var(--gut) 30px; }
  .abre-acoes .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 16px; min-height: 52px; }
  .abre-acoes .nao-celular { display: none; }
  .abre-acoes .so-celular-btn { display: inline-flex; }

  /* três faixas de fotos, cada uma no seu tamanho e ritmo */
  .vitrine {
    grid-column: 1; grid-row: 2;
    display: flex; flex-direction: column; gap: 10px;
    height: auto; min-height: 0; padding: 0; margin-top: 16px;
    -webkit-mask-image: none; mask-image: none;
  }
  .vitrine-col.so-celular { display: block; }
  .vitrine-trilho { flex-direction: row; gap: 10px; width: max-content; animation-name: vit-corre; }
  @keyframes vit-corre { to { transform: translateX(calc(-50% - 5px)); } }
  .vitrine-col:nth-child(1) { --h: clamp(150px, 24svh, 214px); }
  .vitrine-col:nth-child(2) { --h: clamp(104px, 16svh, 142px); }
  .vitrine-col:nth-child(3) { --h: clamp(128px, 20svh, 178px); }
  .vitrine-col:nth-child(3) .peca img { aspect-ratio: 4 / 3; }
  .vitrine-col:nth-child(1) .vitrine-trilho { animation-duration: 42s; animation-direction: normal; }
  .vitrine-col:nth-child(2) .vitrine-trilho { animation-duration: 30s; animation-direction: reverse; }
  .vitrine-col:nth-child(3) .vitrine-trilho { animation-duration: 50s; animation-direction: normal; }
  .peca { flex: none; }
  .peca img { height: var(--h); width: auto; aspect-ratio: 1; border-radius: 14px; }
  .peca.alta img { aspect-ratio: 4 / 5; }
  .vitrine-col:nth-child(2) .peca img { aspect-ratio: 5 / 4; }
  .vitrine-col:nth-child(2) .peca.alta img { aspect-ratio: 1; }
  .peca figcaption { display: none; }

  .enc-grid { grid-template-columns: minmax(0, 1fr); }
  .caixa-wrap { position: static; }
  .monte { padding-left: 16px; padding-right: 16px; }
  .monte-card { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .monte-texto { padding: 34px 24px 30px; }
  .monte-texto h2 { font-size: clamp(36px, 10vw, 50px); }
  .monte-texto p { font-size: 17px; }
  .monte-foto { min-height: 260px; }
  .casa-topo, .onde { grid-template-columns: minmax(0, 1fr); }
  .onde-mapa { min-height: 280px; }
  .gelato-in { grid-template-columns: minmax(0, 1fr); }
  .gelato-fotos { max-width: 520px; }
  .menu-indice { columns: 1; }
  .casa-fotos { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .casa-fotos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .casa-fotos img:not(:first-child) { aspect-ratio: 3 / 4; }

  .barra-enc:not([hidden]) {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px;
    background: var(--noite); color: var(--papel); border-radius: 10px;
    padding: 10px 10px 10px 18px; box-shadow: 0 18px 40px -12px rgba(20, 0, 12, .6);
  }
  .barra-enc div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .barra-enc span { font-size: 15px; color: var(--creme-txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .barra-enc strong { font-family: var(--display); font-weight: var(--d-w); font-size: 24px; }
  .barra-enc .btn { min-height: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .cortes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .corte-img { height: 200px; }
  .contador input { width: 64px; }
  .tipos { grid-template-columns: 1fr; border-bottom: 0; }
  .tipo { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--rosa-2); }
  .tipo::after { right: 0; }
  .tipo-quadro { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
  .tipo-quadro p { font-size: 16px; }
  .campos-2 { grid-template-columns: 1fr; }
  .gl-duas { grid-template-columns: 1fr; }
  .gl-duas li:nth-last-child(2) { border-bottom: 0; }
  .onde-info { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .onde-hora { grid-row: auto; }
  .casa-fotos img { border-radius: 18px; }
  .passo legend { font-size: 28px; }
  .caixa-conteudo { padding-left: 74px; padding-right: 22px; }
}

.credito { margin-top: 14px; font-size: 14px; color: #a88a9a; }
.credito a { color: var(--ouro-2); font-weight: 600; text-decoration: none; }
.credito a:hover { text-decoration: underline; text-underline-offset: 4px; }
