/* ===================================================================
   SCROLL CURSOR - Custom circular progress cursor for Territorio section
   =================================================================== */

.scroll-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.scroll-cursor__circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start from top */
}

.scroll-cursor__bg {
    fill: none;
    stroke: rgba(16, 30, 25, 0.3); /* Verde scuro ROVI semi-trasparente */
    stroke-width: 3;
}

.scroll-cursor__progress {
    fill: none;
    stroke: #EA5F47; /* Default: Arancione Corallo ROVI */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 251.2; /* 2 * PI * radius (40) = 251.2 */
    stroke-dashoffset: 251.2; /* Start with no progress */
    transition: stroke-dashoffset 0.1s linear;
}

/* White text variant (keeps orange progress bar) - for Territorio */
.scroll-cursor--white-text .scroll-cursor__bg {
    stroke: rgba(255, 255, 255, 0.3);
}

.scroll-cursor--white-text .scroll-cursor__text {
    color: #FFFFFF;
}

/* Full white variant (white progress bar) - for Coworking */
.scroll-cursor--white .scroll-cursor__progress {
    stroke: #FFFFFF;
}

.scroll-cursor--white .scroll-cursor__bg {
    stroke: rgba(255, 255, 255, 0.3);
}

.scroll-cursor--white .scroll-cursor__text {
    color: #FFFFFF;
}

/* Fixed position variant - top left */
.scroll-cursor--fixed-left {
    position: fixed;
    top: 120px;
    left: calc(50% - 580px); /* Allineato al margine sinistro del contenuto */
    transform: none;
}

/* Fixed position variant - top right */
.scroll-cursor--fixed-right {
    position: fixed;
    top: 120px;
    right: calc(50% - 580px); /* Allineato al margine destro del contenuto */
    left: auto;
    transform: none;
}

.scroll-cursor__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #101e19; /* Verde scuro ROVI */
    font-family: var(--font-heading, 'Comfortaa', sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    pointer-events: none;
}

/* Mobile - hide custom cursor */
@media (max-width: 768px) {
    .scroll-cursor {
        display: none !important;
    }
}

/* Tablet - reduce size and adjust fixed positions */
@media (min-width: 769px) and (max-width: 1024px) {
    .scroll-cursor {
        width: 80px;
        height: 80px;
    }

    .scroll-cursor__text {
        font-size: 10px;
    }

    .scroll-cursor__bg,
    .scroll-cursor__progress {
        stroke-width: 2.5;
    }

    /* Fixed positions for tablet - use percentage based */
    .scroll-cursor--fixed-left {
        left: var(--space-lg, 24px);
    }

    .scroll-cursor--fixed-right {
        right: var(--space-lg, 24px);
    }
}
