/**
 * Stili personalizzati per il template nodo Notizia
 */


/* Nascondi la descrizione dell'immagine principale */
.news-main-image .field--name-field-descrizione-immagine {
  display: none;
}

article img{
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-content-description h3{
	font-size:1.3rem;
	color:#3f2183;
}

/* Galleria immagini */
.news-gallery-wrapper .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.news-gallery-wrapper .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-gallery-wrapper .gallery-image-wrapper {
  overflow: hidden;
  border-radius: 4px;
}

.news-gallery-wrapper .gallery-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.news-gallery-wrapper .gallery-item:hover img {
  transform: scale(1.05);
}

/* Immagine principale */
.news-main-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.news-image-description {
  font-size: 0.875rem;
  color: #5c6f82;
  font-style: italic;
}

/* Box allegati */
.attachment-box {
  padding: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%);
  transition: all 0.3s ease;
  color:#2a125e;
}


.attachment-box:hover {
  border-color: #2a125e;
  background-color: #dac9ff24;
}

.attachment-box a {
  display: flex;
  align-items: center;
  color: #2a125e;
  font-weight: 600;
}

.attachment-box .icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  fill: #2a125e;
}

/* Sidebar navigazione */
.news-section-sidebar .sticky-top {
  top: 20px;
}

.news-section-sidebar .link-list-wrapper h3 {
  position: relative;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #17324d;
  padding-bottom: 0.75rem;
}

.link-list-wrapper.menu-link-list h3:after,
.link-list-wrapper.menu-link-list .h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 4px;
  background-color: #995C00;
  transition: width 0.3s ease;
}

.news-section-sidebar .sidebar-nav-link {
  color: #5c6f82;
  padding: 0.5rem 0;
  border-left: 4px solid transparent;
  padding-left: 1rem;
  transition: all 0.3s ease;
}

.news-section-sidebar .sidebar-nav-link:hover {
  color: #3f2183;

  /*background-color: #F1F1F1;*/
}

.navbar.it-navscroll-wrapper .link-list-wrapper ul li a{
	        padding-top: 1em !important;
        padding-bottom: 1em !important;
		font-size:1.1rem !important;
}

/* Titoli sezioni contenuto */
.news-content-title {
font-size: 1.6rem;
    font-weight: 600;
    color: #17324d;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 4px solid #c5c7c9;
    margin-top: 4rem;
}

/* Descrizione notizia */
.news-content-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #435a70;
}

.news-content-description .mb-3{
	padding: 1.2rem;
    border: 1px solid #e5e5e5;
	border-left: 3px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%);
    transition: all 0.3s ease;
	margin-bottom: 2rem !important;
}

.news-content-description .mb-3:hover {
    border-color: #2a125e;
    background-color: #dac9ff24;
}

.news-content-description ul,
.news-content-description ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.news-content-description li {
  margin-bottom: 0.5rem;
}

/* Chip argomenti */
.chip-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0.5rem;
  background-color: #0066cc;
  color: white;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
  .news-section-sidebar {
    order: 2;
    margin-top: 2rem;
  }
  
  .news-section-content {
    order: 1;
  }
  
  .news-section-sidebar .sticky-top {
    position: relative !important;
    top: auto !important;
  }
}

/* Lightbox personalizzato (se non usi una libreria esterna) */
/* Lightbox personalizzato */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000; /* Cambiato da 9999 a 10000 per stare sopra l'header */
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  z-index: 10001;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10002; /* Assicura che la X sia sopra tutto */
  line-height: 34px;
  width: 40px;
  height: 40px;
  text-align:center;
  align-items: center;
  justify-content: center;
  background-color: #3f2183 ;
  border-radius: 50%;
  
  transition: background-color 0.3s ease;
}

.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
}



.page-node-type--notizia.page-type--page .it-page-title__wrapper.container-xxl{
	display:none;
}

.tipologia-notizia a{
	
	display: inline-flex;
    justify-content: space-evenly;
    align-items: center;
    background: #3f2183;
    border: 1px solid #3f2183;
    border-radius: 12px;
    height: 24px;
    min-width: 100px;
    padding: 0 8px 2px 8px;
    transition: all .05s;
    margin-top: 4px;
    margin-bottom: 8px;
	text-decoration:none;
	color:#FFF;
}

.tipologia-notizia .field div{
	display:inline-block;
	margin:0px 5px;
}

.tipologia-notizia a:hover{
	
	color:#FFF !important;
    background: #5a34ad;
}

.link-list-wrapper.menu-link-list h3:after, .link-list-wrapper.menu-link-list .h3:after, .link-list-wrapper.menu-link-list h4:after, .link-list-wrapper.menu-link-list .h4:after{
	
	background-color: #a78ae9 !important;
}

    .navbar.it-navscroll-wrapper .link-list-wrapper ul li a.active {
        border-left: 4px solid rgb(63 33 131) !important;
    }
	
.attachment-box a {
  display: flex;
  align-items: center;
  color: #2a125e;
  font-weight: 600;
  flex-wrap: wrap; /* Permette al testo di andare a capo se necessario */
}

.attachment-box .attachment-name {
  flex: 1; /* Prende lo spazio rimanente */
}

.attachment-box .attachment-description {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #5c6f82;
  font-weight: 400;
  line-height: 1.4;
  padding-left: 32px; /* Allineamento con il nome (icona 24px + margin 8px) */
}


.news-gallery-wrapper .gallery-image-caption {
  margin-top: 0.5rem;
  margin-bottom:  0.5rem;
  font-size: 0.875rem;
  color: #5c6f82;
  line-height: 1.4;
  text-align: center;
}

/* Frecce navigazione lightbox */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10002;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background-color 0.3s ease;
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}


/* ==========================================================================
   ICONE PER BLOCCHI COLLABORAZIONI (AgID Style)
   ========================================================================== */

/* Contenitore generale */
.news-content-description .mb-3 h3 {
    display: flex;
    align-items: center;
    color: #3f2183;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Base per tutte le icone */
.news-content-description .mb-3 h3::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    background-color: currentColor; /* L'icona prende il colore del testo */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* 1. Icona: Organizzato da (Icona People/Organizzazione) */
.news-content-description .mb-3:nth-child(1) h3::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"></path></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"></path></svg>');
}

/* 2. Icona: Sponsor (Icona Stella/Badge) */
.news-content-description .mb-3:nth-child(2) h3::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></svg>');
}

/* 3. Icona: Patrocinato da (Icona Scudo/Istituzionale) */
.news-content-description .mb-3:nth-child(3) h3::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z"></path></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z"></path></svg>');
}

/* Stile per il testo della descrizione */
.news-content-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4d4d4d;
    padding-left: 40px; /* Allineamento testo sotto l'inizio del titolo (dopo l'icona) */
    border-left: 2px solid #e6e6e6;
    margin-left: 13px; /* Posiziona la linea sotto l'icona */
}

.font-monospace{
	color:#000;
	font-weight: 600 !important;
}

.news-section-content .mt-5{
	background-color: #ffffff;
    border-left: 4px solid #3f2183;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 1px solid #e6e9f2;
    border-right: 1px solid #e6e9f2;
    border-bottom: 1px solid #e6e9f2;
	padding:1rem 1rem 0.5rem 1.5rem;
	margin-top:6rem !important;
}
.news-section-content .mt-5:hover{
	transform: translateY(-8px);
}


.mt-5.px-2.row .d-flex.align-items-center.gap-2 img{
	box-shadow: 0 0px 0px rgba(0, 0, 0, 0.08);
}