/* Reset di base */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Lato', sans-serif; /* Font moderno e leggibile */
    color: #333;
    background-color: #f9f9f9; /* Sfondo chiaro e neutro */
    display: flex;
    flex-direction: column; /* Organizza gli elementi in colonna */
    text-align: center;
}

/* Contenitore principale */
.container {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

/* Header */
header {
    background-color: #2c3e50; /* Blu scuro */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header .logo p {
    font-size: 16px;
    margin: 5px 0 0;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Menu principale */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 400;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #34495e; /* Blu scuro più chiaro */
    color: #ecf0f1; /* Grigio chiaro */
}

/* Pulsante del menu mobile */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    text-align: left;
}

/* Footer */
footer {
    background-color: #2c3e50; /* Blu scuro */
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    flex-shrink: 0; /* Impedisce al footer di ridursi */
}

footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
}

/* Galleria immagini */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.metadata {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Form di caricamento */
.upload-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 40px auto;
}

.upload-form label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
}

.upload-form input, .upload-form select, .upload-form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.upload-form input:focus, .upload-form select:focus {
    border-color: #3498db; /* Blu */
    outline: none;
}

.upload-form button {
    background-color: #3498db; /* Blu */
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-form button:hover {
    background-color: #2980b9; /* Blu più scuro */
}

/* Media query per schermi piccoli (mobile) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        background-color: #2c3e50;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;

    }

    nav ul.active {
        transform: translateX(0);
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        font-size: 18px;
        padding: 15px 20px;
    }
}