/* =============================
   MODAL STYLE OVERRIDES (JA Builder)
   ============================= */

.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: 0.7 !important;
}

/* =============================
   HOMEPAGE ARTICLE LIST STYLE
   ============================= */

ul.mod-articles-items.mod-articles-grid.mod-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
/* Nasconde l header nella pagina difesa personale , inserito nelle impostazioni della pagina di menù */

/* ✅ Stile per video verticali (YouTube Shorts) inseriti in blocchi orizzontali con JA Builder */
.video-vertical {
  display: flex;
  justify-content: center;
}

.video-vertical iframe {
  width: auto !important;
  height: 100% !important;
  aspect-ratio: 9 / 16 !important;
  max-height: 600px;
}