.bloccosinistro {
  display:flex;
  flex-direction:column;
  margin-bottom:0px;
  margin-top:15px;
  padding-bottom:0px!important;
}
.bloccodestro {
  margin-top:15px;
}
.col-lg-12.bloccocentrale {
    height: 612px; /*460px;*/
}

@media (width <=992px) {
  .col-lg-12.bloccocentrale {
    /*height: auto;*/
    display: none;
}
}

/* ------------------------------------------------------------------------------------
    BACKGROUND 
   ------------------------------------------------------------------------------------ */

.site-grid {
     background-color: #668baf38;
}

.container-footer {
    margin-top: 0;
  }

/* ------------------------------------------------------------------------------------ */


.mod-custom strong
 {
    color: #fff;
}

.mod-articles-image-wrapper {
  background-color:#2e5090;
}

.bg-warning {
  color:white!important;
}

.piulettidx .mod-articles-title {
  min-height:auto;
}

.header.container-header.full-width .grid-child {
  margin-top:0px!important;
  margin-bottom:0px!important;
  padding-top:0px!important;
  padding-bottom:5px!important;
}

.mod-finder__search.input-group .btn {
  background-color:/*#102958*/ #152f4b !important;
  border:1px solid /*#102958*/ #152f4b;
}

header.header {
  display:flex;
}

.brand-logo img {
  width:250px;
  height:auto;
}

/* Applica flex al contenitore che avvolge Menu e Cerca */
header .container-nav {
    display: flex;
    flex-direction: row;    /* Li mette in riga */
    align-items: center;    /* Li allinea verticalmente al centro */
    justify-content: flex-end; /* Spinge tutto a destra (opzionale, dipende dal gusto) */
    gap: 20px;              /* Aggiunge spazio tra il menu e la ricerca */
    flex-wrap: nowrap;      /* Impedisce che vadano a capo */
}

/* Opzionale: Assicura che il menu non cerchi di occupare tutto lo spazio */
header .container-nav .navbar {
    width: auto;
    margin-bottom: 0;
}

header .grid-child {
  max-width:none!important;
  width:auto!important;
}

/* Opzionale: Mobile Fix - Se vuoi che su mobile tornino uno sotto l'altro */
@media (max-width: 991px) {
    header.header  {
        display:block;
    }
    header .container-nav {
      display:inline-block;
    }
}


.com-content-category-blog.blog h1 {
  font-size: 40px;
    margin: 10px 0px 20px 0px;
}

/* Applica Titillium Web a tutti gli elementi */
body,
body * {
  font-family: "Titillium Web", sans-serif;
}

/* Forza il peso 700 per tutti gli elementi bold */
strong,
b,
h1, h2, h3, h4, h5, h6,
.font-weight-bold,
.fw-bold {
  font-weight: 700;
  color: #053259 !important;
}

/* ------------------------------------------------------------------------------------
    GESTIONE HERO HOMEPAGE 
   ------------------------------------------------------------------------------------ */

#mod-custom118 h1,  #mod-custom118 strong {
  color:white!important;
}

#mod-custom118 h1 {
  font-size:3.5rem;
}

#mod-custom118 {/*background-size: cover;*/
  /*min-height: 900px;
  background-position: center;*/      
 /* Set a specific height */
  min-height: 900px;

  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: top;/*center;*/
  background-repeat: no-repeat;
  background-size: cover;
}

.container-banner .banner-overlay .overlay .text-thin
 {
    font-weight: bold;
}

@media only screen and (max-device-width: 1024px) {
    .mod-custom .custom .banner-overlay {
        background-attachment: scroll !important;
    }
}

@media (max-width: 600px) {
  #mod-custom118 h1 {
    font-size: 3rem;
    margin-top: -220px;
    }
}


/* ------------------------------------------------------------------------------------
    MENU - ALLINEAMENTO E STILE DROPDOWN
   ------------------------------------------------------------------------------------ */

/* Rimuove il padding sinistro del primo elemento del menu (solo desktop) */
@media (min-width: 992px) {
  .metismenu.mod-menu > .metismenu-item.level-1:first-child {
    padding-left: 0;
  }
}

/* Arrotonda e ombreggia i dropdown */
.mm-collapse {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
.metismenu.mod-menu .metismenu-item
 {
    padding: .5em .4em; /*.5em .8em; */
  }
  }


