﻿.variazione-container {
    border-radius: 10px;
    border: 1px solid #e7e7e7;
    width: 100%;
    height: max-content;
    background-color: #fbfbfa;
    font-size: 16px;
    padding: 20px;
    row-gap: 10px;
}
.box-star {
    display: flex;
    align-items: center;
    border: 1px solid #e7e7e7;
    padding: 10px 18px;
    width: max-content;
    border-radius: 10px;
    background-color: #373530;
    color: whitesmoke;
}
.icon-ball{
    font-size: 40px;
}


.bg-success-light {
    background-color: #d4edda; /* verde chiaro */
    color: #155724; /* verde scuro */
    border-radius: 5px;
}

.bg-danger-light {
    background-color: #f8d7da; /* rosso chiaro */
    color: #721c24; /* rosso scuro */
    border-radius: 5px;
}

.card-sportivo {
    display: flex;
    flex-wrap: wrap; /* ✅ consente agli elementi figli di andare a capo */
    align-items: center;
}

.top-box{
    margin-right: 15px;
    width: 55px;
    background-color: #373530;
    border-radius: 10px;
}
.cluster-box {
    display: flex;
    font-size: 16px;
    min-width: 260px;
    background-color: #fbfbfa;
    border: 1px solid #e7e7e7;
    font-weight: 500;
    border-radius: 10px;
    align-items: center;
    height: 50px;
}



.card-sportivo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cluster-box:hover{
    background-color: #e7e7e7;
}
.cluster-box a{
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
}
#videoCarousel {
    cursor: grab;
}

#videoCarousel.dragging {
    cursor: grabbing;
    user-select: none;
}
.cluster-header-wrapper {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.img-cluster-header {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SVG centrale */
.svg-cluster-header {
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    object-fit: contain;
    border-radius: 10px;
    z-index: 2;
}
/* MOBILE: fino a 767px */
@media (max-width: 767px) {
    .cluster-box {
        min-width: 100%; /* full width su mobile */
    }

    .cluster-header-wrapper {
        height: 340px;
    }

    .img-cluster-header,
    .svg-cluster-header {
        height: 100%;
    }

    .svg-cluster-header {
        width: 80%;
    }
}

/* TABLET: da 768px a 1024px (esempio comune) */
@media (min-width: 768px) and (max-width: 1024px) {
    .cluster-box {
        min-width: 260px; /* o quello che preferisci */
    }

    .cluster-header-wrapper {
        /* qui puoi definire altezza o altre regole specifiche tablet, oppure niente */
        height: 340px; /* esempio */
    }

    .svg-cluster-header {
        width: 80%;
    }
}
