/* Mimo Doces Artesanais · estilo (4ª versão). Cores e fontes só via tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte-texto);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--cor-destaque); outline-offset: 3px; border-radius: 4px; }

.pular {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cor-botao); color: var(--cor-botao-texto);
  padding: .7rem 1.1rem; border-radius: var(--raio-pilula); text-decoration: none;
}
.pular:focus { top: 1rem; }

/* ---------- peças comuns ---------- */
.etiqueta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.etiqueta::before {
  content: ""; width: 1.6rem; height: 1px; background: currentColor;
}
.titulo-secao {
  font-family: var(--fonte-titulo); font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.8rem);
  line-height: .98; letter-spacing: -.01em;
  text-wrap: balance;
}
.titulo-secao em { color: var(--cor-destaque); }
.cabeca-secao { text-align: center; max-width: 900px; margin: 0 auto; display: grid; gap: 1rem; justify-items: center; }

.botao {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95em 1.5em;
  background: var(--cor-botao); color: var(--cor-botao-texto);
  border: 1px solid var(--cor-botao);
  border-radius: var(--raio-pilula);
  font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.1;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s;
}
.botao svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .3s; }
.botao:hover { background: var(--cor-escura); border-color: var(--cor-escura); }
.botao:hover svg use[href="#seta"] { transform: translateX(3px); }
.botao:hover svg { transform: translateX(2px); }
.botao--linha { background: transparent; color: var(--cor-texto); border-color: currentColor; }
.botao--linha:hover { background: var(--cor-texto); color: var(--cor-fundo); border-color: var(--cor-texto); }
.botao--claro { background: var(--oat); color: var(--cafe); border-color: var(--oat); }
.botao--claro:hover { background: var(--gelo); border-color: var(--gelo); color: var(--cafe); }
.botao--pequeno { padding: .7em 1.15em; font-size: .9rem; }

/* cartão com linha fina interna, como a cartela de cores */
.cartao-moldura { position: relative; border-radius: var(--raio); }
.cartao-moldura::before {
  content: ""; position: absolute; inset: var(--moldura);
  border: 1px solid currentColor; opacity: .28; border-radius: calc(var(--raio) - 6px);
  pointer-events: none;
}

/* ondinhas entre seções (a seção define --bg-secao) */
.ondas { position: relative; }
.ondas::before {
  content: ""; position: absolute; left: 0; right: 0;
  top: calc(var(--onda) * -1 + 1px); height: var(--onda);
  background: radial-gradient(circle at 50% 100%, var(--bg-secao) calc(var(--onda) - .5px), transparent var(--onda)) 0 0 / calc(var(--onda) * 2) var(--onda) repeat-x;
  pointer-events: none;
}

