/* Adélie Clinic: identidade bordô e creme, inspirada na landing da Vila Bacurau.
   Títulos em Bodoni Moda (contraste alto, como o logo); textos em Archivo semiexpandida.
   A faísca de quatro pontas do logo é o motivo gráfico do site. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations"),
       url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2-variations"),
       url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bordo: #4d010b;
  --vinho: #2a0006;
  --cetim: #6a0c1c;
  --creme: #f6ead6;
  --creme-2: #efdfc4;
  --rose: #e8b4a6;
  --suave: #7a3b43;              /* texto secundário no creme */
  --sobre-bordo: rgba(246, 234, 214, 0.82);

  --titulo: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --texto: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --largura: 74rem;
  --margem: clamp(1.25rem, 4vw, 2.5rem);
  --respiro: clamp(4.5rem, 9vw, 7rem);
  --topo: 4.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topo) + 0.5rem);
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--bordo);
  font: 400 1.0625rem/1.65 var(--texto);
  font-stretch: 108%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--titulo);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.secao--creme :focus-visible, .painel :focus-visible { outline-color: var(--bordo); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
html.sem-rolagem { overflow: hidden; }
.icone { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.w { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); position: relative; }

.pular {
  position: absolute; top: -5rem; left: 1rem; z-index: 200;
  padding: 0.75rem 1rem; background: var(--creme); color: var(--bordo); font-weight: 700;
}
.pular:focus { top: 1rem; }

/* ---------- Botões: preenchimento desliza no hover, como na Vila ---------- */

.botao {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 3.25rem;
  padding: 0.9em 1.75em;
  border: 1px solid var(--bordo);
  border-radius: 999px;
  background: var(--bordo);
  color: var(--creme);
  font-family: var(--texto);
  font-size: 0.9375rem;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.botao::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cetim);
  transform: translateX(-101%);
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.botao:hover::before { transform: none; }
.botao:disabled { opacity: 0.55; cursor: not-allowed; }
.botao:disabled::before { display: none; }

.botao--claro { background: var(--creme); border-color: var(--creme); color: var(--bordo); }
.botao--claro::before { background: var(--rose); }

.botao--contorno-claro { background: transparent; border-color: var(--sobre-bordo); color: var(--creme); }
.botao--contorno-claro::before { background: var(--creme); }
.botao--contorno-claro:hover { color: var(--bordo); }

.botao--contorno { background: transparent; color: var(--bordo); }
.botao--contorno::before { background: var(--bordo); }
.botao--contorno:hover { color: var(--creme); }

.botao--mini { min-height: 2.5rem; padding: 0.55em 1.25em; font-size: 0.875rem; }
.botao--largo { width: 100%; }

.link-botao {
  padding: 0; border: 0; background: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em;
}

.acoes { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }
.acoes--centro { justify-content: center; }

/* ---------- Barra de contagem ---------- */

.contagem {
  background: var(--vinho);
  color: var(--creme);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(246, 234, 214, 0.18);
}
.contagem[hidden] { display: none; }
.contagem__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3rem; padding-top: 0.375rem; padding-bottom: 0.375rem;
}
.contagem p { margin: 0; }
.contagem__rotulo { color: var(--sobre-bordo); }
.contagem .botao { white-space: nowrap; flex: none; }
.rotulo-longo { display: none; }
.contagem__tempo {
  font-family: var(--titulo);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  margin-left: 0.35em;
  white-space: nowrap;
}

