* { cursor: none !important; }

.ip-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999999;
    transform: translate(-50%, -50%);
    will-change: transform;
    mix-blend-mode: difference;
}

.ip-cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    will-change: transform;
    mix-blend-mode: difference;
}

.ip-cursor-dot.is-hovering {
    width: 0;
    height: 0;
    opacity: 0;
}

.ip-cursor-circle.is-hovering {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
}

.ip-cursor-dot.is-clicking {
    width: 12px;
    height: 12px;
}

@media (hover: none) {
    .ip-cursor-dot,
    .ip-cursor-circle { display: none; }
    * { cursor: auto !important; }
}
/* ── Go Top custom ── */
.ip-totop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.ip-totop.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    box-shadow: none;
}
.ip-totop:hover { transform: translateY(-3px); border-radius: 50% !important; }

/* SVG — colore di default: nero (sfondo chiaro) */
.ip-totop__icon {
    width: 100%;
    height: 100%;
    display: block;
}
.ip-totop__circle {
    fill: rgba(0,0,0,0.06);
    stroke: rgba(0,0,0,0.25);
    transition: fill 0.3s, stroke 0.3s;
}
.ip-totop__icon polyline,
.ip-totop__icon line {
    stroke: #111;
    transition: stroke 0.3s;
}

/* Versione chiara (su sfondo scuro) */
.ip-totop.is-light .ip-totop__circle {
    fill: rgba(255,255,255,0.08);
    stroke: rgba(255,255,255,0.35);
}
.ip-totop.is-light .ip-totop__icon polyline,
.ip-totop.is-light .ip-totop__icon line {
    stroke: #fff;
}

/* Hover adattivo */
.ip-totop:hover .ip-totop__circle {
    fill: rgba(0,0,0,0.12);
    stroke: rgba(0,0,0,0.5);
}
.ip-totop.is-light:hover .ip-totop__circle {
    fill: rgba(255,255,255,0.15);
    stroke: rgba(255,255,255,0.7);
}
