/* Generale */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    cursor: pointer; /* Default */
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
}

header a {
    color: #fff;
    text-decoration: none;
}



/* Hero Section */
.hero {
    background: url('../images/saldatuttoinopera.webp') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero a {
    margin: 10px;
    padding: 10px 20px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
}

.hero a:hover {
    background: #fff;
    color: #333;
}


/* Responsive */
@media (max-width: 768px) {
    .hero {
        background-position: top center;
        background-size: contain;
        height: 50vh;
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        background-position: top center;
        background-size: contain;
        height: 40vh;
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero a {
        margin: 8px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Cursore scintillante */
a, button {
    cursor: url('/assets/images/saldatrice.png'), pointer;
    position: relative; /* Necessario per le scintille */
}

/* Stile scintille */
.spark {
    position: absolute;
    width: 5px;
    height: 5px;
    background: orange;
    border-radius: 50%;
    animation: spark-animation 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes spark-animation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-30px + 60px * var(--rand-x)), calc(-30px + 60px * var(--rand-y))) scale(0.5);
        opacity: 0;
    }
}

/* Testo scintillante */
#saldatutto-text {
    font-size: 3rem;
    font-weight: bold;
    color: orange;
    position: relative;
    animation: weld-animation 2s infinite;
    text-align: center;
    margin: 0 auto;
}

@keyframes weld-animation {
    0%, 100% {
        text-shadow: 0 0 10px blue, 0 0 20px blue;
    }
    50% {
        text-shadow: 0 0 20px yellow, 0 0 30px yellow;
    }
}
