/* ========================================
   BIBLIOTECA PAGE CSS
   ======================================== */

/* Biblioteca Hero */
.bib-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bib-hero__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bib-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

.bib-hero__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: #060606;
    margin: 0.75rem 0 1.5rem;
    line-height: 1.3;
}

.bib-hero__content p {
    font-size: 1.0625rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.bib-hero__content .btn {
    margin-top: 1rem;
}

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

/* Collezioni Grid */
.collezioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.collezione-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
}

.collezione-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.collezione-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    color: #d4af37;
}

.collezione-card__icon svg {
    width: 100%;
    height: 100%;
}

.collezione-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #060606;
    margin-bottom: 0.75rem;
}

.collezione-card p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

/* Photo Gallery - Masonry-like */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    cursor: pointer;
}

.gallery-item--wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .gallery-item--wide {
        grid-column: span 1;
    }
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item--wide img {
    height: 300px;
}

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

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(6, 6, 6, 0.8));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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