
	
	/* Simple Custom Slider Styles - Versione Responsiva Migliorata */

/* ==== STILI BASE (Desktop) ==== */
.scs-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 8px;
    touch-action: pan-y;
}

.scs-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.scs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.scs-slide.active {
    opacity: 1;
}

.scs-slide.slide-transition {
    transition: transform 0.5s ease-in-out;
    transform: translateX(100%);
}

.scs-slide.slide-transition.active {
    transform: translateX(0);
}

.scs-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* *** MODIFICHE PER AREA CLICCABILE *** */
/* Rende l'intera area della slide cliccabile */
.scs-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Assicura che l'immagine rimanga posizionata correttamente */
.scs-slide a img {
    position: relative;
    z-index: 2;
}

/* Assicura che il testo rimanga sopra e cliccabile */
.scs-slide a .scs-text {
    position: absolute;
    z-index: 3;
}
/* *** FINE MODIFICHE *** */

/* Testo sovrapposto */
.scs-text {
    position: absolute;
    z-index: 5;
    font-weight: bold;
    border-radius: 4px;
    max-width: 80%;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.4;
    transition: font-size 0.3s ease;
}

/* Posizioni del testo */
.scs-text-top-left {
    top: 20px;
    left: 20px;
    text-align: left;
}

.scs-text-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.scs-text-top-right {
    top: 20px;
    right: 20px;
    text-align: right;
}

.scs-text-center-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    text-align: left;
}

.scs-text-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scs-text-center-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    text-align: right;
}

.scs-text-bottom-left {
    bottom: 20px;
    left: 20px;
    text-align: left;
}

.scs-text-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.scs-text-bottom-right {
    bottom: 20px;
    right: 20px;
    text-align: right;
}

/* Controlli di navigazione */
.scs-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20; /* Aumentato per stare sopra i link */
}

.scs-prev, .scs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    z-index: 21; /* Aumentato da 10 */
    border-radius: 4px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scs-prev:hover, .scs-next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.scs-prev {
    left: 10px;
}

.scs-next {
    right: 10px;
}

/* Indicatori dot */
.scs-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20; /* Assicura che sia sopra i link */
}

.scs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: content-box;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 21;
}

.scs-dot.active {
    background: white;
    transform: scale(1.2);
}

.scs-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.1);
}

/* ==== TABLET LANDSCAPE (max-width: 1024px) ==== */
@media (max-width: 1024px) {
    .scs-prev, .scs-next {
        padding: 12px 18px;
        font-size: 22px;
        min-width: 45px;
    }
    
    .scs-text {
        max-width: 85%;
        line-height: 1.3;
    }
    
    .scs-dots {
        bottom: 18px;
        gap: 8px;
    }
    
    .scs-dot {
        width: 11px;
        height: 11px;
    }
}

/* ==== TABLET PORTRAIT (max-width: 768px) ==== */
@media (max-width: 768px) {
    .scs-prev, .scs-next {
        padding: 10px 15px;
        font-size: 20px;
        min-width: 40px;
        border-radius: 6px;
    }
    
    .scs-prev {
        left: 8px;
    }
    
    .scs-next {
        right: 8px;
    }
    
    .scs-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .scs-dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    
    /* Testo ottimizzato per tablet */
    .scs-text {
        font-size: 18px !important;
        padding: 10px !important;
        max-width: 90%;
        line-height: 1.3;
        border-radius: 6px;
    }
    
    .scs-text-top-left,
    .scs-text-center-left,
    .scs-text-bottom-left {
        left: 15px;
    }
    
    .scs-text-top-right,
    .scs-text-center-right,
    .scs-text-bottom-right {
        right: 15px;
    }
    
    .scs-text-top-left,
    .scs-text-top-center,
    .scs-text-top-right {
        top: 15px;
    }
    
    .scs-text-bottom-left,
    .scs-text-bottom-center,
    .scs-text-bottom-right {
        bottom: 15px;
    }
}

