/* ==========================================================
   Blue Island Rent – Pulsante WhatsApp fisso in basso a destra
   ========================================================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 9000;              /* sotto al banner cookie (10000), sopra a tutto il resto */
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45), 0 2px 8px rgba(0, 0, 0, .15);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waFloatIn .5s ease .6s both;
}

.wa-float::before {           /* alone che pulsa */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37, 211, 102, .6), 0 2px 8px rgba(0, 0, 0, .15);
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes waFloatIn {
  from { opacity: 0; transform: translateY(20px) scale(.8); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
  .wa-float svg { width: 28px; height: 28px; }
}

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