/* ------------------------------------------------------------------------------------
    CATEGORIA - ARTICOLI INFO COMPATTI E MODERNI
   ------------------------------------------------------------------------------------ */

/* Nascondi il termine "Dettagli" */
.article-info .article-info-term {
  display: none;
}

/* Layout compatto per le info articolo */
.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

/* Stile pills per ogni elemento info */
.article-info dd {
  margin: 0;
  padding: 0.25rem 0.75rem;
  background-color: #f0f0f0;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.article-info dd .icon-fw {
  font-size: 0.9em;
}

.article-info dd .icon-fw + * {
  display: contents;
}

/* ------------------------------------------------------------------------------------
    CATEGORIA - LAYOUT E EFFETTI CARD ARTICOLI
   ------------------------------------------------------------------------------------ */

/* Card base */
.com-content-category-blog__item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  position: relative;
  overflow: visible;
}

/* Effetto 3D al passaggio del mouse */
.com-content-category-blog__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Layout grid principale */
.blog-item-grid {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

/* Colonna immagine (40%) */
.blog-item-image-wrapper {
    flex: 0 0 32%;
    position: relative;
    display: flex;
    background: linear-gradient(to bottom, #eaedf091 0%, /* Inizio in alto (solido) */ 
    #7991a5 70%, /* Fine parte solida in alto */ 
    #5d82a1 calc(100% - 50px), /* Fine della sfumatura (50px prima del fondo) */ 
    #343434 100% /* Fine in basso (parte solida finale) */
                               );
  
/*background: linear-gradient(
  to bottom, 
  #eaedf091 0%, /* Inizio in alto (solido) */ 
  /*#cfd5e5 70%, /* Fine parte solida in alto */ 
  /*#c9d3e7 calc(100% - 50px), /* Fine della sfumatura (50px prima del fondo) */ 
  /*#343434 100% /* Fine in basso (parte solida finale) */
/*);*/
 
    }
/* Modifiche 12 luglio 2026 */
.blog-item-image-wrapper a {
  width:100%;
  /*width:418px;
  height:332px;*/
}

.blog-item-image-wrapper figure {
  margin: 0;
  position: relative;
  width: 100%;
  display: flex;
}
/* modifiche 12/07/2026 */
.blog-item-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  /*object-fit: contain;*/
  object-fit:cover;
  padding-bottom: 10px; /* correzione immagini tipo blog */ 
}

/* Overlay autore (vela blu) */
.blog-item-author-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2f5474 /*#2875c3;  #bf171882*/;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Colonna contenuto (70%) */
.blog-item-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 10px;
  background-color: #eceeef;/* #b7c9d8;*/
}

.blog-item-content-wrapper .page-header h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.3;
}

.blog-item-intro {
  flex: 1;
}

.blog-item-readmore-wrapper {
  display: flex;
  justify-content: flex-end;
}

/* Pills metadata */
.blog-item-meta-pills,
.mod-articles-meta-pills,
.mod-feed-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-pill,
.mod-articles-meta-pills .meta-pill,
.mod-feed-meta-pills .meta-pill {
  padding: 0.25rem 0.75rem;
  background-color: #f0f0f0;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.mod-articles-meta-pills .meta-pill a {
  color: inherit;
  text-decoration: none;
}

/* Effetto angoli animati */
.com-content-category-blog__item::after,
.mod-articles-item::after {
  --corner-size: 12px;
  --border-width: 3px;
  --full-width: calc(var(--corner-size) + var(--border-width));
  content: "";
  position: absolute;
  inset: -2px;
  margin: auto;
  top: 25%;
  bottom: 25%;
  left: 25%;
  right: 25%;
  background: transparent;
  opacity: 0;
  clip-path: polygon(
    0px var(--full-width), var(--border-width) var(--full-width), 
    var(--border-width) var(--border-width), var(--full-width) var(--border-width), 
    var(--full-width) 0px, 0px 0px, 0px 100%, 100% 100%, 100% 0px, 
    calc(100% - var(--full-width)) 0px, calc(100% - var(--full-width)) var(--border-width), 
    calc(100% - var(--border-width)) var(--border-width), 
    calc(100% - var(--border-width)) var(--full-width), 100% var(--full-width), 
    100% calc(100% - var(--full-width)), 
    calc(100% - var(--border-width)) calc(100% - var(--full-width)), 
    calc(100% - var(--border-width)) calc(100% - var(--border-width)), 
    calc(100% - var(--full-width)) calc(100% - var(--border-width)), 
    calc(100% - var(--full-width)) 100%, var(--full-width) 100%, 
    var(--full-width) calc(100% - var(--border-width)), 
    var(--border-width) calc(100% - var(--border-width)), 
    var(--border-width) calc(100% - var(--full-width)), 
    0px calc(100% - var(--full-width)), 0px var(--full-width)
  );
  transition: inset 0.3s ease-in, opacity 0.3s ease-in;
  z-index: 10;
  pointer-events: none;
}

