/* Bottone di contatto AFSD (WhatsApp / Instagram). Generato da tools/contact_css.py dagli stili del sito. */
.fab { position: fixed; z-index: 90; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.fab--right { right: 20px; align-items: flex-end; }
.fab--left { left: 20px; align-items: flex-start; }
.fab--right .fab__tip { right: calc(100% + 10px); }
.fab--left .fab__tip { left: calc(100% + 10px); }
html.gate-open .fab { display: none; }
body:has(main[data-page="checkout"], main[data-page="partner"]) .fab--hide-checkout { display: none; }
body:has(.site-toast.is-on) .fab { transform: translateY(-64px); }
.fab { transition: transform .4s var(--ease, cubic-bezier(.22, 1, .36, 1)); }
@media (max-width: 640px) {
  .fab--right { right: 14px; }
  .fab--left { left: 14px; }
}
@media print {
  .fab { display: none; }
}
.fab { bottom: calc(max(20px, env(safe-area-inset-bottom)) + var(--fab-lift, 0px)); transition: bottom .35s var(--ease, cubic-bezier(.22, 1, .36, 1)), transform .4s var(--ease, cubic-bezier(.22, 1, .36, 1)); }
.wachat { position: relative; display: flex; flex-direction: column; align-items: inherit; }
.wachat.is-open .wachat__launcher { background: #2a2622; }
@keyframes wachat-pulse { 0% { transform: scale(.6); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.fab--right .wachat__panel { right: 0; }
.fab--left .wachat__panel { left: 0; transform-origin: bottom left; }
@keyframes wachat-in { from { transform: translateY(10px) scale(.97); } }
.fab--right .fab__btn--ig { margin-right: 5px; }
.fab--left .fab__btn--ig { margin-left: 5px; }
.cdock { position: relative; display: flex; flex-direction: column; align-items: inherit; }
.cdock:not(.is-closed) .cdock__launcher { background: var(--ink, #1a1815); }
.cdock:not(.is-closed) .cdock__face { opacity: 0; transform: scale(.6); }
.cdock:not(.is-closed) .cdock__x { opacity: 1; transform: none; }
.cdock:not(.is-closed) .cdock__online { display: none; }
.fab--right .cdock__hello { right: 4px; border-bottom-right-radius: 4px; }
.fab--left .cdock__hello { left: 4px; border-bottom-left-radius: 4px; }
.fab--right .cdock__menu { right: 0; justify-items: end; }
.fab--left .cdock__menu { left: 0; justify-items: start; }
.fab--left .cdock__opt:hover, .fab--left .cdock__opt:focus-visible { transform: translateX(3px); }
.cdock .wachat__panel { position: absolute; bottom: calc(100% + 14px); }
.fab--right .cdock .wachat__panel { right: 0; }
.fab--left .cdock .wachat__panel { left: 0; }
.fab--right { right: 16px; }
.fab--left { left: 16px; }
@media (max-width: 640px) {
  .fab--right { right: 12px; }
  .fab--left { left: 12px; }
}
.fab { transition: opacity .3s ease, visibility 0s linear 0s; }
body.menu-open .fab { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
#afsd-contact [hidden] { display: none !important; }
/* telefono: mentre si scorre in giù il bottone esce a destra (contact.js aggiunge .fab--tucked), poi rientra */
#afsd-contact { transition: bottom .35s var(--ease, cubic-bezier(.22, 1, .36, 1)), transform .4s var(--ease, cubic-bezier(.22, 1, .36, 1)), translate .35s var(--ease, cubic-bezier(.22, 1, .36, 1)), opacity .3s; }
.fab--tucked { translate: calc(100% + 24px) 0; opacity: 0; pointer-events: none; }
.fab--left.fab--tucked { translate: calc(-100% - 24px) 0; }
/* "fab" è anche la classe delle icone di marca di Font Awesome: se un altro plugin la carica, impone il suo
   carattere (i testi senza carattere proprio diventano con le grazie), display inline-block e line-height 1.
   L'id e la classe doppia vincono sempre su .fab di Font Awesome. */
#afsd-contact { font: 400 16px/1.65 var(--sans, 'Hanken Grotesk', system-ui, sans-serif); font-style: normal; -webkit-font-smoothing: antialiased; }
#afsd-contact button { font-family: inherit; }
.fab.fab { display: flex; }
