/* Cores tiradas da logo */
:root {
  --amarelo: #f7c21b;
  --amarelo-claro: #fde58a;
  --marrom: #4a2615;
  --marrom-medio: #7a3f1d;
  --vermelho: #c8302a;
  --vermelho-escuro: #9e211d;
  --creme: #fff8e6;
  --branco: #ffffff;
  --texto: #2e1a0e;
  --sombra: 0 10px 30px rgba(74, 38, 21, .18);
  --raio: 18px;
  --titulo: "Alfa Slab One", Georgia, serif;
  --script: "Kaushan Script", cursive;
  --corpo: "Nunito Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--corpo);
  color: var(--texto);
  background: var(--creme);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--marrom); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.script { font-family: var(--script); color: var(--vermelho); font-size: 1.35rem; margin: 0 0 .2em; }
.hl { color: var(--vermelho); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--vermelho); color: var(--branco);
  font-family: var(--corpo); font-weight: 800; font-size: 1rem;
  padding: .85em 1.6em; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--vermelho-escuro);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--vermelho-escuro); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--vermelho-escuro); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--small { padding: .55em 1.2em; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--marrom); box-shadow: inset 0 0 0 2px var(--marrom); }
.btn--ghost:hover { background: var(--marrom); color: var(--amarelo); box-shadow: inset 0 0 0 2px var(--marrom); }
.btn--ghost-dark { background: var(--marrom); box-shadow: 0 4px 0 #2a150b; }
.btn--ghost-dark:hover { box-shadow: 0 6px 0 #2a150b; }
.btn--full { width: 100%; }

/* Cabeçalho */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(247, 194, 27, .96);
  backdrop-filter: blur(6px);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(74, 38, 21, .2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--titulo); font-size: 1.5rem; color: var(--marrom); }
.header__brand img { border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 800; color: var(--marrom); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 100%;
  background: var(--vermelho); border-radius: 3px; transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.header__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.header__toggle span { display: block; width: 26px; height: 3px; background: var(--marrom); margin: 5px 0; border-radius: 3px; transition: .2s; }

/* Hero */
.hero {
  position: relative;
  background: var(--amarelo);
  background-image: radial-gradient(circle at 80% 30%, var(--amarelo-claro) 0, transparent 45%);
  padding: 130px 0 40px;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero__lead { font-size: 1.15rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero__visual { position: relative; display: grid; justify-items: center; }

/* Logo interativa: inclina com o mouse, gira ao clicar */
.logo3d {
  position: relative; width: min(420px, 100%); aspect-ratio: 1;
  padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}
.logo3d__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: girar 30s linear infinite; overflow: visible;
}
.logo3d__ring text {
  font-family: var(--titulo); font-size: 13.4px; letter-spacing: 1.6px;
  fill: var(--marrom); text-transform: uppercase;
}
.logo3d__card {
  position: relative; width: 72%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; background: var(--amarelo);
  border: 8px solid var(--marrom);
  box-shadow: 0 0 0 6px var(--creme), 0 25px 45px rgba(74, 38, 21, .35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .15s ease-out;
  animation: flutuar 4s ease-in-out infinite;
}
.logo3d__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.logo3d__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.45), transparent 55%);
}
.logo3d:hover .logo3d__shine { opacity: 1; }
.logo3d:focus-visible .logo3d__card { outline: 4px solid var(--vermelho); outline-offset: 10px; }
.logo3d.is-spinning .logo3d__card { animation: girar-logo .9s cubic-bezier(.3, 1.4, .5, 1); }
.confete {
  position: absolute; left: 50%; top: 50%; pointer-events: none; font-size: 1.8rem; z-index: 3;
  animation: confete .9s ease-out forwards;
}
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes flutuar { 50% { translate: 0 -12px; } }
@keyframes girar-logo { from { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(1.08); } to { transform: rotateY(360deg) scale(1); } }
@keyframes confete {
  from { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); opacity: 0; }
}
/* Transição do forno: a janela em arco cresce até ocupar a tela (controlada pelo JS via --p) */
.forno { position: relative; background: var(--amarelo); --p: 0; }
.forno__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: grid; place-items: center;
}
.forno__janela {
  position: absolute; inset: 0;
  clip-path: inset(var(--it, 22%) var(--il, 25%) var(--ib, 22%) var(--il, 25%) round var(--rt, 50%) var(--rt, 50%) var(--rb, 24px) var(--rb, 24px));
  background: #1a0b04;
}
.forno__janela img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.35 - var(--p) * .35));
  animation: chama 1.8s ease-in-out infinite alternate;
}
.forno__janela::after {
  /* escurece quando os cards sobem, para manter a leitura */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(26, 11, 4, .7));
  opacity: calc(.4 + var(--escuro, 0) * .6);
}
.brasas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.forno__titulo {
  position: relative; z-index: 2; margin: 0; text-align: center;
  font-family: var(--titulo); color: var(--creme);
  font-size: clamp(2.4rem, 8vw, 6rem); line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
  opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * 30px));
}
.forno__titulo .script { display: block; color: var(--amarelo-claro); font-size: .45em; margin-bottom: .2em; text-shadow: 0 2px 12px rgba(0, 0, 0, .9), 0 0 4px rgba(0, 0, 0, .8); }
.forno__espaco { height: 90vh; }
@keyframes chama {
  0% { filter: brightness(1) saturate(1.05); }
  30% { filter: brightness(1.12) saturate(1.15); }
  55% { filter: brightness(.95) saturate(1); }
  100% { filter: brightness(1.08) saturate(1.2); }
}