/* ---------- Topo: menu à esquerda, monograma no centro, redes e Agendar à direita ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bordo);
  color: var(--creme);
  border-bottom: 1px solid rgba(246, 234, 214, 0.22);
}
.topo__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  height: var(--topo);
}
.topo__marca { grid-column: 2; display: block; }
.topo__marca img { width: 3rem; height: auto; }
.topo__menu { display: none; gap: 1.75rem; }
.topo__menu a {
  font-family: var(--titulo);
  font-size: 1.125rem;
  text-decoration: none;
  transition: color 0.25s;
}
.topo__menu a:hover { color: var(--rose); }
.topo__fim { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; }
.topo__redes { display: flex; gap: 0.25rem; }
.topo__redes--celular { grid-column: 1; grid-row: 1; }
.topo__redes--tela { display: none; }
.topo__redes a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}
.topo__redes a:hover { background: rgba(246, 234, 214, 0.12); color: var(--rose); }
.topo__redes svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--creme);
  background:
    radial-gradient(110% 70% at 10% 0%, rgba(150, 30, 50, 0.45), transparent 60%),
    radial-gradient(80% 60% at 95% 100%, rgba(20, 0, 4, 0.7), transparent 60%),
    linear-gradient(125deg, #3a0008 0%, #5c0614 38%, #3d0009 55%, #6a0c1c 72%, #2a0005 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 80px, rgba(255, 220, 220, 0.045) 120px, transparent 180px);
  filter: blur(22px);
}
.hero__grade {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: var(--respiro);
}
.hero__texto { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { width: min(22rem, 80vw); margin-bottom: 2rem; }

.aviso {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: 1.25rem;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--rose);
}
.aviso::before {
  content: ""; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--rose); box-shadow: 0 0 0 0.3em rgba(232, 180, 166, 0.22);
}

.hero h1 {
  font-size: clamp(2.25rem, 8.6vw, 4.5rem);
  font-style: italic;
  font-weight: 400;
  max-width: 15ch;
}
.hero__lead { margin-top: 1.25rem; max-width: 40ch; color: var(--sobre-bordo); font-size: 1.0625rem; }
.hero .acoes { justify-content: center; }
.garantias {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.25rem;
  text-align: left; font-size: 0.8125rem; color: var(--sobre-bordo);
}
.garantias li { display: flex; align-items: flex-start; gap: 0.5rem; }
.garantias svg { width: 0.8rem; height: 0.8rem; margin-top: 0.3rem; flex: none; fill: var(--rose); }
.hero__endereco { margin: 1.75rem 0 0; font-size: 0.875rem; color: var(--sobre-bordo); }

.faisca { position: absolute; z-index: 0; fill: var(--creme); pointer-events: none; }
.faisca--1 { width: 2rem; top: 2%; left: 5%; opacity: 0.85; }
.faisca--2 { width: 1.5rem; top: 30%; right: 8%; opacity: 0.6; fill: var(--rose); display: none; }
.faisca--3 { width: 2rem; top: 8%; right: 7%; opacity: 0.5; }

/* Fotos em arco */
.foto { margin: 0; position: relative; }
.foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.foto--arco img { border-radius: 999px 999px 0 0; }
.hero__foto { width: min(26rem, 86%); justify-self: center; }
.hero__foto::before {
  content: ""; position: absolute; inset: -0.875rem -0.875rem 0.875rem 0.875rem;
  border: 1px solid rgba(246, 234, 214, 0.45); border-radius: 999px 999px 0 0;
}

/* ---------- Faixa corrida ---------- */

.faixa {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.125rem 0;
  background: var(--creme);
  color: var(--bordo);
  border-block: 1px solid var(--bordo);
}
.faixa__trilho { display: inline-flex; align-items: center; animation: correr 36s linear infinite; }
.faixa span { font-family: var(--titulo); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.25rem); padding: 0 1.75rem; }
.faixa svg { width: 0.875rem; height: 0.875rem; fill: var(--bordo); flex: none; }

/* ---------- Seções ---------- */

.secao { position: relative; overflow: hidden; padding: var(--respiro) 0; text-align: center; }
.secao--creme { background: var(--creme); color: var(--bordo); }
.secao--bordo { background: var(--bordo); color: var(--creme); }
.secao--vinho { background: var(--vinho); color: var(--creme); }

.secao__intro { max-width: 52ch; margin: 1.25rem auto 0; font-size: 1.0625rem; }
.secao--creme .secao__intro { color: var(--suave); }
.secao--bordo .secao__intro, .secao--vinho .secao__intro { color: var(--sobre-bordo); }

/* ---------- Combos ---------- */

.exemplo {
  display: inline-block; margin: 1.5rem auto 0; padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px dashed var(--bordo); font-size: 0.8125rem; font-weight: 600;
}
.exemplo[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2.25rem; }
.chips a {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--bordo);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background-color 0.2s, color 0.2s;
}
.chips a:hover { background: var(--bordo); color: var(--creme); }