/* ==== SMARTPHONE (max-width: 480px) ==== */
@media (max-width: 480px) {
    .scs-slider-container {
        border-radius: 6px;
    }
    
    .scs-prev, .scs-next {
        padding: 8px 12px;
        font-size: 18px;
        min-width: 35px;
        border-radius: 8px;
        opacity: 0.9;
    }
    
    .scs-prev:hover, .scs-next:hover {
        transform: translateY(-50%) scale(1.05);
    }
    
    .scs-prev {
        left: 5px;
    }
    
    .scs-next {
        right: 5px;
    }
    
    .scs-dots {
        bottom: 12px;
        gap: 6px;
    }
    
    .scs-dot {
        width: 9px;
        height: 9px;
        border-width: 1.5px;
    }
    
    /* Testo ottimizzato per smartphone */
    .scs-text {
        font-size: 16px !important;
        padding: 8px 10px !important;
        max-width: 92%;
        line-height: 1.2;
        border-radius: 4px;
    }
    
    .scs-text-top-left,
    .scs-text-center-left,
    .scs-text-bottom-left {
        left: 10px;
    }
    
    .scs-text-top-right,
    .scs-text-center-right,
    .scs-text-bottom-right {
        right: 10px;
    }
    
    .scs-text-top-left,
    .scs-text-top-center,
    .scs-text-top-right {
        top: 10px;
    }
    
    .scs-text-bottom-left,
    .scs-text-bottom-center,
    .scs-text-bottom-right {
        bottom: 40px;
    }
    
    /* Miglioramento touch area per i controlli */
    .scs-prev, .scs-next {
        min-height: 40px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .scs-dot {
        min-width: 24px;
        min-height: 24px;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ==== SMARTPHONE PICCOLI (max-width: 320px) ==== */
@media (max-width: 320px) {
    .scs-slider-container {
        border-radius: 4px;
    }
    
    .scs-prev, .scs-next {
        padding: 6px 10px;
        font-size: 16px;
        min-width: 32px;
        min-height: 36px;
        border-radius: 6px;
    }
    
    .scs-prev {
        left: 3px;
    }
    
    .scs-next {
        right: 3px;
    }
    
    .scs-dots {
        bottom: 10px;
        gap: 5px;
    }
    
    .scs-dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
        min-width: 20px;
        min-height: 20px;
    }
    
    /* Testo ottimizzato per schermi molto piccoli */
    .scs-text {
        font-size: 14px !important;
        padding: 6px 8px !important;
        max-width: 94%;
        line-height: 1.2;
        border-radius: 3px;
    }
    
    .scs-text-top-left,
    .scs-text-center-left,
    .scs-text-bottom-left {
        left: 8px;
    }
    
    .scs-text-top-right,
    .scs-text-center-right,
    .scs-text-bottom-right {
        right: 8px;
    }
    
    .scs-text-top-left,
    .scs-text-top-center,
    .scs-text-top-right {
        top: 8px;
    }
    
    .scs-text-bottom-left,
    .scs-text-bottom-center,
    .scs-text-bottom-right {
        bottom: 35px;
    }
}

/* ==== OTTIMIZZAZIONI TOUCH E ACCESSIBILITÀ ==== */
@media (hover: none) and (pointer: coarse) {
    .scs-prev, .scs-next {
        opacity: 0.8;
        background: rgba(0,0,0,0.6);
    }
    
    .scs-prev:active, .scs-next:active {
        background: rgba(0,0,0,0.9);
        transform: translateY(-50%) scale(0.95);
    }
    
    .scs-dot:active {
        transform: scale(0.9);
    }
}

/* ==== SUPPORTO PER ORIENTAMENTO LANDSCAPE SU MOBILE ==== */
@media (max-height: 500px) and (orientation: landscape) {
    .scs-text {
        font-size: 14px !important;
        padding: 5px 8px !important;
    }
    
    .scs-text-top-left,
    .scs-text-top-center,
    .scs-text-top-right {
        top: 5px;
    }
    
    .scs-text-bottom-left,
    .scs-text-bottom-center,
    .scs-text-bottom-right {
        bottom: 30px;
    }
    
    .scs-dots {
        bottom: 8px;
    }
    
    .scs-prev, .scs-next {
        padding: 5px 8px;
        font-size: 14px;
        min-width: 28px;
        min-height: 30px;
    }
}

/* ==== PREVENZIONE ZOOM ACCIDENTALE SU IOS ==== */
@media screen and (max-width: 768px) {
    .scs-prev, .scs-next, .scs-dot, .scs-slide a {
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* ==== ACCESSIBILITÀ ==== */
@media (prefers-reduced-motion: reduce) {
    .scs-slide,
    .scs-slide.slide-transition,
    .scs-prev, .scs-next, .scs-dot,
    .scs-text {
        transition: none !important;
    }
}

/* Focus per navigazione da tastiera */
.scs-prev:focus, .scs-next:focus, .scs-dot:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
	
