@font-face { font-family: 'Fraunces'; src: url('../fontes/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fontes/fraunces-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --noite: #060b0d; --creme: #f8f0e3; --ouro: #e9c583; --vinho: #a41e34; --verde: #17503f; --wa: #1fa957;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --topo: 56px; --raio: 24px;
}
* { box-sizing: border-box; }
html { background: var(--noite); color: var(--creme); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: radial-gradient(120% 70% at 50% 0%, #143a31 0%, #0a1716 45%, var(--noite) 80%); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }
main { overflow-x: clip; }

/* camadas fixas da cena 3D: ficam POR CIMA da página; o canvas é transparente fora da moldura */
#palco-fixo { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 12; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; will-change: transform; }
.tem-3d #palco-fixo { opacity: 1; }
.sem-3d #palco-fixo, .sem-js #palco-fixo, .no-fim #palco-fixo { visibility: hidden; }
#cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.carregando { position: fixed; left: 50%; bottom: 46%; transform: translateX(-50%); z-index: 1; display: none; align-items: center; gap: 10px; font: italic 500 15px var(--serif); color: var(--ouro); letter-spacing: .02em; pointer-events: none; }
.carrega-3d .carregando { display: flex; }
.carregando i { width: 10px; height: 10px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 14px 4px rgba(233, 197, 131, .5); animation: pisca 1.1s ease-in-out infinite; }

/* ---------- topo ---------- */
.topo { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: var(--topo); padding: 0 14px 0 18px; padding-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: space-between; transition: background .4s; }
.topo-fundo { position: fixed; z-index: 11; top: 0; left: 0; right: 0; height: calc(var(--topo) + 26px); background: linear-gradient(180deg, rgba(4, 8, 9, .8), rgba(4, 8, 9, 0)); pointer-events: none; }
.no-fim .topo { background: #10382d; }
.marca { font: 500 19px var(--serif); text-decoration: none; letter-spacing: .01em; opacity: 0; transition: opacity .4s; }
.rolou .marca { opacity: 1; }
.marca em, h1 em { font-style: italic; color: var(--ouro); }
.topo nav { display: flex; gap: 8px; }
.pilula { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(248, 240, 227, .28); background: rgba(6, 11, 13, .55); font-size: 14px; font-weight: 600; }
.sacola span[data-cont] { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(248, 240, 227, .16); font-size: 12px; line-height: 20px; text-align: center; }
.s-total { display: none; font-variant-numeric: tabular-nums; }
.com-pedido .sacola { background: var(--creme); color: #14241f; border-color: var(--creme); }
.com-pedido .sacola span[data-cont] { background: var(--vinho); color: #fff; }
.com-pedido .s-total { display: inline; }
.sacola.pulo { animation: pulo .5s ease; }
@keyframes pulo { 30% { transform: scale(1.14); } }

/* ---------- varal de luzinhas ---------- */
.varal { position: absolute; top: calc(var(--topo) - 14px); left: 50%; width: max(100%, 920px); transform: translateX(-50%); height: auto; pointer-events: none; z-index: 2; }
.lz ellipse { fill: var(--c); animation: pisca 2.6s var(--d) ease-in-out infinite; }
.lz circle { fill: var(--c); opacity: .22; animation: pisca 2.6s var(--d) ease-in-out infinite; }
@keyframes pisca { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

/* ---------- paradas ---------- */
.parada { position: relative; }
.capa { height: 150vh; height: 150svh; }
.peca { height: 215vh; height: 215svh; }
.peca.luz { height: 275vh; height: 275svh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.palco { position: relative; min-height: 0; margin-top: calc(var(--topo) + 36px); touch-action: pan-y; }
.q-ref { position: absolute; inset: 8px 12px 6px; visibility: hidden; pointer-events: none; }
.capa .pin { z-index: 14; }
.tem-3d .palco { cursor: grab; }
.tem-3d .palco:active { cursor: grabbing; }

.fotos { position: absolute; inset: 10px 24px; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s; }
.sem-3d .fotos, .sem-js .fotos { opacity: 1; visibility: visible; }
.fotos img { grid-area: 1 / 1; height: 100%; max-height: 62svh; width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; border: 6px solid var(--creme); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transform: rotate(-1.5deg); }
.fotos .f-acesa { opacity: var(--luz, 0); }
.fotos.trio { inset: 0 12px 30px; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: center; }
.fotos.trio img { grid-area: auto; height: auto; width: 100%; max-height: none; border-width: 4px; border-radius: 12px; }
.fotos.trio img:nth-child(1) { transform: rotate(-4deg) translateY(10px); }
.fotos.trio img:nth-child(2) { transform: scale(1.12); z-index: 1; }
.fotos.trio img:nth-child(3) { transform: rotate(4deg) translateY(10px); }

/* ---------- janela: etiqueta, medidor e dica acompanham a moldura da cena ---------- */
#janela { position: absolute; top: 0; left: 0; will-change: transform; }
.etiqueta { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(5, 10, 11, .58); border: 1px solid rgba(248, 240, 227, .16); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(248, 240, 227, .86); transition: background .35s, color .35s, border-color .35s; }
.etiqueta i { width: 7px; height: 7px; border-radius: 2px; background: #6fd3ff; transform: rotate(45deg); transition: background .35s, border-radius .35s; }
#janela.foto .etiqueta { background: var(--creme); color: #14241f; border-color: var(--creme); }
#janela.foto .etiqueta i { background: var(--vinho); border-radius: 50%; }
.medidor { position: absolute; right: 12px; top: 12px; display: none; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: rgba(5, 10, 11, .58); border: 1px solid rgba(248, 240, 227, .16); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
#janela.luz .medidor { display: flex; }
.medidor span:first-child { opacity: calc(1 - var(--luz, 0) * .6); }
.medidor span:last-child { color: var(--ouro); opacity: calc(.4 + var(--luz, 0) * .6); }
.medidor i { width: 44px; height: 4px; border-radius: 2px; background: rgba(248, 240, 227, .2); overflow: hidden; }
.medidor b { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--luz, 0)); background: linear-gradient(90deg, #ffb24a, #ffe2a6); box-shadow: 0 0 10px #ffb24a; }
.dica { position: absolute; left: 12px; bottom: 12px; display: none; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(5, 10, 11, .5); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: rgba(248, 240, 227, .82); }
.tem-3d:not(.girou) .dica { display: flex; animation: some 9s ease forwards; }
@keyframes some { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
#brilho { position: absolute; top: 0; left: 0; width: 120vmin; height: 120vmin; margin: -60vmin 0 0 -60vmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 70, .5), rgba(255, 140, 50, .16) 45%, rgba(255, 130, 40, 0) 72%); mix-blend-mode: screen; opacity: 0; will-change: transform, opacity; }
#fotoreal { position: absolute; top: 0; left: 0; max-width: none; opacity: 0; pointer-events: none; cursor: pointer; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .42)); will-change: transform, opacity, clip-path; -webkit-user-drag: none; user-select: none; }
#varredura { position: absolute; top: 0; left: 0; height: 2px; margin-top: -1px; opacity: 0; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 226, 166, 0), #ffe9bd 18%, #fff 50%, #ffe9bd 82%, rgba(255, 226, 166, 0)); box-shadow: 0 0 14px 3px rgba(255, 196, 110, .75), 0 0 34px 8px rgba(255, 160, 70, .35); will-change: transform; }
#cotas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cota line { fill: none; stroke: #f1cf86; stroke-width: 1.25; stroke-linecap: round; }
.cota line.dim { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .3s ease, opacity .2s ease; }
.cota line.ext { stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .25s ease; }
.cota .fundo { fill: rgba(6, 11, 13, .82); stroke: rgba(241, 207, 134, .55); stroke-width: 1; opacity: 0; transition: opacity .25s ease; }
.cota .num { fill: #fdeec9; font: 600 12.5px var(--sans); letter-spacing: .03em; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .25s ease; }
#cotas.on .cota line.ext { opacity: .8; transition: opacity .35s ease; }
#cotas.on .cota line.dim { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .85s cubic-bezier(.3, .6, .2, 1) .15s, opacity .1s linear .15s; }
#cotas.on .cota .fundo, #cotas.on .cota .num { opacity: 1; transition: opacity .4s ease .75s; }
#cotas.on .cota.larg line.dim { transition-delay: .5s; }
#cotas.on .cota.larg .fundo, #cotas.on .cota.larg .num { transition-delay: 1.1s; }

/* ---------- cartão da peça ---------- */
.cartao { position: relative; padding: 52px 20px calc(14px + env(safe-area-inset-bottom)); transform: translateY(calc((.5 - var(--qs, 0)) * 18px)); }
.cartao > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ativa .cartao > *, .sem-js .cartao > * { opacity: 1; transform: none; }
.ativa .cartao > :nth-child(2) { transition-delay: .04s; } .ativa .cartao > :nth-child(3) { transition-delay: .08s; }
.ativa .cartao > :nth-child(4) { transition-delay: .12s; } .ativa .cartao > :nth-child(5) { transition-delay: .16s; }
.ativa .cartao > :nth-child(6) { transition-delay: .2s; } .ativa .cartao > :nth-child(7) { transition-delay: .24s; }
.ativa .cartao > :nth-child(n+8) { transition-delay: .28s; }
.cap { font: italic 400 15px var(--serif); color: var(--ouro); }
.num { margin-top: 2px; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 240, 227, .7); }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; border: 1px solid rgba(233, 197, 131, .45); color: var(--ouro); letter-spacing: .08em; }
.selo i { width: 7px; height: 7px; border-radius: 50%; background: #ffb24a; opacity: calc(.25 + var(--luz, 0) * .75); box-shadow: 0 0 calc(var(--luz, 0) * 10px) calc(var(--luz, 0) * 3px) #ffb24a; }
.cartao h2 { margin-top: 6px; font: 400 clamp(28px, 8.4vw, 46px)/1.04 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.desc { margin-top: 8px; font-size: 14.5px; color: rgba(248, 240, 227, .82); max-width: 34em; text-wrap: pretty; }
.med { margin-top: 6px; font-size: 13px; color: rgba(248, 240, 227, .62); }
.linha-preco { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preco b { font: 500 30px/1 var(--serif); color: var(--creme); font-variant-numeric: tabular-nums; }
.preco small { font-size: 13px; color: rgba(248, 240, 227, .66); margin-left: 4px; }
.ver-foto { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 12px; border: 1px solid rgba(248, 240, 227, .22); background: rgba(248, 240, 227, .06); font-size: 11px; font-weight: 700; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.ver-foto img { width: 33px; height: 44px; object-fit: cover; border-radius: 8px; }
.acoes { margin-top: 12px; display: flex; gap: 10px; }
.qtd { display: inline-flex; align-items: center; height: 48px; border-radius: 999px; border: 1px solid rgba(248, 240, 227, .3); flex: none; }
.qtd button { width: 44px; height: 46px; font-size: 22px; line-height: 1; border-radius: 999px; }
.qtd output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; transition: transform .15s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.claro { background: var(--creme); color: #14241f; }
.btn.linha { border: 1px solid rgba(248, 240, 227, .4); background: rgba(6, 11, 13, .45); }
.btn.whats { background: var(--wa); color: #fff; }
.btn.grande { width: 100%; min-height: 56px; font-size: 16.5px; }
.acoes .btn { flex: 1; padding: 0 12px; }
.apoio { margin-top: 8px; min-height: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: rgba(248, 240, 227, .7); font-variant-numeric: tabular-nums; }
.apoio:not(:has(button)):not(:has(span:not(:empty))) { display: none; }
.sugere { padding: 4px 10px; border-radius: 999px; border: 1px dashed rgba(233, 197, 131, .6); color: var(--ouro); font-weight: 600; }
.no-pedido:not(:empty) { color: #8fe0ae; font-weight: 700; }
.direto { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #7fe3a6; text-decoration: none; padding: 6px 0; }
.direto span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(127, 227, 166, .45); }

/* ---------- capa ---------- */
.capa .pin { grid-template-rows: auto minmax(0, 1fr); }
.capa-txt { position: relative; z-index: 21; padding: calc(var(--topo) + 34px) 22px 0; text-align: center; animation: entra .9s cubic-bezier(.2,.7,.2,1) both; }
.sobre { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(248, 240, 227, .72); }
h1 { margin-top: 10px; font: 350 clamp(52px, 16.5vw, 132px)/.92 var(--serif); letter-spacing: -.03em; }
.lema { margin-top: 10px; font: italic 400 clamp(18px, 5vw, 26px) var(--serif); color: var(--ouro); }
.chamada { margin-top: 12px; font-size: 15px; color: rgba(248, 240, 227, .85); }
.capa-acoes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.capa-acoes .btn { min-height: 46px; font-size: 14px; padding: 0 18px; }
.capa .palco { margin-top: 0; }
.role { position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(248, 240, 227, .8); pointer-events: none; transition: opacity .4s; }
.rolou .role { opacity: 0; }
.role i { order: 2; width: 1px; height: 30px; background: linear-gradient(var(--ouro), transparent); animation: desce 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes desce { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.capa-txt > * { animation: entra .9s cubic-bezier(.2, .7, .2, 1) both; }
.capa-txt > :nth-child(2) { animation-delay: .08s; } .capa-txt > :nth-child(3) { animation-delay: .18s; }
.capa-txt > :nth-child(4) { animation-delay: .26s; } .capa-txt > :nth-child(5) { animation-delay: .34s; }
@keyframes entra { from { opacity: 0; transform: translateY(22px); } }

/* ---------- pedido (lista completa) ---------- */
.pedido { position: relative; z-index: 2; background: var(--creme); color: #22342d; border-radius: 28px 28px 0 0; margin-top: -1px; }
.pedido .varal { top: 6px; }
.pedido-in { max-width: 1040px; margin: 0 auto; padding: 84px 20px 34px; }
.pedido .sobre { color: var(--verde); }
.pedido h2 { margin-top: 8px; font: 400 clamp(38px, 10vw, 64px)/1 var(--serif); color: var(--vinho); letter-spacing: -.02em; }
.pedido-intro { margin-top: 10px; max-width: 36em; color: #4d5c55; }
.lista { margin-top: 22px; display: grid; gap: 0 28px; }
.lista li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(34, 52, 45, .13); }
.l-foto img { width: 54px; height: 72px; object-fit: cover; border-radius: 10px; }
.l-info { display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: #5d6b64; min-width: 0; }
.l-info a { text-decoration: none; display: flex; flex-direction: column; }
.l-info a small { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--vinho); }
.l-info a b { font: 500 17px/1.2 var(--serif); color: #1c2c26; }
.l-preco { font-weight: 700; color: #1c2c26; font-variant-numeric: tabular-nums; }
.l-preco small { font-weight: 400; color: #5d6b64; }
.pedido .qtd, .folha .qtd { height: 42px; border-color: rgba(34, 52, 45, .3); }
.pedido .qtd button, .folha .qtd button { width: 38px; height: 40px; }
.lista li.tem .qtd { background: var(--verde); border-color: var(--verde); color: #fff; }
.fecha { margin-top: 22px; display: grid; gap: 12px; }
.fecha-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: #4d5c55; }
.fecha-total strong { font: 500 34px/1 var(--serif); color: #1c2c26; font-variant-numeric: tabular-nums; }
.aviso-cores { font-size: 13px; color: #5d6b64; }
.aviso-cores b { color: var(--verde); }
.rodape { background: var(--verde); color: var(--creme); padding: 30px 20px calc(34px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; font-size: 14px; }
.rodape img { border-radius: 12px; }
.r-nome { font: 500 24px var(--serif); } .r-lema { font: italic 400 16px var(--serif); color: var(--ouro); margin-bottom: 8px; }
.r-peq { margin-top: 8px; font-size: 12px; opacity: .7; max-width: 36em; }

/* ---------- folhas (diálogos) ---------- */
dialog.folha { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; max-height: 88svh; border-radius: 24px 24px 0 0; background: var(--creme); color: #22342d; overflow: auto; overscroll-behavior: contain; }
dialog.folha::backdrop { background: rgba(3, 6, 7, .66); }
dialog.folha[open] { animation: sobe .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } }
.folha-in { position: relative; padding: 20px 20px calc(22px + env(safe-area-inset-bottom)); }
.folha-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.folha h3 { font: 400 28px var(--serif); color: var(--vinho); }
.x { width: 40px; height: 40px; border-radius: 50%; background: rgba(34, 52, 45, .08); font-size: 24px; line-height: 1; }
.g-lista li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(34, 52, 45, .13); }
.g-lista img { width: 54px; height: 72px; object-fit: cover; border-radius: 10px; }
.g-lista li.vazio { display: block; padding: 22px 0; color: #5d6b64; }
.g-info { display: flex; flex-direction: column; font-size: 13px; color: #5d6b64; }
.g-info b { font: 500 16px/1.2 var(--serif); color: #1c2c26; }
.g-sub { font-weight: 700; color: #1c2c26; font-variant-numeric: tabular-nums; }
.limpa { justify-self: center; font-size: 13px; text-decoration: underline; color: #5d6b64; padding: 6px; }
html:not(.com-pedido) .limpa { display: none; }
.indice { margin-bottom: 16px; }
.indice a { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(34, 52, 45, .13); text-decoration: none; }
.indice span { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--vinho); }
.indice b { font: 500 17px/1.2 var(--serif); }
.indice b i { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #f0a030; box-shadow: 0 0 8px 2px rgba(240, 160, 48, .6); vertical-align: middle; }
.indice em { font-style: normal; font-size: 14px; color: #5d6b64; font-variant-numeric: tabular-nums; }
.folha .btn.claro { width: 100%; background: var(--verde); color: #fff; }
.folha.foto .x { position: absolute; top: 14px; right: 14px; z-index: 1; }
.folha.foto h3 { padding-right: 48px; margin-bottom: 12px; }
.foto-grade { display: grid; gap: 10px; }
.foto-grade.n2 { grid-template-columns: 1fr 1fr; }
.foto-grade img, .larga img { width: 100%; height: auto; border-radius: 14px; }
.foto-grade.n1 img { max-height: 70svh; width: auto; margin: 0 auto; }
.folha figcaption { margin-top: 6px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--verde); }
.larga { margin-top: 12px; }

#aviso { position: fixed; z-index: 40; left: 50%; top: calc(var(--topo) + 10px); transform: translate(-50%, -16px); padding: 10px 16px; border-radius: 999px; background: var(--creme); color: #14241f; font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
#aviso.on { opacity: 1; transform: translate(-50%, 0); }
.sem-script { position: relative; z-index: 3; margin: 0; padding: 16px 20px; background: var(--vinho); color: #fff; text-align: center; }

/* ---------- telas baixas ---------- */
@media (max-height: 700px) and (max-width: 899px) {
  .desc { display: none; }
  .cartao { padding-top: 46px; }
  .chamada { display: none; }
}
@media (max-width: 359px) { .acoes .btn { font-size: 13.5px; } .pilula { padding: 0 11px; } }

/* ---------- telas largas ---------- */
@media (min-width: 900px) {
  :root { --topo: 68px; --raio: 34px; }
  .topo { padding: 0 34px; }
  .pilula { height: 42px; padding: 0 18px; }
  .pin { grid-template-rows: minmax(0, 1fr); grid-template-columns: 1fr 1fr; align-items: center; }
  .peca .palco { grid-row: 1; grid-column: 1; height: 100%; margin-top: 0; }
  .peca .cartao { grid-row: 1; grid-column: 2; justify-self: start; margin: 0 6vw 0 4vw; width: min(440px, 38vw); padding: 34px 34px 30px; border-radius: 28px; background: rgba(5, 10, 11, .5); border: 1px solid rgba(248, 240, 227, .13); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
  .q-ref { inset: calc(var(--topo) + 5vh) 3vw 15vh 7vw; }
  .peca[data-lado="d"] .q-ref { inset: calc(var(--topo) + 5vh) 7vw 15vh 3vw; }
  .peca[data-lado="d"] .cartao { margin: 0 4vw 0 6vw; }
  .etiqueta, .medidor { top: 16px; font-size: 11px; } .etiqueta { left: 18px; } .medidor { right: 18px; } .medidor i { width: 70px; }
  .dica { left: 18px; bottom: 16px; }
  .cota .num { font-size: 13.5px; }
  .peca[data-lado="d"] .palco { grid-column: 2; }
  .peca[data-lado="d"] .cartao { grid-column: 1; justify-self: end; }
  .cartao h2 { font-size: clamp(34px, 3.4vw, 52px); }
  .desc { font-size: 15.5px; }
  .fotos { inset: 12vh 4vw; }
  .capa .pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; }
  .capa-txt { padding-top: calc(var(--topo) + 78px); }
  h1 { font-size: clamp(80px, 9.5vw, 150px); }
  .chamada br { display: none; }
  .fotos.trio { inset: 2vh 26vw 8vh; }
  .lista { grid-template-columns: 1fr 1fr; }
  .pedido-in { padding: 110px 34px 50px; }
  .fecha { max-width: 520px; margin-left: auto; margin-top: 30px; }
  dialog.folha { margin: auto; width: min(560px, 92vw); border-radius: 24px; }
  .folha.foto { width: min(820px, 92vw); }
  .direto:hover span { text-decoration-color: currentColor; }
  .btn.claro:hover { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cartao > * { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .cartao { transform: none; } #cotas .cota line, #cotas .cota .num, #cotas .cota .fundo { transition: none !important; } }

@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