.com-content-category-blog__item:hover::after,
.mod-articles-item:hover::after {
  inset: 0;
  top: -3px;
  bottom: -3px;
  left: -3px;
  right: -3px;
  background: linear-gradient(
    45deg, 
    #5091cd 0% 10%, 
    #7ac143 10% 50%, 
    #f44321 50% 90%, 
    #f9a541 90% 100%
  );
  opacity: 1;
  transition: inset 0.3s ease-out, opacity 0.3s ease-out;
}

/* Responsive: mobile */
@media (max-width: 768px) {
  .blog-item-grid {
    flex-direction: column;
  }
  
  .blog-item-image-wrapper {
    flex: 0 0 100%;
  }
}

/* ------------------------------------------------------------------------------------
    ARTICOLO SINGOLO - LAYOUT CUSTOM
   ------------------------------------------------------------------------------------ */



@media (width >= 992px) {
    .com-content-article.item-page .col-lg-8 {
        padding-bottom:0px!important;
      display: flex;
        flex-direction: column;
    }
}

body.com_content.view-article.layout-blog .grid-child.container-bottom-b {
  max-width:100%;
  background-color:#eee;
  margin-top:1em;
  margin-bottom:-1em;
  padding-top:1em;
  padding-bottom:1em;
}

body.com_content.view-article.layout-blog .grid-child.container-bottom-b .bottom-b.no-card {
  width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Immagine sidebar destra con bordo colorato animato */
@property --a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-border {
  to {
    --a: 360deg;
  }
}

/* Immagine sidebar destra - altezza e larghezza 100% */
.article-sidebar-image {
  width: 100%;
  height: 100%;
  position: relative;
  padding-bottom: 20px;
}

.article-sidebar-image figure {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  padding: 2px;
  background: conic-gradient(from var(--a), 
    #668baf 0% 25%, 
    #56877e 25% 50%, 
    #bf1718 50% 75%, 
    #8341f9 75% 100%
  );
  animation: rotate-border 15s infinite linear;
}

.article-sidebar-image img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  object-position: top;
  z-index: 1;
  background: #F2F2F2 /*#668baf*/ /* #26314d*/;
  object-fit: cover; /*contain;*/
}

/* Barra tags con margin top */
.article-tags-bar {
  margin-top: 40px;
}