/* ---------- topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  transition: background-color .4s, box-shadow .4s, padding .4s, color .4s;
}
.topo.rolou {
  background: var(--oat-vidro); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linha-suave); padding-block: .6rem;
}
.marca { display: inline-flex; align-items: baseline; gap: .35rem; text-decoration: none; }
.marca__nome { font-family: var(--fonte-titulo); font-size: 1.9rem; letter-spacing: .12em; line-height: 1; }
.marca__estrela { width: .8rem; height: .8rem; color: var(--cor-destaque); align-self: center; }
.marca__sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.topo__nav { display: none; gap: 2rem; font-size: .95rem; font-weight: 500; }
.topo__nav a { text-decoration: none; position: relative; }
.topo__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s;
}
.topo__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 420px) { .marca__sub { display: none; } }
@media (min-width: 900px) { .topo__nav { display: flex; } }

/* ---------- abertura ---------- */
.abertura {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding: clamp(6.5rem, 14vh, 9rem) var(--espaco) clamp(3rem, 8vh, 5rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.abertura__selo-texto {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: clamp(1rem, 3vh, 1.8rem);
}
.abertura__selo-texto svg { width: .75rem; height: .75rem; color: var(--cor-destaque); }
.abertura__titulo {
  font-family: var(--fonte-titulo); font-weight: 400;
  font-size: clamp(3.3rem, 1rem + 10.5vw, 10.8rem);
  line-height: .88; letter-spacing: -.025em;
  position: relative; z-index: 1;
}
.abertura__titulo em { color: var(--cor-destaque); padding-right: .04em; }
.linha { display: block; overflow: hidden; padding-bottom: .06em; }
.linha > span { display: inline-block; }

.vitrine {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: flex-end;
  margin-top: clamp(-3.2rem, -4vw, -1rem);
  width: min(100%, 1100px);
  --abre: 0; --mx: 0; --my: 0;
}
.vitrine__doce {
  position: relative; flex: none;
  width: clamp(84px, 14vw, 200px);
  margin-inline: clamp(-28px, -2vw, -8px);
  --d: calc(var(--i) - 2);
  transform:
    translate(calc(var(--d) * var(--abre) * 2.8vw + var(--mx) * var(--prof, 8px)), calc(var(--abre) * -2.5vh + var(--my) * var(--prof, 8px)))
    rotate(calc(var(--d) * var(--abre) * 5deg));
}
.vitrine__doce--2, .vitrine__doce--4 { width: clamp(104px, 18vw, 260px); z-index: 1; --prof: 14px; }
.vitrine__doce--3 { width: clamp(140px, 25vw, 360px); z-index: 2; --prof: 22px; margin-bottom: -1vw; }
.vitrine__doce img {
  position: relative; z-index: 1;
  animation: flutua 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s);
}
.vitrine__doce::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 4%; height: 9%;
  background: radial-gradient(closest-side, var(--sombra-doce), transparent);
  animation: sombra 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s);
}
.vitrine__doce figcaption {
  position: absolute; left: 50%; bottom: -1.2rem; z-index: 3;
  translate: -50% 0; white-space: nowrap;
  background: var(--cor-texto); color: var(--cor-fundo);
  font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: var(--raio-pilula);
  opacity: 0; transition: opacity .3s, translate .3s;
}
.vitrine__doce:hover figcaption { opacity: 1; translate: -50% -6px; }
@keyframes flutua { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes sombra { 50% { transform: scaleX(.82); opacity: .7; } }

.abertura__rodape { max-width: 620px; margin-top: clamp(1.6rem, 4vh, 2.6rem); display: grid; gap: 1.5rem; justify-items: center; }
.abertura__lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--cor-texto-suave); }
.abertura__botoes { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.selo-giro {
  position: absolute; z-index: 3;
  right: clamp(.8rem, 6vw, 6rem); top: clamp(5.5rem, 22vh, 12rem);
  width: clamp(84px, 11vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.selo-giro > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: gira 22s linear infinite; }
.selo-giro text { font-family: var(--fonte-texto); font-size: 13.2px; font-weight: 600; letter-spacing: .14em; fill: currentColor; }
.selo-giro__estrela { width: 26%; height: 26%; color: var(--cor-destaque); }
@keyframes gira { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .selo-giro { top: auto; bottom: 46%; right: .6rem; } }

/* variação: abertura café (?abertura=cafe) */
[data-abertura="cafe"] .abertura { background: var(--cafe); color: var(--oat); }
[data-abertura="cafe"] .abertura__titulo em,
[data-abertura="cafe"] .selo-giro__estrela,
[data-abertura="cafe"] .abertura__selo-texto svg { color: var(--gelo); }
[data-abertura="cafe"] .abertura__lead { color: var(--oat-suave); }
[data-abertura="cafe"] .abertura .botao { background: var(--oat); color: var(--cafe); border-color: var(--oat); }
[data-abertura="cafe"] .abertura .botao--linha { background: transparent; color: var(--oat); }
[data-abertura="cafe"] .abertura .botao:hover { background: var(--gelo); border-color: var(--gelo); color: var(--cafe); }
[data-abertura="cafe"] .topo:not(.rolou) { color: var(--oat); }
[data-abertura="cafe"] .topo:not(.rolou) .marca__estrela { color: var(--gelo); }
[data-abertura="cafe"] .topo:not(.rolou) .botao { background: var(--oat); color: var(--cafe); border-color: var(--oat); }
[data-abertura="cafe"] .vitrine__doce figcaption { background: var(--oat); color: var(--cafe); }
[data-abertura="cafe"] .faixa { background: var(--manga); }
[data-abertura="cafe"] { --sombra-doce: var(--escurecer); }

/* ---------- faixa de sabores ---------- */
.faixa { background: var(--cafe); color: var(--oat); overflow: hidden; padding: 1rem 0; }
.faixa__trilho { display: flex; width: max-content; animation: corre 60s linear infinite; }
.faixa__grupo { display: flex; align-items: center; flex: none; }
.faixa__grupo span { font-family: var(--fonte-titulo); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem); white-space: nowrap; line-height: 1.1; }
.faixa__grupo svg { width: .9rem; height: .9rem; margin-inline: 1.5rem; color: var(--gelo); flex: none; }
.faixa:hover .faixa__trilho { animation-play-state: paused; }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- atalhos ---------- */
.atalhos { padding: clamp(4.5rem, 10vw, 7.5rem) var(--espaco); text-align: center; }
.atalhos__lista {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem;
  max-width: 1000px; margin: clamp(2.2rem, 5vw, 3.5rem) auto 0;
}
@media (min-width: 760px) { .atalhos__lista { grid-template-columns: repeat(4, 1fr); } }
.atalhos__lista a { display: grid; justify-items: center; gap: .3rem; text-decoration: none; }
.atalhos__foto {
  width: clamp(120px, 17vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: var(--oat-escuro); display: grid; place-items: center; overflow: hidden;
  margin-bottom: .7rem;
  outline: 1px solid var(--linha-suave); outline-offset: 6px;
  transition: outline-offset .4s, outline-color .4s;
}
.atalhos__foto img { width: 82%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.atalhos__foto--cheia img { width: 100%; height: 100%; object-fit: cover; }
.atalhos__nome { font-family: var(--fonte-titulo); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.1; }
.atalhos__lista small { font-size: .88rem; color: var(--cor-texto-suave); }
.atalhos__lista a:hover .atalhos__foto { outline-color: var(--cor-texto); outline-offset: 10px; }
.atalhos__lista a:hover .atalhos__foto img { transform: scale(1.1) rotate(-6deg); }

/* ---------- sabores ---------- */
.sabores { padding: clamp(5.5rem, 11vw, 8.5rem) var(--espaco) clamp(4.5rem, 9vw, 7rem); }
.favoritos {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 260px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: clamp(2.5rem, 5vw, 4rem) calc(var(--espaco) * -1) 0; padding: 1rem var(--espaco) 1.5rem;
}
.favoritos::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) {
  .favoritos { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; max-width: var(--largura); margin-inline: auto; padding-inline: 0; }
}
.fav {
  position: relative; isolation: isolate; scroll-snap-align: center;
  background: var(--oat-escuro); border-radius: var(--raio);
  padding: 1.2rem 1.2rem 1.6rem; text-align: center; overflow: hidden;
  display: grid; justify-items: center; align-content: start; gap: .25rem;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2,.8,.2,1), color .45s;
  --x: 50%; --y: 50%;
}
.fav__fundo {
  position: absolute; inset: 0; z-index: -1; background: var(--fav-cor, var(--cafe));
  clip-path: circle(0% at var(--x) var(--y)); transition: clip-path .7s cubic-bezier(.2,.8,.2,1);
}
.fav[data-cor="cafe"] { --fav-cor: var(--cafe); --fav-texto: var(--oat); }
.fav[data-cor="verde"] { --fav-cor: var(--verde); --fav-texto: var(--oat); }
.fav[data-cor="gelo"] { --fav-cor: var(--gelo); --fav-texto: var(--cafe); }
.fav__doce { width: 86%; margin-bottom: .4rem; transition: transform .6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 14px 12px var(--sombra-doce)); }
.fav__linha { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.fav__nome { font-family: var(--fonte-titulo); font-weight: 400; font-size: clamp(1.5rem, 1.3rem + .6vw, 1.85rem); line-height: 1.05; }
.fav__desc { font-size: .9rem; opacity: .85; }
.fav__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--raio); }
.pilula-cursor {
  position: absolute; right: 1rem; top: 1rem;
  background: var(--cor-texto); color: var(--cor-fundo);
  font-size: .8rem; font-weight: 600; padding: .4rem .85rem; border-radius: var(--raio-pilula);
}
.fav:hover, .fav:focus-within { color: var(--fav-texto); }
.fav:hover .fav__fundo, .fav:focus-within .fav__fundo { clip-path: circle(150% at var(--x) var(--y)); }
.fav:hover .fav__doce { transform: translateY(-10px) rotate(-7deg) scale(1.06); }
@media (hover: hover) and (pointer: fine) {
  .pilula-cursor {
    right: auto; top: 0; left: 0; translate: var(--px, 50%) var(--py, 50%);
    transform: translate(-50%, -50%) scale(0); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    background: var(--fav-texto); color: var(--fav-cor);
  }
  .fav:hover .pilula-cursor { transform: translate(-50%, -50%) scale(1); }
}

