/* ============================================
   SLIDESHOW.CSS - Stili completi per slideshow
   Backoffice e Frontend
   ============================================ */

/* ================= VARIABILI ================= */
:root {
    --rosso: #620000;
    --rosso-hover: #9a0700;
    --oro: #d7aa43;
    --oro-soft: #d6b25f;
    --bg-dark: rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
}

/* ================= STILI COMUNI (backoffice e frontend) ================= */

/* Contenitore slider */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide-item {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    background: #000;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-item-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.slide-item-video iframe,
.slide-item-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= CAPTION ================= */
.slide-caption {
    position: absolute;
    bottom: 3%;
    left: 20%;
    right: 20%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 70%,
        transparent 100%);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--oro-soft);
    max-width: 60%;
    margin: 0 auto;
    backdrop-filter: blur(2px);
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Per l'anteprima del backoffice */
.slide-caption-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%);
    padding: 2rem;
    text-align: center;
    color: var(--oro-soft);
    z-index: 10;
}

/* ================= TITOLO ================= */
.slide-title {
    font-family: 'Cinzel', serif;
    color: var(--oro-soft);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    font-weight: 600;
}

.slide-title a {
    color: var(--oro-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.slide-title a:hover {
    color: var(--oro);
    border-bottom-color: var(--oro);
}

/* Dimensioni titolo */
.slide-title-size-1 { font-size: 1.4rem; }
.slide-title-size-2 { font-size: 1.8rem; }
.slide-title-size-3 { font-size: 2.2rem; }
.slide-title-size-4 { font-size: 2.6rem; }
.slide-title-size-5 { font-size: 3rem; }

/* ================= SOTTOTITOLO ================= */
.slide-subtitle {
    font-family: 'Cormorant Garamond', serif;
    color: var(--oro-soft);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Dimensioni sottotitolo */
.slide-subtitle-size-1 { font-size: 0.9rem; }
.slide-subtitle-size-2 { font-size: 1.1rem; }
.slide-subtitle-size-3 { font-size: 1.3rem; }
.slide-subtitle-size-4 { font-size: 1.5rem; }
.slide-subtitle-size-5 { font-size: 1.7rem; }

/* ================= BOTTONI SLIDER ================= */

/* Stile base comune per tutti i bottoni slider */
.btn-slider-primary,
.btn-slider-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: var(--transition);
    gap: 0.6rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

/* Stile bottone primario (rosso/oro) */
.btn-slider-primary {
    background: linear-gradient(135deg, var(--rosso) 0%, var(--rosso-hover) 100%);
    border-color: var(--oro);
    color: var(--oro-soft);
}

.btn-slider-primary:hover {
    background: linear-gradient(135deg, var(--rosso-hover) 0%, var(--rosso) 100%);
    color: white;
    transform: translateY(-2px);
    border-color: white;
    box-shadow: 0 8px 20px rgba(98, 0, 0, 0.4);
    text-decoration: none;
}

.btn-slider-primary:active {
    transform: translateY(0);
}

/* Stile bottone outline (trasparente con bordo oro) */
.btn-slider-outline {
    background: transparent;
    border: 2px solid var(--oro);
    color: var(--oro-soft);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-slider-outline:hover {
    background: var(--oro);
    color: #000000;
    transform: translateY(-2px);
    border-color: var(--oro);
    box-shadow: 0 8px 20px rgba(215, 170, 67, 0.3);
    text-decoration: none;
}

.btn-slider-outline:active {
    transform: translateY(0);
}

/* Effetto shine per entrambi i bottoni */
.btn-slider-primary::before,
.btn-slider-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-slider-primary:hover::before,
.btn-slider-outline:hover::before {
    left: 100%;
}

/* Dimensioni bottone */
.btn-slider-size-1 {
    font-size: 0.8rem;
    padding: 0.4rem 1.5rem;
}
.btn-slider-size-2 {
    font-size: 1rem;
    padding: 0.6rem 2rem;
}
.btn-slider-size-3 {
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
}
.btn-slider-size-4 {
    font-size: 1.4rem;
    padding: 1rem 3rem;
}
.btn-slider-size-5 {
    font-size: 1.6rem;
    padding: 1.2rem 3.5rem;
}

/* ================= BADGE DIMENSIONI (solo backoffice) ================= */
.size-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    color: var(--oro-soft);
    border: 1px solid rgba(215, 170, 67, 0.3);
}

.size-indicator-badge i {
    color: var(--oro);
    font-size: 0.7rem;
}

/* ================= INDICATORI E FRECCE CAROUSEL ================= */
.carousel-indicators [data-bs-target] {
    background-color: var(--oro);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: var(--oro-soft);
    transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 20px;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .slide-item {
        height: 60vh;
    }
    
    .slide-caption {
        max-width: 80%;
        left: 10%;
        right: 10%;
        padding: 1.5rem;
    }
    
    .slide-caption-preview {
        padding: 1.5rem;
    }
    
    /* Titolo mobile */
    .slide-title-size-1 { font-size: 1.2rem; }
    .slide-title-size-2 { font-size: 1.5rem; }
    .slide-title-size-3 { font-size: 1.8rem; }
    .slide-title-size-4 { font-size: 2.1rem; }
    .slide-title-size-5 { font-size: 2.4rem; }
    
    /* Sottotitolo mobile */
    .slide-subtitle-size-1 { font-size: 0.8rem; }
    .slide-subtitle-size-2 { font-size: 1rem; }
    .slide-subtitle-size-3 { font-size: 1.2rem; }
    .slide-subtitle-size-4 { font-size: 1.4rem; }
    .slide-subtitle-size-5 { font-size: 1.6rem; }
    
    /* Bottone mobile */
    .btn-slider-size-1 {
        font-size: 0.7rem;
        padding: 0.3rem 1.2rem;
    }
    .btn-slider-size-2 {
        font-size: 0.9rem;
        padding: 0.5rem 1.6rem;
    }
    .btn-slider-size-3 {
        font-size: 1.1rem;
        padding: 0.7rem 2rem;
    }
    .btn-slider-size-4 {
        font-size: 1.3rem;
        padding: 0.9rem 2.4rem;
    }
    .btn-slider-size-5 {
        font-size: 1.5rem;
        padding: 1.1rem 2.8rem;
    }
}

@media (max-width: 576px) {
    .slide-item {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-caption {
        max-width: 90%;
        left: 5%;
        right: 5%;
        padding: 1rem;
    }
    
    .slide-caption-preview {
        padding: 1rem;
    }
    
    /* Titolo mobile piccolo */
    .slide-title-size-1 { font-size: 1rem; }
    .slide-title-size-2 { font-size: 1.3rem; }
    .slide-title-size-3 { font-size: 1.6rem; }
    .slide-title-size-4 { font-size: 1.9rem; }
    .slide-title-size-5 { font-size: 2.2rem; }
    
    /* Sottotitolo mobile piccolo */
    .slide-subtitle-size-1 { font-size: 0.7rem; }
    .slide-subtitle-size-2 { font-size: 0.9rem; }
    .slide-subtitle-size-3 { font-size: 1.1rem; }
    .slide-subtitle-size-4 { font-size: 1.3rem; }
    .slide-subtitle-size-5 { font-size: 1.5rem; }
    
    /* Bottone mobile piccolo */
    .btn-slider-size-1,
    .btn-slider-size-2,
    .btn-slider-size-3,
    .btn-slider-size-4,
    .btn-slider-size-5 {
        width: auto;
        min-width: 180px;
        text-align: center;
    }
}