/* Bordo colorato animato */
.article-sidebar-image figure::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 3px;
  background: 
    linear-gradient(#fff 0 0) content-box,
    conic-gradient(from var(--a), 
      #5091cd 0% 25%, 
      #7ac143 25% 50%, 
      #f44321 50% 75%, 
      #f9a541 75% 100%
    );
  filter: url(#glow-border);
  animation: rotate-border 8s infinite linear;
  content: "";
  pointer-events: none;
}

/* Sidebar sticky con indice */
.cmp-navscroll.sticky-top {
  top: 90px;
  z-index: 5 !important;
}

.cmp-navscroll {
  width: 100%;
  padding-top: 2rem;
  padding-left: 0;
}

/* Mobile: rimuovi sticky e top */
@media (max-width: 991px) {
  .cmp-navscroll.sticky-top {
    position: static !important;
    top: auto;
  }
  
  .cmp-navscroll {
    padding-top: 1rem;
  }
}

/* Accordion */
.accordion-button::after {
  display: none;
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-button .fa-chevron-down {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) .fa-chevron-down {
  transform: rotate(180deg);
}

/* Barra blu con argomenti/tags */
.article-tags-bar {
  background-color: #2e5090;
  padding: 0.75rem 0;
  width: 100%;
  border-radius: 8px;
}

.article-tags-bar .container {
  min-height: 20px;
}

.article-tags-bar .tags-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-tags-bar .tags-label {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.article-tags-bar .tags-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.article-tags-bar .tags-pills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-tags-bar .tags-pills li {
  margin: 0;
}

.article-tags-bar .tags-pills a {
  padding: 0.35rem 0.85rem;
  background-color: white;
  color: #2E5090;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.article-tags-bar .tags-pills a:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

/* Blocco data/tempo/autore/visite come pulsanti colorati */
.article-meta-info {
  /*margin-top: 1rem;*/
  margin-top:auto; 
  margin-bottom: 30px;
}

.article-meta-info .col-3 {
  padding: 0.5rem 0.5rem 0 0.5rem;
}

.article-meta-info .col-3 > small {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #666;
}

.article-meta-info .col-3 > p {
  background-color: #f5f5f5;
  padding: 0.75rem 1rem;
  margin: 0;
  border-left: 1px solid;
  border-bottom: 1px solid;
  font-size: 0.85rem;
}

/* Colori dei bordi per ogni colonna */
.article-meta-info .col-3:nth-child(1) > p {
  border-color: #5091cd;
}

.article-meta-info .col-3:nth-child(2) > p {
  border-color: #7ac143;
}

.article-meta-info .col-3:nth-child(3) > p {
  border-color: #f44321;
}

.article-meta-info .col-3:nth-child(4) > p {
  border-color: #f9a541;
}

/* Responsive mobile: 2 colonne e testo più piccolo */
@media (max-width: 991px) {
  .article-meta-info .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0.25rem;
  }
  
  .article-meta-info .col-3 > small {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
  }
  
  .article-meta-info .col-3 > p {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

.it-page-section h4#contenuto {
  display: none;
}

.it-page-section {
  padding: 2rem 0;
}

.it-page-section h4 {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.richtext-wrapper {
  line-height: 1.8;
}

.it-page-section dl dt {
  color: #666;
}

.it-page-section dl dd {
  margin-bottom: 1rem;
}

.col-lg-8 > div[data-audio] {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom:5px;
}

@media (max-width: 991px) {
  .cmp-navscroll {
    position: relative !important;
    margin-bottom: 2rem;
  }
  
  .article-tags-bar .tags-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------------------------
    STILE BLOCCO "INFORMAZIONI ARTICOLO" (Singolo Articolo)
   ------------------------------------------------------------------------------------ */

/* Stile per il titolo della sezione */
#informazioni-articolo {
  color: #2E5090;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #5091cd; /* Richiamo all'azzurro del tuo gradiente */
  display: inline-block;
}

/* Contenitore della lista (Box in stile Card) */
#informazioni-articolo + .row dl.row {
  background-color: #c9d4df; /* Modifica sfondo */ /*#f8f9fa; /* Grigio chiarissimo elegante */
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 0;
}

/* Etichette (Colonna Sinistra) */
#informazioni-articolo + .row dl.row dt {
  color: #2E5090;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center; /* Allinea verticalmente col testo a destra */
  font-size: 13px; /* Aggiustamento size */
}

/* Valori (Colonna Destra) */
#informazioni-articolo + .row dl.row dd {
  padding: 0.5rem 0.5rem; /*1rem 0.5rem;*/
  margin-bottom: 0;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Assicura che badge multipli vadano a capo bene */
  gap: 0.5rem;
  font-size: 13px; /* aggiustamento size */
}

/* Rimuove la riga inferiore dall'ultimo elemento per pulizia visiva */
#informazioni-articolo + .row dl.row dt:last-of-type,
#informazioni-articolo + .row dl.row dd:last-of-type {
  border-bottom: none;
}

/* Gestione dei link nel box (specialmente quelli molto lunghi) */
#informazioni-articolo + .row dl.row dd a {
  color: #2E5090;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word; /* Fondamentale: evita che i link lunghi escano dallo schermo */
  transition: color 0.3s ease;
}

#informazioni-articolo + .row dl.row dd a:hover {
  color: #f44321; /* Arancione del tuo tema al passaggio del mouse */
}