.categorias { text-align: left; }
.categoria {
  display: grid;
  gap: 1.5rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid rgba(77, 1, 11, 0.18);
  scroll-margin-top: calc(var(--topo) + 1rem);
}
.categoria:last-child { border-bottom: 0; }
.categoria__cabeca h3 { font-size: clamp(2rem, 4vw, 2.75rem); }
.categoria__cabeca p { margin: 0.75rem 0 0; color: var(--suave); max-width: 32ch; }
.categoria__nav { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.categoria__nav[hidden] { display: none; }
.seta {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--bordo); border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.seta svg { width: 1.1rem; height: 1.1rem; }
.seta--voltar svg { transform: scaleX(-1); }
.seta:hover:not(:disabled) { background: var(--bordo); color: var(--creme); }
.seta:disabled { opacity: 0.3; cursor: default; }

.carrossel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 19rem);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margem);
  margin-inline: calc(var(--margem) * -1);
  padding: 0.25rem var(--margem) 1rem;
  scrollbar-width: none;
}
.carrossel::-webkit-scrollbar { display: none; }

.combo {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--creme-2);
  border: 1px solid rgba(77, 1, 11, 0.14);
  border-radius: 1.5rem;
  overflow: hidden;
}
.combo__img { position: relative; }
.combo__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.selo {
  position: absolute; top: 0.75rem; right: 0.75rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--creme); color: var(--bordo);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.combo__corpo { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: 1.25rem 1.25rem 1.375rem; }
.combo__corpo h4 { margin: 0; font-family: var(--titulo); font-size: 1.625rem; font-weight: 500; line-height: 1.1; }
.combo__resumo { margin: 0; color: var(--suave); font-size: 0.9375rem; line-height: 1.5; }
.preco {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem;
  margin: auto 0 0; padding-top: 0.75rem;
  border-top: 1px solid rgba(77, 1, 11, 0.18);
}
.preco strong { font-family: var(--titulo); font-size: 1.625rem; font-weight: 600; font-variant-numeric: lining-nums; }
.preco s { color: var(--suave); font-size: 0.9375rem; }
.preco__exemplo { flex-basis: 100%; font-size: 0.75rem; color: var(--suave); }
.combo .botao { margin-top: 0.5rem; }
.combo .botao.no-pedido { background: transparent; color: var(--bordo); }

.nota { max-width: 48ch; margin: 2rem auto 0; font-size: 0.9375rem; color: var(--suave); }

/* ---------- Como funciona ---------- */

.passos {
  list-style: none; counter-reset: passo;
  display: grid; gap: 2.5rem;
  margin: 3rem 0 0; padding: 0;
}
.passos li { counter-increment: passo; max-width: 22rem; margin: 0 auto; }
.passos li::before {
  content: counter(passo, decimal-leading-zero);
  display: block; margin-bottom: 0.75rem;
  font-family: var(--titulo); font-style: italic; font-size: 3rem; line-height: 1; color: var(--rose);
}
.passos h3 { font-size: 1.625rem; margin-bottom: 0.5rem; }
.passos p { color: var(--sobre-bordo); }

/* ---------- Equipe ---------- */

.equipe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
  margin-top: 3rem;
}
.membro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.membro__foto { width: 100%; margin: 0 0 1rem; }
.membro__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 1.25rem 1.25rem; }
.membro h3 { font-size: clamp(1.25rem, 3.4vw, 1.625rem); }
.membro p { margin: 0.35rem 0 0.75rem; font-size: 0.875rem; color: var(--suave); line-height: 1.45; }
.membro p strong { display: block; color: var(--bordo); font-weight: 600; }
.membro a { margin-top: auto; font-size: 0.875rem; font-weight: 600; text-underline-offset: 0.25em; }

/* ---------- VIP e contagem grande ---------- */

.vip__fundo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--titulo); font-style: italic;
  font-size: min(30vw, 22rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(246, 234, 214, 0.16);
  white-space: nowrap; pointer-events: none;
}
.relogio {
  display: grid; grid-template-columns: repeat(4, minmax(0, 7rem));
  justify-content: center; gap: 0.75rem;
  margin: 2.5rem 0 0.75rem;
}
.relogio div { padding: 1.1rem 0.25rem 0.8rem; border: 1px solid rgba(232, 180, 166, 0.55); border-radius: 1.25rem; background: rgba(77, 1, 11, 0.6); }
.relogio b {
  display: block; font-family: var(--titulo); font-weight: 500;
  font-size: clamp(2.25rem, 7vw, 3.5rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums;
}
.relogio small { font-size: 0.8125rem; color: var(--sobre-bordo); }
.vip__fim { font-size: 0.9375rem; color: var(--sobre-bordo); }

/* ---------- Onde fica ---------- */

.onde { display: grid; gap: 2.5rem; align-items: center; }
.onde address {
  margin: 1.5rem 0 0.75rem; font-style: normal;
  font-family: var(--titulo); font-size: 1.5rem; line-height: 1.35;
}
.onde__texto p { color: var(--suave); }
.onde__mapa {
  aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--bordo); border-radius: 1.25rem;
  background: var(--creme-2);
}
.onde__mapa iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Redes e avaliação ---------- */

