        /* STILI BASE */
        :root {
            --lightbox-bg: rgba(0, 0, 0, 0.95);
            --accent-color: #d4a574;
            --text-light: #fff;
        }
        
        body {
            padding-top: 80px;
            overflow-x: hidden;
        }
        
        .gallery-header {
            text-align: center;
            /*padding: 60px 0 40px;*/
			padding: 30px 0 40px;
            background: linear-gradient(135deg, #000 0%, #333 100%);
            color: var(--text-light);
            margin-bottom: 40px;
        }
        
        .gallery-header h1 {
            font-size: 2.8rem;
            margin-bottom: 15px;
        }
        
        .gallery-header p {
            font-size: 1.1rem;
           /* max-width: 700px;*/
            margin: 0 auto;
            opacity: 0.9;
        }
        
        /* GRIGLIA STABILE A 3 COLONNE */
        .thumbnails-section {
            padding: 0 0 80px;
        }
        
        .thumbnails-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 40px;
        }
        
        /* CARD ADATTIVA */
        .thumbnail-item {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            height: auto;
        }
        
        .thumbnail-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        
        /* CONTENITORE IMMAGINE */
        .image-container {
            width: 100%;
            position: relative;
            overflow: hidden;
        }
        
        /* ORIZZONTALI: rapporto 16:9 */
        .thumbnail-item.horizontal .image-container {
            aspect-ratio: 16 / 9;
        }
        
        /* VERTICALI: rapporto 3:4 */
        .thumbnail-item.vertical .image-container {
            aspect-ratio: 3 / 4;
        }
        
        /* IMMAGINE */
        .thumbnail-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .thumbnail-item:hover .thumbnail-img {
            transform: scale(1.05);
        }
        
        /* OVERLAY */
        .thumbnail-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            padding: 15px;
            color: var(--text-light);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 2;
        }
        
        .thumbnail-item:hover .thumbnail-overlay {
            opacity: 1;
        }
        
        /* LIGHTBOX */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--lightbox-bg);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .lightbox.active {
            display: flex;
            opacity: 1;
            align-items: center;
            justify-content: center;
        }
        
        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90vh;
        }
        
        .lightbox-img {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 4px;
            display: block;
            margin: 0 auto;
        }
        
        .lightbox-caption {
            text-align: center;
            color: var(--text-light);
            margin-top: 15px;
            font-size: 1.1rem;
        }
        
        /* CONTROLLI LIGHTBOX */
        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0,0,0,0.5);
            border: none;
            color: var(--text-light);
            font-size: 2.5rem;
            cursor: pointer;
            width: 50px;
            height: 50px;
            z-index: 1001;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            backdrop-filter: blur(5px);
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }
        
        .lightbox-prev,
        .lightbox-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.1);
            border: none;
            color: var(--text-light);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.8rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            /* Solo per mobile */
            touch-action: manipulation;
        }
        
        .lightbox-prev {
            left: 20px;
        }
        
        .lightbox-next {
            right: 20px;
        }
        
        .lightbox-prev:hover,
        .lightbox-next:hover {
            background: rgba(255,255,255,0.2);
        }
        
        .lightbox-counter {
            position: absolute;
            top: 20px;
            left: 20px;
            color: var(--text-light);
            font-size: 1.1rem;
            background: rgba(0,0,0,0.5);
            padding: 8px 15px;
            border-radius: 20px;
            backdrop-filter: blur(5px);
            user-select: none;
        }
        
        /* RESPONSIVE GRID */
        @media (max-width: 1024px) {
            .thumbnails-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 15px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding-top: 60px;
            }
            
            .gallery-header {
                padding: 40px 0 30px;
            }
            
            .gallery-header h1 {
                font-size: 2.2rem;
            }
            
            .thumbnails-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            /* LIGHTBOX MOBILE */
            .lightbox-close {
                top: 15px;
                right: 15px;
                width: 45px;
                height: 45px;
                font-size: 2.2rem;
            }
            
            .lightbox-prev,
            .lightbox-next {
                width: 55px;
                height: 55px;
                font-size: 1.6rem;
            }
            
            .lightbox-counter {
                top: 15px;
                left: 15px;
                font-size: 1rem;
                padding: 7px 14px;
            }
        }
        
        @media (max-width: 480px) {
            .thumbnails-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                max-width: 400px;
                margin-left: auto;
                margin-right: auto;
            }
            
            .thumbnail-item.horizontal .image-container {
                aspect-ratio: 4 / 3;
            }
            
            .thumbnail-item.vertical .image-container {
                aspect-ratio: 3 / 4;
            }
            
            /* LIGHTBOX MOBILE */
            .lightbox-content {
                max-width: 95%;
                max-height: 85vh;
            }
            
            .lightbox-img {
                max-height: 65vh;
            }
            
            .lightbox-close {
                top: 10px;
                right: 10px;
                width: 40px;
                height: 40px;
                font-size: 2rem;
            }
            
            .lightbox-prev,
            .lightbox-next {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
            
            .lightbox-prev {
                left: 10px;
            }
            
            .lightbox-next {
                right: 10px;
            }
            
            .lightbox-counter {
                top: 10px;
                left: 10px;
                font-size: 0.9rem;
                padding: 6px 12px;
            }
        }
        
        /* LOADING STATE */
        .loading {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px;
            color: #666;
            font-size: 1.1rem;
        }
