/*!
 * Don Geppi Restaurant - Vertical Slider
 * Copyright (c) 2025 Manolo De Angelis - Mdaweb
 * All rights reserved.
 */

/* ============================================
   SLIDER VERTICALE - CSS
   Galleria con scorrimento verticale automatico
   ============================================ */

/* Container principale della galleria */
.vertical-gallery {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #fff;
}

/* Wrapper per lo scorrimento */
.vertical-gallery-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
}

/* Animazione automatica */
.vertical-gallery.auto-scroll .vertical-gallery-wrapper {
    animation: scrollVertical 20s linear infinite;
}

/* Pausa animazione on hover */
.vertical-gallery.auto-scroll:hover .vertical-gallery-wrapper {
    animation-play-state: paused;
}

/* Singola slide/foto */
.vertical-gallery-slide {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
	padding: 20px 0px;
}

/* Immagini */
.vertical-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

/* Effetto hover su immagine */
.vertical-gallery-slide:hover img {
    transform: scale(1.05);
}

/* Overlay con titolo */
.vertical-gallery-slide .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.vertical-gallery-slide:hover .overlay {
    transform: translateY(0);
}

.overlay-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    font-family: 'Noto', sans-serif;
    letter-spacing: 1px;
}

.overlay-description {
    font-size: 14px;
    margin: 5px 0 0 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* Animazione scorrimento verticale */
@keyframes scrollVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Controlli manuali */
.vertical-gallery-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vertical-gallery:hover .vertical-gallery-controls {
    opacity: 1;
}

.gallery-control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-control-btn:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-control-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

/* Indicatori di progresso */
.vertical-gallery-indicators {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vertical-gallery:hover .vertical-gallery-indicators {
    opacity: 1;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator-dot.active {
    background: white;
    transform: scale(1.5);
}

/* Loading state */
.vertical-gallery.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-gallery.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Versione con scroll manuale */
.vertical-gallery.manual-scroll {
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.vertical-gallery.manual-scroll .vertical-gallery-wrapper {
    animation: none;
}

.vertical-gallery.manual-scroll .vertical-gallery-slide {
    scroll-snap-align: start;
}

/* Scrollbar personalizzata */
.vertical-gallery.manual-scroll::-webkit-scrollbar {
    width: 8px;
}

.vertical-gallery.manual-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.vertical-gallery.manual-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.vertical-gallery.manual-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Versione compatta */
.vertical-gallery.compact {
    height: 400px;
}

.vertical-gallery.compact .vertical-gallery-slide {
    height: 150px;
}

/* Versione grande */
.vertical-gallery.large {
    height: 800px;
}

.vertical-gallery.large .vertical-gallery-slide {
    height: 300px;
}

/* Effetto fade tra le slide */
.vertical-gallery.fade-effect .vertical-gallery-slide {
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.vertical-gallery.fade-effect .vertical-gallery-slide:hover {
    opacity: 1;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .vertical-gallery {
        height: 400px;
    }
    
    .vertical-gallery-slide {
        height: 250px;
		padding: 20px;
    }
    
    .vertical-gallery-controls,
    .vertical-gallery-indicators {
        opacity: 1; /* Sempre visibili su tablet */
    }
    
    .gallery-control-btn {
        width: 35px;
        height: 35px;
    }
    
    .overlay-title {
        font-size: 16px;
    }
    
    .overlay-description {
        font-size: 12px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .vertical-gallery {
        height: 300px;
    }
    
    .vertical-gallery-slide {
        height: 120px;
    }
    
    .vertical-gallery-controls,
    .vertical-gallery-indicators {
        display: none; /* Nascosti su mobile */
    }
    
    .vertical-gallery-slide .overlay {
        padding: 10px;
        transform: translateY(0); /* Sempre visibile su mobile */
        background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    }
    
    .overlay-title {
        font-size: 14px;
    }
    
    .overlay-description {
        display: none; /* Nascondi descrizione su mobile */
    }
}

/* Tema scuro */
.vertical-gallery.dark-theme {
    background: #1a1a1a;
}

.vertical-gallery.dark-theme .vertical-gallery-slide {
    background: #2a2a2a;
}

.vertical-gallery.dark-theme .gallery-control-btn {
    background: rgba(0, 0, 0, 0.7);
}

.vertical-gallery.dark-theme .gallery-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.vertical-gallery.dark-theme .gallery-control-btn svg {
    fill: #fff;
}

.vertical-gallery.dark-theme .indicator-dot {
    background: rgba(255, 255, 255, 0.3);
}

.vertical-gallery.dark-theme .indicator-dot.active {
    background: white;
}