/* Commerciale Immobiliare Group - pulsanti flottanti v3, 22/11/2026.
 * Scopo strettamente limitato a tre launcher; NON utilizzare selettori globali
 * .wa-toggle, .wa, svg, button, div o pseudo-elementi sui contenitori.
 * Caricare per ultimo, dopo controlli-puliti.css e preferiti.css.
 */
:root { --ci-float-side:20px; --ci-float-bottom:22px; --ci-float-size:60px; --ci-float-gap:12px; }
@media(max-width:700px) {
  :root { --ci-float-side:12px; --ci-float-bottom:16px; --ci-float-size:54px; --ci-float-gap:12px; }
}
/* Bottone Preferiti (non i cuori delle foto). */
html body #ci-fav-top.ci-fav-top {
  position:fixed!important;
  top:auto!important;right:auto!important;
  bottom:calc(var(--ci-float-bottom) + env(safe-area-inset-bottom, 0px))!important;
  left:var(--ci-float-side)!important;
  width:var(--ci-float-size)!important;height:var(--ci-float-size)!important;
  min-width:var(--ci-float-size)!important;min-height:var(--ci-float-size)!important;
  max-width:var(--ci-float-size)!important;max-height:var(--ci-float-size)!important;
  padding:0!important;margin:0!important;box-sizing:border-box!important;
  transform:none!important;border-radius:50%!important;z-index:990!important;
}
/* Bottone AI (non il pannello di chat). */
html body #ci-assist-launch {
  position:fixed!important;top:auto!important;left:auto!important;
  right:calc(var(--ci-float-side) + var(--ci-float-size) + var(--ci-float-gap))!important;
  bottom:calc(var(--ci-float-bottom) + env(safe-area-inset-bottom, 0px))!important;
  width:var(--ci-float-size)!important;height:var(--ci-float-size)!important;
  min-width:var(--ci-float-size)!important;min-height:var(--ci-float-size)!important;
  max-width:var(--ci-float-size)!important;max-height:var(--ci-float-size)!important;
  padding:0!important;margin:0!important;box-sizing:border-box!important;
  transform:none!important;border-radius:50%!important;z-index:989!important;
}
/* Contenitori WhatsApp REALI delle sole pagine considerate. */
html body > div.wa-float,
html body > div.whatsapp {
  position:fixed!important;
  top:auto!important;left:auto!important;
  right:var(--ci-float-side)!important;
  bottom:calc(var(--ci-float-bottom) + env(safe-area-inset-bottom, 0px))!important;
  width:var(--ci-float-size)!important;height:var(--ci-float-size)!important;
  min-width:var(--ci-float-size)!important;min-height:var(--ci-float-size)!important;
  max-width:var(--ci-float-size)!important;max-height:var(--ci-float-size)!important;
  display:block!important;padding:0!important;margin:0!important;
  box-sizing:border-box!important;transform:none!important;
  background:transparent!important;border:0!important;
  box-shadow:none!important;border-radius:50%!important;
  overflow:visible!important;z-index:990!important;
}
/* Esattamente tre possibili strutture del vero pulsante WhatsApp. */
html body > a.wa-float,
html body > div.wa-float > button#waToggle.wa-toggle,
html body > div.whatsapp > button#waToggle.wa-toggle {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:none!important;
  width:var(--ci-float-size)!important;height:var(--ci-float-size)!important;
  min-width:var(--ci-float-size)!important;min-height:var(--ci-float-size)!important;
  max-width:var(--ci-float-size)!important;max-height:var(--ci-float-size)!important;
  box-sizing:border-box!important;padding:0!important;margin:0!important;
  background:#19c766!important;color:#fff!important;
  border:0!important;outline:0!important;border-radius:50%!important;
  box-shadow:0 6px 19px rgba(0,0,0,.22)!important;
  font-size:0!important;line-height:0!important;gap:0!important;
  transform:none!important;overflow:hidden!important;
  white-space:nowrap!important;
}
/* Il link è esso stesso fixed; i due button devono restare relativi al contenitore. */
html body > a.wa-float {
  position:fixed!important;top:auto!important;left:auto!important;
  right:var(--ci-float-side)!important;
  bottom:calc(var(--ci-float-bottom) + env(safe-area-inset-bottom, 0px))!important;
  z-index:990!important;
}
html body > div.wa-float > button#waToggle.wa-toggle,
html body > div.whatsapp > button#waToggle.wa-toggle {
  position:static!important;inset:auto!important;z-index:auto!important;
}
/* Elimina vecchie icone interne solo in questi tre pulsanti. */
html body > a.wa-float > svg,
html body > a.wa-float > span,
html body > div.wa-float > button#waToggle.wa-toggle > svg,
html body > div.wa-float > button#waToggle.wa-toggle > span,
html body > div.whatsapp > button#waToggle.wa-toggle > svg,
html body > div.whatsapp > button#waToggle.wa-toggle > span { display:none!important; }
/* Stessa icona in tutti i bottoni: mai sul DIV esterno. */
html body > a.wa-float::before,
html body > div.wa-float > button#waToggle.wa-toggle::before,
html body > div.whatsapp > button#waToggle.wa-toggle::before {
  content:""!important;position:static!important;
  display:block!important;flex:0 0 28px!important;
  width:28px!important;height:28px!important;
  min-width:28px!important;min-height:28px!important;
  max-width:28px!important;max-height:28px!important;
  margin:0!important;padding:0!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
  background-color:transparent!important;
  background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12.04 2A9.95 9.95 0 0 0 3.4 16.94L2 22l5.2-1.36A9.99 9.99 0 1 0 12.04 2Zm0 18.2a8.2 8.2 0 0 1-4.18-1.14l-.3-.18-3.08.8.82-3-.2-.32a8.2 8.2 0 1 1 6.94 3.84Zm4.5-6.13c-.25-.13-1.48-.73-1.71-.81-.23-.08-.4-.13-.57.12-.17.25-.65.81-.8.97-.15.17-.3.19-.55.06-.25-.12-1.05-.39-2-1.23-.74-.66-1.24-1.48-1.39-1.73-.15-.25-.02-.39.11-.52.11-.11.25-.29.37-.43.12-.15.17-.25.25-.42.08-.17.04-.32-.02-.44-.06-.12-.57-1.37-.78-1.88-.21-.49-.42-.42-.57-.43h-.49c-.17 0-.44.06-.67.32-.23.25-.88.86-.88 2.1s.9 2.43 1.03 2.6c.12.17 1.77 2.7 4.28 3.79.6.26 1.07.42 1.44.53.6.19 1.14.16 1.57.1.48-.07 1.48-.61 1.69-1.2.21-.59.21-1.1.15-1.2-.06-.11-.23-.17-.48-.3Z'/%3E%3C/svg%3E")!important;
}
/* Pannelli reali: non modificarne le dimensioni quando sono aperti. */
html body > div.wa-float > .wa-panel,
html body > div.whatsapp > .wa-panel {
  position:absolute!important;
  left:auto!important;right:0!important;top:auto!important;
  bottom:calc(var(--ci-float-size) + 12px)!important;
  width:min(285px,calc(100vw - 32px))!important;
  max-width:calc(100vw - 32px)!important;
  height:auto!important;max-height:70dvh!important;
  overflow:auto!important;
  box-sizing:border-box!important;
}
