/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #ffffff;
    background-color: #bd3455;
}

/* Header e menu */
header {
    background-image: url('../images/color.jpg');
    padding: 1rem;
}

.menu {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

.menu li {
    margin-left: 1.5rem;
}

.menu a {
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.menu a:hover {
    color: #3498db;
}

/* Contenuto principale */
main {
    padding: 2rem;
    min-height: 80vh;
}

/* Biografia */
.bio-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-content {
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    background-color: rgb(255, 197, 213);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bio-content h1 {
    margin-bottom: 1.5rem;
    color: #000000;
}

.bio-text p {
    margin-bottom: 1rem;
    text-align: left;
    color:#000000
}

/* Galleria */
.gallery-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #000000;
    color: #ecf0f1;
}

/* Responsive design */
@media (max-width: 768px) {
    .menu {
        justify-content: center;
    }
    
    .menu li {
        margin: 0 0.8rem;
    }
    
    .bio-content {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .menu {
        flex-direction: column;
        align-items: center;
    }
    
    .menu li {
        margin: 0.5rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* Aggiungi queste regole alla fine del tuo file CSS */

/* Stili per la visualizzazione fullscreen */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 650px;
    height: 650px;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.fullscreen-image {
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn:hover {
    color: #ccc;
}

/* Modifica l'effetto hover della galleria */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.763);
    aspect-ratio: 1/1;
    cursor: pointer;
}

.gallery-item img.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Mostra l'overlay fullscreen quando la classe 'active' è presente */
.fullscreen-overlay.active {
    display: flex; 
}