.redes__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.25rem; }
.redes__links a {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 0.9rem;
  min-width: 15rem; padding: 1rem 1.5rem;
  border: 1px solid rgba(246, 234, 214, 0.45); border-radius: 999px;
  text-align: left; text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.redes__links a:hover { background: var(--creme); color: var(--bordo); }
.redes__links svg { grid-row: span 2; width: 2rem; height: 2rem; }
.redes__links span { font-family: var(--titulo); font-size: 1.375rem; line-height: 1.1; }
.redes__links small { font-size: 0.8125rem; opacity: 0.8; }

.avaliar { max-width: 34rem; margin: 3.5rem auto 0; padding-top: 3rem; border-top: 1px solid rgba(246, 234, 214, 0.2); }
.avaliar__faiscas { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.avaliar__faiscas svg { width: 2rem; height: 2rem; fill: var(--rose); }
.avaliar h3 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.avaliar p { margin-top: 0.75rem; color: var(--sobre-bordo); }
.avaliar .botao { margin-top: 0.75rem; }

/* ---------- Dúvidas ---------- */

.duvidas { display: grid; gap: 2rem; text-align: left; }
.duvidas h2 { text-align: center; }
.duvidas__lista { border-top: 1px solid var(--bordo); }
.duvidas details { border-bottom: 1px solid rgba(77, 1, 11, 0.22); }
.duvidas summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--titulo); font-size: 1.25rem; font-weight: 500;
  cursor: pointer; list-style: none;
}
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after {
  content: ""; flex: none; width: 0.9rem; height: 0.9rem;
  background:
    linear-gradient(var(--bordo), var(--bordo)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--bordo), var(--bordo)) center / 1.5px 100% no-repeat;
  transition: transform 0.25s ease;
}
.duvidas details[open] summary::after { transform: rotate(45deg); }
.duvidas details p { max-width: 62ch; color: var(--suave); padding-bottom: 0.5rem; }

/* ---------- Chamada final e rodapé ---------- */

.chamada { padding: var(--respiro) 0; background: var(--vinho); color: var(--creme); text-align: center; }
.chamada h2 { font-style: italic; font-weight: 400; max-width: 16ch; margin: 0 auto; }

.rodape {
  padding: 3.5rem 0 7rem;
  background: var(--vinho);
  color: var(--sobre-bordo);
  text-align: center;
  font-size: 0.9375rem;
  border-top: 1px solid rgba(246, 234, 214, 0.16);
}
.rodape__logo { width: 11rem; margin: 0 auto 1.75rem; }
.rodape__redes { display: flex; justify-content: center; gap: 1.5rem; }
.rodape__redes a { display: inline-flex; align-items: center; gap: 0.45rem; }
.rodape__redes svg { width: 1.15rem; height: 1.15rem; }
.rodape a, .rodape .link-botao { color: var(--creme); }
.rodape__aviso { max-width: 44ch; margin: 1.75rem auto 1rem; font-size: 0.875rem; }
.rodape__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }

/* ---------- Flutuantes ---------- */

.fab {
  position: fixed; z-index: 60;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: var(--bordo); color: var(--creme);
  border: 1px solid rgba(246, 234, 214, 0.5);
  box-shadow: 0 10px 28px rgba(42, 0, 6, 0.35);
}
.fab svg { width: 1.75rem; height: 1.75rem; }
.js .fab { transition: opacity 0.3s ease, transform 0.3s ease; }
.js .fab:not(.visivel) { opacity: 0; transform: scale(0.8); pointer-events: none; }
.fab::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--bordo); animation: pulso 2.4s ease-out infinite;
}

