/*
 * Estilos próprios do clone (arquivo fora do espelho): a bolha de WhatsApp de todas as páginas e
 * a seção do Instagram da página inicial. Só px, porque o tema mexe no font-size da raiz.
 * Marcação gerada por site/lib/whatsapp.mjs e site/lib/instagram.mjs.
 */

/* ------------------------------------------------------------------------------------------ */
/* Bolha de WhatsApp                                                                          */
/* ------------------------------------------------------------------------------------------ */

.dz-whatsapp {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  /* Abaixo do menu do celular do Bricks (overlay 998, menu 999) e do lightbox. */
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.18);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.dz-whatsapp svg {
  display: block;
  width: 30px;
  height: 30px;
  pointer-events: none;
}

.dz-whatsapp:hover {
  color: #fff;
  transform: scale(1.06);
}

.dz-whatsapp:focus {
  outline: none;
}

.dz-whatsapp:focus-visible {
  outline: 3px solid #b96124;
  outline-offset: 3px;
}

/* Recolhida enquanto o botão de enviar do formulário de /contato/ passa por baixo dela (whatsapp.js). */
.dz-whatsapp.dz-whatsapp--recolhida {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Some enquanto o menu do celular do Bricks está aberto. */
body:has(.show-mobile-menu) .dz-whatsapp {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .dz-whatsapp {
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: 60px;
    height: 60px;
  }

  .dz-whatsapp svg {
    width: 32px;
    height: 32px;
  }
}

/* ------------------------------------------------------------------------------------------ */
/* Instagram (página inicial)                                                                 */
/* ------------------------------------------------------------------------------------------ */

.dz-instagram[hidden],
.dz-instagram [hidden] {
  display: none !important;
}

.dz-instagram {
  display: block;
  padding: 72px 20px 88px;
}

.dz-instagram__conteudo {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.dz-instagram__titulo {
  margin: 0 0 32px;
  font-family: "EB Corp", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  color: #b96124;
  text-align: center;
  text-wrap: balance;
}

.dz-instagram__perfil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}

.dz-instagram__conta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.dz-instagram__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f2f2f2;
}

.dz-instagram__usuario {
  font-family: "EB Corp", serif;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dz-instagram__conta:hover .dz-instagram__usuario {
  color: #b96124;
}

.dz-instagram__seguir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #b96124;
  border-radius: 0;
  background-color: #b96124;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dz-instagram__seguir:hover {
  background-color: #9c5120;
  border-color: #9c5120;
  color: #fff;
}

.dz-instagram__grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dz-instagram__grade > li {
  margin: 0;
  padding: 0;
}

.dz-instagram__grade a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: #f2f2f2;
}

.dz-instagram__grade img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dz-instagram__grade a:hover img {
  transform: scale(1.03);
}

/* Ícone discreto do tipo (álbum, vídeo, reel) no canto do post, por máscara SVG. */
.dz-instagram__tipo {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background-color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}

.dz-instagram__tipo--album {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h11a3 3 0 0 1 3 3v11a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H7a1 1 0 0 1 0-2zm-2 4h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h11a3 3 0 0 1 3 3v11a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H7a1 1 0 0 1 0-2zm-2 4h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

.dz-instagram__tipo--video,
.dz-instagram__tipo--reel {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.14v13.72a1 1 0 0 0 1.52.85l10.29-6.86a1 1 0 0 0 0-1.7L9.52 4.29A1 1 0 0 0 8 5.14z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.14v13.72a1 1 0 0 0 1.52.85l10.29-6.86a1 1 0 0 0 0-1.7L9.52 4.29A1 1 0 0 0 8 5.14z'/%3E%3C/svg%3E");
}

.dz-instagram__mais {
  display: block;
  min-height: 44px;
  margin: 32px auto 0;
  padding: 10px 28px;
  border: 1px solid #b96124;
  border-radius: 0;
  background-color: transparent;
  color: #b96124;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dz-instagram__mais:hover {
  background-color: #b96124;
  color: #fff;
}

.dz-instagram a:focus-visible,
.dz-instagram__mais:focus-visible {
  outline: 3px solid #b96124;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .dz-instagram {
    padding: 96px 32px 112px;
  }

  .dz-instagram__titulo {
    margin-bottom: 40px;
    font-size: 36px;
  }

  .dz-instagram__grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .dz-instagram__titulo {
    font-size: 42px;
  }
}

/* ------------------------------------------------------------------------------------------ */
/* Movimento reduzido e impressão                                                             */
/* ------------------------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .dz-whatsapp,
  .dz-instagram__grade img,
  .dz-instagram__seguir,
  .dz-instagram__mais {
    transition: none;
  }

  .dz-whatsapp:hover,
  .dz-instagram__grade a:hover img {
    transform: none;
  }
}

@media print {
  .dz-whatsapp,
  .dz-instagram {
    display: none !important;
  }
}
