/* =====================================================================================================
   EFEITOS DE MOVIMENTO (equivalentes aos do site antigo). Sem JavaScript, tudo aparece parado e visível.
   Quem pediu "reduzir movimento" no sistema operacional vê tudo parado (bloco no fim do arquivo).
   ===================================================================================================== */

/* ---------- aparecer ao rolar ---------- */
.js [data-anim] { opacity: 0; }
.js [data-anim].animou { opacity: 1; animation-duration: 1s; animation-fill-mode: both; animation-delay: var(--atraso, 0ms);
  animation-timing-function: cubic-bezier(.22, .61, .36, 1); }
.js [data-anim="fadeInUp"].animou { animation-name: fadeInUp; }
.js [data-anim="fadeInDown"].animou { animation-name: fadeInDown; }
.js [data-anim="fadeInLeft"].animou { animation-name: fadeInLeft; }
.js [data-anim="zoomIn"].animou { animation-name: zoomIn; }
.js [data-anim="zoomInUp"].animou { animation-name: zoomInUp; }
.js [data-anim="zoomInLeft"].animou { animation-name: zoomInLeft; }
.js [data-anim="bounceIn"].animou { animation-name: bounceIn; animation-duration: .75s; }
.js [data-anim="bounceInDown"].animou { animation-name: bounceInDown; }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 60px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -60px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-80px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes zoomInUp {
  from { opacity: 0; transform: scale3d(.1, .1, .1) translate3d(0, 600px, 0); animation-timing-function: cubic-bezier(.55, .055, .675, .19); }
  60% { opacity: 1; transform: scale3d(.475, .475, .475) translate3d(0, -40px, 0); animation-timing-function: cubic-bezier(.175, .885, .32, 1); }
  to { opacity: 1; transform: none; } }
@keyframes zoomInLeft {
  from { opacity: 0; transform: scale3d(.1, .1, .1) translate3d(-600px, 0, 0); animation-timing-function: cubic-bezier(.55, .055, .675, .19); }
  60% { opacity: 1; transform: scale3d(.475, .475, .475) translate3d(10px, 0, 0); animation-timing-function: cubic-bezier(.175, .885, .32, 1); }
  to { opacity: 1; transform: none; } }
@keyframes bounceIn {
  from, 20%, 40%, 60%, 80%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
  0% { opacity: 0; transform: scale3d(.3, .3, .3); } 20% { transform: scale3d(1.1, 1.1, 1.1); } 40% { transform: scale3d(.9, .9, .9); }
  60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); } 80% { transform: scale3d(.97, .97, .97); } to { opacity: 1; transform: none; } }
@keyframes bounceInDown {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
  0% { opacity: 0; transform: translate3d(0, -300px, 0); } 60% { opacity: 1; transform: translate3d(0, 25px, 0); }
  75% { transform: translate3d(0, -10px, 0); } 90% { transform: translate3d(0, 5px, 0); } to { transform: none; } }

/* ---------- flutuar ao passar o mouse (fotos de "Quem somos" e "Nosso compromisso") ---------- */
.flutua img { transition: transform .3s ease-out; }
.flutua:hover img { transform: translateY(-8px); }
.trio-fotos .flutua { display: block; }
.trio-fotos .flutua img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; box-shadow: var(--sombra); }
.trio-fotos .flutua:nth-child(1) img { height: auto; }
.trio-fotos .flutua:nth-child(2) { transform: translateY(-30px); }

/* ---------- cards: sombra e zoom da foto ao passar o mouse ---------- */
.card { transition: box-shadow .5s; isolation: isolate; }
.card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.card__foto { overflow: hidden; }
.card__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__foto img { transform: scale(1.06); }
.card__corpo h2, .card__corpo h3 { transition: color .3s; }
.card:hover .card__corpo h2, .card:hover .card__corpo h3 { color: var(--laranja-forte); }

/* ---------- menu: traço que cresce embaixo do item ---------- */
.menu a { position: relative; border-bottom: 0 !important; }
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--vinho);
  transform: scaleX(0); transition: transform .3s; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- topo da Home: fundo que troca sozinho, com zoom lento ---------- */
