
/* blocco iniziale: insegna e contatore, a tutta larghezza subito sotto il menu
   (i margini negativi annullano il padding del body e il margine sotto l'header) */
.home-hero {
    margin: -40px -20px 60px -20px;
    padding: 16px 16px 36px 16px;

    background-color: #D5CBB4;
    color: #703C56;
    text-align: center;
}

.home-hero-image {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
}

.home-hero-label {
    margin: 20px 0 6px 0;

    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* il contatore resta su una riga: il carattere si riduce con la larghezza dello schermo */
.home-hero-counter {
    margin: 0;

    font-size: clamp(1.1rem, 5.4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .home-hero {
        padding: 10px 12px 28px 12px;
    }

    .home-hero-label {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
}

/* sotto i 340 px è ammesso l'a capo */
@media (max-width: 339px) {
    .home-hero-counter {
        white-space: normal;
    }
}
.five-per-thousand {

    background-color: rgba(255,255,255,0.35);

    border: 1px solid #b89b6d;

    border-radius: 10px;

    padding: 20px;

    margin: 50px auto;

    max-width: 700px;
}
.tax-code {
    font-size: 1rem;
    font-weight: bold;

    letter-spacing: 2px;
}
.tax-label {
    font-size: 1rem;
    font-weight: normal;
}

.tax-number {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.copy-button {

    margin-top: 10px;
    margin-bottom: 10px;

    padding: 10px 20px;

    border: none;

    border-radius: 6px;

    background-color: #4caf50;

    color: white;

    cursor: pointer;
}

.copy-button:hover {
    background-color: #3e9442;
}

 
.gallery-title {
    margin-top: 50px;
    margin-bottom: 0px;

    color: #4a2f1b;

    font-size: 2rem;
}
.home-gallery {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    max-width: 1000px;

    margin: 50px auto;

}
.home-gallery img {
    width: 100%;
    height: 250px;

    object-fit: cover;

    border-radius: 10px;

     transition: all 0.3s ease;
}
 .home-gallery img:hover {
    transform: scale(1.05);

    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {

    .home-gallery {
        grid-template-columns: 1fr;
    }

}

.gallery-more-link {
    margin: -20px 0 50px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-more-link a {
    color: var(--accent, #b5083f);
}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;

    justify-content: center;
    align-items: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}



.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}