/* Reset e Stili Globali */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #fff;
}

/* ======== NUOVI STILI PER L'HEADER ======== */
#main-header {
    position: fixed; /* Fissa l'header in alto */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* Sfondo scuro semi-trasparente */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px 0;
    z-index: 1000; /* Assicura che sia sopra tutto */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Un contenitore per centrare gli elementi dell'header */
#main-header .container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

#main-header nav ul {
    list-style: none;
    display: flex;
    gap: 25px; /* Spazio tra le voci */
}

#main-header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

#main-header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Il pulsante demo nell'header userà lo stile .btn-secondary */
.header-actions .btn {
    padding: 8px 20px; /* Leggermente più piccolo per l'header */
}
/* ======================================= */


/* Sezione Hero (Sfondo) */
.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Contenuto Centrale (Effetto Vetro) */
.hero-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* La Navigazione non è più qui dentro */

/* Titolo */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Pulsanti (ora contiene solo "Scopri di più") */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
    transform: translateY(-2px);
}

/* Stili per la Finestra Modale (INVARIATI) */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 20px;
}

/* Form nella modale (INVARIATO) */
#demoForm label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

#demoForm input[type="text"],
#demoForm input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#demoForm button {
    margin-top: 20px;
    width: 100%;
}
