body {
    margin: 0;
    font-family: Inter, sans-serif;
    background: #f5f5f5;
}

/* Header */
header {
    width: 100%;
    height: 60px;
    background: #eee6d3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 6px;
}

nav {
    margin-right: 20px;
}

.linkhome a {
    color: #b99e7f;
    text-decoration: none;
    font-weight: 600;
}

.linkhome a:hover {
    opacity: 0.7;
}

footer {
    width: 100%;
    background: #eee6d3; /* nuovo colore */
    padding: 20px 0;
    text-align: center;
    color: #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left,
.footer-center,
.footer-right {
    margin: 0;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.footer-link:hover {
    opacity: 0.7;
}



.container {
    max-width: 500px;
    padding: 20px;
}

.chi-siamo-container {
    max-width: 800px;
    text-align: left;
    flex: 1;
}

.chi-siamo-container h1 {
    text-align: center;
}

.chi-siamo-container h2 {
    margin-top: 30px;
    font-size: 24px;
}

.container img {
    width: 200px;          /* puoi cambiare la dimensione */
    margin: 10px;
    border-radius: 10px;
}

/* Contenuto */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.load-more {
    display: block;
    margin: 30px auto;
    padding: 12px 20px;
    background: #b99e7f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.load-more:hover {
    background: #a88765;
}

/* Filtri */
.filters {
    text-align: center;
    margin-bottom: 25px;
}

.filter-btn {
    background: #eee6d3;
    border: none;
    padding: 10px 18px;
    margin: 0 8px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn:hover {
    background: #d9cfb8;
}

.filter-btn.active {
    background: #c8bfa8;
    font-weight: bold;
}

/* Galleria */
.gallery {
    column-count: 3;
    column-gap: 20px;
}

.gallery img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    display: block;
}

@media (max-width: 800px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .gallery {
        column-count: 1;
    }
}


.gallery img:hover {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column; /* IMPORTANTE */
}

.lightbox-img {
    max-width: 90%;
    max-height: 70%;
    border-radius: 10px;
    margin-bottom: 15px; /* spazio per la descrizione */
    opacity: 0; 
    transform: scale(0.95); 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-desc {
    color: white;
    text-align: center;
    font-size: 18px;
    max-width: 80%;
    margin-bottom: 20px; /* spazio sopra le frecce */
}

.lightbox-count {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 16px;
}


.lightbox.show .lightbox-img {
    opacity: 1;
    transform: scale(1);
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.arrow.left {
    left: 40px;
}

.arrow.right {
    right: 40px;
}

.arrow:hover, .close:hover {
    opacity: 0.7;
}

/* Fade-in iniziale */
.gallery img {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Quando l'immagine è caricata */
.gallery img.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover professionale */
.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #b99e7f;
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: none;
    transition: 0.3s;
    z-index: 9999;
}

.back-to-top:hover {
    background: #a88765;
}

.gallery {
    transition: opacity 0.2s ease;
}

.gallery.fade-out {
    opacity: 0;
}

.gallery.fade-in {
    opacity: 1;
}

.lightbox-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    z-index: 9999;
    position: relative;
}

.lb-btn {
    background: #b99e7f;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: 0.2s ease;
}

.lb-btn:hover {
    background: #a88765;
    transform: scale(1.05);
}