.topo-home__fundos { position: absolute; inset: 0; }
.topo-home__fundos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease-in-out; }
.topo-home__fundos img.ativa { opacity: .38; animation: kenburns 7.2s linear both; }
html:not(.js) .topo-home__fundos img:first-child { opacity: .38; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.topo-home__marca { border-left: 3px dashed var(--laranja); padding-left: 14px; margin-bottom: 1.4em; }
.topo-home__marca .topo-home__titulo { border-left: 0; padding-left: 0; margin-bottom: 0; }
.topo-home__marca .topo-home__pre { padding-left: 0; }
.secao--curta { padding: 48px 0 36px; }
.titulo-secao--sem-margem { margin-bottom: 0; }

/* ---------- carrossel de clientes ---------- */
.carrossel { --por-vez: 6; position: relative; padding: 0 44px; }
.carrossel__janela { overflow: hidden; }
.carrossel__trilho { display: flex; transition: transform .5s ease; }
.carrossel__trilho > li { flex: 0 0 calc(100% / var(--por-vez)); padding: 0 6px; }
.carrossel__trilho > li img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 4px solid var(--laranja); border-radius: 6px; background: var(--branco); }
.carrossel__ant, .carrossel__prox { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--vinho);
  cursor: pointer; padding: 4px; display: flex; }
.carrossel__ant { left: 0; }
.carrossel__prox { right: 0; }
.carrossel__ant .ico, .carrossel__prox .ico { width: 34px; height: 34px; }
@media (max-width: 900px) { .carrossel { --por-vez: 4; } }
@media (max-width: 600px) { .carrossel { --por-vez: 2; padding: 0 36px; } }

/* ---------- vitrine do portfólio (Home) ---------- */
.vitrine-full { position: relative; min-height: 100vh; overflow: hidden; color: var(--branco); background: var(--preto); display: flex; align-items: center; }
.vitrine__fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out; }
.vitrine__fundo img.ativa { opacity: 1; transform: scale(1); }
.vitrine-full::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(150deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .25)); }
.vitrine__in { position: relative; z-index: 2; width: 100%; max-width: 1500px; margin: 0 auto; padding: 60px 4% 110px;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.vitrine__bolinhas { display: flex; flex-direction: column; align-items: center; gap: 28px; position: relative; padding: 10px 0; }
.vitrine__bolinhas::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(176, 183, 208, .3); }
.vitrine__bolinha { position: relative; width: 23px; height: 23px; border-radius: 50%; border: 0; background: #b0b7d0; color: var(--preto);
  font: 700 12px var(--fonte); cursor: pointer; transform: scale(.3); transition: transform .3s, color .3s; padding: 0; }
.vitrine__bolinha.ativa { transform: scale(1); }
.vitrine__bolinha:not(.ativa) { color: transparent; }
.vitrine__bolinha:hover { transform: scale(.6); }
.vitrine__bolinha.ativa:hover { transform: scale(1); }
.vitrine__textos { position: relative; height: 240px; overflow: hidden; }
.vitrine__texto { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  transform: translateY(120%); opacity: 0; transition: transform .8s ease-in-out, opacity .8s; }
.vitrine__texto.ativo { transform: none; opacity: 1; }
.vitrine__texto.saiu { transform: translateY(-120%); opacity: 0; }
[data-sentido="tras"] .vitrine__texto:not(.ativo):not(.saiu) { transform: translateY(-120%); }
[data-sentido="tras"] .vitrine__texto.saiu { transform: translateY(120%); }
.vitrine__texto h3 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1.05; margin-bottom: .45em; }
.vitrine__cartoes { position: relative; height: 410px; }
.vitrine__cartao { position: absolute; top: 50%; left: calc(var(--rel) * 210px + 40px); width: 190px; height: 320px; transform: translateY(-50%);
  border-radius: 8px; overflow: hidden; color: var(--branco); text-decoration: none; box-shadow: 0 0 50px rgba(0, 0, 0, .15);
  transition: left .6s ease-in-out .1s, height .4s ease-in-out .2s, width .4s ease-in-out .2s; }
