/* ==========================================================
   SIS HERO
   Versione definitiva
   Desktop completo + Tablet/Mobile separati
   Texture ceramica / metallo satinato con venature
   ========================================================== */

/* ==========================================================
   1. RESET E VARIABILI
   ========================================================== */

.sis-hero,
.sis-hero * {
    box-sizing: border-box;
}

.sis-hero {
    --sis-blue: #0057b8;
    --sis-blue-dark: #004b9f;
    --sis-text: #111827;
    --sis-muted: #4b5563;

    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    overflow-x: clip;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* ==========================================================
   2. HERO DESKTOP COMPLETA
   ========================================================== */

.sis-desktop-hero .sis-hero__inner {
    width: 100%;
    max-width: 1600px;
    min-height: 650px;
    margin: 0 auto;
    padding: 32px 20px 20px;

    display: grid;
    grid-template-columns: minmax(390px, 40%) minmax(0, 60%);
    align-items: stretch;
    gap: 0;
}

/* ==========================================================
   3. FRAME TESTO
   ========================================================== */

.sis-hero .sis-hero__text-frame {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
}

.sis-desktop-hero .sis-hero__text-frame {
    justify-content: flex-end;
    padding: 20px 20px 20px 40px;
}

/* ==========================================================
   4. CONTENUTO TESTUALE
   ========================================================== */

.sis-hero .sis-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 540px;
}

.sis-hero .sis-hero__eyebrow {
    margin: 0 0 20px 0;
    color: var(--sis-blue);
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
    letter-spacing: 1.6px !important;
    text-transform: uppercase !important;
}

