:root {
    /* --primary: #00d9ff;*/
    --primary: #2f7626;
    /* Cyan elettrico */
    --secondary: #ff0080;
    /* Magenta vivace */
    --secondary-light: #ff00809e;
    --background: #0a0a0f;
    /* Quasi nero */
    --surface: #1a1a2e;
    /* Blu scuro */
    --text: #eee6ff;
    /* Bianco violaceo */
    /*--text-secondary: #a78bfa;*/
    --text-secondary: #40b63c;
    /* Viola chiaro */
    --accent: #00ff88;
    /* Verde neon */
    --transition: all 0.3s ease;
    /* Transizioni */
    --shadow-button: 2px 5px 20px var(--secondary);
    /* Ombra button */
    --shadow-button-light: 2px 5px 20px var(--secondary-light);
    --text2: #eee6ff6d;
    --shadow-text: 2px 5px 20px var(--text2);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 20px 50px rgba(64, 182, 60, 0.4);
    --shadow-card-hover2: 0 10px 20px rgba(64, 182, 60, 0.4);
}

    body {
        background-color: var(--surface);
    }

    /* === HERO SECTION === */
    .hero {
        background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
        min-height: 80vh;
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
        margin-top: 40px;
    }

    /* === ANIMAZIONE CIRCUITI === */
    .circuit-animation {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.6;
    }

    /* Linee di circuito principali */
    .circuit-line {
        position: absolute;
        background: linear-gradient(90deg, transparent, #00d4ff, transparent);
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
    }

    /* Linee orizzontali */
    .circuit-line.horizontal {
        height: 2px;
        width: 300px;
    }

    .circuit-line.horizontal-1 {
        top: 15%;
        left: -300px;
        animation: moveRight 8s infinite;
    }

    .circuit-line.horizontal-2 {
        top: 35%;
        right: -300px;
        animation: moveLeft 10s infinite;
        background: linear-gradient(90deg, transparent, #ff6b00, transparent);
    }

    .circuit-line.horizontal-3 {
        top: 55%;
        left: -300px;
        animation: moveRight 12s infinite;
        background: linear-gradient(90deg, transparent, #00ff88, transparent);
    }

    .circuit-line.horizontal-4 {
        bottom: 25%;
        right: -300px;
        animation: moveLeft 7s infinite;
        background: linear-gradient(90deg, transparent, #ff0099, transparent);
    }

    /* Linee verticali */
    .circuit-line.vertical {
        width: 2px;
        height: 200px;
    }

    .circuit-line.vertical-1 {
        left: 20%;
        top: -200px;
        animation: moveDown 9s infinite;
        background: linear-gradient(180deg, transparent, #00d4ff, transparent);
    }

    .circuit-line.vertical-2 {
        right: 25%;
        bottom: -200px;
        animation: moveUp 11s infinite;
        background: linear-gradient(180deg, transparent, #ff6b00, transparent);
    }

    .circuit-line.vertical-3 {
        left: 60%;
        top: -200px;
        animation: moveDown 6s infinite;
        background: linear-gradient(180deg, transparent, #00ff88, transparent);
    }

    /* Keyframes per movimenti */
    @keyframes moveRight {
        0% {
            transform: translateX(0);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            transform: translateX(calc(100vw + 300px));
            opacity: 0;
        }
    }

    @keyframes moveLeft {
        0% {
            transform: translateX(0);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            transform: translateX(calc(-100vw - 300px));
            opacity: 0;
        }
    }

    @keyframes moveDown {
        0% {
            transform: translateY(0);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            transform: translateY(calc(100vh + 200px));
            opacity: 0;
        }
    }

    @keyframes moveUp {
        0% {
            transform: translateY(0);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            transform: translateY(calc(-100vh - 200px));
            opacity: 0;
        }
    }

    /* === NODI DEI CIRCUITI === */
    .circuit-nodes {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .node {
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite;
    }

    .node-1 {
        top: 20%;
        left: 15%;
        background: #00d4ff;
        box-shadow: 0 0 20px #00d4ff;
        animation-delay: 0s;
    }

    .node-2 {
        top: 40%;
        right: 20%;
        background: #ff6b00;
        box-shadow: 0 0 20px #ff6b00;
        animation-delay: 0.5s;
    }

    .node-3 {
        bottom: 30%;
        left: 25%;
        background: #00ff88;
        box-shadow: 0 0 20px #00ff88;
        animation-delay: 1s;
    }

    .node-4 {
        top: 60%;
        left: 50%;
        background: #ff0099;
        box-shadow: 0 0 20px #ff0099;
        animation-delay: 1.5s;
    }

    .node-5 {
        bottom: 40%;
        right: 35%;
        background: #00d4ff;
        box-shadow: 0 0 20px #00d4ff;
        animation-delay: 0.8s;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.8);
            opacity: 0.6;
        }
    }

    @keyframes float1 {

        0%,
        100% {
            transform: translateY(0px) translateX(0px);
        }

        33% {
            transform: translateY(-30px) translateX(20px);
        }

        66% {
            transform: translateY(15px) translateX(-10px);
        }
    }

    @keyframes float2 {

        0%,
        100% {
            transform: translateY(0px) translateX(0px);
        }

        50% {
            transform: translateY(-40px) translateX(-25px);
        }
    }

    @keyframes float3 {

        0%,
        100% {
            transform: translateY(0px) translateX(0px);
        }

        25% {
            transform: translateY(20px) translateX(30px);
        }

        75% {
            transform: translateY(-25px) translateX(-15px);
        }
    }

    @keyframes float4 {

        0%,
        100% {
            transform: translateY(0px) translateX(0px);
        }

        50% {
            transform: translateY(-35px) translateX(40px);
        }
    }

    @keyframes float5 {

        0%,
        100% {
            transform: translateY(0px) translateX(0px);
        }

        40% {
            transform: translateY(-20px) translateX(-35px);
        }

        80% {
            transform: translateY(30px) translateX(10px);
        }
    }

    @keyframes float6 {

        0%,
        100% {
            transform: translateY(0px) translateX(0px);
        }

        33% {
            transform: translateY(25px) translateX(-20px);
        }

        66% {
            transform: translateY(-15px) translateX(25px);
        }
    }

    /* === CONTENUTO === */
    .banner-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        text-shadow: var(--shadow-text);
        width: 90%;
        max-width: 800px;
    }

    .banner-text h1 {
        color: var(--text-secondary);
        font-size: 3.4rem;
        padding-bottom: 40px;
    }

    .banner-text p {
        color: var(--text);
        font-size: 1.6rem;
        padding-bottom: 40px;
    }

    .btn-banner {
        display: flex;
        gap: 40px;
        justify-content: center;
    }

    .btn-portfolio,
    .btn-preventivo {
        width: 220px;
        height: 60px;
        font-size: 18px;
        border-radius: 40px;
        font-weight: bold;
        transition: var(--transition);
    }

    .btn-portfolio {
        background-color: var(--primary);
        color: var(--surface);
    }

    .btn-portfolio:hover {
        background-color: var(--text-secondary);
        transform: translateY(-5px);
        box-shadow: var(--shadow-card-hover2);
    }

    .btn-preventivo {
        background-color: transparent;
        border: 1px solid var(--primary);
        color: var(--primary);
    }

    .btn-preventivo:hover {
        color: var(--text-secondary);
        border: 2px solid var(--text-secondary);
        transform: translateY(-5px);
        box-shadow: var(--shadow-card-hover2);
    }

    @media (max-width: 1280px) {
        .hero {
            margin-top: 0;
        }
    }

    /* === RESPONSIVE === */
    @media (max-width: 768px) {
        .circuit-line.horizontal {
            width: 200px;
        }

        .circuit-line.vertical {
            height: 150px;
        }

        .banner-text h1 {
            font-size: 2.5rem;
        }

        .banner-text p {
            font-size: 1.4rem;
        }

        .hero {
            min-height: 100vh;
            margin-top: 0;
        }
    }

    /* === BODY HOME === */
    .body-content {
        margin: 40px 20px;
    }

    .body-introduction {
        color: var(--primary);
        text-align: center;
        font-size: 2.4rem;
    }

    .body-container {
        display: flex;
        margin: 40px 0px;
    }

    .body-description {
        text-align: justify;
        color: var(--text);
        padding: 20px;
        font-size: 1.3rem;
        line-height: 1.8;
    }

    .body-description h4 {
        font-size: 2rem;
        color: var(--text-secondary);
        padding-bottom: 20px;
    }

    .img-body-home {
        max-height: 600px;
        aspect-ratio: 13 / 16;
        object-fit: cover;
        border-radius: 20px;
        transition: var(--transition);
        border: 1px solid rgba(64, 182, 60, 0.2);
        box-shadow: var(--shadow-card);
    }

    .img-body-home:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-card-hover);
        border-color: var(--text-secondary);
    }

    .body-description ul {
        list-style-type: none;
    }

    .body-description ul li::before {
        content: "✔️";
        padding-right: 20px;
    }

    /* == BODY RESPONSIVE == */
    @media (max-width: 1024px) {
        .body-container {
            display: flex;
            flex-direction: column;
            margin: 0;
            padding: 0;
        }

        .img-body-home {
            max-width: 100%;
        }
    }