body {
    background: black;
    margin: 0;
}

.voltage-button {
    position: relative;
    margin-top: 3rem;
}

.voltage-button button {
    color: white;
    background: #2F275E;
    padding: 1.6rem 4.5rem; /* Ridotto padding orizzontale su desktop */
    border-radius: 5rem;
    border: 3px solid #7b68ee;
    font-size: 1.2rem;
    line-height: 1em;
    letter-spacing: 0.075em;
    transition: background 0.3s;
}

.voltage-button button:hover {
    cursor: pointer;
    background: #6056B0;
}

/* Media query per dispositivi mobile */
@media (max-width: 768px) {
    .voltage-button button {
        padding: 1.6rem 3.2rem; /* Aumentato padding verticale per mobile */
        font-size: 1.1rem;
        border-radius: 4rem;
    }
    
    .voltage-button svg {
        top: -0.6em;
        left: -0.2em;
        width: calc(100% + 0.4em);
        height: calc(100% + 1.2em);
    }
}

/* Media query per schermi molto piccoli */
@media (max-width: 480px) {
    .voltage-button button {
        padding: 1.4rem 2.5rem; /* Aumentato padding verticale per smartphone */
        font-size: 1rem;
    }
}

/* Quando il pulsante è in hover, mostra l'SVG e i puntini */
.voltage-button button:hover + svg,
.voltage-button button:hover + svg + .voltage-sparks {
    opacity: 0.8;
}

.voltage-button svg {
    display: block;
    position: absolute;
    top: -0.75em;
    left: -0.25em;
    width: calc(100% + 0.5em);
    height: calc(100% + 1.5em);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    transition-delay: 0.1s;
}

.voltage-button svg path {
    stroke-dasharray: 100;
    filter: url('#glow');
}

.voltage-button svg path.line-1 {
    stroke: #f6de8d;
    stroke-dashoffset: 0;
    animation: spark-1 3s linear infinite;
}

.voltage-button svg path.line-2 {
    stroke: #5865F2;
    stroke-dashoffset: 500;
    animation: spark-2 3s linear infinite;
}

.voltage-button .voltage-sparks {
    opacity: 0;
    transition: opacity 0.3s;
    transition-delay: 0.4s;
}

.voltage-button .spark {
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 100%;
    position: absolute;
    opacity: 0;
}

.voltage-button .spark-1 {
    top: 0;
    left: 20%;
    animation: fly-up 3s linear infinite;
}

.voltage-button .spark-2 {
    top: 0;
    left: 55%;
    animation: fly-up 3s linear infinite;
    animation-delay: 0.5s;
}

.voltage-button .spark-3 {
    top: 0;
    left: 80%;
    animation: fly-up 3s linear infinite;
    animation-delay: 1s;
}

.voltage-button .spark-4 {
    bottom: 0;
    left: 30%;
    animation: fly-down 3s linear infinite;
    animation-delay: 2.5s;
}

.voltage-button .spark-5 {
    bottom: 0;
    left: 65%;
    animation: fly-down 3s linear infinite;
    animation-delay: 1.5s;
}

/* Keyframes rimangono invariati */
@keyframes spark-1 {
    to {
        stroke-dashoffset: -1000;
    }
}
@keyframes spark-2 {
    to {
        stroke-dashoffset: -500;
    }
}
@keyframes fly-up {
    0% { opacity: 0; transform: translateY(0) scale(0.2); }
    5% { opacity: 1; transform: translateY(-1.5rem) scale(0.4); }
    10%, 100% { opacity: 0; transform: translateY(-3rem) scale(0.2); }
}
@keyframes fly-down {
    0% { opacity: 0; transform: translateY(0) scale(0.2); }
    5% { opacity: 1; transform: translateY(1.5rem) scale(0.4); }
    10%, 100% { opacity: 0; transform: translateY(3rem) scale(0.2); }
}