.text-truncate-container p {
    text-align:justify;
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-truncate-container p:not(:first-child) {
    display:none;
}
.bg-image {
    background-position:center center;
    background-repeat:no-repeat;
    background-size:cover;
    width:100%;
}
.card-img-top.bg-image {
    height:200px;
}
.card-title a {
    text-decoration: none;
    color: var(--bs-body-color);
}
.text-justify {
    text-align: justify;
}
.menu-bar.fixed {
    position: fixed;
    top: 0px;
    z-index: 9;
}
.navbar-nav .nav-link {
    text-transform: uppercase;
    font-size: 14px;
}
.panel-cookie {
    position: fixed;
    z-index: 999;
    bottom: 0px;
    width: 100%;
    background-color: var(--bs-body-bg);    
}
.box-totali {
    position:fixed;
    width:300px;
}
#Loader {
    background:rgba(255,255,255,0.5);
    z-index:99999;
    padding-top:25%;
    display:none;
}
.text-light a {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-light-rgb),var(--bs-text-opacity)) !important;
}
.btn-primary {
    box-shadow:none !important;
}
@media (max-width: 768px) {
    .box-totali {
        position: relative;
        width: auto;
    }
}
.btn:focus {
    box-shadow: none;
}
.box-materiale:hover {
    background-color: var(--bs-light);
}
.form-switch .form-check-input {
    cursor:pointer;
}
/* Tronca a 2 righe con ellissi */
.clamp-2 {
    display: -webkit-box; /* necessario per WebKit/Blink */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* numero di righe */
    line-clamp: 2; /* sintassi standard (supporto in crescita) */
    overflow: hidden; /* nasconde l’eccesso */
    text-overflow: ellipsis;
    white-space: normal; /* consenti il wrap */
    overflow-wrap: anywhere; /* evita overflow con parole lunghe/URL */
}