.listas { display: grid; gap: 1.2rem; max-width: var(--largura); margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
@media (min-width: 900px) { .listas { grid-template-columns: 1fr 1.35fr; align-items: stretch; } }
.lista { position: relative; border-radius: var(--raio); color: var(--oat); padding: clamp(1.8rem, 3.5vw, 2.8rem); }
.lista--cafe { background: var(--cafe); }
.lista--verde { background: var(--verde); }
.lista::before {
  content: ""; position: absolute; inset: var(--moldura); border: 1px solid var(--linha-clara); border-radius: calc(var(--raio) - 6px); pointer-events: none;
}
.lista__cabeca { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--linha-clara); }
.lista__cabeca h3 { font-family: var(--fonte-titulo); font-weight: 400; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem); line-height: .9; }
.lista__cabeca dl { display: flex; gap: 1.4rem; text-align: right; }
.lista__cabeca dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oat-suave); }
.lista__cabeca dd { font-family: var(--fonte-titulo); font-size: 1.5rem; line-height: 1.1; }
.lista ol { margin-top: .4rem; }
@media (min-width: 640px) { .lista--verde ol { columns: 2; column-gap: 2rem; } }
.lista li {
  display: flex; align-items: baseline; gap: .9rem;
  padding: .72rem 0; border-bottom: 1px solid var(--linha-clara); break-inside: avoid;
  transition: padding-left .35s;
}
.lista__num { font-size: .75rem; font-weight: 600; color: var(--oat-suave); font-variant-numeric: tabular-nums; }
.lista__nome { font-family: var(--fonte-titulo); font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.15; }
.lista small { font-size: .82rem; color: var(--oat-suave); }
.lista li:hover { padding-left: .5rem; }

