body {
    font-family: 'Arial', sans-serif;
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    background-color: #1e40af;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 50;
    top: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Usiamo il tuo valore shadow */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav {
    display: none;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
}

header nav a:hover {
    color: #93c5fd;
}

#menu-toggle {
    display: block;
}

.logo {
    height: 50px; /* Altezza base del logo, corrispondente a h-12 in Tailwind */
    width: auto;
    max-width: 150px; /* Limite massimo per evitare che sia troppo grande su schermi larghi */
    transition: transform 0.3s ease; /* Animazione leggera al passaggio del mouse */
}

.logo:hover {
    transform: scale(1.05); /* Effetto di ingrandimento al hover */
}

@media (max-width: 768px) {
    .logo {
        height: 1.5rem; /* 24px su mobile, più piccolo per spazio */
        max-width: 120px; /* Ridotto su mobile */
    }
    header .text-2xl {
        font-size: 1rem; /* Riduci il titolo a 16px su mobile */
    }
    header .flex {
        space-x-2; /* Riduci spazio tra logo e titolo */
    }
}

@media (min-width: 768px) {
    header nav {
        display: flex;
        gap: 1.5rem;
    }
    #menu-toggle {
        display: none;
    }
}

section {
    scroll-margin-top: 80px; /* Per anchor links con fixed header */
}

#faq button span {
    transition: transform 0.3s;
}

#faq button:hover {
    color: #1E40AF;
}

#successPopup {
    animation: fadeIn 0.3s ease-in;
}

#successPopup .bg-white {
    max-width: 400px;
    width: 90%;
}

@media (max-width: 768px) {
    #successPopup .bg-white {
        width: 95%;
    }
}

#home {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding-top: 6rem; /* Spazio per header fisso */
}

#home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

#home .absolute {
    z-index: 10;
}

#home .bg-opacity-40 {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 2rem;
}

.animate-text-glow {
    animation: textGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(0, 191, 255, 0.4);
    color: #ffffff;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.5), 0 0 5px rgba(0, 191, 255, 0.2);
    }
    to {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(0, 191, 255, 0.4);
    }
}

@media (max-width: 768px) {
    #home {
        height: 70vh; /* Aumentata per includere tutto il testo */
    }
    #home .bg-opacity-40 {
        padding: 1rem;
        backdrop-filter: blur(6px);
    }
    #home a {
        padding: 0.75rem 1.5rem;
    }
}