/* Responsive: aggiustamento bordi e padding su smartphone */
@media (max-width: 576px) {
  #informazioni-articolo + .row dl.row {
    padding: 1rem 0.5rem;
  }
  
  /* Su mobile dt e dd si impilano, quindi tolgo il bordo dal dt e lo lascio solo sotto al dd */
  #informazioni-articolo + .row dl.row dt {
    padding-bottom: 0.25rem;
    border-bottom: none;
  }
  
  #informazioni-articolo + .row dl.row dd {
    padding-top: 0.25rem;
  }
}

/* ------------------------------------------------------------------------------------
    MODULO ARTICOLI - LAYOUT CARD
   ------------------------------------------------------------------------------------ */

/* Grid responsive */
.mod-articles-grid {
  display: grid;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

div#mod-custom142 h3
 {
    color: #bf1718 !important;
}

@media (min-width: 992px) {
  .mod-articles-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card base */
.mod-articles-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
}

/* Effetto 3D hover */
.mod-articles-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.mod-articles-item-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Wrapper immagine con overlay */
.mod-articles-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.mod-articles-image-wrapper figure {
  margin: 0;
}

.mod-articles-image-wrapper img {
  width: 100%;
  height: 248px;
  object-fit: cover;
  display: block;
}

.mod-articles-author-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2f5474;/* #668baf;*/ /*#2e5090;*/
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  z-index: 2;
}

/* Body della card */
.mod-articles-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  background-color: #b7c9d8;
}

/* Titolo */
.mod-articles-title {
  margin: 0;
  min-height: 28px;
  display: flex;
  align-items: flex-start;
}

.mod-articles-title a {
  text-decoration: none;
  color: #2E5090;
  transition: color 0.3s ease;
}

.mod-articles-title a:hover {
  color: #2e5090;
}

.mod-articles-introtext {
  flex: 1;
}

.mod-articles-readmore-wrapper {
  text-align: right;
  margin-top: auto;
}

.mod-articles-tags {
  margin-top: 0.5rem;
}

.mod-articles-hits {
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ------------------------------------------------------------------------------------
    MODULO FEED RSS - LAYOUT CARD SINGOLA
   ------------------------------------------------------------------------------------ */

.mod-feed-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mod-feed-item-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mod-feed-image-wrapper {
  position: relative;
  width: 100%;
}

.mod-feed-image-wrapper a {
  display: block;
}

.mod-feed-image-wrapper img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  display: block;
}

.mod-feed-body {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.mod-feed-title {
  margin: 0;
}

.mod-feed-title a {
  text-decoration: none;
  color: #2E5090;
  transition: color 0.3s ease;
}

.mod-feed-title a:hover {
  color: #2e5090;
}

.mod-feed-description {
  flex: 1;
}

.mod-feed-readmore-wrapper {
  text-align: right;
  margin-top: auto;
}

/* ------------------------------------------------------------------------------------
    BLOCCO HOME LARGO TUTTA LA PAGINA 
   ------------------------------------------------------------------------------------ */

body.itemid-101 .container-bottom-a {
  grid-column: full-start / full-end!important;
  background-color:#668ba; /*#2e5090;*/
  margin:10px 0px 40px 0px;
}

body.itemid-101 .bottom-a {
  background-color:#668ba; /*#2e5090;*/
}

/* ------------------------------------------------------------------------------------
    GRIGLIA FEATURES JOOMLA CON LOTTIE
   ------------------------------------------------------------------------------------ */

.joomla-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding: 2rem 0;
}

.feature-item {
  text-align: left; /*center;*/
  color: #fff;
}

.feature-item a {
    color: #fff !important;
}

.feature-item strong {
    color: #fff !important;
}

.feature-item lottie-player {
  margin: 0 auto 1rem;
  display: block;
}