.vitrine__cartao.ativo { height: 410px; width: 230px; left: 0; }
.vitrine__cartao img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vitrine__cartao:hover img { transform: scale(1.06); }
.vitrine__cartao::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(20deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); }
.vitrine__cartao strong { position: absolute; left: 18px; right: 18px; bottom: 22px; z-index: 2; font-size: 1rem; line-height: 1.3; }
.vitrine__setas { position: absolute; z-index: 3; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; }
.vitrine__setas button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: var(--branco); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .3s; }
.vitrine__setas button:hover { background: rgba(255, 255, 255, .35); }
.vitrine__setas .ico { width: 26px; height: 26px; }
.js .vitrine__bolinhas, .js .vitrine__setas { opacity: 0; transition: opacity .8s ease-in-out; }
.js .vitrine__cartoes { opacity: 0; transform: translateX(100px); transition: opacity .8s ease-in-out, transform .8s ease-in-out; }
.pronta .vitrine__cartoes, .pronta .vitrine__bolinhas, .pronta .vitrine__setas { opacity: 1 !important; transform: none !important; }
.pronta .vitrine__setas { transform: translateX(-50%) !important; }
html:not(.js) .vitrine__texto:first-child { transform: none; opacity: 1; }
html:not(.js) .vitrine__fundo img:first-child { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .vitrine__in { grid-template-columns: 30px 1fr; }
  .vitrine__cartoes { grid-column: 1 / -1; height: 260px; }
  .vitrine__cartao { width: 140px; height: 190px; left: calc(var(--rel) * 155px + 30px); }
  .vitrine__cartao.ativo { width: 170px; height: 250px; left: 0; }
}
@media (max-width: 600px) {
  .vitrine-full { min-height: 0; }
  .vitrine__in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 100px; gap: 20px; }
  .vitrine__bolinhas { flex-direction: row; justify-content: center; order: 3; }
  .vitrine__bolinhas::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .vitrine__textos { height: 170px; }
  .vitrine__cartoes { height: 150px; }
  .vitrine__cartao { width: 82px; height: 110px; left: calc(var(--rel) * 90px + 22px); }
  .vitrine__cartao.ativo { width: 104px; height: 145px; left: 0; }
  .vitrine__cartao strong { font-size: .7rem; left: 8px; right: 8px; bottom: 8px; }
}

/* ---------- galerias: lupa ao passar o mouse, entrada das fotos ao filtrar, "carregar mais" ---------- */
.galeria a { position: relative; }
.galeria a::after { content: ""; position: absolute; inset: 0; background: rgba(149, 22, 29, .55) url(/img/lupa.svg) center / 38px no-repeat;
  opacity: 0; transition: opacity .35s; }
.galeria a:hover::after, .galeria a:focus-visible::after { opacity: 1; }
.galeria li.entrou { animation: entraFoto .5s ease both; }
@keyframes entraFoto { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.galeria__mais { display: flex; margin: 22px auto 0; }
.galeria__mais[hidden] { display: none; }
.btn--contorno { background: transparent; color: var(--vinho); border: 2px solid var(--vinho); }
.btn--contorno:hover { background: var(--vinho); color: var(--branco); }

/* ---------- visualizador: foto aparece suave ---------- */
.visor[open] { animation: visorEntra .3s ease; }
@keyframes visorEntra { from { opacity: 0; } to { opacity: 1; } }
.visor__img img { opacity: 0; transform: scale(.97); transition: opacity .3s, transform .3s; }
.visor__img img.carregou { opacity: 1; transform: none; }

/* ---------- botão do WhatsApp: entra depois de 3 s; dica "Abrir bate-papo" ---------- */
.js .whats-flutuante { opacity: 0; transform: scale(.3); pointer-events: none; transition: opacity .4s, transform .4s cubic-bezier(.18, 1.4, .4, 1); }
.js .whats-flutuante.visivel { opacity: 1; transform: none; pointer-events: auto; }
.whats-flutuante::after { content: "Abrir bate-papo"; position: absolute; right: 70px; white-space: nowrap; background: var(--branco); color: var(--texto);
  font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 6px; box-shadow: var(--sombra); opacity: 0; transform: translateX(10px);
  transition: opacity .3s, transform .3s; pointer-events: none; }
.whats-flutuante:hover::after { opacity: 1; transform: none; }
.js .whats-flutuante.visivel:hover { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .js [data-anim], .js [data-anim].animou { opacity: 1; animation: none; }
  .topo-home__fundos img.ativa { animation: none; }
  .vitrine__fundo img { transform: none; }
  .js .whats-flutuante { opacity: 1; transform: none; pointer-events: auto; }
  .flutua:hover img { transform: none; }
}