.sis-hero .sis-hero__title {
    width: 100%;
    max-width: 540px;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--sis-text) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 48px !important;
    line-height: 1.04 !important;
    font-weight: 650 !important;
    letter-spacing: -1.45px !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.sis-hero .sis-hero__subtitle {
    width: 100%;
    max-width: 500px;
    margin: 24px 0 0 0 !important;
    padding: 0 !important;
    color: var(--sis-muted) !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

/* ==========================================================
   5. PULSANTI
   ========================================================== */

.sis-hero .sis-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.sis-hero .sis-btn {
    min-height: 46px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 650 !important;
    text-transform: none !important;
    text-decoration: none !important;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.sis-hero .sis-btn:hover {
    transform: translateY(-1px);
}

.sis-hero .sis-btn--primary {
    color: #ffffff !important;
    background: var(--sis-blue);
    border: 1px solid var(--sis-blue);
    box-shadow: 0 8px 22px rgba(0, 87, 184, 0.18);
}

.sis-hero .sis-btn--primary:hover {
    color: #ffffff !important;
    background: var(--sis-blue-dark);
    border-color: var(--sis-blue-dark);
    box-shadow: 0 10px 26px rgba(0, 87, 184, 0.24);
}

.sis-hero .sis-btn--secondary {
    color: var(--sis-blue) !important;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 87, 184, 0.28);
}

.sis-hero .sis-btn--secondary:hover {
    color: var(--sis-blue) !important;
    background: #f7fbff;
}

/* ==========================================================
   6. FRAME ORBITE DESKTOP
   ========================================================== */

.sis-desktop-hero .sis-hero__orbit-frame {
    position: relative;
    min-width: 0;
    min-height: 600px;
    overflow: visible;
}

/* ==========================================================
   7. SISTEMA ORBITALE BASE
   ========================================================== */

.sis-hero .sis-orbit {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: visible;
    isolation: isolate;
    user-select: none;
}

.sis-desktop-hero .sis-hero__orbit-frame > .sis-orbit {
    position: absolute;
    width: min(820px, 100%);
    height: 600px;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    overflow: visible;
}

/* ==========================================================
   8. ORBITA AUTONOMA ELEMENTOR - TABLET / MOBILE
   ========================================================== */

.sis-hero.sis-hero-orbit-block {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 520px;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.sis-hero.sis-hero-orbit-block > .sis-orbit {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 520px;
    margin: 0 auto;
    left: auto;
    top: auto;
    transform: none;
    overflow: visible;
    isolation: isolate;
}

/* ==========================================================
   9. ELEMENTI ORBITALI
   ========================================================== */

.sis-hero .sis-orbit__halo,
.sis-hero .sis-orbit__line,
.sis-hero .sis-orbit__planet,
.sis-hero .sis-orbit__sis,
.sis-hero .sis-orbit__hit {
    position: absolute;
    left: 50%;
    top: calc(50% - 45px);
}

/* ==========================================================
   10. ALONE
   ========================================================== */

.sis-hero .sis-orbit__halo {
    width: 550px;
    height: 340px;
    transform: translate(-50%, -50%) rotate(-20deg);
    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(0, 70, 140, 0.30) 0%,
            rgba(0, 87, 184, 0.26) 18%,
            rgba(0, 120, 195, 0.21) 34%,
            rgba(0, 169, 206, 0.15) 50%,
            rgba(95, 200, 222, 0.09) 64%,
            rgba(190, 232, 242, 0.045) 76%,
            rgba(255, 255, 255, 0) 88%
        ),
        radial-gradient(
            ellipse at 63% 36%,
            rgba(0, 190, 220, 0.18) 0%,
            rgba(0, 169, 206, 0.11) 24%,
            rgba(0, 150, 200, 0.055) 44%,
            rgba(255, 255, 255, 0) 72%
        );

    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================
   11. LINEE ORBITALI
   ========================================================== */

.sis-hero .sis-orbit__line {
    transform: translate(-50%, -50%) rotate(-27deg);
    border-radius: 50%;
    pointer-events: none;
}

.sis-hero .sis-orbit__line--outer {
    width: 460px;
    height: 260px;
    border: 1px solid rgba(0, 87, 184, 0.17);
    z-index: 2;
}

.sis-hero .sis-orbit__line--inner {
    width: 300px;
    height: 164px;
    border: 1px solid rgba(0, 87, 184, 0.22);
    z-index: 3;
}

/* ==========================================================
   12. SFERE
   METALLO SATINATO SCURO
   ========================================================== */

.sis-hero .sis-orbit__planet,
.sis-hero .sis-orbit__sis {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}


/* ==========================================================
   PIANETI - EFFETTO SFERA 3D METALLICA
   ========================================================== */

.sis-hero .sis-orbit__planet {
    background-color: var(--planet-color, #d9e7f5);

    background-image:
        radial-gradient(
            circle at 28% 22%,
            rgba(255,255,255,0.65),
            rgba(255,255,255,0.18) 18%,
            rgba(255,255,255,0) 42%
        );

    border:
        1px solid rgba(255,255,255,0.65);

    box-shadow:
        /* luce interna */
        inset 8px 10px 18px
        rgba(255,255,255,0.35),

        /* profondità */
        inset -14px -18px 28px
        rgba(0,35,70,0.35),

        /* ombra esterna */
        0 18px 35px
        rgba(0,60,120,0.25);
}


/* ==========================================================
   Disattiva riflessi che creano artefatti
   ========================================================== */

.sis-hero .sis-orbit__planet::before,
.sis-hero .sis-orbit__planet::after,
.sis-hero .sis-orbit__sis::before,
.sis-hero .sis-orbit__sis::after {
    content: none !important;
    display: none !important;
}

/* Pianeti */
.sis-hero .sis-orbit__planet {
    border:
        1px solid rgba(255,255,255,0.45);
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease;
}

.sis-hero .sis-orbit__planet.is-active {
    border: 1.5px solid rgba(0, 87, 184, 0.30);
    box-shadow: 0 14px 40px rgba(0, 87, 184, 0.28) !important;
}

/* SIS centrale - materiale più marcato */
.sis-hero .sis-orbit__sis {
    width: 130px;
    height: 130px;
    margin-left: -65px;
    margin-top: -65px;
    z-index: 10;

    background-color: #c7edf3;

    background-image:
        radial-gradient(
            circle at 28% 22%,
            rgba(255,255,255,0.88) 0%,
            rgba(255,255,255,0.44) 16%,
            rgba(255,255,255,0.10) 31%,
            rgba(255,255,255,0) 48%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(0,40,80,0.24) 0%,
            rgba(0,40,80,0.10) 38%,
            rgba(0,40,80,0) 72%
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0.04) 30%,
            rgba(0,55,95,0.08) 55%,
            rgba(255,255,255,0.10) 80%,
            rgba(0,40,70,0.08) 100%
        );

    border: 1px solid rgba(255,255,255,0.58);

    box-shadow:
        inset 12px 14px 22px rgba(255,255,255,0.34),
        inset -14px -16px 24px rgba(0,40,75,0.18),
        inset 0 0 10px rgba(255,255,255,0.14),
        0 20px 52px rgba(0,87,184,0.24),
        0 7px 18px rgba(0,40,75,0.12);
}

/* ==========================================================
   13. LOGHI
   ========================================================== */

.sis-hero .sis-orbit__planet img,
.sis-hero .sis-orbit__sis img,
.sis-hero .sis-orbit__fallback {
    position: relative;
    z-index: 3;
}

.sis-hero .sis-orbit__planet img,
.sis-hero .sis-orbit__sis img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* ==========================================================
   14. FALLBACK TESTUALE
   ========================================================== */

.sis-hero .sis-orbit__fallback {
    color: #183153;
    font-family: Inter, system-ui, sans-serif;
    font-size: 10px;
    line-height: 1.05;
    font-weight: 750;
    text-align: center;
}

.sis-hero .sis-orbit__fallback--light {
    color: #ffffff;
}

/* ==========================================================
   15. AREA CLICCABILE
   ========================================================== */

.sis-hero .sis-orbit__hit {
    display: block;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    text-decoration: none !important;
    z-index: 50;
}

/* ==========================================================
   16. TOOLTIP
   ========================================================== */

.sis-hero .sis-orbit__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 170px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.96);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: left;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 100ms ease, visibility 100ms ease;
}