/* Destaques: painéis de vidro escuro sobre o forno; o aberto cresce e mostra a interação */
.features { position: relative; z-index: 2; padding: 0 0 22vh; }
.paineis { display: flex; gap: 1rem; height: 540px; }
.painel {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 1.6rem; border-radius: 26px; color: var(--creme);
  background: linear-gradient(160deg, rgba(40, 17, 6, .72), rgba(20, 8, 3, .82));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 229, 138, .18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: flex .55s cubic-bezier(.6, 0, .2, 1), border-color .3s;
}
.painel.is-open { flex: 2.6; border-color: rgba(253, 229, 138, .45); }
.painel::before {
  /* brilho de brasa no canto do painel aberto */
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 122, 26, .55), transparent 70%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.painel.is-open::before { opacity: 1; }
.painel__cab {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.painel__num {
  font-family: var(--titulo); font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--amarelo);
  transition: color .3s;
}
.painel.is-open .painel__num, .painel__cab:hover .painel__num { color: var(--amarelo); }
.painel__titulo { font-family: var(--titulo); font-size: 1.45rem; color: var(--creme); }
.painel__cab::after {
  content: "+"; position: absolute; top: 1.3rem; right: 1.3rem;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 800; color: var(--amarelo);
  border: 1.5px solid rgba(253, 229, 138, .45); transition: transform .3s, opacity .3s;
}
.painel.is-open .painel__cab::after { transform: rotate(45deg); opacity: 0; }
.painel__corpo {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  margin-top: 1rem; animation: surgir .5s .15s ease both;
}
.painel:not(.is-open) .painel__corpo { display: none; }
.painel__corpo p { margin: 0 0 .6rem; max-width: 34em; color: rgba(255, 248, 230, .85); }
@keyframes surgir { from { opacity: 0; transform: translateY(14px); } }
.painel__foto {
  width: 100%; max-width: 340px; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; margin-bottom: 1rem; box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}
.painel__foto--massa { object-position: 50% 62%; } /* foto vertical: enquadra a borda aerada */
/* sabores das esfihas em formato de cardápio */
.sabores-lista { list-style: none; margin: 0 0 1.2rem; padding: 0; max-width: 420px; }
.sabores-lista li {
  display: flex; align-items: baseline; gap: .8rem; padding: .55rem 0;
  font-family: var(--titulo); font-size: 1.6rem; line-height: 1.1; color: var(--creme);
  border-bottom: 1px dashed rgba(253, 229, 138, .3);
}
.sabores-lista li::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--amarelo); transform: translateY(-.15em); }

/* Sobre */
.about { position: relative; isolation: isolate; overflow: hidden; padding: 90px 0; }

