/* Contenitore esterno che nasconde l'overflow */
#cardCarousel {
    overflow: hidden;
    position: relative;
}

.carousel-title {
    margin: 0;
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Anton', sans-serif;
}

/* Track che verrà spostato in orizzontale */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Ogni slide occupa il 100% della larghezza disponibile */
.carousel-slide {
    flex: 0 0 100%;
}

.carousel-slide-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

/* Opzionale: altezze minime per uniformare le card */
.custom-card h5 {
    min-height: 3rem;
}
.custom-card p {
    min-height: 5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #eee;
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background-color: #ccc;
}