/* ---- Come lavoriamo: sfondo scuro sfumato ---- */
#come-lavoriamo {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
}

#come-lavoriamo h2,
#come-lavoriamo h3 {
    color: #fff;
}

#come-lavoriamo h3 {
    opacity: 0.92;
    letter-spacing: 0;
    font-size: 24px !important;
}

@media screen and (max-width: 768px) {
    #come-lavoriamo h3 {
        font-size: 20px !important;
    }
}

#come-lavoriamo .circles li {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* ---- Chi siamo: meno spazio in alto, niente linea superiore ---- */
#chisiamo {
    padding-top: 25px;
}

/* ---- Disattiva il vecchio fade a scatti legato allo scroll (classe .item,
   si attiva/disattiva ripetutamente vicino al bordo della sezione) sulle
   sezioni dove usiamo gia' il reveal granulare data-reveal/data-scramble,
   per evitare che le due animazioni entrino in conflitto e "tremino". ---- */
#top,
#chisiamo,
#competenze,
#come-lavoriamo,
#contatti {
    opacity: 1 !important;
}

/* ---- Header: niente ombra/bordino finche' non si scrolla ---- */
body:not(.scrolled) header {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* ---- Custom cursor ---- */
body.aw-has-cursor,
body.aw-has-cursor * {
    cursor: none !important;
}

.aw-cursor-dot,
.aw-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 100000;
    will-change: transform;
    mix-blend-mode: difference;
}

.aw-cursor-dot {
    width: 8px;
    height: 8px;
    background: #fff;
}

.aw-cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid #fff;
    transition: width .25s cubic-bezier(.2, .9, .3, 1), height .25s cubic-bezier(.2, .9, .3, 1), background-color .25s ease;
}

.aw-cursor-ring.is-active {
    width: 62px;
    height: 62px;
    background: #fff;
    border-color: #fff;
}

/* ---- Scroll reveal ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(46px) scale(.97);
    filter: blur(8px);
    transition: opacity .9s cubic-bezier(.16, .84, .44, 1),
                transform .9s cubic-bezier(.16, .84, .44, 1),
                filter .9s cubic-bezier(.16, .84, .44, 1);
    transition-delay: var(--aw-delay, 0s);
}

[data-reveal].aw-in {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* ---- Magnetic elements ---- */
.magnetic {
    display: inline-block;
    transition: transform .35s cubic-bezier(.2, .9, .3, 1);
    will-change: transform;
}

/* ---- Hero particle network ---- */
.aw-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#top .circles.aw-network-active {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    body.aw-has-cursor,
    body.aw-has-cursor * {
        cursor: auto !important;
    }
    .aw-cursor-dot, .aw-cursor-ring { display: none; }

    [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .magnetic { transition: none; }
}

@media (pointer: coarse) {
    .aw-cursor-dot, .aw-cursor-ring { display: none; }
    body.aw-has-cursor, body.aw-has-cursor * { cursor: auto !important; }
}