/* ---------- caixinhas ---------- */
.caixinhas {
  --bg-secao: var(--cafe); background: var(--cafe); color: var(--oat);
  padding: clamp(5rem, 10vw, 8rem) var(--espaco);
}
.caixinhas .titulo-secao em { color: var(--gelo); }
.caixinhas__grade { max-width: var(--largura); margin: 0 auto; display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .caixinhas__grade { grid-template-columns: 1.1fr .9fr; } }
.caixinhas__texto { display: grid; gap: 1.2rem; justify-items: start; }
.caixinhas__texto > p:not(.etiqueta) { color: var(--oat-suave); max-width: 46ch; }
.montador { width: 100%; display: grid; gap: 1.3rem; margin-top: .6rem; }
.montador fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.montador legend { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: .6rem; color: var(--oat-suave); }
.pilulas { display: flex; flex-wrap: wrap; gap: .5rem; }
.pilulas label { position: relative; cursor: pointer; }
.pilulas input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pilulas span {
  display: inline-block; min-width: 3.2rem; text-align: center;
  padding: .6rem 1.1rem; border: 1px solid var(--linha-clara); border-radius: var(--raio-pilula);
  font-weight: 600; transition: background-color .25s, color .25s, border-color .25s;
}
.pilulas label:hover span { border-color: var(--oat); }
.pilulas input:checked + span { background: var(--oat); color: var(--cafe); border-color: var(--oat); }
.pilulas input:focus-visible + span { outline: 2px solid var(--gelo); outline-offset: 3px; }
.montador__resultado { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); padding: 1.2rem 0; border-top: 1px solid var(--linha-clara); border-bottom: 1px solid var(--linha-clara); }
@keyframes pop { from { transform: scale(0); } }
.montador__preco { display: grid; gap: .1rem; }
.montador__rotulo { font-size: .92rem; color: var(--oat-suave); }
.montador__rotulo b { color: var(--oat); font-weight: 600; }
.montador__valor { font-family: var(--fonte-titulo); font-size: clamp(2.8rem, 1.8rem + 4vw, 4.8rem); line-height: 1; }
.montador__botao { justify-self: start; }
.caixinhas__foto img {
  width: 100%; border-radius: 999px 999px var(--raio) var(--raio);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.caixinhas__foto { max-width: 480px; justify-self: center; width: 100%; }
.tabela-moldura {
  max-width: var(--largura); margin: clamp(3rem, 6vw, 5rem) auto 0; overflow-x: auto;
  border: 1px solid var(--linha-clara); border-radius: var(--raio); padding: .4rem clamp(.8rem, 2vw, 1.6rem);
}
.tabela { width: 100%; border-collapse: collapse; min-width: 460px; }
.tabela caption { text-align: left; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 1rem 0 .4rem; color: var(--oat-suave); }
.tabela th, .tabela td { padding: .85rem .6rem; border-bottom: 1px solid var(--linha-clara); text-align: left; }
.tabela tbody tr:last-child > * { border-bottom: 0; }
.tabela thead th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.tabela tbody th { font-weight: 500; }
.tabela td a { font-family: var(--fonte-titulo); font-size: 1.45rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.tabela td a:hover { background-size: 100% 1px; }
.tabela tbody tr { transition: background-color .25s; }
.caixinhas .tabela tbody tr:hover { background: var(--linha-clara); }

/* ---------- panela ---------- */
.panela { padding: clamp(5rem, 11vw, 9rem) var(--espaco); }
.panela__grade { max-width: var(--largura); margin: 0 auto; display: grid; gap: 2.5rem; align-items: center; }
.panela__texto { display: grid; gap: 1.1rem; justify-items: center; text-align: center; max-width: 34rem; margin: 0 auto; }
.panela__texto > p:not(.etiqueta) { color: var(--cor-texto-suave); }
.panela__foto img { border-radius: var(--raio); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.panela__foto figcaption { font-family: var(--fonte-titulo); font-style: italic; font-size: 1.2rem; margin-top: .5rem; }
.panela__foto--1 { width: min(72%, 360px); }
.panela__foto--2 { width: min(72%, 360px); justify-self: end; }
.panela__foto--2 figcaption { text-align: right; }
@media (min-width: 900px) {
  .panela__grade { grid-template-columns: 1fr 1.15fr 1fr; }
  .panela__foto--1, .panela__foto--2 { width: 100%; }
  .panela__foto--1 { transform: translateY(calc(-3rem + var(--par, 0px))); }
  .panela__foto--2 { transform: translateY(calc(4rem - var(--par, 0px))); }
}

/* ---------- festas ---------- */
.festas { position: relative; isolation: isolate; overflow: hidden; display: grid; }
.festas__fundo { position: relative; height: 62vh; min-height: 360px; overflow: hidden; }
.festas__fundo img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--par, 0px)); }
.festas__cartao {
  position: relative; z-index: 1; background: var(--oat);
  margin: -5rem var(--espaco) 1rem; padding: clamp(2rem, 4vw, 3rem);
  display: grid; gap: 1.1rem; justify-items: start;
}
.festas__cartao > p:not(.etiqueta) { color: var(--cor-texto-suave); }
.tabela--festas { min-width: 0; }
.tabela--festas caption, .tabela--festas thead th { color: var(--cor-texto-suave); }
.tabela--festas th, .tabela--festas td { border-color: var(--linha-suave); padding-inline: .35rem; }
.tabela--festas td a { font-size: 1.3rem; }
@media (min-width: 900px) {
  .festas { min-height: 100vh; align-items: center; padding: 8rem clamp(2rem, 6vw, 6rem) 9rem; }
  .festas__fundo { position: absolute; inset: 0; height: auto; z-index: -1; }
  .festas__fundo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--escurecer)); }
  .festas__cartao { margin: 0; justify-self: end; width: min(100%, 520px); }
}