.feature-item h3 {
  color: #fff !important;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Responsive: 2x2 su tablet e mobile */
@media (max-width: 991px) {
  .joomla-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
}

@media (max-width: 576px) {
  .joomla-features-grid {
    gap: 2.5rem 1.5rem;
  }
  
  .feature-item h3 {
    font-size: 1.25rem;
  }
}

/* ------------------------------------------------------------------------------------
    PULSANTI CON BORDO COLORATO ANIMATO AL HOVER
   ------------------------------------------------------------------------------------ */

.btn,
.btn-primary,
a.btn {
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  z-index: 1;
  padding:10px;
  margin:10px;
  isolation: isolate;
  background-color: /*#4c7870*/ #4b6f67 !important; 
  border: 1px solid #fff !important;
  color: #fff !important;
  
}
.btn:not(.btn-primary):not(.btn-tertiary),
.btn-secondary,
a.btn:not(.btn-primary):not(.btn-tertiary) {
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  z-index: 1;
  padding:10px;
  margin:10px;
  isolation: isolate;
  background-color: /*#053259*/ #2f5474 !important; 
  border: 1px solid #fff !important;
  color:#fff;
}

.btn:not(.btn-primary):not(.btn-secondary),
.btn-tertiary,
a.btn:not(.btn-primary):not(.btn-secondary) {
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  z-index: 1;
  padding:10px;
  margin:10px;
  isolation: isolate;
  background-color: #7c2632 /*#8C141E*/ !important;
  border: 1px solid #fff !important;
  color: #fff;
}


.btn::before,
.btn-primary::before,
.btn-secondary::before,
a.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  background: 
    linear-gradient(var(--bs-btn-bg, #fff) 0 0) content-box,
    conic-gradient(from var(--a), 
      #5091cd 0% 25%, 
      #7ac143 25% 50%, 
      #f44321 50% 75%, 
      #f9a541 75% 100%
    );
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
a.btn:hover::before {
  opacity: 1;
  animation: rotate-border 8s infinite linear;
}

/* Cambia colore del testo al hover per pulsanti con testo bianco */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
a.btn:hover {
  color: #2e5090 !important;
}

/* Assicura che il testo del button rimanga sopra */
.btn > *,
.btn-primary > *,
.btn-secondary > *,
a.btn > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------------------------
    PROPRIETÀ GLOBALI PER ANIMAZIONI BORDI
   ------------------------------------------------------------------------------------ */

@property --a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-border {
  to {
    --a: 360deg;
  }
}

/* Applica la variabile su tutti gli elementi che potrebbero averne bisogno */
:root {
  --a: 0deg;
}

/* ------------------------------------------------------------------------------------
    RISULTATI DI RICERCA - STILE COERENTE CON IL SITO
   ------------------------------------------------------------------------------------ */

/* Contenitore della griglia dei risultati (opzionale, per dare spazio tra gli item) */
#search-result-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Spazio tra un risultato e l'altro */
}

/* Stile della singola card di risultato */
#search-result-list .result__item {
  background: white;
  padding: 1.5rem; /* Aumentato da 5px per dare respiro al contenuto */
  border-radius: 8px; /* Arrotondamento coerente con i menu e le altre card */
  border-left: 5px solid #2E5090; /* Un tocco di colore laterale per identificare il blocco */
  
  /* Gestione layout */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: visible;
  
  /* Effetti di base */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#search-result-list .result__item time {
  font-weight:bold;
}

/* Effetto Hover: la card si alza e l'ombra aumenta (stile "Lift") */
#search-result-list .result__item:hover {
  transform: translateY(-5px); /* Leggermente meno marcato delle card blog (-8px) per le liste */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-left-color: #2e5090; /* Il bordo diventa blu scuro al passaggio */
}

/* Stile del titolo del risultato */
#search-result-list .result__item .result-title, 
#search-result-list .result__item h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

#search-result-list .result__item a {
  text-decoration: none;
  color: #2E5090; /* Blu primario del sito */
  font-weight: 700; /* Titillium Web Bold come da tuo css */
  transition: color 0.3s ease;
}

#search-result-list .result__item a:hover {
  color: #2e5090; /* Blu scuro al passaggio */
}

/* Stile del testo descrittivo (introtext) */
#search-result-list .result__item .result-text,
#search-result-list .result__item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Opzionale: Se il sistema di ricerca evidenzia le parole trovate */
#search-result-list .result__item span.highlight {
  background-color: #fff3cd;
  color: #856404;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

/* CAMPO DI RICERCA */
.awesomplete > input {
        margin-top: 10px;
  }

/* ------------------------------------------------------------------------------------
    TASSONOMIA RISULTATI RICERCA - PILLS PULITE
   ------------------------------------------------------------------------------------ */

