/* Reset di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    height: 100vh;
    background-color: #000;
}

/* Container video di sfondo */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#bg-video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Contenuto principale */
.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding-top: 7.5%;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
    color: #fff;
}

.tagline {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #f0f0f0;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container waitlist */
.waitlist-container {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.waitlist-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.waitlist-container p {
    margin-bottom: 2rem;
    color: #ccc;
    line-height: 1.6;
}

/* Form */
.form-group {
    display: flex;
    margin-bottom: 1rem;
}

input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    text-align: left;
}

button[type="submit"] {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #ff33ff, #33ffff);
    transform: translateY(-2px);
}

.message {
    height: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.success {
    color: #00ff00;
}

.error {
    color: #ff0000;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    color: #888;
    font-size: 0.9rem;
}

/* Controlli audio */
.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row-reverse;
    transition: all 0.3s ease;
}

.audio-controls:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Pulsante attiva/disattiva musica */
.music-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    transition: all 0.3s ease;
}

.music-toggle-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff33ff, #33ffff);
}

.music-toggle-btn.muted .music-icon {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Messaggio audio */
.audio-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    animation: fadeIn 0.5s ease-in-out;
}

.audio-message p {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.volume-control {
    width: 100px;
    display: flex;
    align-items: center;
}

/* Stilizzazione dello slider del volume */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff00ff, #00ffff);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .waitlist-container {
        padding: 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    input[type="email"] {
        border-radius: 5px;
        margin-bottom: 1rem;
    }
    
    button[type="submit"] {
        border-radius: 5px;
        width: 100%;
    }
    
    .audio-message {
        position: fixed;
        top: auto;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 15px;
        width: 90%;
        max-width: 300px;
    }
}