.sacola {
  position: fixed; z-index: 60;
  left: max(1rem, env(safe-area-inset-left));
  bottom: calc(1.4rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0.6rem;
  max-width: calc(100vw - 6.5rem);
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--creme);
  border-radius: 999px;
  background: var(--creme); color: var(--bordo);
  font-size: 0.9375rem; font-weight: 600;
  box-shadow: 0 10px 28px rgba(42, 0, 6, 0.3);
  cursor: pointer;
}
.sacola[hidden] { display: none; }
.sacola span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.aviso-flutuante {
  position: fixed; z-index: 120; left: 50%; top: 1rem; transform: translateX(-50%);
  width: min(30rem, calc(100vw - 2rem));
  padding: 0.9rem 1.1rem;
  background: var(--creme); color: var(--bordo);
  border: 1px solid var(--bordo);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(42, 0, 6, 0.25);
  font-size: 0.9375rem;
}
.aviso-flutuante[hidden] { display: none; }

/* ---------- Painel do combo e do pedido ---------- */

dialog { color: inherit; }
dialog::backdrop { background: rgba(26, 0, 4, 0.62); }

.painel {
  width: min(36rem, 100vw);
  max-height: 92svh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 1.5rem 1.5rem 0 0;
  background: var(--creme);
  color: var(--bordo);
  overscroll-behavior: contain;
}
.painel__in { padding: 1.5rem var(--margem) 1.75rem; }
.painel__topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.painel__passo { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--suave); }
.painel h2 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin-bottom: 1rem; }
.painel__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.25rem; border-radius: 1.25rem; }
.painel__resumo { color: var(--suave); }

.fechar {
  display: grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1px solid currentColor; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.fechar svg { width: 1.1rem; height: 1.1rem; }

.inclui { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.45rem; }
.inclui li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9375rem; }
.inclui svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.2rem; }

.letra { font-size: 0.8125rem; color: var(--suave); }

.monte {
  margin: 1.5rem 0 0; padding: 1.25rem;
  background: var(--creme-2); border: 1px solid rgba(77, 1, 11, 0.16); border-radius: 1.25rem;
}
.monte h3 { font-size: 1.375rem; margin-bottom: 0.35rem; }
.monte > p { font-size: 0.9375rem; color: var(--suave); }
.monte__lista { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.monte__lista li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 0; border-top: 1px solid rgba(77, 1, 11, 0.14);
}
.monte__lista small { display: block; font-size: 0.75rem; color: var(--suave); }
.monte__lista strong { font-weight: 600; }

.total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: 1.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--bordo);
}
.total strong { font-family: var(--titulo); font-size: 2rem; font-weight: 600; font-variant-numeric: lining-nums; }

.beneficio {
  display: flex; gap: 0.6rem; align-items: center;
  margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 1rem;
  background: var(--bordo); color: var(--creme); font-size: 0.9375rem;
}
.beneficio svg { width: 1.1rem; height: 1.1rem; fill: var(--rose); flex: none; }

.itens { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(77, 1, 11, 0.2); }
.itens li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(77, 1, 11, 0.14); }
.itens b { font-family: var(--titulo); font-size: 1.25rem; font-weight: 500; }
.itens .link-botao { font-size: 0.8125rem; color: var(--suave); }

fieldset { margin: 1.5rem 0 0; padding: 0; border: 0; }
legend { margin-bottom: 0.75rem; font-family: var(--titulo); font-size: 1.25rem; }
.formas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.forma {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.85rem 1rem; border: 1px solid rgba(77, 1, 11, 0.35); border-radius: 1rem; cursor: pointer;
}
.forma input { position: absolute; opacity: 0; pointer-events: none; }
.forma strong { font-weight: 600; }
.forma small { font-size: 0.8125rem; color: var(--suave); }
.forma:has(input:checked) { border-color: var(--bordo); box-shadow: inset 0 0 0 1px var(--bordo); background: var(--creme-2); }
.forma:has(input:focus-visible) { outline: 2px solid var(--bordo); outline-offset: 2px; }

.aceite { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.25rem; font-size: 0.9375rem; cursor: pointer; }
.aceite input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--bordo); flex: none; }