/* Rimuove la barra verticale "|" preesistente tra gli elementi */
.result__taxonomy-item + .result__taxonomy-item::before {
    content: none !important;
    padding: 0 !important;
}

/* Contenitore della lista */
ul.result__taxonomy {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Stile pillola */
ul.result__taxonomy .result__taxonomy-item {
    background-color: #f0f0f0;
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #444;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.2;
    /* Assicuriamoci che non ci siano margini strani */
    margin: 0; 
}

/* Stile dell'etichetta (es. "Tipo:") */
ul.result__taxonomy .result__taxonomy-item span {
    font-weight: 700;
    color: #2E5090;
    margin-right: 0.35rem;
}

/* ------------------------------------------------------------------------------------
    MODULO FILTRO (JOOMLINE) 
   ------------------------------------------------------------------------------------ */

/* --- Spaziatura tra le sezioni --- */
.jlmf-section {
    margin-bottom: 1.5rem;
}

/* --- Etichette (Label) --- */
.jlmf-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cassiopeia-color-primary, #10166a); /* Usa il colore del template */
    font-size: 0.95rem;
}

/* --- Select Dropdown (Stile Bootstrap 5) --- */
.jlmf-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none; /* Rimuove la freccia di default del browser */
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.jlmf-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- Checkbox e Lista --- */
/* Sistema il layout dei div annidati per le checkbox */
.jlmf-list-2 > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jlmf-list-2 > div > div {
    display: flex;
    align-items: center;
    width: 48%; /* Dispone le checkbox su due colonne */
    margin-bottom: 0.5rem;
    min-width: 120px;
}

