.sidebar-annuncio li, .info-utili-annuncio li{color:#000}
.navbar-brand{padding-top:.5rem;padding-bottom:.5rem}
 .desc-annuncio p{margin-bottom: .5rem;}
 .iframe-video-scheda-annuncio{min-height:195px;max-height:195px }

/* SOLO DESKTOP */
@media (min-width: 992px) {

.tiny-slider .tiny-slider-inner {min-height: 615px;max-height: 815px;overflow: hidden;}
.tiny-slider .tiny-slider-inner img {height: 100%;width: 100%; object-fit: cover;}
}

.custom-thumb {display: flex;align-items: center;gap: 0.5rem;flex-wrap: nowrap;overflow-x: auto;padding: 0.25rem 0;scroll-behavior: smooth;}
.custom-thumb::-webkit-scrollbar {height: 6px;}
.custom-thumb::-webkit-scrollbar-track {background: transparent;}
.custom-thumb::-webkit-scrollbar-thumb {background: rgba(0, 0, 0, .25);border-radius: 999px;}
.custom-thumb {display: flex;align-items: center;gap: 0.5rem;flex-wrap: nowrap;overflow-x: auto;padding: 0.25rem 0;scroll-behavior: smooth;}
.custom-thumb::-webkit-scrollbar {height: 6px;}
.custom-thumb::-webkit-scrollbar-track {background: transparent;}
.custom-thumb::-webkit-scrollbar-thumb {background: rgba(0, 0, 0, .25);border-radius: 999px;}

.custom-thumb button {flex: 0 0 100px;max-width: 100px;border: 0;padding: 0;background: transparent;cursor: pointer;}
.custom-thumb picture,
.custom-thumb img {
 display: block;
  width: 100%;
  height: 75px;
  object-fit: cover;
  border-radius: 0.35rem;
}

/* Thumb attiva (tiny-slider mette .tns-nav-active sul nav) */
.custom-thumb .tns-nav-active img,
.custom-thumb .tns-nav-active picture {
  outline: 2px solid #0d6efd;   /* primary Bootstrap */
  outline-offset: 2px;
}

/* TABLET (≥ 768px): un po' più grandi */
@media (min-width: 768px) {
  .custom-thumb button {flex: 0 0 180px;max-width: 180px;
  }

  .custom-thumb picture,
  .custom-thumb img {
    height: 125px;
  }

}

/* DESKTOP (≥ 1200px): almeno 4 per riga */
@media (min-width: 1200px) {
  .custom-thumb button {
    /* ~25% della larghezza, meno il gap, così ne vedi 4 */
    flex: 0 0 calc(25% - 0.5rem);
    max-width: calc(25% - 0.5rem);
  }

  .custom-thumb picture,
  .custom-thumb img {
    height: 150px;
  }
}

/* Thumb attiva: tiny-slider mette .tns-nav-active sul button dentro .custom-thumb */
.custom-thumb button.tns-nav-active img,
.custom-thumb button.tns-nav-active picture {
  outline: 2px solid #000000;
  outline-offset: 2px;
}
@media (max-width: 1025px) {
  .offcanvas-annuncio .card-title{font-size:1.2rem }
  .box-info-btn a,.box-info-btn button{
       --bs-btn-padding-y: 0.4rem;
    --bs-btn-padding-x: 0.8rem;
    --bs-btn-font-size: 0.8125rem;
    --bs-btn-border-radius: 0.4rem;
  }

}


@media (min-width: 1024px) {
  .sidebar-sticky {position: sticky;top: 70px;}

}

@media (min-width: 1440px) {
    .iframe-video-scheda-annuncio {
        min-height: 106px;
        max-height: 155px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .iframe-video-scheda-annuncio {
        min-height: 106px;
        max-height: 106px;
    }
}
 @media (max-width: 1024px) {
 .iframe-video-scheda-annuncio{min-height:130px;max-height:135px }

}

 @media (max-width: 768px) {
  .container-thumb-slider{display:none}

.offcanvas-annuncio{width:100% !important;padding-bottom: 85px; overflow: scroll;}

}


 @media (max-width: 480px) {

 .iframe-video-scheda-annuncio{min-height: 170px;height: 230px;max-height: 230px;}
 .gallery-plus-side{display:none }

}

@media print {



  /* Disattiva overflow e funzionalità slider */
  .tiny-slider,
  .tiny-slider-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  /* Ogni slide al 33% di larghezza */
  .tiny-slider-inner > div {
    width: 33% !important;
    box-sizing: border-box;
    padding: 4px; /* opzionale per un po' di spazio */
  }

  /* Le immagini devono adattarsi alla larghezza */
  .tiny-slider-inner img {
    width: 100% !important;
    height: auto !important;
  }

  /* Nasconde frecce, dots o overlay inutili in stampa */
  .arrow-round,
  .tns-nav,
  .hover-element {
    display: none !important;
  }



  /* Azzeriamo il comportamento "row" di Bootstrap solo dentro gallery-preview */
  .gallery-preview .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;           /* niente margini negativi */
  }

  /* Tutte le colonne dentro la gallery diventano 50% */
  .gallery-preview .row > [class^="col-"],
  .gallery-preview .row > [class*=" col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 4px !important;        /* opzionale, giusto un po' di spazio */
    box-sizing: border-box;
  }

  /* Le card e le immagini riempiono il loro 50% */
  .gallery-preview .card {
    width: 100% !important;
  }

  .gallery-preview img,
  .gallery-preview picture {
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .tns-controls{display:none  }

}