.erro { margin: 1rem 0 0; padding: 0.75rem 1rem; border: 1px solid var(--bordo); border-radius: 1rem; background: #fff6f2; font-size: 0.9375rem; }
.erro[hidden] { display: none; }
.seguro { display: flex; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0; font-size: 0.8125rem; color: var(--suave); }
.seguro svg { width: 1rem; height: 1rem; }

.painel__rodape { display: grid; gap: 0.6rem; }

/* ---------- Oferta ---------- */

.oferta {
  position: relative;
  width: min(26rem, calc(100vw - 2rem));
  padding: 2.75rem 1.75rem 1.75rem;
  border: 1px solid var(--rose);
  border-radius: 1.75rem;
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(150, 30, 50, 0.5), transparent 60%),
    var(--bordo);
  color: var(--creme);
  text-align: center;
}
.oferta .fechar { position: absolute; top: 0.9rem; right: 0.9rem; }
.oferta__selo {
  display: grid; place-items: center;
  width: 6.5rem; height: 6.5rem; margin: 0 auto 1.25rem;
  border: 1px solid var(--rose); border-radius: 50%;
  font-family: var(--titulo); font-size: 1.75rem;
}
.oferta h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.oferta p { color: var(--sobre-bordo); }
.oferta .botao { width: 100%; margin-top: 0.5rem; }
.oferta__letra { margin: 0.9rem 0 0; font-size: 0.75rem; }

/* ---------- Cookies ---------- */

.consentimento {
  position: fixed; z-index: 110;
  left: var(--margem); right: var(--margem);
  bottom: calc(1rem + env(safe-area-inset-bottom));
  max-width: 26rem; padding: 1.25rem; border-radius: 1.25rem;
  background: var(--vinho); color: var(--creme);
  font-size: 0.9375rem;
  box-shadow: 0 12px 32px rgba(26, 0, 4, 0.4);
}
.consentimento[hidden] { display: none; }
.consentimento__acoes { display: flex; gap: 0.75rem; }
.consentimento-aberto .sacola, .consentimento-aberto .fab { visibility: hidden; }

/* ---------- Páginas de texto ---------- */

.pagina { min-height: 100svh; padding: var(--respiro) 0; text-align: left; }
.pagina .w { max-width: 46rem; }
.pagina h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin: 2rem 0 0.75rem; }
.pagina h2 { font-size: 1.625rem; margin: 2.5rem 0 0.6rem; }
.pagina__logo { width: 9rem; }
.codigo {
  display: inline-block; margin: 0.5rem 0 1.5rem; padding: 0.6rem 1rem;
  border: 1px dashed var(--bordo); border-radius: 1rem;
  font-family: var(--titulo); font-size: 1.75rem; letter-spacing: 0.06em;
}

/* ---------- Telas médias e grandes ---------- */