/* ---------- galeria ---------- */
.galeria { padding: clamp(5rem, 10vw, 8rem) 0 clamp(5.5rem, 10vw, 8rem); }
.galeria__cabeca { max-width: var(--largura); margin: 0 auto 2.2rem; padding: 0 var(--espaco); display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.galeria__setas { display: flex; gap: .5rem; flex: none; }
.seta-botao {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit;
  display: grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s;
}
.seta-botao svg { width: 20px; height: 20px; }
.seta-botao:hover { background: var(--cor-texto); color: var(--cor-fundo); }
.galeria__trilho {
  display: flex; gap: clamp(.8rem, 1.6vw, 1.3rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--espaco), calc((100vw - var(--largura)) / 2 + var(--espaco)));
  scroll-padding-inline: max(var(--espaco), calc((100vw - var(--largura)) / 2 + var(--espaco)));
  cursor: grab;
}
.galeria__trilho::-webkit-scrollbar { display: none; }
.galeria__trilho.arrastando { cursor: grabbing; scroll-snap-type: none; }
.galeria__item { flex: 0 0 clamp(230px, 27vw, 380px); scroll-snap-align: start; border-radius: var(--raio); overflow: hidden; }
.galeria__item:nth-child(even) { margin-top: 2.5rem; }
.galeria__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); pointer-events: none; user-select: none; }
.galeria__item:hover img { transform: scale(1.05); }

/* ---------- como pedir ---------- */
.como { --bg-secao: var(--gelo); background: var(--gelo); padding: clamp(5rem, 10vw, 8rem) var(--espaco) clamp(6rem, 11vw, 9rem); }
.passos { max-width: var(--largura); margin: clamp(2.5rem, 5vw, 4rem) auto 0; display: grid; gap: 1rem; counter-reset: passo; }
@media (min-width: 800px) { .passos { grid-template-columns: repeat(3, 1fr); } }
.passo { background: var(--oat); padding: clamp(1.8rem, 3vw, 2.6rem); display: grid; gap: .7rem; align-content: start; }
.passo__num { font-family: var(--fonte-titulo); font-size: clamp(3.6rem, 3rem + 2vw, 5rem); line-height: .8; color: var(--cor-destaque); }
.passo h3 { font-family: var(--fonte-titulo); font-weight: 400; font-size: clamp(1.7rem, 1.5rem + .6vw, 2rem); line-height: 1.05; }
.passo p { color: var(--cor-texto-suave); }
.como__aviso { text-align: center; margin-top: 2.2rem; display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.como__aviso svg { width: 1rem; height: 1rem; color: var(--cor-destaque); }


/* ---------- cortes entre seções (formas que unem uma seção à outra) ---------- */
.corte { position: relative; height: 0; z-index: 4; pointer-events: none; }
.corte::before {
  content: ""; position: absolute; left: 0; right: 0; height: var(--corte-h, 56px);
  background: var(--corte-cor); -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: var(--corte-l, 600px) 100%; mask-size: var(--corte-l, 600px) 100%;
}
.corte--sobe::before { bottom: -1px; }
.corte--desce::before { top: -1px; }
.corte--onda.corte--sobe::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V30C100 5 200 5 300 30S500 55 600 30V60Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V30C100 5 200 5 300 30S500 55 600 30V60Z'/%3E%3C/svg%3E"); }
.corte--onda.corte--desce::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0V30C100 55 200 55 300 30S500 5 600 30V0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0V30C100 55 200 55 300 30S500 5 600 30V0Z'/%3E%3C/svg%3E"); }
.corte--calda::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V40C30 40 35 18 60 18C85 18 90 36 115 36C135 36 140 8 175 8C210 8 212 34 240 34C262 34 268 22 290 22C318 22 322 42 350 42C372 42 380 40 400 40V70Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V40C30 40 35 18 60 18C85 18 90 36 115 36C135 36 140 8 175 8C210 8 212 34 240 34C262 34 268 22 290 22C318 22 322 42 350 42C372 42 380 40 400 40V70Z'/%3E%3C/svg%3E"); --corte-l: 400px; --corte-h: 70px; }
.corte--gelo { --corte-cor: var(--gelo); }
.corte--cafe { --corte-cor: var(--cafe); }
.corte--oat { --corte-cor: var(--oat); }
.corte--verde { --corte-cor: var(--verde); }
.corte__doce {
  position: absolute; top: 0; width: clamp(84px, 10vw, 150px); z-index: 1;
  translate: 0 -55%; filter: drop-shadow(0 16px 14px var(--sombra));
  animation: flutua 6s ease-in-out infinite;
}
.corte__doce--direita { right: clamp(1rem, 9vw, 9rem); rotate: 12deg; }
.corte__doce--esquerda { left: clamp(1rem, 8vw, 8rem); rotate: -10deg; animation-delay: -2s; }
.corte__doce + .corte__doce { animation-delay: -3.5s; }
@media (max-width: 640px) { .corte__doce { width: 74px; } }

/* faixa como uma fita inclinada, com costura */
.faixa-envolve { position: relative; z-index: 5; overflow: hidden; }
.faixa { position: relative; z-index: 5; }
.faixa::before, .faixa::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--linha-clara); }
.faixa::before { top: 7px; }
.faixa::after { bottom: 7px; }


