/* ════════════════════════════════════════
   GALLERIA — Hero
   ════════════════════════════════════════ */
.gal-hero {
    text-align: center;
    padding: 120px 24px 48px;
    background: var(--bg);
}
.gal-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin: 8px 0 16px;
}
.gal-hero-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ════════════════════════════════════════
   GRIGLIA MASONRY
   ════════════════════════════════════════ */
.gal-masonry {
    padding: 0 24px 72px;
    max-width: 1200px;
    margin: 0 auto;
}
.gal-masonry-grid {
    columns: 2;
    column-gap: 16px;
}
.gal-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--raggio-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.4s var(--transizione), box-shadow 0.4s var(--transizione);
}
.gal-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--ombra-lg);
}
.gal-item img {
    width: 100%;
    display: block;
    border-radius: var(--raggio-lg);
    transition: transform 0.6s ease;
}
.gal-item:hover img {
    transform: scale(1.04);
}
.gal-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
    border-radius: var(--raggio-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.gal-item:hover::after { opacity: 1; }
.gal-item-desc {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.gal-item:hover .gal-item-desc { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   FILTRI
   ════════════════════════════════════════ */
.gal-filters {
    padding: 0 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.gal-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.gal-chips::-webkit-scrollbar { display: none; }
.gal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.gal-chip svg { opacity: 0.5; transition: opacity 0.25s; }
.gal-chip:hover {
    border-color: var(--arancione);
    color: var(--arancione);
}
.gal-chip:hover svg { opacity: 1; }
.gal-chip.active {
    background: var(--arancione);
    border-color: var(--arancione);
    color: #fff;
}
.gal-chip.active svg { opacity: 1; stroke: #fff; }

.gal-empty {
    text-align: center;
    font-family: 'Nunito', sans-serif;
    color: var(--text-muted);
    padding: 60px 24px;
    font-size: 0.95rem;
}

/* ════════════════════════════════════════
   INSTAGRAM SEZIONE
   ════════════════════════════════════════ */
.gal-ig-section {
    background: linear-gradient(180deg, var(--bg) 0%, #FFF3E8 100%);
    padding: 72px 24px;
    text-align: center;
}
.gal-ig-inner {
    max-width: 480px;
    margin: 0 auto;
}
.gal-ig-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(242,140,40,0.08);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.gal-ig-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.gal-ig-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.gal-ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transizione);
}
.gal-ig-btn:hover {
    background: var(--arancione);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242,140,40,0.2);
}

/* ════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════ */
.gal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gal-lightbox.open {
    opacity: 1;
    pointer-events: all;
}
.gal-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gal-lb-close {
    position: absolute;
    top: 20px; right: 20px;
    z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.gal-lb-close:hover { background: rgba(255,255,255,0.25); }
.gal-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.gal-lb-nav:hover { background: rgba(255,255,255,0.2); }
.gal-lb-prev { left: 16px; }
.gal-lb-next { right: 16px; }
.gal-lb-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gal-lb-img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--raggio);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.gal-lb-info {
    margin-top: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.gal-lb-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
}
.gal-lb-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    background: #25D366;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.gal-lb-wa:hover { background: #1da851; transform: translateY(-1px); }
.gal-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 2px;
}

/* Colonne adattive per pochi elementi */
.gal-masonry-grid.gal-cols-1 { columns: 1 !important; max-width: 480px; margin: 0 auto; }
.gal-masonry-grid.gal-cols-2 { columns: 2 !important; }

/* ════════ Responsive ════════ */
@media (min-width: 768px) {
    .gal-masonry-grid { columns: 3; column-gap: 20px; }
    .gal-item { margin-bottom: 20px; }
}
@media (min-width: 1024px) {
    .gal-masonry-grid { columns: 3; }
    .gal-masonry { padding: 0 40px 80px; }
}
@media (max-width: 600px) {
    .gal-hero { padding: 100px 20px 36px; }
    .gal-masonry { padding: 0 16px 48px; }
    .gal-masonry-grid { column-gap: 10px; }
    .gal-item { margin-bottom: 10px; border-radius: var(--raggio); }
    .gal-item img { border-radius: var(--raggio); }
    .gal-item::after { border-radius: var(--raggio); }
    .gal-lb-nav { width: 36px; height: 36px; }
    .gal-lb-prev { left: 8px; }
    .gal-lb-next { right: 8px; }
}
body.gal-lb-open { overflow: hidden; }