/* Estampa de caixa de pizza: desenhos em traço que reagem ao cursor (JS move cada um) */
.estampa { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.about__text { position: relative; }
.about__text::before {
  /* halo creme atrás do texto para a estampa não atrapalhar a leitura */
  content: ""; position: absolute; inset: -50px -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--creme) 72%, rgba(255, 248, 230, 0));
}
.estampa .icone {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  color: rgba(122, 63, 29, .16); will-change: transform;
}
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.about__lema {
  position: relative; isolation: isolate; display: grid; justify-items: start; justify-self: center;
  width: fit-content; padding: 4.5rem 0;
  font-family: var(--titulo); line-height: .95; color: var(--marrom);
}
.about__lema::before {
  /* disco amarelo como o fundo da logo, do tamanho das palavras (não da tela) */
  content: ""; position: absolute; z-index: -1; width: 112%; aspect-ratio: 1; left: 50%; top: 50%;
  translate: -50% -50%; border-radius: 50%; background: var(--amarelo);
}
.lema { font-size: clamp(2.6rem, 5vw, 4.6rem); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), color .2s; }
.lema:hover { transform: translateX(14px) rotate(-2deg); }
.lema--familia { color: var(--vermelho); margin-left: .6em; }
.lema em { font-family: var(--script); font-style: normal; color: var(--vermelho-escuro); }
.about__stats { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.about__stats strong { display: block; font-family: var(--titulo); font-size: 1.8rem; color: var(--vermelho); font-weight: 400; }
.about__stats span { font-size: .9rem; font-weight: 600; }

/* Cabeçalho de seção */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head--light h2 { color: var(--amarelo); }
.section-head--light .script { color: var(--amarelo-claro); }

.note { text-align: center; font-size: .85rem; margin-top: 1.5rem; opacity: .75; }

/* Galeria */
.gallery { padding: 90px 0; background: var(--marrom); }
/* Galeria em fileiras: as fotos de cada fileira têm a mesma altura e mantêm o formato original (--r = largura/altura) */
.gallery__grid { display: grid; gap: 14px; max-width: 980px; margin-inline: auto; }
.gallery__linha { display: flex; gap: 14px; }
.gallery__item {
  flex: var(--r) 1 0; aspect-ratio: var(--r); min-width: 0;
  padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in;
  background: #2a150b; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  outline: 2px solid transparent; outline-offset: 4px;
  transition: transform .3s, box-shadow .3s, outline-color .25s;
}
.gallery__item img { width: 100%; height: auto; display: block; transition: filter .3s; }
.gallery__item:hover, .gallery__item:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.gallery__item:hover img { filter: saturate(1.12) brightness(1.04); }
.gallery__item:focus-visible { outline-color: var(--amarelo); }

/* Depoimentos */
.testimonials { padding: 90px 0; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  margin: 0; background: var(--branco); border-radius: var(--raio); padding: 2rem;
  box-shadow: var(--sombra); position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: -10px; right: 20px;
  font-family: var(--titulo); font-size: 5rem; color: var(--amarelo); line-height: 1;
}
.stars { color: var(--amarelo); font-size: 1.2rem; letter-spacing: 2px; text-shadow: 0 1px 0 var(--marrom-medio); }
.quote blockquote { margin: .8rem 0 1rem; font-size: 1.05rem; }
.quote figcaption { font-size: .9rem; color: #6b4a36; }

/* Contato */
.contact { padding: 90px 0; background: var(--amarelo); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.contact__list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1.2rem; }
.contact__list li { font-size: 1.08rem; font-weight: 600; }
.contact__list a { color: var(--vermelho-escuro); font-weight: 800; }
.contact__label { display: block; font-family: var(--titulo); font-size: .85rem; color: var(--vermelho); letter-spacing: .03em; }
.contact__map { border-radius: var(--raio); overflow: hidden; border: 6px solid var(--marrom); box-shadow: var(--sombra); min-height: 380px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Rodapé */
.footer { background: var(--marrom); color: var(--amarelo-claro); padding: 40px 0; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: .6rem; }
.footer img { border-radius: 50%; }
.footer p { margin: 0; }
.footer__insta {
  display: inline-flex; align-items: center; gap: .5rem; margin: .4rem 0;
  padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid rgba(253, 229, 138, .4);
  color: var(--amarelo); font-weight: 800; text-decoration: none; transition: background .2s, color .2s;
}
.footer__insta svg { width: 20px; height: 20px; }
.footer__insta:hover { background: var(--amarelo); color: var(--marrom); }
.footer__copy { font-size: .85rem; opacity: .7; }

/* WhatsApp flutuante */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 64px; height: 64px; border-radius: 50%;
  background: #25d366; color: var(--branco); box-shadow: var(--sombra);
  display: grid; place-items: center; transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 34px; height: 34px; fill: currentColor; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 10, 5, .92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox__foto { margin: 0; display: grid; justify-items: center; gap: .8rem; animation: surgir .35s ease; }
.lightbox__foto img { max-height: 82vh; max-width: min(92vw, 1000px); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: var(--branco); font-size: 2.6rem; cursor: pointer; z-index: 1; }
.lightbox__seta {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 248, 230, .12); color: var(--creme); font-size: 2.2rem; line-height: 1;
  transition: background .2s;
}
.lightbox__seta:hover { background: var(--vermelho); }
.lightbox__seta--ant { left: 16px; }
.lightbox__seta--prox { right: 16px; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 900px) {
  .hero__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 360px; margin: 0 auto; }
  .about__lema { justify-items: center; text-align: center; }
  .lema--familia { margin-left: 0; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .paineis { flex-direction: column; height: auto; }
  .painel { flex: none !important; padding: 1.3rem 1.4rem; }
  .painel__cab { flex-direction: row; align-items: center; gap: 1rem; width: 100%; }
  .painel__num { font-size: 2.4rem; }
  .painel__titulo { font-size: 1.25rem; }
  .painel__corpo { margin-top: 1.2rem; }
  .gallery__grid, .gallery__linha { gap: 10px; }
  .gallery__item { border-radius: 14px; }
  .lightbox__seta { top: auto; bottom: 18px; translate: none; }
}
@media (max-width: 760px) {
  .header__toggle { display: block; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 1.2rem; padding: 1.5rem 16px 2rem;
    background: var(--amarelo); box-shadow: 0 10px 20px rgba(74,38,21,.2);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
