/* Impostazioni generali */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-image: url('/images/bg-1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    color: #fff;
    line-height: 1.6;
    padding-top: 120px; /* Spazio sotto la navbar */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Sovrapposizione scura per il testo */
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn-primary {
    text-decoration: none;
    color: #fff;
    background-color: #4CAF50;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero .btn-primary:hover {
    background-color: #45a049;
}

/* Card Annunci */
.card {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.card .btn-card {
    text-decoration: none;
    color: #fff;
    background-color: #6c63ff;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.card .btn-card:hover {
    background-color: #5a52e2;
}

/* Sezione Comunicazioni (Annunci) */
.announcements {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.announcements h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.announcements p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.announcements .emoji {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Footer sempre in fondo */
.footer {
    background: linear-gradient(270deg, #6c63ff, #ff6fcf, #6c63ff); /* Gradiente animato */
    background-size: 400% 400%;
    color: #fff;
    padding: 0px 2px; /* Ridotto il padding per farlo più compatto */
    text-align: center;
    font-size: 12px; /* Font più piccolo */
    position: fixed;
    bottom: 0;
    width: 100%; /* Corretto la larghezza da 100vh a 100% */
    font-weight: bold;
    transition: box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: gradientAnimation 10s ease infinite;
}

/* Aggiungi l'animazione del gradiente */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Effetto hover più sobrio */
.footer:hover {
    box-shadow: 0 0 15px #ff6fcf, 0 0 25px #6c63ff;
}


/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }

    .card h2 {
        font-size: 1.6rem;
    }

    .card p {
        font-size: 0.9rem;
    }
}
