/* =========================================================
   G22 - Pulsante WhatsApp (usato in index.html e contatti.html)
   ========================================================= */

.g22-wa-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 1000000;
  width: 60px; height: 60px; border: none; border-radius: 50%;
  background: #25D366; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.g22-wa-btn:hover { transform: scale(1.08); }
.g22-wa-btn svg { width: 32px; height: 32px; fill: #fff; }
.g22-wa-box {
  position: fixed; right: 22px; bottom: 96px; z-index: 1000000;
  width: 300px; max-width: calc(100vw - 44px);
  background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  overflow: hidden; font-family: Arial, Helvetica, sans-serif; text-align: left;
  opacity: 0; transform: translateY(12px) scale(.97); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.g22-wa-box.open { opacity: 1; transform: none; pointer-events: auto; }
.g22-wa-head {
  background: #075E54; color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: bold;
}
.g22-wa-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.g22-wa-body { background: #ECE5DD; padding: 18px 16px; }
.g22-wa-msg {
  background: #fff; border-radius: 0 10px 10px 10px; padding: 10px 12px;
  font-size: 14px; color: #222; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.g22-wa-cta {
  display: block; margin: 14px 16px 16px; padding: 11px 14px;
  background: #25D366; color: #fff !important; text-align: center; text-decoration: none !important;
  border-radius: 24px; font-size: 14px; font-weight: bold;
}
.g22-wa-cta:hover { background: #1ebe5a; }

/* cellulare (verticale): pulsante e finestra piu grandi */
@media only screen and (orientation: portrait) {
  .g22-wa-btn {
    right: 40px;
    bottom: 40px;
    width: 110px;
    height: 110px;
  }

  .g22-wa-btn svg {
    width: 60px;
    height: 60px;
  }

  .g22-wa-box {
    right: 40px;
    bottom: 180px;
    width: 640px;
    max-width: calc(100vw - 80px);
    border-radius: 28px;
  }

  .g22-wa-head {
    padding: 28px 32px;
    font-size: 34px;
  }

  .g22-wa-close {
    font-size: 56px;
  }

  .g22-wa-body {
    padding: 36px 32px;
  }

  .g22-wa-msg {
    padding: 22px 26px;
    font-size: 30px;
    border-radius: 0 20px 20px 20px;
  }

  .g22-wa-cta {
    margin: 28px 32px 32px;
    padding: 24px 28px;
    font-size: 32px;
    border-radius: 50px;
  }
}
