/* Effetto stelle */
.stars {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveStars 100s linear infinite;
}

.stars:after {
    content: "";
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveStars 150s linear infinite reverse;
    opacity: 0.5;
    z-index: -1;
}

@keyframes moveStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

/* Stelle cadenti */
.falling-star {
    position: fixed;
    background: linear-gradient(45deg, #00bfff, transparent); /* Azzurro neon */
    border-radius: 50%;
    box-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff;
    z-index: -1;
    animation: fall 5s linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh) translateX(-50vw);
        opacity: 0;
    }
}

/* Stile generale */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #000000;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Blocca lo scroll orizzontale */
    overflow-y: auto;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #000000;
    padding: 20px;
    text-align: center;
    width: 100%;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 3em;
    color: #fff;
}

.nav {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    font-size: 1.2em;
}

.nav a:hover {
    text-decoration: underline;
}

.content {
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.plan {
    background-color: #181818;
    padding: 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.plan h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.plan p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.plan .button {
    background-color: #007acc;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.plan .button:hover {
    background-color: #007acc;
}

.footer {
    background-color: rgba(0, 0, 0, 0.5);
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    width: 100%;
}

.footer a {
    color: #007acc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Stile del modulo di pagamento */
.payment-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Allinea i campi a sinistra */
}

.payment-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.2em;
    color: #fff;
    width: 100%; /* Allinea i label con gli input */
}

.payment-form input {
    width: 100%; /* Assicura che gli input siano allineati */
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    background-color: #333;
    color: #fff;
    box-sizing: border-box; /* Include padding e bordo nella larghezza */
}

.payment-form input::placeholder {
    color: #aaa;
}

.payment-form input:focus {
    outline: none;
    border: 1px solid #007acc;
}

/* Pulsante di invio */
.submit-btn {
    width: 100%; /* Assicura che il pulsante sia allineato con gli input */
    padding: 15px;
    background-color: #007acc;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.submit-btn:hover {
    background-color: #1ed760;
}

/* Overlay per il pagamento */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Sfondo semi-trasparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Assicura che sia sopra tutto */
}

.payment-message {
    background-color: #181818;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.3s ease-in-out; /* Animazione di apertura */
}

.payment-message h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #007acc;
}

.payment-message p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.payment-message .close-btn {
    background-color: #007acc;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment-message .close-btn:hover {
    background-color: #007acc;
}

/* Animazione di apertura */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hamburger Menu - nascosto di default su desktop */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Media Query per Mobile */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }

    header {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 80px 20px 20px;
        flex-direction: column;
        z-index: 999;
        margin-top: 0;
    }

    .nav.nav--open {
        display: flex;
    }

    .nav a {
        margin: 10px 0;
        font-size: 1.5em;
    }

    /* Animazione hamburger quando attivo */
    .hamburger-menu.is-active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Aggiustamenti per il form di pagamento su mobile */
    .payment-form {
        margin: 20px;
        width: calc(100% - 40px);
    }
}