/* Stili per il pulsante Torna su */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: #6c757d;
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
            cursor: pointer;
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            background-color: #5a6268;
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        
        /* Stili per la galleria */
        .bg-light {
            --bs-bg-opacity: 1;
            background-color: rgb(249 234 149) !important;
        }
        
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
            padding: 20px;
        }
        
        .gallery a {
            display: block;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .gallery a:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }
        
        /* Stili per il tema scuro */
        [data-bs-theme="dark"] {
            background-color: #1a1a1a;
            color: #fcd972e0;
        }
        
        [data-bs-theme="dark"] .gallery a {
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }
        
        [data-bs-theme="dark"] .gallery a:hover {
            box-shadow: 0 8px 16px rgba(0,0,0,0.5);
        }
        
        .gallery img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .gallery a:hover img {
            transform: scale(1.05);
        }
        
        /* Stili per il tema scuro */
        [data-bs-theme="dark"] {
            --bs-body-bg: #212529;
            --bs-body-color: #f8f9fa;
            background-color: #212529 !important;
            color: #f8f9fa;
        }
        
        /* Override per il tema scuro */
        [data-bs-theme="dark"] .bg-light {
            background-color: #212529 !important;
        }
        
        [data-bs-theme="dark"] .navbar {
            background-color: #343a40 !important;
        }
        
        [data-bs-theme="dark"] .gallery a {
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }
        
        [data-bs-theme="dark"] .gallery a:hover {
            box-shadow: 0 8px 16px rgba(0,0,0,0.5);
        }
        
        /* Stili per il pulsante Torna su */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: #6c757d;
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .back-to-top.visible {
            opacity: 0.7;
            visibility: visible;
        }
        
        .back-to-top:hover {
            opacity: 1 !important;
            background-color: #0d6efd;
            transform: translateY(-3px);
        }
