/* Variabili per colori e font per una facile personalizzazione */
:root {
    --primary-color: #0d2c4b;  /* Blu scuro dal logo */
    --accent-color: #FFA500;   /* Un arancione d'impatto */
    --dark-text: #333333;
    --light-text: #ffffff;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --main-font: 'Montserrat', sans-serif;
}

/* Impostazioni di base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    margin: 0;
    padding-top: 90px; /* MODIFICA: Aumentato per header più alto */
    color: var(--dark-text);
    background-color: var(--background-light);
    line-height: 1.6;
}

/* ======== NUOVO STILE PER HEADER E LOGO ======== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* MODIFICA: Aumentata l'altezza dell'header */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    text-align: center; /* MODIFICA: Aggiunto per centrare il logo */
}

.logo {
    height: 60px; /* MODIFICA: Aumentata la dimensione del logo */
    width: auto;
}

.logo-footer {
    height: 60px;
    width: auto;
    margin-bottom: 2rem;
}

/* Stile per ogni sezione/schermata */
.schermata {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
    scroll-margin-top: 90px; /* MODIFICA: Adattato alla nuova altezza dell'header */
}

#schermata2-valutazione, #schermata4-concierge {
    background-color: var(--background-white);
}

.contenuto {
    max-width: 850px;
    width: 100%;
}

/* Stili Tipografici */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 900;
}

h1 { font-size: 3.2rem; margin-bottom: 1rem; }
h2 { font-size: 2.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; color: var(--accent-color); font-weight: 700; margin-top:0; }

p { font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.sottotitolo { font-size: 1.2rem; margin-bottom: 3rem; }
.chiusura-sezione { font-size: 1.3rem; font-weight: 700; margin-top: 3rem; color: var(--primary-color); }

/* Stile per i bottoni CTA */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #E59400;
    transform: translateY(-5px);
}

.cta-button.secondary {
    background-color: var(--primary-color);
}
.cta-button.secondary:hover {
    background-color: #0d2c4b;
}

/* Sezione 2: Metodo */
.metodo-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 50px;
}
.metodo-punto { flex: 1; }

/* Sezioni Video */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporzioni 16:9 */
    height: 0;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sezione 4: Concierge Buttons */
.concierge-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Stile per Modal (Pop-up) */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border-radius: 10px;
    z-index: 101;
    background-color: white;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    padding: 30px 40px;
    position: relative;
}

.close-button {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: bold;
    border: none;
    background: none;
    color: #aaa;
}
.close-button:hover {
    color: var(--dark-text);
}

#overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    pointer-events: none;
    z-index: 100;
}

#overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Responsive Design per Mobile */
@media (max-width: 768px) {
    body { padding-top: 80px; } /* MODIFICA */
    .main-header { height: 80px; } /* MODIFICA */
    .logo { height: 50px; } /* MODIFICA */
    .schermata { scroll-margin-top: 80px; padding: 60px 15px;} /* MODIFICA */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.1rem; }
    .metodo-container {
        flex-direction: column;
    }
    .concierge-buttons {
        flex-direction: column;
        align-items: center;
    }
}