/* Container principale dello slider */
.slider-container {
    width: 100%;
    padding: 1rem 0;
    background-color: transparent;
}

.swiper {
    width: 100%;
    padding-bottom: 2rem;
}

/* Mostra 3 slide affiancate invece di 4 */
.swiper-wrapper {
    display: flex;
    justify-content: center;
}

.swiper-slide {
    flex-shrink: 0;
    height: auto;
    transition: transform 0.3s ease;
    width: calc(33.33% - 10px); /* 3 slide affiancate con spazio tra di loro */
}

.slide-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.25);
    background-color: #fff;
    height: 100%;
    cursor: pointer; /* Cambia il cursore per indicare che è cliccabile */
    transition: transform 0.3s ease;
}

/* Effetto hover sulla card */
.slide-card:hover {
    transform: scale(1.03);
}

.slide-card img {
    width: 100%;
    height: auto;
    object-fit: contain; /* L'immagine non viene tagliata */
    display: block;
    max-height: 300px; /* Aumentata l'altezza massima */
    min-height: 250px; /* Altezza minima per garantire una dimensione adeguata */
}

/* Cerchio di progresso autoplay */
.autoplay-progress {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #df005e;
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 2px;
    stroke: #df005e;
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}

.autoplay-progress span {
    font-size: 10px;
}

/* Personalizzazione della paginazione */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: rgba(31, 41, 55, 0.5);
}

.swiper-pagination-bullet-active {
    background-color: #df005e;
}

/* Modal per lo zoom dell'immagine */
.img-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.img-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Animazione di zoom */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content {
    animation: zoomIn 0.3s ease;
}

/* Media query per responsività */
@media (max-width: 992px) {
    .swiper-slide {
        width: calc(50% - 15px) !important; /* 2 slide su tablet */
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 85% !important; /* 1 slide completa su mobile */
    }
}
.swiper-wrapper .swiper-slide {
    opacity: 1 !important;
    visibility: visible !important;
}
.container-fluid .slider-container .swiper .swiper-wrapper .swiper-slide {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Stile per immagini zoomabili */
.zoomable-img {
    /*width: 100%;*/
    /*display: block;*/
    cursor: none; /* Nascondiamo il cursore predefinito */
}

/* Cursore personalizzato */
.custom-cursor {
    position: fixed; /* Fixed invece di absolute per evitare problemi di posizionamento */
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    display: none;
}

@media (max-width: 768px) {
    .swiper-wrapper {
        display: flex !important;
        justify-content: flex-start !important; /* Cambiato da center a flex-start */
    }

    .swiper-slide {
        width: 85% !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    /* Nascondi eventuali slide con opacità 0 */
    .swiper-slide-duplicate {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
.main-slider-container {
    /*background: #ffffff;*/
    /*background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(223, 0, 94, 0.15) 50%, rgba(255, 255, 255, 1) 100%);*/

    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(255, 255, 255, 1) 100%);
}

/* CSS da aggiungere per la CTA potenziata */

/* Scale hover effect per il bottone */
.scale-hover {
    transition: all 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* Shadow per il bottone */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* Button extra large */
.btn-xxl {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

/* Assicurati che il background parallax funzioni */
#cta-packages.bg-colored {
    background-color: #df005e !important;
}

/* Responsive per elementi decorativi */
@media (max-width: 768px) {
    #cta-packages .row div[class*="col-md-4"] {
        margin-bottom: 20px;
    }

    #cta-packages .row div[class*="col-md-4"]:last-child {
        margin-bottom: 0;
    }
}

/* Glassmorphism Cards Styles */
.glassmorphism-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.glassmorphism-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(223, 0, 94, 0.3);
}

.glassmorphism-card .card-header {
    padding: 25px 25px 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.glassmorphism-card .card-body {
    padding: 25px;
    flex: 1;
}

.glassmorphism-card .card-footer {
    padding: 20px 25px 25px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(223, 0, 94, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(223, 0, 94, 0.2);
}

.preview-content {
    text-align: center;
}

.preview-image {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.preview-image:hover .preview-img {
    transform: scale(1.05);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #df005e;
    font-family: 'Barlow Condensed', sans-serif;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-glassmorphism {
    background: linear-gradient(135deg, rgba(223, 0, 94, 0.8), rgba(223, 0, 94, 0.6));
    border: 1px solid rgba(223, 0, 94, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.btn-glassmorphism:hover {
    background: linear-gradient(135deg, rgba(223, 0, 94, 1), rgba(223, 0, 94, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(223, 0, 94, 0.3);
    color: white;
    text-decoration: none;
}

/* Clickable Card Styles */
.clickable-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.clickable-card:hover {
    text-decoration: none;
    color: inherit;
}

.clickable-card:hover .glassmorphism-card {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: rgba(223, 0, 94, 0.4);
}

.card-cta {
    background: linear-gradient(135deg, rgba(223, 0, 94, 0.1), rgba(223, 0, 94, 0.05));
    border: 1px solid rgba(223, 0, 94, 0.2);
    color: #df005e;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.clickable-card:hover .card-cta {
    background: linear-gradient(135deg, rgba(223, 0, 94, 0.2), rgba(223, 0, 94, 0.1));
    border-color: rgba(223, 0, 94, 0.3);
    transform: translateY(-2px);
}

/* Responsive adjustments for glassmorphism cards */
@media (max-width: 768px) {
    .glassmorphism-card .card-header,
    .glassmorphism-card .card-body,
    .glassmorphism-card .card-footer {
        padding: 20px;
    }

    .stats-row {
        flex-direction: column;
        gap: 10px;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .stat-number {
        font-size: 20px;
    }
}