/* Importiamo un font moderno e pulito da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif; /* Nuovo font */
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 1rem 0;
}

main {
    /* EFFETTO VETRO (GLASSMORPHISM) */
    background: rgba(15, 12, 41, 0.5); /* Sfondo semi-trasparente violaceo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px; /* Bordi più arrotondati */
    padding: 2rem;
    max-width: 600px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

#logo {
    max-width: 80%;
    height: auto;
    max-height: 225px;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 2px 2px 4px #000000;
}

h2 { text-shadow: 2px 2px 4px #000000; }
h3 { color: #FFD700; }

/* --- BOTTONI COSMICI (NUOVO STILE) --- */
button {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600; /* Testo più deciso */
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(45deg, rgba(111, 66, 193, 0.5), rgba(0, 212, 255, 0.5)); /* Gradiente */
    color: white;
    border-radius: 50px; /* Bordi arrotondati */
    transition: all 0.3s ease; /* Transizione fluida */
    margin-top: 1rem;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

button:hover {
    transform: translateY(-3px); /* Leggero sollevamento */
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8), 0 0 25px rgba(111, 66, 193, 0.8); /* Aura luminosa */
    border-color: rgba(255, 255, 255, 0.8);
}

input {
    padding: 10px;
    margin: 0.5rem;
    border-radius: 8px; /* Bordi arrotondati */
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0,0,0,0.2);
    color: white;
    width: calc(50% - 1.5rem); 
}
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Rende l'icona del calendario bianca */
}
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Rende l'icona dell'orologio bianca */
}


.hidden { display: none; }

/* --- LEGGENDA CON BORDO LUMINOSO --- */
#leggenda {
    text-align: left;
    font-size: 0.9rem;
    background-color: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); /* Bordo con aura azzurra */
}

/* --- RISULTATI FLUTTUANTI (STILE VETRO) --- */
.risultato-animale {
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.risultato-animale:hover {
    transform: scale(1.03); /* Si ingrandisce al passaggio del mouse */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Aura bianca */
    border-color: rgba(255, 255, 255, 0.5);
}

.risultato-animale.principale {
    transform: scale(1.05);
    background-color: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); /* Aura dorata più intensa */
}
.risultato-animale.principale:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); /* Aura dorata che si intensifica */
}


.risultato-animale img {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
}
.risultato-animale .descrizione h3 { margin: 0 0 0.5rem 0; }
.risultato-animale .descrizione p { margin: 0; font-size: 0.9rem; line-height: 1.4; color: rgba(255,255,255,0.9); }

/* --- Animazioni Stelle (Non modificate) --- */
#cielo-stellato { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden;}
.stella { position: absolute; background-color: white; border-radius: 50%; animation-name: lampeggio; animation-iteration-count: infinite; }
@keyframes lampeggio { 0%, 100% { transform: scale(0.8); opacity: 0.2; box-shadow: 0 0 4px #fff; } 50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 15px #fff, 0 0 25px #fff; } }
.stella-cadente { position: fixed; top: 0; left: 0; width: 2px; height: 2px; background: white; border-radius: 50%; box-shadow: 0 0 8px #fff, 0 0 12px #fff; animation: caduta 8s linear infinite; z-index: -1; }
.stella-cadente::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); width: 150px; height: 1px; background: linear-gradient(to right, #fff, transparent); }
@keyframes caduta { 0% { transform: rotate(315deg) translateX(-200px); opacity: 1; } 100% { transform: rotate(315deg) translateX(1500px); opacity: 0; } }

/* --- STILI PER BANNER COOKIE E MODAL (NUOVO) --- */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100; /* Deve stare sopra a tutto ma sotto i pannelli */
}

.glass-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    z-index: 101; /* Sopra l'overlay */
    
    /* Riusiamo il nostro stile Glassmorphism */
    background: rgba(15, 12, 41, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}

#cookie-banner p, #policy-modal p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

#cookie-banner a {
    color: #00d4ff;
    text-decoration: underline;
    cursor: pointer;
}

#policy-modal {
    max-height: 80vh; /* Altezza massima per non uscire dallo schermo */
    overflow-y: auto; /* Aggiunge la barra di scorrimento se il testo è lungo */
}