/* Stile Checkbox Input */
.jlmf-checkbox {
    appearance: none;
    background-color: #fff;
    margin: 0;
    margin-right: 0.5rem;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #767676;
    border-radius: 0.15em;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.jlmf-checkbox::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.jlmf-checkbox:checked {
    background-color: var(--cassiopeia-color-primary, #0d6efd);
    border-color: var(--cassiopeia-color-primary, #0d6efd);
}

.jlmf-checkbox:checked::before {
    transform: scale(1);
}

/* Stile Label Checkbox */
.jlmf-sublabel {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #495057;
  padding-left:5px;
}

/* --- Pulsanti --- */

/* Bottone Apply (Primario) */
.jlmf-button {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: var(--cassiopeia-color-primary, #0d6efd);
    border: 1px solid var(--cassiopeia-color-primary, #0d6efd);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: all .15s ease-in-out;
    width: 100%; /* Bottone a tutta larghezza */
    margin-top: 0.5rem;
}

.jlmf-button:hover {
    filter: brightness(85%); /* Scurisce leggermente all'hover */
}

/* Bottone Clear (Link secondario) */
.jlmf-link {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.jlmf-link:hover {
    color: #dc3545; /* Diventa rosso al passaggio del mouse */
    text-decoration: none;
}

/* Correzione pulsante Copia di Prism */
div.code-toolbar > .toolbar {
    opacity: 1 !important; /* Lo rende sempre visibile o gestisci l'hover */
}

div.code-toolbar > .toolbar .toolbar-item button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s;
}

div.code-toolbar > .toolbar .toolbar-item button:hover {
    background: #e0e0e0;
    color: #000;
}
/*  ------------------------------------------------------------------ */
/* CONTENUTO IMMAGINE */ 
/* ------------------------------------------------------------------- */
/* #contenuto-start p img {
  border:1px solid #b7b7b7;
}
*/
/* ------------------------------------------------------------------- */

/* --------------------------------------------------------------------------------------
   GESTIONE FONT AWESOME
     ------------------------------------------------------------------------------------ */
   .fa-church, .fa-building-user, .fa-address-card, .fa-people-roof, .fa-person-chalkboard, .fa-user-shield, .fa-share-nodes {
   /* --fa: ""; */
    font-size: 50px;
    padding-bottom: 20px;
}

/* ------------------------------------------------------------------------------------
    GESTIONE BORDI IMMAGINE
   ------------------------------------------------------------------------------------ */
figure.left.item-image, .article-sidebar-image img {
    border-radius: 8px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    height: 100%; 
    object-position: center; 
}

/* ------------------------------------------------------------------------------------
    EVIDENZA DATE EVENTI (Categoria 19)
   ------------------------------------------------------------------------------------ */

.event-info-wrapper {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.meta-pill.event-pill {
  background-color: #2E5090; /* Colore di impatto (arancione/rosso del tuo tema) */
  color: white;
  font-size: 0.95rem; /* Leggermente più grande delle altre info */
  padding: 0.4rem 1rem;
  border-radius: 6px; /* Meno arrotondato per sembrare più un'etichetta importante */
  display: inline-block;
}

.meta-pill.event-pill strong {
  color: white; /* Assicura che la parola "Data:" sia bianca */
  margin-right: 5px;
}

@media (max-width: 600px) {
    header.header .grid-child.container-nav  {
        display:flex;
    }
     div.navbar-brand {
       margin:0 auto;
     }
  .bloccosinistro {
    padding-bottom:10px!important;
  }
  .bloccodestro {
    padding:0px!important;
  }
}

@media (width >= 576px) {
    .container-sm, .container {
        max-width: 735px;
    }
}

@media (width >= 768px) {
    .container-md, .container-sm, .container {
        max-width: 960px;
    }
}

@media (width >= 992px) {
    .container-lg, .container-md, .container-sm, .container {
        max-width: 1165px;
    }
}

@media (width >= 1200px) {
    .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1320px;
    }
}

@media (max-width: 768px)  {
   .col-lg-3 .bloccodestro {
       display: none;
    }
}

/* ------------------------------------------------------
  MODIFICHE FONT SIZE
  --------------------------------------------------------*/
code {
    font-size: .875em;
    color: var(--bs-code-color);
    word-wrap: break-word;
  }

/* ------------------------------------------------------
  GESTIONE FOOTER
  --------------------------------------------------------*/
  .container-footer {
	  padding: 0 10px 0 0;
	  display: grid;
	  overflow-wrap: break-word;
      word-break: break-word;
  }
/* ------------------------------------------------------
  GESTIONE MENU MOBILE
  --------------------------------------------------------*/

/*@media (max-width: 991px) {*/
button.navbar-toggler.navbar-toggler-right {
    color: #56877e;
    border: 1px solid #56877e;
  }
/*}*/


.category-desc.clearfix img {
    width: stretch;
    margin-bottom:20px;
}

/* ------------------------------------------------------
  GESTIONE ORARI MESSE
  --------------------------------------------------------*/
.messe-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0px 25px 40px;
}

.messa {
    text-align: left;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}
.mod-messe-prossima  {
      background-color: #cae0f5;
}

/* Fine */

/* ------------------------------------------------------
  GESTIONE CALENDARIO EVENTI iCagenda
  --------------------------------------------------------*/
.ic-details-cat {
    color: #bf1718b0 !important;
    font-weight: 800 !important;
  }

/* ----------------------------------------------------
CALENDARIO DELL'AVVENTO
  -----------------------------------------------------*/
.advent-grid {
    display: grid;
    grid-template-columns: repeat(6,minmax(100px,1fr));
    gap: .5rem;
    figure {
        margin: 0;
    }
    .advent-link {
        padding: 0;
        text-decoration: none;
        color: currentColor;
        width: 100%;
        height: 100%;
    }
    .mod-articles-advent-item-content {
        aspect-ratio: 1;
        transition: all .2s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.16);
        &:hover {
            transform: scale(1.025);
        }
    }
    span {
        font-size: 4rem;
        color: #fff;
    }
}
@media (max-width: 768px) {
    .advent-grid {
        grid-template-columns: repeat(3,minmax(80px,1fr));
    }
}

.advent-bg {
    padding: .5rem;
    background-image: url(../../../../../images/avvento/FrancescoGreccio_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    .mod-articles-advent-item-content {
        box-shadow: 3px 3px 3px rgba(255, 255, 255, 0.5);
        border: 1px solid #d5d5d5;
    }
}


/* RUBRICA */
ul.fields-container {
    list-style-type: none;
    background-color: darkseagreen;
	}

/* MODULO DI RICERCA*/
@media (max-width: 1450px) {
.mod-finder__search.input-group {
  display:none;
 }
}

  .metismenu.mod-menu .metismenu-item {
  flex-wrap: nowrap;
}