.whatsapp-float-global {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #20c765;
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 104, 51, 0.35);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

/* Mantem a mesma navbar em formato de capsula em todas as paginas. */
body > .page > header.nav,
.site-header > .container.nav,
.site-header > .container > .navbar {
  border: 1px solid rgba(249, 123, 8, 0.5) !important;
  border-radius: 9999px !important;
  background: rgba(23, 4, 34, 0.96) !important;
  background-clip: padding-box !important;
  box-shadow:
    0 18px 50px rgba(8, 1, 15, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

@media (max-width: 720px) {
  body > .page > header.nav,
  .site-header > .container.nav,
  .site-header > .container > .navbar {
    width: calc(100% - 28px) !important;
    margin-inline: auto !important;
    border-radius: 9999px !important;
  }
}

.whatsapp-float-global::before {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(32, 199, 101, 0.32);
  border-radius: inherit;
  content: "";
  animation: whatsapp-ring 2.4s ease-out infinite;
  pointer-events: none;
}

.whatsapp-float-global:hover {
  background: #16ad54;
  box-shadow: 0 16px 36px rgba(10, 104, 51, 0.46);
  transform: translateY(-4px) scale(1.04);
}

.whatsapp-float-global:focus-visible {
  outline: 3px solid #ff7a00;
  outline-offset: 4px;
}

.whatsapp-float-global svg,
.whatsapp-float-global img {
  width: 33px;
  height: 33px;
  display: block;
}

@keyframes whatsapp-ring {
  0% { opacity: 0.7; transform: scale(0.92); }
  70%, 100% { opacity: 0; transform: scale(1.22); }
}

@media (max-width: 640px) {
  .whatsapp-float-global {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .whatsapp-float-global svg,
  .whatsapp-float-global img {
    width: 29px;
    height: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-global,
  .whatsapp-float-global::before {
    animation: none;
    transition: none;
  }
}

@supports (content-visibility: auto) {
  .page > section:not(#hero),
  main > section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 820px;
  }
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.footer-social-link {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 10px 26px rgba(5, 0, 10, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.footer-social-link:hover {
  border-color: rgba(249, 123, 8, 0.68);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.footer-social-link:focus-visible {
  outline: 3px solid #f97b08;
  outline-offset: 3px;
}

.footer-social-link img {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-row > .footer-socials {
  flex: 0 0 auto;
  margin-top: 0;
}

footer a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
}

footer a[href^="mailto:"]:hover {
  color: #ff9a3d;
}

@media (max-width: 760px) {
  .footer-row > .footer-socials {
    margin-top: 4px;
  }
}
