/*
 * MFDragCursor (drag-cursor.js): il cursore "Drag" sopra le aree da trascinare.
 * Lo usano lo slider di Prototype Fitting e la pila di card di Card Stack.
 */

/* sopra l'area la bomboletta del sito (.custom-cursor) è spenta del tutto: lo script del
   tema le rimette opacity 1 nello style quando si esce da un link, qui serve !important */
html.mf-no-spray .custom-cursor {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* nella zona la bomboletta è spenta: dove non c'è la card "Drag" (frecce, pulsanti, testo)
   torna la freccia del sistema, che il tema nasconde in tutta la pagina (body { cursor: none }) */
.has-drag-zone {
  cursor: default;
}

/* col cursore "Drag" la freccia del sistema sparisce, anche sopra card e pulsanti */
.has-drag-cursor,
.has-drag-cursor * {
  cursor: none !important;
}

/*
 * Il cursore: una piccola card scura come le .custom-card-black del sito
 * (fondo #444242, bordo chiaro visibile solo agli angoli, alone), scritta di 12px tra due
 * frecce che respirano verso l'esterno. Sta nel body: lo posiziona gsap.
 */
.mf-drag-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid #b2b2ad;
  background: #444242;
  box-shadow: 0 0 3px 1.5px #7c7c77;
  color: #e9e8e4;
  font: 700 12px / 1 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.mf-drag-cursor::before,
.mf-drag-cursor::after {
  content: '';
  position: absolute;
  background: #444242;
}

.mf-drag-cursor::before {
  top: 8px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% - 16px);
}

.mf-drag-cursor::after {
  top: -3px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% + 6px);
}

.mf-drag-cursor > span {
  position: relative;
  z-index: 1;
}

.mf-drag-cursor__arrow svg,
.mf-drag-cursor__icon svg {
  display: block;
  width: 14px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

.mf-drag-cursor__arrow--left svg {
  transform: scaleX(-1);
}

/* icona piena (play, pausa): solo il colore, niente contorno */
.mf-drag-cursor__icon svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  stroke: none;
}

.mf-drag-cursor__arrow--left {
  animation: mf-drag-nudge-left 0.9s ease-in-out infinite alternate;
}

.mf-drag-cursor__arrow--right {
  animation: mf-drag-nudge-right 0.9s ease-in-out infinite alternate;
}

@keyframes mf-drag-nudge-left {
  to { transform: translateX(-3px); }
}

@keyframes mf-drag-nudge-right {
  to { transform: translateX(3px); }
}
