/* ---------- 10. Pulsanti flottanti: WhatsApp, telefono, torna su ---------- */
.quick-whatsapp,
.quick-call,
.back-to-top {
  position: fixed;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 10px 25px -8px rgba(44, 36, 22, 0.4);
  z-index: 1100;
  transition:
    transform 0.3s var(--ease-out),
    background 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.35s ease;
}
.quick-whatsapp {
  bottom: 142px;
  background: #25d366; /* colore ufficiale del brand WhatsApp */
}
.quick-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}
.quick-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  background: #1ebe5b;
}
.quick-whatsapp::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
  animation: callPulse 3s ease-out infinite;
  pointer-events: none;
}
.quick-call {
  bottom: 82px;
  background: var(--accent-rust);
}
.quick-call .material-icons {
  font-size: 22px;
}
.quick-call:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--ash-darkest);
}
@keyframes callPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  60% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.back-to-top {
  bottom: 22px;
  background: var(--ash-darkest);
  font-size: 20px;
  line-height: 1;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent-rust);
}
.quick-whatsapp:focus-visible,
.quick-call:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid var(--accent-warm);
  outline-offset: 3px;
}