.sis-hero .sis-orbit__hit.is-active .sis-orbit__tooltip {
    opacity: 1;
    visibility: visible;
}

.sis-hero .sis-orbit__tooltip-title {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.sis-hero .sis-orbit__tooltip-type {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.70;
}

.sis-hero .sis-orbit__tooltip-link {
    color: #8bddf0;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 650;
}

/* ==========================================================
   AISP - blu metallico leggibile
   ========================================================== */

.sis-hero .sis-orbit__planet[data-name="AISP"] {
    background-image:
        radial-gradient(
            circle at 30% 18%,
            rgba(255,255,255,0.18),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #809bb7,
            #526f8d,
            #405d78
        );
}

/* ==========================================================
   17. TABLET - 821px / 1100px
   ========================================================== */

@media (min-width: 821px) and (max-width: 1100px) {

    .sis-touch-hero .sis-hero {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible;
    }

    .sis-touch-hero .sis-hero__text-frame {
        width: 100%;
        padding: 24px 32px;
        display: block;
    }

    .sis-touch-hero .sis-hero__content {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

    .sis-touch-hero .sis-hero__eyebrow {
        margin-bottom: 16px;
        font-size: 12px !important;
    }

    .sis-touch-hero .sis-hero__title {
        width: 100%;
        max-width: 680px;
        font-size: 40px !important;
        line-height: 1.05 !important;
        letter-spacing: -1.1px !important;
    }

    .sis-touch-hero .sis-hero__subtitle {
        max-width: 620px;
        margin-top: 20px !important;
        font-size: 16px !important;
    }

    .sis-touch-hero .sis-hero__actions {
        margin-top: 24px;
    }

    .sis-touch-hero .sis-hero.sis-hero-orbit-block {
        width: 100%;
        height: 520px;
         overflow-x: clip;
         overflow-y: visible;
    }

    .sis-touch-hero .sis-hero.sis-hero-orbit-block > .sis-orbit {
        width: 100%;
        max-width: 700px;
        height: 520px;
        margin: 0 auto;
        transform: none;
        overflow: visible;
    }

    .sis-touch-hero .sis-orbit__tooltip {
        display: block;
        width: 155px;
        padding: 10px 12px;
    }
}

/* ==========================================================
   18. MOBILE - <= 820px
   ========================================================== */

@media (max-width: 820px) {

    .sis-touch-hero .sis-hero {
        width: 100%;
        max-width: 100%;

        overflow-x: clip;
        overflow-y: visible;
    }

    .sis-touch-hero .sis-hero__text-frame {
        width: 100%;
        padding: 24px 20px 8px;
        display: block;
    }

    .sis-touch-hero .sis-hero__content {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .sis-touch-hero .sis-hero__eyebrow {
        margin-bottom: 14px;
        font-size: 11px !important;
        letter-spacing: 1.35px !important;
    }

    .sis-touch-hero .sis-hero__title {
        width: 100%;
        max-width: 620px;
        font-size: 35px !important;
        line-height: 1.05 !important;
        letter-spacing: -0.9px !important;
    }

    .sis-touch-hero .sis-hero__subtitle {
        max-width: 560px;
        margin-top: 18px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .sis-touch-hero .sis-hero__actions {
        margin-top: 22px;
    }

    .sis-touch-hero .sis-hero.sis-hero-orbit-block {
        width: 100%;
        height: 380px;
        margin: 0;

        overflow-x: clip;
        overflow-y: visible;
    }

    .sis-touch-hero .sis-hero.sis-hero-orbit-block > .sis-orbit {
        width: 100%;
        max-width: 460px;
        height: 380px;
        margin: 0 auto;
        transform: none;
        overflow: visible;
    }

    .sis-touch-hero .sis-orbit__tooltip {
        display: block;
        width: 150px;
        padding: 10px 12px;
    }
}

/* ==========================================================
   19. SMARTPHONE PICCOLI - <= 480px
   ========================================================== */

@media (max-width: 480px) {

    .sis-touch-hero .sis-hero__text-frame {
        padding: 22px 18px 6px;
    }

    .sis-touch-hero .sis-hero__title {
        font-size: 32px !important;
        line-height: 1.06 !important;
        letter-spacing: -0.75px !important;
    }

    .sis-touch-hero .sis-hero__subtitle {
        font-size: 15.5px !important;
    }

    .sis-touch-hero .sis-btn {
        min-height: 44px;
        padding: 0 18px;
        font-size: 14px !important;
    }

    .sis-touch-hero .sis-hero.sis-hero-orbit-block {
        height: 350px;
    }

    .sis-touch-hero .sis-hero.sis-hero-orbit-block > .sis-orbit {
        width: 100%;
        max-width: none;
        height: 350px;
    }

    .sis-touch-hero .sis-orbit__tooltip {
        width: 140px;
        padding: 9px 11px;
    }
}

/* ==========================================================
   20. TELEFONI MOLTO STRETTI - <= 380px
   ========================================================== */

@media (max-width: 380px) {

    .sis-touch-hero .sis-hero__title {
        font-size: 30px !important;
    }

    .sis-touch-hero .sis-hero__actions {
        gap: 9px;
    }

    .sis-touch-hero .sis-btn {
        padding: 0 15px;
    }

    .sis-touch-hero .sis-hero.sis-hero-orbit-block {
        height: 330px;
    }

    .sis-touch-hero .sis-hero.sis-hero-orbit-block > .sis-orbit {
        height: 330px;
    }
}

/* ==========================================================
   21. VISIBILITA DESKTOP / TOUCH
   ========================================================== */

@media (min-width: 1101px) {
    .sis-touch-hero {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .sis-desktop-hero {
        display: none !important;
    }
}

/* ==========================================================
   22. ACCESSIBILITA
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .sis-hero .sis-btn,
    .sis-hero .sis-orbit__planet,
    .sis-hero .sis-orbit__tooltip {
        transition: none;
    }
}

/* ==========================================================
   BLOCCA OVERFLOW ORIZZONTALE HERO TOUCH
   ========================================================== */

@media (max-width: 1100px) {

    .sis-touch-hero {
        width: 100%;
        max-width: 100%;

        overflow-x: clip;
    }
}

/* ==========================================================
   FIX DEFINITIVO OVERFLOW ALONE ORBITA
   ========================================================== */

@media (max-width: 1100px) {

    .sis-hero.sis-hero-orbit-block {
        width: 100%;
        max-width: 100%;
        overflow-x: clip !important;
    }

    .sis-hero.sis-hero-orbit-block .sis-orbit__halo {
        width: min(550px, 80vw) !important;
        height: auto !important;
        aspect-ratio: 550 / 340;
    }

}