/* Barra contatti mobile (functions/mobile-dock.php): pillola fluttuante come la barra delle schede trattamento. */
.ac-dock { display:none; }
@media (max-width:760px) {
 .ac-dock {
  --dock-ease:cubic-bezier(.22,1,.36,1);
  position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom, 0px)); z-index:100000;
  display:flex; align-items:stretch; gap:4px; max-width:440px; margin:0 auto; padding:6px;
  border-radius:999px; background:rgb(52 46 41 / 95%); color:#fbf8f3;
  box-shadow:0 18px 40px rgb(52 46 41 / 30%), inset 0 0 0 1px rgb(255 255 255 / 8%);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  font-family:'Open Sans',Arial,sans-serif;
  transition:transform .5s var(--dock-ease), opacity .3s ease;
 }
 /* Con JavaScript compare dopo un breve scorrimento; senza resta sempre visibile. */
 html.ac-dock-js .ac-dock:not(.is-visible) { opacity:0; transform:translateY(calc(100% + 24px)); pointer-events:none; }
 .ac-dock__item {
  display:flex; flex:1 1 auto; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:48px; padding:0 10px;
  border-radius:999px; color:#fbf8f3!important; font-size:13px; font-weight:600; line-height:1; letter-spacing:.01em; text-decoration:none!important; white-space:nowrap;
  transition:background-color .2s ease, transform .2s var(--dock-ease);
 }
 /* WhatsApp in evidenza, avorio come "Prenota" nella barra dei trattamenti. */
 .ac-dock__item--whatsapp { padding:0 16px; background:#fbf8f3; color:#342e29!important; }
 .ac-dock__icon { flex:none; width:19px; height:19px; }
 .ac-dock__label { overflow:hidden; text-overflow:ellipsis; }
 .ac-dock__item:active { transform:scale(.95); }
 .ac-dock__item:focus-visible { outline:2px solid #fbf8f3; outline-offset:2px; }
 .ac-dock__item--whatsapp:focus-visible { outline-offset:3px; }
 .ac-dock.is-visible .ac-dock__icon { animation:ac-dock-in .6s var(--dock-ease) both; }
 .ac-dock.is-visible .ac-dock__item:nth-child(2) .ac-dock__icon { animation-delay:.06s; }
 .ac-dock.is-visible .ac-dock__item:nth-child(3) .ac-dock__icon { animation-delay:.12s; }
 @keyframes ac-dock-in { from { opacity:0; transform:translateY(6px) scale(.8); } }

 /* reCAPTCHA, preferenze cookie e "torna su" salgono sopra la barra. */
 body.ac-has-dock :is(.grecaptcha-badge,#CookiebotWidget,#back_to_top) { transition:bottom .4s cubic-bezier(.22,1,.36,1)!important; }
 body.ac-dock-on :is(.grecaptcha-badge,#CookiebotWidget,#back_to_top) { bottom:calc(84px + env(safe-area-inset-bottom, 0px))!important; }
 html:has(#Top_bar .ac-header-mobile[open]) .ac-dock { visibility:hidden; }
}
@media (max-width:374px) {
 .ac-dock__item { gap:5px; padding:0 7px; font-size:12.5px; }
 .ac-dock__item--whatsapp { padding:0 12px; }
 .ac-dock__icon { width:17px; height:17px; }
}
@media (max-width:339px) {
 .ac-dock__item:not(.ac-dock__item--whatsapp) .ac-dock__icon { display:none; }
}
@media (prefers-reduced-motion:reduce) {
 .ac-dock, .ac-dock__item { transition:opacity .2s ease!important; }
 html.ac-dock-js .ac-dock:not(.is-visible) { transform:none; }
 .ac-dock.is-visible .ac-dock__icon { animation:none; }
}