@media (min-width: 760px) {
  .rotulo-longo { display: inline; }
  .rotulo-curto { display: none; }
  .faisca--2 { display: block; }
  .faisca--1 { width: 2.75rem; top: 12%; left: 6%; }
  .passos { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .equipe { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .onde { grid-template-columns: 5fr 7fr; gap: 4rem; text-align: left; }
  .duvidas { grid-template-columns: 4fr 8fr; gap: 4rem; align-items: start; }
  .duvidas h2 { text-align: left; }
  .painel { margin: auto; max-height: 88svh; border: 1px solid var(--bordo); }
  .painel__in { padding: 2rem 2.25rem 2.25rem; }
}

@media (min-width: 1024px) {
  .garantias { grid-template-columns: repeat(2, auto); justify-content: center; }
  .topo__menu { display: flex; grid-column: 1; grid-row: 1; }
  .topo__redes--celular { display: none; }
  .topo__redes--tela { display: flex; }
  .hero__grade { grid-template-columns: 7fr 5fr; gap: 4rem; padding-top: 3.5rem; padding-bottom: 4.5rem; min-height: calc(100svh - var(--topo) - 3rem); }
  .hero__logo { width: 19rem; margin-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(2.75rem, 3.9vw, 3.5rem); max-width: 17ch; }
  .categoria { grid-template-columns: 16rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .carrossel { grid-auto-columns: 18.5rem; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}

/* ---------- Movimento ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .rv.dentro { opacity: 1; transform: none; }
  .faisca--1 { animation: brilhar 3.2s ease-in-out infinite; }
  .faisca--2 { animation: brilhar 2.6s ease-in-out 0.8s infinite; }
  .faisca--3 { animation: brilhar 3.6s ease-in-out 1.4s infinite; }
  .avaliar__faiscas svg { animation: brilhar 2.6s ease-in-out infinite; }
  .avaliar__faiscas svg:nth-child(2) { animation-delay: 0.25s; }
  .avaliar__faiscas svg:nth-child(3) { animation-delay: 0.5s; }
  .avaliar__faiscas svg:nth-child(4) { animation-delay: 0.75s; }
  .avaliar__faiscas svg:nth-child(5) { animation-delay: 1s; }
  .hero__foto { animation: flutuar 8s ease-in-out infinite; }
  .relogio b.virou { animation: virar 0.45s ease; }
  .painel[open], .oferta[open] { animation: subir 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faixa__trilho { animation: none; }
  .fab::after { animation: none; }
  .botao::before { transition: none; }
}

@keyframes correr { to { transform: translateX(-50%); } }
@keyframes brilhar { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; } 50% { transform: scale(1.25) rotate(12deg); opacity: 0.55; } }
@keyframes flutuar { 50% { transform: translateY(-10px); } }
@keyframes virar { from { transform: translateY(-6px); opacity: 0.3; } to { transform: none; opacity: 1; } }
@keyframes pulso { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.5); opacity: 0; } }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.categoria__cabeca .categoria__quem { margin: 0.6rem 0 0; font-weight: 600; color: var(--bordo); font-size: 0.9375rem; }

/* ---------- Faíscas (canvas) ---------- */

[data-faiscas] { position: relative; overflow: hidden; }
.ceu { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.rastro { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
.chamada .w, .redes .w { z-index: 1; }

/* ---------- Tour 3D do espaço ---------- */

.tour { position: relative; background: var(--vinho); color: var(--creme); }
.tour__palco, .tour__galeria { display: none; }

.tour--3d { height: calc(var(--paradas, 5) * 85svh + 100svh); }
.tour--3d .tour__palco { display: block; position: sticky; top: 0; height: 100svh; overflow: hidden; }
.tour__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s ease; }
.tour--pronto .tour__canvas { opacity: 1; }

.tour__topo {
  position: absolute; z-index: 2; left: 0; right: 0;
  top: calc(var(--topo) + 1.25rem);
  padding: 0 var(--margem);
  text-align: center; pointer-events: none;
}
.tour__topo h2 { font-style: italic; font-weight: 400; }
.tour__dica { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--sobre-bordo); transition: opacity 0.4s ease; }
.tour--andando .tour__dica { opacity: 0; }
.tour__aviso { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--sobre-bordo); opacity: 0.8; }
.hero__legenda { position: absolute; left: 0; right: 0; bottom: -2rem; text-align: center; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--sobre-bordo); }

.tour__legenda {
  position: absolute; z-index: 2;
  left: var(--margem); bottom: 5.5rem;
  max-width: min(22rem, calc(100% - 6rem));
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(246, 234, 214, 0.2); border-radius: 1.25rem;
  background: rgba(42, 0, 6, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tour__legenda h3 { font-size: 1.75rem; }
.tour__legenda p { margin: 0.35rem 0 0; color: var(--sobre-bordo); font-size: 0.9375rem; }
.tour__legenda .tour__passo { margin: 0 0 0.35rem; color: var(--rose); font-size: 0.8125rem; font-weight: 600; }
.tour__barra {
  position: absolute; z-index: 2; left: var(--margem); right: var(--margem); bottom: 1.6rem;
  height: 2px; border-radius: 2px; background: rgba(246, 234, 214, 0.2);
}
.tour__barra span { display: block; height: 100%; border-radius: 2px; background: var(--rose); transform: scaleX(0); transform-origin: left; }

.tour--estatico { padding: var(--respiro) 0; }
.tour--estatico .tour__palco { display: block; }
.tour--estatico .tour__topo { position: static; }
.tour--estatico .tour__dica, .tour--estatico .tour__legenda, .tour--estatico .tour__barra, .tour--estatico .tour__canvas { display: none; }
.tour--estatico .tour__galeria {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 19rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  max-width: var(--largura); margin: 2.5rem auto 0; padding: 0 var(--margem) 1rem;
}
.tour__foto { margin: 0; scroll-snap-align: start; }
.tour__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 1.25rem 1.25rem; }
.tour__foto figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--sobre-bordo); }
.tour__foto figcaption span { display: block; color: var(--rose); font-size: 0.75rem; font-weight: 600; }
.tour__foto figcaption strong { display: block; font-family: var(--titulo); font-size: 1.375rem; font-weight: 500; color: var(--creme); }

@media (min-width: 760px) {
  .tour__legenda { left: auto; right: var(--margem); bottom: 4rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .tour__legenda.troca { animation: subir 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
