/* Site da Planeta Pizza.
   Sai das artes deles no Instagram: o azul-noite do fundo, o amarelo do anel do logo, título pesado,
   condensado e inclinado. A marca do site é a pizza deles virando o planeta do logo, com o anel em volta.
   Tudo o que muda (horário, promoção, cardápio, o que acabou) vem do sistema da casa. */

:root {
  --noite: #08163a;
  --noite-2: #0e2466;
  --azul: #1a5ce0;
  --amarelo: #ffc629;
  --amarelo-texto: #7a5800;
  --tomate: #e2382a;
  --zap: #16a34a;
  --zap-escuro: #11813a;
  --fundo: #f3f5fa;
  --papel: #ffffff;
  --tinta: #0d1526;
  --tinta-2: #465066;
  --tinta-3: #6a7489;
  --linha: #e0e5ef;
  --raio: 18px;
  --sombra: 0 1px 2px rgba(8, 22, 58, .06), 0 18px 40px -24px rgba(8, 22, 58, .35);
  --fonte: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largura: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font-family: var(--fonte); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amarelo); color: var(--noite); padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.pular:focus { top: 12px; }

/* O título das artes: pesado, estreito e inclinado. */
h1, h2, .marca span, .preco-grande { font-weight: 900; font-style: italic; font-stretch: 66%; text-transform: uppercase; letter-spacing: .005em; line-height: .9; }
.rotulo { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo-texto); display: flex; align-items: center; gap: 10px; }
.rotulo::before { content: ""; width: 34px; height: 5px; border-radius: 3px; background: var(--amarelo); transform: skewX(-18deg); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.botao:active { transform: translateY(1px); }
.botao.zap { background: var(--zap); color: #fff; box-shadow: 0 10px 24px -12px rgba(22, 163, 74, .9); }
.botao.zap:hover { background: var(--zap-escuro); }
.botao.bia { background: var(--amarelo); color: var(--noite); box-shadow: 0 10px 24px -12px rgba(255, 198, 41, .9); }
.botao.bia:hover { background: #ffd65e; }
.botao.claro { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.botao.claro:hover { background: rgba(255, 255, 255, .18); }
.botao.pequeno { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }

/* ------------------------------------------------------------------ barra do topo */

.barra {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 12px max(20px, calc((100% - var(--largura)) / 2));
  background: rgba(8, 22, 58, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.marca img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--amarelo); }
.marca span { font-size: 24px; }
.barra-links { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 15px; }
.barra-links a { text-decoration: none; color: #cfd8f0; }
.barra-links a:hover { color: var(--amarelo); }

/* ------------------------------------------------------------------ início */

.inicio {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px;
  padding: 44px max(20px, calc((100% - var(--largura)) / 2)) 80px;
  background: radial-gradient(90% 90% at 12% 0%, #1b44b8 0%, transparent 60%), radial-gradient(70% 80% at 100% 100%, #0b2a78 0%, transparent 70%), var(--noite);
}
/* os traços amarelos das artes */
.inicio::before { content: ""; position: absolute; left: -60px; top: 28px; width: 260px; height: 14px; background: var(--amarelo); transform: rotate(-24deg); border-radius: 10px; opacity: .9; z-index: -1; }
.situacao { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font-weight: 700; font-size: 14.5px; }
.situacao i { width: 10px; height: 10px; border-radius: 50%; background: #9aa6c4; }
.situacao.aberto i { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulso 2.2s infinite; }
.situacao.parado i { background: var(--tomate); }
.inicio h1 { margin: 0; font-size: clamp(48px, 6vw, 86px); text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.inicio h1 span { display: block; }
.inicio h1 em { display: block; color: var(--amarelo); font-style: inherit; }
.inicio-sub { margin: 22px 0 30px; max-width: 34ch; font-size: 19px; color: #d6def3; }
.inicio-acoes { display: flex; flex-wrap: wrap; gap: 12px; }

.planeta { position: relative; justify-self: center; width: min(420px, 34vw); aspect-ratio: 1; }
.planeta .globo {
  position: absolute; inset: 0; border-radius: 50%; background: url("/fotos/forno.jpg") 62% 55% / 170% auto no-repeat;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 60px rgba(0, 0, 0, .35);
}
.planeta .anel { position: absolute; left: -30%; right: -30%; top: 38%; height: 28%; border-radius: 50%; border: 16px solid var(--amarelo); transform: rotate(-22deg); }
.planeta .anel.atras { z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%); opacity: .95; }
.planeta .anel.frente { clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }

.aviso-dia { margin: 0; padding: 14px max(20px, calc((100% - var(--largura)) / 2)); background: var(--amarelo); color: var(--noite); font-weight: 800; font-size: 17px; text-align: center; }

.fatos { list-style: none; margin: -40px auto 0; padding: 0 20px; max-width: calc(var(--largura) + 40px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; z-index: 2; }
.fatos li { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px 20px; display: grid; gap: 2px; border-top: 4px solid var(--amarelo); }
.fatos strong { font-size: 25px; font-weight: 900; font-style: italic; font-stretch: 70%; text-transform: uppercase; line-height: 1; }
.fatos span { color: var(--tinta-2); font-size: 14px; }

/* ------------------------------------------------------------------ promoção */

section { scroll-margin-top: 80px; }
.promocao {
  max-width: var(--largura); margin: 56px auto 0; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr;
  background: var(--noite); color: #fff; box-shadow: var(--sombra); width: calc(100% - 40px);
}
.promocao-foto { background: url("/fotos/calabresa.jpg") center / cover; min-height: 300px; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.promocao-texto { padding: 40px 44px 40px 10px; display: grid; align-content: center; gap: 10px; }
.promocao .rotulo { color: var(--amarelo); }
.promocao h2 { margin: 0; font-size: clamp(40px, 5vw, 64px); }
.promocao h2 strong { display: block; color: var(--amarelo); font-size: 1.45em; }
.promocao-texto p { margin: 0; color: #d6def3; }
.promocao-brinde { padding: 12px 14px; border-radius: 12px; background: rgba(255, 198, 41, .12); box-shadow: inset 0 0 0 1px rgba(255, 198, 41, .35); color: #ffe29a !important; font-weight: 600; }
.promocao .hoje-nao { color: #ffb4ab; }
.promo-outras { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.promo-outras li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #d6def3; }
.promo-outras li strong { color: #fff; }
.promo-outras li.agora { box-shadow: inset 0 0 0 1px rgba(255, 198, 41, .55); }
.promo-outras em { font-style: normal; font-weight: 700; color: var(--amarelo); font-size: 13px; }

/* ------------------------------------------------------------------ cardápio */

.cardapio, .pedir { max-width: var(--largura); margin: 0 auto; padding: 72px 20px 0; }
.secao-cabeca { margin-bottom: 22px; }
.secao-cabeca h2 { margin: 0; font-size: clamp(40px, 5vw, 60px); }
.secao-cabeca > p:last-child { margin: 12px 0 0; color: var(--tinta-2); max-width: 62ch; }
.cardapio-filtros { position: sticky; top: 68px; z-index: 10; display: grid; gap: 10px; padding: 12px 0; background: linear-gradient(var(--fundo) 80%, transparent); }
.busca input { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--linha); background: var(--papel); padding: 0 18px; font-size: 16px; }
.busca input:focus { outline: none; border-color: var(--noite-2); box-shadow: 0 0 0 4px rgba(255, 198, 41, .45); }
.fichas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ficha { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linha); background: var(--papel); font-weight: 700; font-size: 14.5px; color: var(--tinta-2); cursor: pointer; }
.ficha[aria-pressed="true"] { background: var(--noite); border-color: var(--noite); color: #fff; }
.categoria { margin: 26px 0 0; }
.categoria h3 { margin: 0 0 12px; font-size: 28px; font-weight: 900; font-style: italic; font-stretch: 68%; text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; }
.categoria h3 small { font-size: 14px; font-style: normal; font-stretch: 100%; font-weight: 600; color: var(--tinta-3); text-transform: none; }
.itens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.item { background: var(--papel); border-radius: 16px; padding: 16px 16px 14px; border: 1px solid var(--linha); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-content: start; }
.item-numero { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; background: var(--noite); color: var(--amarelo); display: grid; place-items: center; font-weight: 900; font-style: italic; font-stretch: 75%; font-size: 17px; }
.item h4 { margin: 0; font-size: 17px; line-height: 1.25; }
.item p { margin: 0; font-size: 14px; color: var(--tinta-2); }
.item-precos { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; padding-top: 10px; border-top: 1.5px dashed var(--linha); }
.item-precos span { font-size: 13.5px; color: var(--tinta-3); }
.item-precos strong { color: var(--tinta); font-size: 16px; margin-left: 5px; }
.item.acabou { opacity: .55; }
.item.acabou h4 { text-decoration: line-through; }
.item.acabou .item-precos::after { content: "Acabou hoje"; margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--tomate); text-transform: uppercase; letter-spacing: .06em; }
.nada { padding: 40px 0; color: var(--tinta-2); text-align: center; }

/* ------------------------------------------------------------------ como pedir */

.jeitos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.jeito { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 24px; display: grid; gap: 10px; align-content: start; border-top: 5px solid var(--cor, var(--amarelo)); }
.jeito h3 { margin: 0; font-size: 22px; }
.jeito p { margin: 0; color: var(--tinta-2); }
.jeito .botao { justify-self: start; margin-top: 6px; }
.jeito.zap { --cor: var(--zap); }
.jeito.fone { --cor: var(--azul); }
.jeito.fone .botao { background: var(--noite); color: #fff; }
.detalhes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.detalhes > div { background: var(--papel); border-radius: var(--raio); padding: 20px 24px; border: 1px solid var(--linha); }
.detalhes h3 { margin: 0 0 6px; font-size: 18px; }
.detalhes p { margin: 0; color: var(--tinta-2); }

/* ------------------------------------------------------------------ onde estamos */

.onde { max-width: var(--largura); margin: 72px auto 0; width: calc(100% - 40px); display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; background: var(--papel); box-shadow: var(--sombra); }
/* a pizza com a igreja matriz de São Pedro ao fundo */
.onde-foto { background: url("/fotos/matriz.jpg") center / cover; min-height: 360px; }
.onde-texto { padding: 36px 40px; display: grid; gap: 12px; align-content: start; }
.onde h2 { margin: 0; font-size: clamp(40px, 5vw, 58px); }
.endereco { margin: 0; font-size: 19px; font-weight: 700; }
.onde .botao.claro { background: var(--noite); color: #fff; box-shadow: none; justify-self: start; }
.horarios { border-collapse: collapse; width: 100%; max-width: 360px; margin-top: 8px; font-size: 15px; }
.horarios th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-3); padding: 6px 0; }
.horarios td { padding: 7px 0; border-top: 1px solid var(--linha); }
.horarios td:last-child, .horarios th:last-child { text-align: right; font-weight: 700; }
.horarios tr.hoje td { color: var(--noite-2); font-weight: 800; }
.nota { margin: 4px 0 0; font-size: 14px; color: var(--tinta-3); }

.rodape { margin-top: 80px; padding: 40px 20px 110px; background: var(--noite); color: #cfd8f0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.rodape img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--amarelo); }
.rodape p { margin: 0; }
.rodape a { color: #fff; }

/* ------------------------------------------------------------------ a Bia no site */

.chamar-bia {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 8px; border-radius: 999px; border: 0;
  background: var(--amarelo); color: var(--noite); font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: 0 16px 34px -12px rgba(8, 22, 58, .6);
}
.chamar-bia b { width: 12px; height: 12px; border-radius: 50%; background: var(--tomate); box-shadow: 0 0 0 3px var(--amarelo); margin-left: -4px; }
.bia-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--noite); color: var(--amarelo); font-weight: 900; font-style: italic; font-size: 19px; flex: none; }
.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 41; width: min(400px, calc(100vw - 40px)); height: min(640px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--papel); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(8, 22, 58, .7);
}
.chat-topo { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--noite); color: #fff; }
.chat-topo strong { display: block; font-size: 16px; }
.chat-topo span:not(.bia-avatar) { font-size: 13px; color: #aebbe0; }
.chat-fechar { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.chat-corpo { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #eef1f7; }
.fala { max-width: 84%; padding: 10px 13px; border-radius: 16px; background: var(--papel); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; box-shadow: 0 1px 1px rgba(8, 22, 58, .08); }
.fala.bia { align-self: flex-start; border-bottom-left-radius: 5px; }
.fala.cliente { align-self: flex-end; background: var(--noite); color: #fff; border-bottom-right-radius: 5px; }
.fala.aviso { align-self: center; max-width: 92%; background: #fff6d6; color: #5b4300; font-size: 14px; text-align: center; }
.fala img { border-radius: 10px; margin-top: 4px; }
.fala.local { display: grid; gap: 3px; white-space: normal; }
.fala.local a { font-weight: 700; }
.fala.digitando { display: flex; gap: 4px; padding: 14px; }
.fala.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--tinta-3); animation: pula 1s infinite; }
.fala.digitando i:nth-child(2) { animation-delay: .15s; }
.fala.digitando i:nth-child(3) { animation-delay: .3s; }
.comecar { background: var(--papel); border-radius: 18px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 1px 2px rgba(8, 22, 58, .08); }
.comecar h3 { margin: 0; font-size: 18px; }
.comecar p { margin: 0; font-size: 14px; color: var(--tinta-2); }
.comecar label { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
.comecar input { height: 48px; border-radius: 12px; border: 1.5px solid var(--linha); padding: 0 14px; font-size: 16px; }
.comecar input:focus { outline: none; border-color: var(--noite-2); box-shadow: 0 0 0 4px rgba(255, 198, 41, .45); }
.comecar .botao { width: 100%; }
.erro { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #a01d14; font-size: 14px; font-weight: 600; }
.chat-escrever { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--linha); background: var(--papel); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.chat-escrever textarea { flex: 1; resize: none; min-height: 48px; max-height: 130px; border-radius: 14px; border: 1.5px solid var(--linha); padding: 12px 14px; font-size: 16px; }
.chat-escrever textarea:focus { outline: none; border-color: var(--noite-2); }
.chat-escrever button { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--amarelo); color: var(--noite); font-size: 18px; cursor: pointer; }
.chat-escrever button:disabled { opacity: .5; }

@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes pula { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ celular */

@media (max-width: 900px) {
  .barra-links { display: none; }
  .barra .botao { margin-left: auto; }
  .inicio { grid-template-columns: 1fr; padding: 34px 20px 70px; gap: 10px; }
  .planeta { order: -1; width: min(250px, 64vw); margin: 10px 0 22px; }
  .planeta .anel { border-width: 9px; }
  .inicio-sub { font-size: 17px; margin: 16px 0 22px; }
  .inicio-acoes .botao { flex: 1 1 100%; }
  .fatos { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -34px; }
  .fatos li { padding: 14px; }
  .fatos strong { font-size: 21px; }
  .promocao, .onde { grid-template-columns: 1fr; width: calc(100% - 24px); border-radius: 22px; }
  .promocao-foto { min-height: 180px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .promocao-texto { padding: 0 22px 26px; }
  .cardapio, .pedir { padding: 56px 12px 0; }
  .cardapio-filtros { top: 66px; }
  .itens { grid-template-columns: 1fr; }
  .detalhes { grid-template-columns: 1fr; }
  .onde-foto { min-height: 200px; }
  .onde-texto { padding: 24px 20px 28px; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .chat-topo { padding-top: calc(14px + env(safe-area-inset-top)); }
  /* No celular o botão da Bia vira só o círculo: não cobre o texto nem o botão do topo. */
  .chamar-bia { right: 12px; bottom: 12px; height: 60px; width: 60px; padding: 0; justify-content: center; }
  .chamar-bia .bia-avatar { width: 46px; height: 46px; }
  .chamar-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