/* ---------- destaques da casa: um docinho por vez com a rolagem ---------- */
.destaque { --bg-secao: var(--gelo); position: relative; background: var(--gelo); padding: clamp(3.5rem, 8vw, 6rem) var(--espaco) clamp(5rem, 10vw, 7rem); }
.destaque::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--onda) * -1 + 1px); height: var(--onda); z-index: 3;
  background: radial-gradient(circle at 50% 0, var(--gelo) calc(var(--onda) - .5px), transparent var(--onda)) 0 0 / calc(var(--onda) * 2) var(--onda) repeat-x;
}
.destaque__corpo { position: relative; max-width: var(--largura); margin: clamp(2rem, 4vw, 3rem) auto 0; }
.destaque__slides { display: grid; gap: 3.5rem; }
.destaque__slide { display: grid; gap: clamp(1.2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .destaque__slide { grid-template-columns: .9fr 1.1fr; } }
.destaque__cartao { background: var(--oat); padding: clamp(1.6rem, 4vw, 3rem); display: grid; gap: 1rem; justify-items: start; min-width: 0; }
.destaque__titulo { font-family: var(--fonte-titulo); font-weight: 400; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem); line-height: .95; text-wrap: balance; }
.destaque__dados { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); width: 100%; border-top: 1px solid var(--linha-suave); border-bottom: 1px solid var(--linha-suave); }
.destaque__dados div { padding: .8rem .8rem .8rem 0; min-width: 0; }
.destaque__dados div + div { border-left: 1px solid var(--linha-suave); padding-left: .9rem; }
.destaque__dados dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--cor-texto-suave); }
.destaque__dados dd { font-family: var(--fonte-titulo); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.2; }
.destaque__palco { position: relative; aspect-ratio: 1; display: grid; place-items: center; width: min(100%, 500px); margin: 0 auto; }
.destaque__disco { position: absolute; inset: 7%; border-radius: 50%; background: var(--oat); box-shadow: 0 0 0 14px var(--gelo), 0 0 0 15px var(--cafe); }
.destaque__doce { position: relative; width: 74%; filter: drop-shadow(0 26px 22px var(--sombra)); }
.destaque__contador { display: none; }
.destaque__brilho { position: absolute; color: var(--manga); animation: pisca 3.2s ease-in-out infinite; }
.destaque__brilho--1 { width: 30px; height: 30px; top: 12%; right: 8%; }
.destaque__brilho--2 { width: 18px; height: 18px; bottom: 12%; left: 5%; animation-delay: -1.1s; color: var(--cafe); }
.destaque__brilho--3 { width: 22px; height: 22px; top: 20%; left: 9%; animation-delay: -2s; }
@keyframes pisca { 50% { transform: scale(.55) rotate(40deg); opacity: .5; } }

