@font-face {
    font-family: 'Card-Font';
    src: url("../fonts/DINCond-Bold.otf");
}
.btn:focus{
    box-shadow: unset;
}

.inner-eventi.events-card{
    max-width: 60%;
}
.card {
    perspective: 1000px;
    height: 545px;
    position: relative;
    background-color: transparent;
}
.scroll-content, .card h1, .card h2, .scroll-content *, .curriculum *{
    font-family: 'Card-Font',serif !important;
}

.card h1{
    color: black;
    font-size: 2.35rem;
    font-weight: 700;
    margin-bottom: 0;
    text-align: left;
    line-height: 30px
}
.card h2{
    display: block;
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 0.25rem;
    background: black;
    color: white;
}

.card p{
    font-size: 20px;
    line-height: 20px;
    color: black;
    text-align: left;
}
.icon-category{
    padding-right: 0;
    text-align: right;
}
.card img:not(.locandina-img, .icon-category){
    width: 100%;

}

.card.event .scarica-locandina{
    font-size: 1rem;
}
.card img:not(.icon-category img){
    object-fit: contain;
    max-width: 100%;
}
/* Stile specifico per la versione desktop */
.card-desktop {
    display: block;
}


/* Media query per dispositivi con larghezza massima di 768px (puoi personalizzare la dimensione) */
@media (max-width: 1400px) {
    .inner-eventi.events-card{
        max-width: unset;
    }
}

@media (max-width: 768px) {
    .card{
        height: 480px;
    }
    .card h1, .card h2,.card h3{
        width: 100%;
    }
    .card h1, .card h2{
        width: 100%;
    }
    .card h1{
        font-size: 28px;
    }
    .card h2{
        font-size: 17px;
    }
    .card .riservato-scuole2{
        font-size: 15px;
    }
    .card .btn.btn-discover {
        padding: 5px 0;
        font-size: 12px;
    }
    .card .btn-discover.btn-streaming{

        font-size: 12px;
    }
    .icon-category img{
        width: 30px !important;
    }
}

@media (max-width: 575px) {

    .inner-eventi.events-card{
        max-width: 70%;
    }
    .card-face .scroll-content {
        max-height: 400px;
    }
    .card{
        height: 550px;
    }

}
@media (max-width: 425px) {
    .card{
        height: 460px;
    }
    .card .btn.btn-discover, .card .btn-discover {
        padding: 5px 0;
        font-size: 12px;
    }
    .icon-category img{
        width: 30px !important;
    }
}
.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-mobile .card-inner {
    cursor: pointer;
}

.card-face,
.card-back {
    color: black;
    background-color: white;
    border: 1px solid white;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    font-size: 24px;
    padding:15px;
}
.card .btn-discover{
    padding: 0.375rem 0.75rem;
    text-decoration: none;
}
.btn-discover a{
    color: white;
    text-decoration: none;
  }
.card .btn, #events-filters .btn, .card .btn-discover{
    border-radius: unset;
    font-size: 15px;
}
.btn.btn-discover, .card .btn-discover{
    margin-top: auto;
    border: unset;
    background-color: var(--mainColor);
    color: white;
    text-transform: uppercase;
    font-weight: 600;
}

.btn.btn-discover:hover, .card .btn-discover:hover a{
    color: black;
}

.btn.btn-filter{
    background-color: var(--secondaryColor);
    color: black;
    font-weight: 600;
}
#events-filters{
    padding: 2rem;
    z-index: 20;
    position: sticky;
    top: -1px;
}
#events-filters .col-9{
    max-width: 70%;
}
.sticky-background {
    background-color: rgb(18 25 37 / 100%);
}
#events-filters .row div:last-child .btn{
    background-color: var(--mainColor);
    color: white;
}
#events-filters .row div:last-child .btn:hover{
    color: var(--mainColor);
    background-color: white;
}
.btn.btn-filter:hover{
    background-color: white;
    color: var(--secondaryColor);
}
.card-back {
    display: none;
    pointer-events: none;
    transform: rotateY(180deg);
}
.scroll-content{
    font-family: 'Card-Font',serif !important;
    width: 100%;
    margin-bottom: 15px;
    --sb-track-color: #232E33;
    --sb-thumb-color: #4dadad;
    --sb-size: 8px;
    overflow-y: auto;
}
.card-face .scroll-content{
    max-height: 370px;
}
.scroll-content::-webkit-scrollbar {
    width: var(--sb-size)
}

.scroll-content::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 8px;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 8px;

}

@supports not selector(::-webkit-scrollbar) {
    .scroll-content {
        scrollbar-color: var(--sb-thumb-color)
        var(--sb-track-color);
    }
}

/* Media query per dispositivi con larghezza massima di 768px (puoi personalizzare la dimensione) */
@media (min-width: 768px) {

    .card-face .scroll-content {
        max-height: 420px;
    }
}
@media (min-width: 992px) {
    .card{
        height: 520px;
    }
    .card-face .scroll-content {
        max-height: 450px;
    }
}
@media (min-width: 1200px) {
    .card{
        height: 550px;
    }
}

