.jub-j4 .modal-header{
    padding: 0 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-shrink: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.jub-j4 .modal-title{
    font-weight: 400;
    line-height: 2.875rem;
}

.jub-j4 .modal-header .btn-close{
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

.jub-j4 .modal-header .btn-close:hover{
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

.jub-j4 .modal-header .btn-close:focus{
    outline: 0;
    -webkit-box-shadow: 0 0 0 0.25rem rgba(42, 105, 183, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(42, 105, 183, 0.25);
    opacity: 1;
}

.jub-j4 .modal-lg{
    width: 65% !important;
    height: 80% !important;
}

.jub-j4 .modal-content{
    height: 100%;
}

.jub-j4 .modal-body{
    height: 80% !important;
}

.jub-j4 .modal-backdrop.fade {
    opacity: .7 !important;
}
/* 
mostra il menù di 3° livello
*/
.jub-block .header .dropdown-menu:hover,
.jub-block .header .dropdown-toggle:hover + .dropdown-menu {
	display: block;
}
/* 
 * Questo CSS forza la visualizzazione del dropdown anche se la voce di menu principale è un "Titolo Separatore" in Joomla.
 * Normalmente, il Titolo Separatore non viene considerato un link attivo e potrebbe nascondere il sottomenu.
 * Il codice sottostante mantiene visibile il dropdown quando si passa con il mouse sulla voce principale.


.jub-block .header .dropdown:hover > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
 */
/* ========== HOMEPAGE (JA Builder - Block ID _152) ========== */

/* ========== HOMEPAGE (JA Builder) ========== */

/* 🔹 Rimuove i punti elenco */
section[data-jub-block-id="_164"] ul.mod-articles-items.mod-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* 🔹 Immagini uniformi */
section[data-jub-block-id="_164"] .mod-articles-image img {
  height: 190px !important;
  width: 100% !important;
  object-fit: cover !important;
  border-radius: 10px;
  display: block;
}

/* 🔹 Titoli coerenti */
section[data-jub-block-id="_164"] .mod-articles-title {
  min-height: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

/* 🔹 Box articolo flessibile */
section[data-jub-block-id="_164"] .mod-articles-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* 🔹 "Leggi tutto" centrato */
section[data-jub-block-id="_164"] .readmore {
  text-align: center;
  margin-top: 10px;
}

section[data-jub-block-id="_164"] .readmore a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  display: inline-block;
}


/* ========== PAGINA LAVORI (Categoria Blog) ========== */

/* 🔹 Immagine introduttiva ridimensionata */
.blog .img-intro,
.blog .item-image img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* 🔹 Box uniforme */
.blog .items-row .item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  height: 100%;
  background-color: #fff;
}

/* 🔹 Titolo articolo centrato */
.blog .item-title,
.blog .page-header h2 {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  min-height: 60px;
  margin: 10px 0;
}

/* 🔹 Testo introduttivo centrato */
.blog .item .introtext {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: auto;
}

/* 🔹 Leggi tutto centrato */
.blog .item .readmore {
  text-align: center;
  margin-top: 15px;
}

.blog .item .readmore a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
}

/* 🔹 Rimuove float da immagini */
.blog .item-image {
  float: none !important;
  padding: 0 !important;
  margin-bottom: 15px;
}

/* 🔹 Compatibilità generale */
.blog .introtext {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

.blog .readmore {
  text-align: center;
  margin-top: auto;
}