/* com JavaScript: a seção fica alta e a área de cima fica parada enquanto os doces trocam */
.destaque.rolagem { height: calc(var(--n, 6) * 70vh + 100vh); padding-block: 0; }
.destaque.rolagem .destaque__fixo {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4.5rem 0 2rem;
}
.destaque.rolagem .destaque__corpo { margin-top: clamp(1rem, 3vh, 2.5rem); width: 100%; }
.destaque.rolagem .destaque__slides { gap: 0; }
.destaque.rolagem .destaque__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.destaque.rolagem .destaque__slide.ativo { opacity: 1; visibility: visible; transition: opacity .5s; }
.destaque.rolagem .destaque__doce { transform: translateY(40px) rotate(-12deg) scale(.82); transition: transform .8s cubic-bezier(.2,.9,.25,1.15); }
.destaque.rolagem .destaque__slide.ativo .destaque__doce { transform: none; }
.destaque.rolagem .destaque__cartao > * { transform: translateY(14px); opacity: 0; transition: transform .6s, opacity .6s; }
.destaque.rolagem .destaque__slide.ativo .destaque__cartao > * { transform: none; opacity: 1; }
.destaque.rolagem .destaque__slide.ativo .destaque__cartao > :nth-child(2) { transition-delay: .06s; }
.destaque.rolagem .destaque__slide.ativo .destaque__cartao > :nth-child(3) { transition-delay: .12s; }
.destaque.rolagem .destaque__slide.ativo .destaque__cartao > :nth-child(4) { transition-delay: .18s; }
.destaque.rolagem .destaque__contador {
  display: block; position: absolute; right: 0; bottom: -2.2rem;
  font-size: .85rem; letter-spacing: .14em; color: var(--cor-texto-suave);
}
.destaque.rolagem .destaque__contador b { font-family: var(--fonte-titulo); font-size: 1.6rem; font-weight: 400; color: var(--cor-texto); letter-spacing: 0; }
@media (max-width: 899px) {
  .destaque.rolagem .destaque__fixo { padding-top: 4.2rem; }
  .destaque.rolagem .cabeca-secao .etiqueta { display: none; }
  .destaque.rolagem .titulo-secao { font-size: clamp(1.9rem, 7.5vw, 2.6rem); }
  .destaque.rolagem .destaque__slide { grid-template-rows: auto auto; }
  .destaque.rolagem .destaque__palco { order: -1; width: min(52vw, 32vh); }
  .destaque.rolagem .destaque__cartao { padding: 1.3rem 1.3rem 1.5rem; gap: .7rem; }
  .destaque.rolagem .destaque__titulo { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .destaque.rolagem .destaque__contador { bottom: -1.9rem; }
}

/* ---------- montador: caixinha com docinhos desenhados ---------- */
.montador__caixa {
  flex: none; width: clamp(150px, 24vw, 220px); aspect-ratio: 1; position: relative;
  background: var(--kraft); border-radius: 12px; padding: 9px;
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 4px; align-content: center;
  box-shadow: inset 0 0 0 3px var(--kraft-escuro), 0 18px 30px var(--sombra);
  transform: rotate(-3deg); overflow: hidden;
}
.montador__caixa:empty { display: none; }
.montador__caixa .slot {
  aspect-ratio: 1; min-width: 0; border-radius: 6px; background: var(--kraft-escuro);
  box-shadow: inset 0 2px 4px var(--sombra); display: grid; place-items: center; overflow: hidden;
}
.montador__caixa .slot svg { width: 92%; height: 92%; animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--n) * 25ms); }
@keyframes pop { from { transform: scale(0) translateY(-10px); } }
@media (max-width: 480px) { .montador__resultado { flex-direction: column; align-items: flex-start; } }


