/**
 * Apri/chiudi dei pulsanti social (better_social_sharing_buttons),
 * sul modello di Share Everywhere (allineamento a destra): icona "share"
 * a destra, icone che scorrono verso sinistra all'apertura.
 */
.social-share-toggle {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  margin: 1em 0;
}

.social-share-toggle__trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: gray;
  border: 0;
  background: none;
}

.social-share-toggle__trigger:hover,
.social-share-toggle__trigger:focus-visible,
.social-share-toggle__trigger[aria-expanded="true"] {
  color: #333;
}

.social-share-toggle__panel {
  overflow: hidden;
  margin-right: 12px;
}

.social-share-toggle .social-sharing-buttons {
  justify-content: flex-end;
  margin: 0;
  transition: transform 0.4s ease, opacity 0.3s ease, visibility 0s linear 0.4s;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
}

.social-share-toggle.is-open .social-sharing-buttons {
  transition: transform 0.4s ease, opacity 0.3s ease 0.1s, visibility 0s;
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.social-share-toggle .social-sharing-buttons > :last-child {
  margin-right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .social-share-toggle .social-sharing-buttons,
  .social-share-toggle.is-open .social-sharing-buttons {
    transition: none;
  }
}
