/* Reset di base */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Stile per l'intestazione */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Contenitore principale */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Stile per le immagini */
.container img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Stile per l'immagine nell'overlay */
.container img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Stile per le sezioni */
section {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

section h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #222;
}

section p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

section:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.1);
}

audio {
    width: 100%;
    accent-color: #007BFF;
}

/* Pulsanti */
button {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}

/* Stile per il footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 2px solid #444;
}

footer p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section {
        padding: 1.25rem;
    }
}