/* ---------- calda escorrendo (caixinhas → panela) ---------- */
.caixinhas { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.escorre { position: relative; height: 0; z-index: 4; pointer-events: none; --altura: clamp(160px, 23.6vw, 340px); }
.escorre svg { position: absolute; left: 0; top: -1px; width: 100%; height: var(--altura); overflow: visible; }
.escorre__calda { fill: url(#calda-cor); }
.escorre__brilho { fill: var(--brilho-calda); filter: url(#calda-suave); }
.panela { padding-top: calc(var(--altura-calda, clamp(160px, 23.6vw, 340px)) + clamp(1.5rem, 3vw, 3rem)); }
@media (max-width: 899px) {
  .panela__grade { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .panela__texto { grid-column: 1 / -1; grid-row: 1; }
  .panela__foto--1, .panela__foto--2 { width: 100%; justify-self: stretch; }
  .panela__foto--2 { margin-top: 2rem; }
  .panela__foto figcaption { font-size: 1.05rem; }
}

/* ---------- festas: foto em alta, sem ampliar demais ---------- */
.festas__fundo img { top: -5%; height: 110%; }

/* ---------- galeria que anda com a rolagem ---------- */
.galeria.rolagem .galeria__setas { display: none; }
.galeria.rolagem .galeria__trilho { overflow: visible; scroll-snap-type: none; cursor: default; transform: translateX(var(--anda, 0px)); will-change: transform; }
.galeria.rolagem { overflow: hidden; }

/* ---------- rodapé: crédito ---------- */
.rodape__fim { margin-bottom: .3rem; }
.rodape__credito { text-align: center; font-size: .8rem; color: var(--oat-suave); }
.rodape__credito a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* ---------- rodapé ---------- */
.rodape { background: var(--verde); color: var(--oat); padding: clamp(4.5rem, 9vw, 7rem) var(--espaco) 1.6rem; overflow: hidden; }
.rodape__frase { font-family: var(--fonte-titulo); font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.2rem); line-height: .98; max-width: 18ch; margin: 0 auto; text-align: center; text-wrap: balance; }
.rodape__frase em { color: var(--gelo); }
.rodape__grade { max-width: var(--largura); margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 960px) { .rodape__grade { grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 4vw, 4rem); } }
.rodape__gigante {
  font-family: var(--fonte-titulo); font-size: clamp(6.5rem, 33vw, 14rem); line-height: .78; letter-spacing: -.01em;
  display: flex; align-items: flex-start; margin-left: -.04em; white-space: nowrap;
  transform: translateY(var(--sobe, 0px));
}
@media (min-width: 960px) { .rodape__gigante { font-size: clamp(9rem, 20.5vw, 19rem); } }
.rodape__gigante svg { width: .15em; height: .15em; color: var(--gelo); margin-left: .03em; flex: none; animation: gira 14s linear infinite; }
.rodape__sub { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; margin: 1.2rem 0 0 .2rem; color: var(--oat-suave); }
.rodape__info { display: grid; gap: 1.2rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--linha-clara); }
@media (min-width: 600px) { .rodape__info { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(1.5rem, 4vw, 3rem); } }
.rodape__rotulo { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oat-suave); font-weight: 600; margin-bottom: .2rem; }
.rodape__info a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.rodape__atalhos { background: var(--oat); color: var(--cafe); padding: clamp(1.8rem, 3vw, 2.4rem); }
.rodape__dica { font-size: .9rem; color: var(--cor-texto-suave); margin: .5rem 0 .8rem; }
.rodape__atalhos a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem;
  padding: .85rem 0; border-top: 1px solid var(--linha-suave); text-decoration: none;
}
.atalho__nome { font-family: var(--fonte-titulo); font-size: clamp(1.45rem, 1.3rem + .5vw, 1.75rem); line-height: 1.1; }
.rodape__atalhos a svg { grid-column: 2; width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 50%; border: 1px solid var(--linha-suave); transition: background-color .3s, color .3s, transform .3s; }
.rodape__atalhos a:hover svg, .rodape__atalhos a:focus-visible svg { background: var(--cafe); color: var(--oat); transform: rotate(-30deg); }
.rodape__atalhos a:hover .atalho__nome { color: var(--manga-funda); }
.rodape__fim { text-align: center; font-size: .82rem; color: var(--oat-suave); margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- entradas (só com JavaScript) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--atraso, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .fav.rv.is-in { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .linha > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.js .linha:nth-child(2) > span { transition-delay: .12s; }
.js.carregou .linha > span { transform: none; }
.js .vitrine__doce { opacity: 0; translate: 0 60px; transition: opacity .9s, translate 1.1s cubic-bezier(.2,.9,.25,1.15); transition-delay: calc(.35s + var(--ordem, 0) * .09s); }
.js.carregou .vitrine__doce { opacity: 1; translate: 0 0; }
.vitrine__doce--1, .vitrine__doce--5 { --ordem: 2; }
.vitrine__doce--2, .vitrine__doce--4 { --ordem: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .linha > span, .js .vitrine__doce { opacity: 1 !important; transform: none !important; translate: none !important; }
  .vitrine__doce, .destaque__doce, .fav, .corte__doce, .galeria__trilho { transform: none !important; }
  .escorre { --escorre: .5; }
  .faixa__trilho { flex-wrap: wrap; width: auto; }
  .faixa__grupo + .faixa__grupo { display: none; }
  .faixa__grupo { flex-wrap: wrap; justify-content: center; row-gap: .4rem; padding-inline: var(--espaco); }
}

/* ---------- ajustes de celular ---------- */
.abertura { overflow-x: clip; }
.abertura__selo-texto { flex-wrap: wrap; justify-content: center; row-gap: .2rem; }
.festas__cartao { min-width: 0; }
@media (max-width: 640px) {
  .vitrine__doce { width: 18vw; margin-inline: -2.6vw; }
  .vitrine__doce--2, .vitrine__doce--4 { width: 24vw; }
  .vitrine__doce--3 { width: 33vw; }
  .selo-giro { display: none; }
  .abertura__selo-texto { font-size: .7rem; letter-spacing: .14em; }
  .tabela--festas { font-size: .85rem; }
  .tabela--festas thead th { letter-spacing: .04em; font-size: .66rem; }
  .tabela--festas td a { font-size: 1.02rem; white-space: nowrap; }
  .tabela--festas thead th { white-space: nowrap; }
  .tabela--festas th, .tabela--festas td { padding: .7rem .2rem; }
  .lista__cabeca dl { text-align: left; }
}
.destaque__slide, .destaque__cartao { min-width: 0; }
@media (max-width: 420px) {
  .destaque__dados { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .destaque__dados dt { font-size: .62rem; letter-spacing: .06em; }
  .destaque__dados div + div { padding-left: .6rem; }
}

/* contraste: laranja mais fundo nos títulos sobre o gelo */
.destaque .titulo-secao em, .como .titulo-secao em { color: var(--manga-funda); }
