#the-content .img-fluid {width:100%;}
.page-item.active .page-link {
    background-color: #037EC2 !important;
    border-color: #037EC2 !important;
    color: #fff !important;
}

/* Paginazione galleria (standard, senza AJAX) */
.gallery-pagination .btn-link.active {
    font-weight: bold;
    color: #037EC2 !important;
    pointer-events: none;
}

.gallery-pagination .gallery-pagination-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.gallery-pagination .btn-link {
  background-color: #f1f1f1 !important;
  color: #7f8998 !important;
  outline: none !important;
  box-shadow: none !important;
}
.gallery-pagination .btn-link:hover {
  background-color: #e0e0e0 !important;
  color: #7f8998 !important;
}

.fancybox-content img {
    max-height: 100% !important;
    max-width: 100% !important;
}
.live-mode {
    display: flex;
    align-items: center;
    font-weight: bold;
    justify-content:center;
    color:#e8be07;
    font-size:14px;
}

.live-mode i {
    display: inline-block;
    width: 10px; 
    height: 10px;
    background-color: red; 
    border-radius: 50%; 
    margin-left: 8px;
    animation: blink 1s infinite; 
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
		


/* ========================================================================================== */
/* VISUAL COMPOSER ROW & COLUMNS - Gallery Style con Flexbox
/* ========================================================================================== */

#sponsor .vc_row.wpb_row.vc_row-fluid {
	display: flex;
	justify-content: space-between;
	flex-direction: row;
	gap: 0.75rem;
	margin: 0 50px;
	flex-wrap: wrap;
}

/* 5 elementi per riga */
#sponsor .vc_row.wpb_row.vc_row-fluid .wpb_column.vc_column_container {
	flex: 0 0 calc((80% - 3rem) / 5);
	margin: 0;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Stili per le immagini dentro le colonne */
#sponsor .vc_row.wpb_row.vc_row-fluid .wpb_column.vc_column_container img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Nascondi le caption se presenti */
#sponsor .vc_row.wpb_row.vc_row-fluid .wpb_column.vc_column_container figcaption {
	display: none !important;
}

/* Responsive: layout ottimizzato per tablet */
@media (max-width: 992px) {
	#sponsor .vc_row.wpb_row.vc_row-fluid {
		gap: 1rem;
		margin: 0 30px 10px 30px;
	}
	
	#sponsor .vc_row.wpb_row.vc_row-fluid .wpb_column.vc_column_container {
		flex: 0 0 calc((100% - 2rem) / 3);
	}
}

/* Responsive: layout ottimizzato per mobile */
@media (max-width: 768px) {
	#sponsor {
		padding: 20px 15px 30px 15px;
	}
	
	/* Titoli centrati su mobile con bordo più corto */
	#sponsor h1, 
	#sponsor h2, 
	#sponsor h3, 
	#sponsor h4,
	#sponsor .vc_custom_heading,
	#sponsor .wpb_text_column {
		text-align: center !important;
		width: 100% !important;
		grid-column: 1 / -1;
	}
	
	#sponsor .titolo-sezione {
		display: block !important;
		border-bottom: none !important;
		position: relative;
		padding-bottom: 15px !important;
		margin-bottom: 10px;
	}
	
	#sponsor .titolo-sezione::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 120px;
		height: 2px;
		background-color: var(--colore-secondario, #e8be07);
	}
	
	/* Nascondi le colonne senza immagini */
	#sponsor .wpb_column.vc_column_container:not(:has(img)) {
		display: none !important;
	}
	
	/* Nascondi colonne con wpb_wrapper vuoto o senza contenuto visibile */
	#sponsor .wpb_column.vc_column_container:has(.wpb_wrapper:empty) {
		display: none !important;
	}
	
	/* Nascondi colonne che hanno solo figure senza immagine */
	#sponsor .wpb_column.vc_column_container:has(figure):not(:has(figure img)) {
		display: none !important;
	}
	
	/* Nascondi colonne con single_image ma senza img */
	#sponsor .wpb_column.vc_column_container:has(.wpb_single_image):not(:has(.wpb_single_image img)) {
		display: none !important;
	}
	
	/* Contenitore principale diventa griglia */
	#sponsor .col-12 {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		padding: 0 !important;
	}
	
	/* Nascondi le righe VC originali, mostra solo le colonne */
	#sponsor .vc_row.wpb_row.vc_row-fluid {
		display: contents !important;
	}
	
	/* Nascondi gli pseudo-elementi ::before e ::after delle righe VC */
	#sponsor .vc_row.wpb_row.vc_row-fluid::before,
	#sponsor .vc_row.wpb_row.vc_row-fluid::after,
	#sponsor .vc_row::before,
	#sponsor .vc_row::after {
		display: none !important;
		content: none !important;
	}
	
	#sponsor .row.py-3 {
		display: contents !important;
	}
	
	/* Ogni logo come card uniforme */
	#sponsor .wpb_column.vc_column_container {
		flex: none !important;
		width: 100% !important;
		max-width: 100% !important;
		background: #f5f5f5;
		border-radius: 10px;
		padding: 15px 10px;
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-height: 90px;
		box-sizing: border-box;
	}
	
	#sponsor .wpb_column.vc_column_container .vc_column-inner {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 0 !important;
		margin: 0 !important;
	}
	
	#sponsor .wpb_column.vc_column_container .wpb_wrapper {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
	}
	
	#sponsor .wpb_column.vc_column_container .wpb_single_image {
		margin-bottom: 0 !important;
	}
	
	#sponsor .wpb_column.vc_column_container figure {
		margin: 0 !important;
	}
	
	#sponsor .wpb_column.vc_column_container img {
		width: auto !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 55px !important;
		margin: 0 auto;
		object-fit: contain;
		display: block;
	}
}

/* Responsive: layout per schermi molto piccoli */
@media (max-width: 480px) {
	#sponsor {
		padding: 15px 10px 25px 10px;
	}
	
	#sponsor .col-12 {
		gap: 10px;
	}
	
	#sponsor .wpb_column.vc_column_container {
		padding: 12px 8px;
		min-height: 75px;
		border-radius: 8px;
	}
	
	#sponsor .wpb_column.vc_column_container img {
		max-height: 45px !important;
	}
}


#logo.scrolled {
  height: 40px;
}
/* ========================================================================================== */
/* SCROLL FIX - Ottimizzazioni per eliminare il tremolio durante lo scroll
/* ========================================================================================== */

/* Fix globale per scroll orizzontale e rendering */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Ottimizzazioni font rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Ottimizzazioni logo */
#logo {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* Ottimizzazioni navigazione */
#navigazione {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* Ottimizzazioni elementi fixed durante scroll */
.fixed-onscroll.fixed-top {
  transform: translateY(60px) translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.autohide {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.autohide.scrolled-down {
  transform: translateY(-100%) translateZ(0);
}

.autohide.scrolled-up {
  transform: translateY(0) translateZ(0);
}


/* ========================================================================================== */
/* WP BLOCK TABLE - STRIPES STYLE
/* ========================================================================================== */
.wp-block-table.is-style-stripes {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table.is-style-stripes table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: #f6f6f6;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th {
  border: 1px solid #ddd;
  padding: 8px 12px;
}

/* WP 6.7+ alignment classes support */
.wp-block-table td.has-text-align-center,
.wp-block-table th.has-text-align-center {
  text-align: center;
}
.wp-block-table td.has-text-align-right,
.wp-block-table th.has-text-align-right {
  text-align: right;
}
.wp-block-table td.has-text-align-left,
.wp-block-table th.has-text-align-left {
  text-align: left;
}

#the-content table p {
  margin-bottom: 0 !important;
  color: inherit !important;
}

/* WP 6.7+ inline color classes support */
#the-content .has-inline-color {
  color: inherit;
}
#the-content .has-vivid-red-color {
  color: #cf2e2e !important;
}
#the-content .has-luminous-vivid-orange-color {
  color: #ff6900 !important;
}
#the-content .has-luminous-vivid-amber-color {
  color: #fcb900 !important;
}
#the-content .has-light-green-cyan-color {
  color: #7bdcb5 !important;
}
#the-content .has-vivid-green-cyan-color {
  color: #00d084 !important;
}
#the-content .has-pale-cyan-blue-color {
  color: #8ed1fc !important;
}
#the-content .has-vivid-cyan-blue-color {
  color: #0693e3 !important;
}
#the-content .has-vivid-purple-color {
  color: #9b51e0 !important;
}
#the-content .has-white-color {
  color: #ffffff !important;
}
#the-content .has-black-color {
  color: #000000 !important;
}
#the-content .has-cyan-bluish-gray-color {
  color: #abb8c3 !important;
}
#the-content .has-pale-pink-color {
  color: #f78da7 !important;
}

.wp-block-table.is-style-stripes th {
  background-color: #037EC2;
  color: #ffffff;
  font-weight: 600;
}

.wp-block-table.is-style-stripes tbody tr:hover {
  background-color: #e8f4f8;
}



/* ========================================================================================== */
/* WP BLOCK COLUMNS
/* ========================================================================================== */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 1.5em;
  align-items: normal;
}

.wp-block-columns.has-background {
  padding: 1.25em 2.375em;
}

.wp-block-column {
  flex-grow: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
  flex-basis: 0;
  flex-grow: 1;
}

.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis"] {
  flex-grow: 0;
}

@media (max-width: 782px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-direction: column;
  }
  
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: auto !important;
  }
}

.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
  flex-basis: 0;
  flex-grow: 1;
}

.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column[style*="flex-basis"] {
  flex-grow: 0;
}

.wp-block-column > * {
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-column > * + * {
  margin-top: 1.5em;
}

.wp-block-columns.are-vertically-aligned-top {
  align-items: flex-start;
}

.wp-block-columns.are-vertically-aligned-center {
  align-items: center;
}

.wp-block-columns.are-vertically-aligned-bottom {
  align-items: flex-end;
}

.wp-block-column.is-vertically-aligned-top {
  align-self: flex-start;
}

.wp-block-column.is-vertically-aligned-center {
  align-self: center;
}

.wp-block-column.is-vertically-aligned-bottom {
  align-self: flex-end;
}


#slider {
  overflow:hidden;
  display:none;
  /* Altezza fullscreen: 100vh - header (circa 80px) - flashnews (10vh) */
  min-height: calc(100vh - 80px - 10vh);
 }

/* ========================================================================================== */
/* WP BAKERY TABS (vc_tta_tabs) - Stili completi
/* ========================================================================================== */

/* Container principale delle tabs */
.vc_tta-container {
  position: relative;
  margin-bottom: 20px;
}

.vc_tta {
  position: relative;
  display: block;
  margin-bottom: 35px;
}

/* Tabs navigation */
.vc_tta-tabs-container {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #e4e4e4;
}

.vc_tta-tabs .vc_tta-panel:not(.vc_active) {
  display: none !important;
}

/* Assicura che solo una tab alla volta sia visivamente attiva */
.vc_tta-tab:not(.vc_active) > a[aria-selected="true"] {
  background-color: #f5f5f5 !important;
  color: #666 !important;
}

.vc_tta-tab.vc_active > a[aria-selected="false"] {
  background-color: #037EC2 !important;
  color: #fff !important;
}

.vc_tta-tabs-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}


.vc_tta-tab {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
}

.vc_tta-tab > a {
  display: block;
  padding: 12px 20px !important;
  margin-right: 5px;
  margin-bottom: -2px;
  text-decoration: none;
  color: #666;
  background-color: #f5f5f5 !important;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.vc_tta-tab > a:hover {
  color: #037EC2;
  background-color: #e8f4f8 !important;
}

.vc_tta-tab.vc_active > a,
.vc_tta-tab.vc_active > a:hover,
.vc_tta-tab > a[aria-selected="true"],
.vc_tta-tab > a[aria-selected="true"]:hover {
  color: #037EC2 !important;
  background-color: #037EC2 !important;
  color: #fff !important;
  border-bottom-color: #037EC2;
  font-weight: 600;
}

/* Tabs content */
.vc_tta-panels-container {
  position: relative;
  margin-top: 20px;
}

.vc_tta-panels {
  position: relative;
}

.vc_tta-panel {
  display: none;
}

.vc_tta-panel.vc_active {
  display: block;
}

.vc_tta-panel-body {
  padding: 0;
}

/* Transizione fluida solo per le tab (non per il contenuto) */
.vc_tta-tab > a {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Stili per tabs con forma rounded */
.vc_tta-shape-rounded .vc_tta-tab > a {
  border-radius: 4px 4px 0 0;
}

.vc_tta-shape-rounded .vc_tta-tab.vc_active > a {
  border-radius: 4px 4px 0 0;
}

/* Stili per tabs con forma square */
.vc_tta-shape-square .vc_tta-tab > a {
  border-radius: 0;
}

/* Stili per tabs con forma round */
.vc_tta-shape-round .vc_tta-tab > a {
  border-radius: 20px 20px 0 0;
}

/* Tabs con stile modern */
.vc_tta-style-modern .vc_tta-tab > a {
  background-color: #f8f8f8;
  border: 1px solid #e4e4e4;
  border-bottom: none;
}

.vc_tta-style-modern .vc_tta-tab.vc_active > a,
.vc_tta-style-modern .vc_tta-tab > a[aria-selected="true"] {
  background-color: #fff;
  border-color: #037EC2;
  border-bottom-color: #fff;
  color: #037EC2;
}

/* Tabs con stile classic */
.vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom: 2px solid #e4e4e4;
}

.vc_tta-style-classic .vc_tta-tab > a {
  background-color: #f5f5f5 !important;
  border-bottom: 2px solid transparent;
  color: #666;
}

.vc_tta-style-classic .vc_tta-tab > a:hover {
  background-color: #e8f4f8 !important;
  color: #037EC2;
}

.vc_tta-style-classic .vc_tta-tab.vc_active > a,
.vc_tta-style-classic .vc_tta-tab > a[aria-selected="true"] {
  background-color: #037EC2 !important;
  color: #fff !important;
  border-bottom-color: #037EC2;
}

/* Centratura delle tabs */
.vc_tta-controls-align-center .vc_tta-tabs-container,
{
  justify-content: center;
  display: flex;
}

.vc_tta-controls-align-center .vc_tta-tabs-list {
  margin: 0 auto;
  z-index: 0 !important;
}

/* Stili per colori WP Bakery */
.vc_tta-color-sky .vc_tta-tab > a {
  background-color: #f5f5f5 !important;
  color: #666;
}

.vc_tta-color-sky .vc_tta-tab > a:hover {
  background-color: #e8f4f8 !important;
  color: #037EC2;
}

.vc_tta-color-sky .vc_tta-tab.vc_active > a,
.vc_tta-color-sky .vc_tta-tab > a[aria-selected="true"] {
  background-color: #037EC2 !important;
  color: #fff !important;
}

.vc_tta-color-blue .vc_tta-tab > a {
  background-color: #e3f2fd !important;
  color: #1976d2;
}

.vc_tta-color-blue .vc_tta-tab > a:hover {
  background-color: #bbdefb !important;
}

.vc_tta-color-blue .vc_tta-tab.vc_active > a,
.vc_tta-color-blue .vc_tta-tab > a[aria-selected="true"] {
  background-color: #1976d2 !important;
  color: #fff !important;
}

.vc_tta-color-turquoise .vc_tta-tab > a {
  background-color: #e0f7fa !important;
  color: #0097a7;
}

.vc_tta-color-turquoise .vc_tta-tab > a:hover {
  background-color: #b2ebf2 !important;
}

.vc_tta-color-turquoise .vc_tta-tab.vc_active > a,
.vc_tta-color-turquoise .vc_tta-tab > a[aria-selected="true"] {
  background-color: #0097a7 !important;
  color: #fff !important;
}

.vc_tta-color-green .vc_tta-tab > a {
  background-color: #e8f5e9 !important;
  color: #388e3c;
}

.vc_tta-color-green .vc_tta-tab > a:hover {
  background-color: #c8e6c9 !important;
}

.vc_tta-color-green .vc_tta-tab.vc_active > a,
.vc_tta-color-green .vc_tta-tab > a[aria-selected="true"] {
  background-color: #388e3c !important;
  color: #fff !important;
}

.vc_tta-color-grey .vc_tta-tab > a {
  background-color: #f5f5f5 !important;
  color: #616161;
}

.vc_tta-color-grey .vc_tta-tab > a:hover {
  background-color: #e0e0e0 !important;
}

.vc_tta-color-grey .vc_tta-tab.vc_active > a,
.vc_tta-color-grey .vc_tta-tab > a[aria-selected="true"] {
  background-color: #616161 !important;
  color: #fff !important;
}

.vc_tta-color-orange .vc_tta-tab > a {
  background-color: #fff3e0 !important;
  color: #f57c00;
}

.vc_tta-color-orange .vc_tta-tab > a:hover {
  background-color: #ffe0b2 !important;
}

.vc_tta-color-orange .vc_tta-tab.vc_active > a,
.vc_tta-color-orange .vc_tta-tab > a[aria-selected="true"] {
  background-color: #f57c00 !important;
  color: #fff !important;
}

.vc_tta-color-red .vc_tta-tab > a {
  background-color: #ffebee !important;
  color: #d32f2f;
}

.vc_tta-color-red .vc_tta-tab > a:hover {
  background-color: #ffcdd2 !important;
}

.vc_tta-color-red .vc_tta-tab.vc_active > a,
.vc_tta-color-red .vc_tta-tab > a[aria-selected="true"] {
  background-color: #d32f2f !important;
  color: #fff !important;
}

.vc_tta-color-black .vc_tta-tab > a {
  background-color: #f5f5f5 !important;
  color: #212121;
}

.vc_tta-color-black .vc_tta-tab > a:hover {
  background-color: #e0e0e0 !important;
}

.vc_tta-color-black .vc_tta-tab.vc_active > a,
.vc_tta-color-black .vc_tta-tab > a[aria-selected="true"] {
  background-color: #212121 !important;
  color: #fff !important;
}

/* Border bottom per tabs container con colori */
.vc_tta-color-sky .vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom-color: #037EC2;
}

.vc_tta-color-blue .vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom-color: #1976d2;
}

.vc_tta-color-turquoise .vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom-color: #0097a7;
}

.vc_tta-color-green .vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom-color: #388e3c;
}

.vc_tta-color-grey .vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom-color: #616161;
}

.vc_tta-color-orange .vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom-color: #f57c00;
}

.vc_tta-color-red .vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom-color: #d32f2f;
}

.vc_tta-color-black .vc_tta-style-classic .vc_tta-tabs-container {
  border-bottom-color: #212121;
}

/* Responsive tabs */
@media (max-width: 768px) {
  .vc_tta-tabs-container {
    flex-direction: column;
    border-bottom: none;
  }
  
  .vc_tta-tab {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .vc_tta-tab > a {
    margin-right: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e4e4e4;
    border-radius: 4px;
  }
  
  .vc_tta-tab.vc_active > a {
    border-bottom-color: #037EC2;
    border-bottom-width: 2px;
  }
  
  .vc_tta-panel {
    padding: 15px 0;
  }
  
  .vc_tta-controls-align-center .vc_tta-tabs-list {
    justify-content: flex-start;
  }
}

/* ========================================================================================== */
/* WP BAKERY ROW & COLUMN - Stili base
/* ========================================================================================== */

.vc_row {
  margin-bottom: 35px;
}

.vc_row:last-child {
  margin-bottom: 0;
}

.wpb_row {
  position: relative;
}

.vc_row-fluid {
  width: 100%;
}

.vc_column_container {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

.wpb_column {
  position: relative;
}

/* ========================================================================================== */
/* WP BAKERY BUTTON - Stili per bottoni
/* ========================================================================================== */

.vc_btn,
.vc_btn3 {
  display: inline-block;
  padding: 12px 24px;
  margin-bottom: 10px;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.vc_btn:hover,
.vc_btn3:hover {
  text-decoration: none;
  opacity: 0.9;
  transform: translateY(-1px);
}

.vc_btn3-style-flat {
  border: none;
}

.vc_btn3-style-outline {
  background-color: transparent;
  border: 2px solid;
}

.vc_btn3-color-blue {
  background-color: #1976d2;
  color: #fff;
}

.vc_btn3-color-blue.vc_btn3-style-outline {
  background-color: transparent;
  color: #1976d2;
  border-color: #1976d2;
}

.vc_btn3-color-sky {
  background-color: #037EC2;
  color: #fff;
}

.vc_btn3-color-sky.vc_btn3-style-outline {
  background-color: transparent;
  color: #037EC2;
  border-color: #037EC2;
}

.vc_btn3-color-green {
  background-color: #388e3c;
  color: #fff;
}

.vc_btn3-color-green.vc_btn3-style-outline {
  background-color: transparent;
  color: #388e3c;
  border-color: #388e3c;
}

/* ========================================================================================== */
/* WP BAKERY LISTS - Stili per liste stilizzate
/* ========================================================================================== */

/* Liste standard WP Bakery */
.vc_general .wpb_content_element ul,
.vc_general .wpb_content_element ol {
  margin: 15px 0;
  padding-left: 30px;
}

.vc_general .wpb_content_element ul li,
.vc_general .wpb_content_element ol li {
  margin-bottom: 10px;
  line-height: 1.6;
  list-style: none !important;
}

/* Liste con icone */
.vc_icon_element {
  margin-bottom: 20px;
}

.vc_icon_element .vc_icon_element-inner {
  display: flex;
  align-items: flex-start;
}

.vc_icon_element .vc_icon_element-icon {
  margin-right: 15px;
  flex-shrink: 0;
}

/* Liste con stile custom */
.wpb_text_column ul,
.wpb_text_column ol {
  margin: 15px 0;
  padding-left: 30px;
}

.wpb_text_column ul li,
.wpb_text_column ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.wpb_text_column ul {
  list-style-type: disc;
}

.wpb_text_column ol {
  list-style-type: decimal;
}

.wpb_text_column ul ul,
.wpb_text_column ol ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Liste nested */
.wpb_text_column ul ul {
  list-style-type: circle;
}

.wpb_text_column ol ol {
  list-style-type: lower-alpha;
}

/* Liste con icone personalizzate */
.vc_list_custom {
  list-style: none;
  padding-left: 0;
}

.vc_list_custom li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.vc_list_custom li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #037EC2;
  font-weight: bold;
  font-size: 1.2em;
}

/* Liste con checkmark */
.vc_list_checkmark li:before {
  content: "✓";
  color: #037EC2;
}

/* Liste con freccia */
.vc_list_arrow li:before {
  content: "→";
  color: #037EC2;
}

/* Liste numerate stilizzate */
.vc_list_numbered {
  counter-reset: list-counter;
  list-style: none;
  padding-left: 0;
}

.vc_list_numbered li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
}

.vc_list_numbered li:before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #037EC2;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Liste dentro colonne VC */
.vc_column_container ul,
.vc_column_container ol {
  margin: 15px 0;
  padding-left: 25px;
}

.vc_column_container ul li,
.vc_column_container ol li {
  margin-bottom: 8px !important;
  line-height: 1.6;
}

/* Liste responsive */
@media (max-width: 768px) {
  .wpb_text_column ul,
  .wpb_text_column ol,
  .vc_column_container ul,
  .vc_column_container ol {
    padding-left: 20px;
  }
  
  .vc_list_custom li,
  .vc_list_numbered li {
    padding-left: 20px;
  }
}

/* ========================================================================================== */
/* WP BAKERY ACCORDION (vc_tta-accordion) - Stili completi
/* ========================================================================================== */

/* Container principale accordion */
.vc_tta-container {
  position: relative;
  margin-bottom: 20px;
  display: block !important;
}

.vc_tta-container[data-vc-action="collapse"] {
  display: block !important;
}

.vc_tta {
  position: relative;
  display: block !important;
  margin-bottom: 35px;
}

.vc_tta-accordion {
  position: relative;
  display: block !important;
  margin-bottom: 35px;
}

/* Panels container */
.vc_tta-panels-container {
  position: relative;
  display: block !important;
}

.vc_tta-panels {
  position: relative;
  display: block !important;
}

/* Panel singolo - SEMPRE VISIBILE */
.vc_tta-panel {
  position: relative;
  margin-bottom: 15px !important;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  overflow: visible;
  transition: all 0.3s ease;
  background-color: #fff;
  display: block !important;
  visibility: visible !important;
}

.vc_tta-panel:last-child {
  margin-bottom: 0;
}

/* Panel heading (clickable) - SEMPRE VISIBILE */
.vc_tta-panel-heading {
  position: relative;
  padding: 0;
  background-color: #f5f5f5;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  margin: 0;
  display: block !important;
  visibility: visible !important;
}
.vc_tta-panel-heading a[data-vc-accordion]{
  padding: 18px 50px 18px 20px;
}

.vc_tta-panel-heading:hover {
  background-color: #e8e8e8;
}

/* Panel heading quando è attivo */
.vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #616161;
  color: #fff;
}

.vc_tta-panel.vc_active .vc_tta-panel-heading:hover {
  background-color: #525252;
}

/* Link dentro heading */
.vc_tta-panel-heading a {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  width: 100%;
  position: relative;
  padding-right: 30px;
}

.vc_tta-panel-heading a:hover {
  text-decoration: none !important;
  color: inherit !important;
}

/* Panel title */
.vc_tta-panel-title {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  transition: color 0.3s ease;
  display: block !important;
}

.vc_tta-panel-title h4 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: inherit;
}

.vc_tta-panel.vc_active .vc_tta-panel-title,
.vc_tta-panel.vc_active .vc_tta-panel-title h4 {
  color: #fff;
  font-weight: 600;
}

/* Title text */
.vc_tta-title-text {
  display: inline-block;
  color: inherit;
}

/* Panel body (contenuto) */
.vc_tta-panel-body {
  display: none !important;
  padding: 5px 20px;
  background-color: #fff;
  border-top: 1px solid #e4e4e4;
  overflow: hidden;
  line-height: 1.6;
}
.vc_tta-panel-body .wpb_wrapper {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.vc_tta-panel.vc_active .vc_tta-panel-body {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Wrapper dentro panel body - assicura che siano visibili */
.vc_tta-panel-body .wpb_wrapper,
.vc_tta-panel-body .wpb_text_column,
.vc_tta-panel-body .vc_general,
.vc_tta-panel-body .wpb_content_element {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Icona accordion (freccia/plus) - SEMPRE VISIBILE */
.vc_tta-controls-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10;
}

.vc_tta-controls-icon:before,
.vc_tta-controls-icon:after {
  content: "";
  position: absolute;
  background-color: #666;
  transition: all 0.3s ease;
}

/* Icona plus (default) */
.vc_tta-controls-icon-plus:before {
  width: 12px;
  height: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.vc_tta-controls-icon-plus:after {
  width: 2px;
  height: 12px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Quando attivo, diventa minus */
.vc_tta-panel.vc_active .vc_tta-controls-icon-plus:after {
  height: 0;
}

.vc_tta-panel.vc_active .vc_tta-controls-icon {
  transform: translateY(-50%);
}

.vc_tta-panel.vc_active .vc_tta-controls-icon:before,
.vc_tta-panel.vc_active .vc_tta-controls-icon:after {
  background-color: #fff;
}

/* Stili per forma rounded */
.vc_tta-shape-rounded .vc_tta-panel {
  border-radius: 8px;
}

.vc_tta-shape-rounded .vc_tta-panel-heading {
  border-radius: 8px 8px 0 0;
}

.vc_tta-shape-rounded .vc_tta-panel-body {
  border-radius: 0 0 8px 8px;
}

/* Stili per forma square */
.vc_tta-shape-square .vc_tta-panel {
  border-radius: 0;
}

/* Stili per forma round */
.vc_tta-shape-round .vc_tta-panel {
  border-radius: 20px;
}

.vc_tta-shape-round .vc_tta-panel-heading {
  border-radius: 20px 20px 0 0;
}

.vc_tta-shape-round .vc_tta-panel-body {
  border-radius: 0 0 20px 20px;
}

/* Stili per classic style */
.vc_tta-style-classic .vc_tta-panel {
  border: 1px solid #e4e4e4;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vc_tta-style-classic .vc_tta-panel-heading {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e4e4e4;
}

.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #616161;
  border-bottom-color: #616161;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.vc_tta-style-classic .vc_tta-panel-body {
  background-color: #fff;
  border-top: 1px solid #e4e4e4;
}

/* Stili per modern style */
.vc_tta-style-modern .vc_tta-panel {
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vc_tta-style-modern .vc_tta-panel-heading {
  background-color: #f8f8f8;
  border: none;
}

.vc_tta-style-modern .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #616161;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Stili per colori */
.vc_tta-color-grey .vc_tta-panel {
  border-color: #e0e0e0;
}

.vc_tta-color-grey .vc_tta-panel-heading {
  background-color: #f5f5f5 !important;
  color: #616161 !important;
  border-bottom: 1px solid #e0e0e0;
}

.vc_tta-color-grey .vc_tta-panel-heading:hover {
  background-color: #eeeeee !important;
}

.vc_tta-color-grey .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #616161 !important;
  color: #fff !important;
  border-bottom-color: #616161;
}

.vc_tta-color-grey .vc_tta-panel-title,
.vc_tta-color-grey .vc_tta-panel-title h4,
.vc_tta-color-grey .vc_tta-title-text {
  color: #616161 !important;
}

.vc_tta-color-grey .vc_tta-panel.vc_active .vc_tta-panel-title,
.vc_tta-color-grey .vc_tta-panel.vc_active .vc_tta-panel-title h4,
.vc_tta-color-grey .vc_tta-panel.vc_active .vc_tta-title-text {
  color: #fff !important;
}

.vc_tta-color-grey .vc_tta-controls-icon:before,
.vc_tta-color-grey .vc_tta-controls-icon:after {
  background-color: #616161 !important;
}

.vc_tta-color-grey .vc_tta-panel.vc_active .vc_tta-controls-icon:before,
.vc_tta-color-grey .vc_tta-panel.vc_active .vc_tta-controls-icon:after {
  background-color: #fff !important;
}

.vc_tta-color-sky .vc_tta-panel-heading {
  background-color: #f5f5f5;
  color: #037EC2;
}

.vc_tta-color-sky .vc_tta-panel-heading:hover {
  background-color: #e8f4f8;
}

.vc_tta-color-sky .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #037EC2;
  color: #fff;
}

.vc_tta-color-blue .vc_tta-panel-heading {
  background-color: #e3f2fd;
  color: #1976d2;
}

.vc_tta-color-blue .vc_tta-panel-heading:hover {
  background-color: #bbdefb;
}

.vc_tta-color-blue .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #1976d2;
  color: #fff;
}

.vc_tta-color-turquoise .vc_tta-panel-heading {
  background-color: #e0f7fa;
  color: #0097a7;
}

.vc_tta-color-turquoise .vc_tta-panel-heading:hover {
  background-color: #b2ebf2;
}

.vc_tta-color-turquoise .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #0097a7;
  color: #fff;
}

.vc_tta-color-green .vc_tta-panel-heading {
  background-color: #e8f5e9;
  color: #388e3c;
}

.vc_tta-color-green .vc_tta-panel-heading:hover {
  background-color: #c8e6c9;
}

.vc_tta-color-green .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #388e3c;
  color: #fff;
}

.vc_tta-color-orange .vc_tta-panel-heading {
  background-color: #fff3e0;
  color: #f57c00;
}

.vc_tta-color-orange .vc_tta-panel-heading:hover {
  background-color: #ffe0b2;
}

.vc_tta-color-orange .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #f57c00;
  color: #fff;
}

.vc_tta-color-red .vc_tta-panel-heading {
  background-color: #ffebee;
  color: #d32f2f;
}

.vc_tta-color-red .vc_tta-panel-heading:hover {
  background-color: #ffcdd2;
}

.vc_tta-color-red .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #d32f2f;
  color: #fff;
}

.vc_tta-color-black .vc_tta-panel-heading {
  background-color: #f5f5f5;
  color: #212121;
}

.vc_tta-color-black .vc_tta-panel-heading:hover {
  background-color: #e0e0e0;
}

.vc_tta-color-black .vc_tta-panel.vc_active .vc_tta-panel-heading {
  background-color: #212121;
  color: #fff;
}

/* Contenuto dentro panel body - assicura visibilità */
.vc_tta-panel-body .wpb_text_column,
.vc_tta-panel-body .wpb_wrapper,
.vc_tta-panel-body .vc_general,
.vc_tta-panel-body .wpb_content_element {
  margin: 0;
  padding: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Fix per elementi nascosti nel markup WP-Bakery */
.vc_tta-panel-body * {
  visibility: visible !important;
}

.vc_tta-panel-body .wpb_row,
.vc_tta-panel-body .vc_row,
.vc_tta-panel-body .wpb_column,
.vc_tta-panel-body .vc_column_container {
  display: block !important;
  visibility: visible !important;
}

.vc_tta-panel-body ul,
.vc_tta-panel-body ol {
  margin: 15px 0;
  padding-left: 30px;
}

.vc_tta-panel-body ul li,
.vc_tta-panel-body ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.vc_tta-panel-body p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.vc_tta-panel-body p:last-child {
  margin-bottom: 0;
}

/* Responsive accordion */
@media (max-width: 768px) {
  .vc_tta-panel-heading {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .vc_tta-panel-body {
    padding: 15px;
  }
  
  .vc_tta-controls-icon {
    right: 15px;
    width: 18px;
    height: 18px;
  }
  
  .vc_tta-controls-icon:before {
    font-size: 10px;
  }
}

/* Spacing tra panels */
.vc_tta-o-spacing-top .vc_tta-panel {
  margin-top: 10px;
}

.vc_tta-o-spacing-bottom .vc_tta-panel {
  margin-bottom: 10px;
}

/* Accordion senza bordi */
.vc_tta-o-no-borders .vc_tta-panel {
  border: none;
  border-bottom: 1px solid #e4e4e4;
}

.vc_tta-o-no-borders .vc_tta-panel:last-child {
  border-bottom: none;
}

/* Accordion con gap */
.vc_tta-o-gap .vc_tta-panel {
  margin-bottom: 15px;
}

/* Fix aggiuntivi per elementi WP-Bakery nascosti */
.vc_tta-panel-body .vc_general,
.vc_tta-panel-body .wpb_wrapper,
.vc_tta-panel-body .wpb_text_column,
.vc_tta-panel-body .wpb_content_element,
.vc_tta-panel-body .wpb_row,
.vc_tta-panel-body .vc_row,
.vc_tta-panel-body .wpb_column,
.vc_tta-panel-body .vc_column_container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

/* Fix per liste e contenuti dentro accordion */
.vc_tta-panel-body ul,
.vc_tta-panel-body ol,
.vc_tta-panel-body p,
.vc_tta-panel-body div,
.vc_tta-panel-body span,
.vc_tta-panel-body a,
.vc_tta-panel-body img {
  visibility: visible !important;
  opacity: 1 !important;
}

.vc_tta-panel-body ul,
.vc_tta-panel-body ol {
  display: block !important;
}

.vc_tta-panel-body li {
  display: list-item !important;
  visibility: visible !important;
}

.vc_tta-panel-body img {
  display: inline-block !important;
  max-width: 100%;
  height: auto;
}

.vc_tta-panel-body a {
  display: inline !important;
}

/* Assicura che il panel body sia sempre visibile quando attivo */
.vc_tta-panel.vc_active .vc_tta-panel-body,
.vc_tta-panel.vc_active .vc_tta-panel-body * {
  visibility: visible !important;
  opacity: 1 !important;
}

.vc_tta-panel.vc_active .vc_tta-panel-body li {
  display: list-item !important;
}

.vc_tta-panel.vc_active .vc_tta-panel-body img {
  display: inline-block !important;
}

.vc_tta-panel.vc_active .vc_tta-panel-body a {
  display: inline !important;
  color: #037EC2 !important;
  text-decoration: underline !important;
}

.vc_tta-panel.vc_active .vc_tta-panel-body a:hover {
  color: #025a8a !important;
}

/* Migliora leggibilità del contenuto */
.vc_tta-panel-body {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.vc_tta-panel-body p {
  margin-bottom: 15px;
  color: #333;
}

.vc_tta-panel-body a {
  color: #037EC2;
  text-decoration: underline;
}

.vc_tta-panel-body a:hover {
  color: #025a8a;
  text-decoration: none;
}

.vc_tta-panel-body ul,
.vc_tta-panel-body ol {
  margin: 15px 0 15px 25px;
  color: #333;
}

.vc_tta-panel-body ul li,
.vc_tta-panel-body ol li {
  margin-bottom: 10px;
  color: #333;
}

html body .vc_tta.vc_general .vc_tta-tab>a {
  padding: 12px 20px !important;
}

#header {
  position: relative;
  z-index: 1;
}

.sostenibilita {
  color: inherit !important; 
  text-decoration: none !important; 
  text-transform: none !important; 
  font-weight: inherit !important; 
  font-size: inherit !important;
}


/* ========================================================================================== */
/* PRINT STYLES - Ottimizzazione stampa articoli
/* ========================================================================================== */
@media print {

  /* --- Reset base per stampa --- */
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    outline: none !important;
  }

  body {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 8.5pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* --- Impostazioni pagina --- */
  @page {
    margin: 1.5cm 1.5cm;
    size: A4;
  }

  @page :first {
    margin-top: 1cm;
  }

  /* --- APPROCCIO NUCLEARE: nascondere TUTTO tranne #the-content --- */
  body > *:not(#main):not(script):not(style):not(link) {
    display: none !important;
    visibility: hidden !important;
  }

  #main > *:not(.container) {
    display: none !important;
    visibility: hidden !important;
  }

  /* Nascondere tutto ciò che viene dopo il contenuto nel DOM */
  #sponsor,
  #search-modal,
  #ajax-search,
  .modal,
  .modal-backdrop,
  form,
  button,
  input,
  select,
  textarea,
  .search-form,
  .btn {
    display: none !important;
    visibility: hidden !important;
  }

  /* Rendi visibile solo il form di contenuto ma non i form UI */
  #the-content form {
    display: block !important;
    visibility: visible !important;
  }

  /* --- Nascondere TUTTO ciò che non è contenuto testuale --- */
  #header,
  header,
  #navigazione,
  nav,
  #footer,
  footer,
  .navbar,
  .navbar-toggler,
  .mega-menu,
  .search-btn,
  #search-modal,
  #ajax-search,
  .modal,
  .modal-backdrop,
  .fascia-sponsor,
  .flusso-social,
  .iscrizione-newsletter,
  .sali-a-bordo,
  .ecosistema-fic,
  .slick-slider,
  .slick-arrow,
  .slick-dots,
  .embed-responsive,
  iframe,
  video,
  object,
  embed,
  .video-js,
  .fancybox-container,
  .fancybox-overlay,
  #custom-nextgen-gallery,
  .smaller-gallery,
  .gallery-pagination,
  .edit-link,
  .social-icons,
  .cookie-bar,
  .iubenda-cs-container,
  #wpadminbar,
  aside,
  .sidebar,
  noscript,
  script,
  .d-print-none,
  .overlay-masthead,
  .masthead,
  .bg-primario,
  .bg-scuro,
  .onde-upper,
  .onde-lower,
  .card,
  .card-body,
  .card-footer,
  .loop-link,
  .wp-video,
  .mejs-container,
  .wp-block-embed,
  .wp-block-video,
  .wp-block-audio {
    display: none !important;
    visibility: hidden !important;
  }

  /* --- Nascondere TUTTE le immagini e video dalla stampa --- */
  img,
  figure,
  picture,
  svg,
  canvas,
  .wp-post-image,
  .wp-block-image,
  .wp-block-gallery,
  .gallery,
  .ngg-gallery-thumbnail-box,
  .ngg-gallery-thumbnail,
  .ngg-galleryoverview,
  figcaption,
  .wp-caption,
  .tiled-gallery,
  #scroll-anchor {
    display: none !important;
    visibility: hidden !important;
  }

  /* --- Nascondere link stampa, modifica, torna indietro e edit_post_link --- */
  a[href="javascript:window.print()"],
  a[href="javascript:history.back()"],
  .post-edit-link,
  a.post-edit-link,
  .edit-link,
  .fa-print,
  .fa-edit,
  .fa-arrow-left,
  i.fa,
  i.fas,
  i.far,
  i.fal,
  i.fab {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Nascondere i contenitori dei pulsanti azione (stampa/modifica/indietro) */
  #the-content > .row,
  .container > .row > .col-12 > .row,
  .flusso-social-news,
  .container.py-5 > .row > div > .row {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Nascondere qualsiasi link/bottone residuo sotto il contenuto */
  a[href*="javascript"],
  a[href*="history.back"],
  a[href*="window.print"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* --- Layout a colonna singola --- */
  html, body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  /* Rimuovere padding/margin dai container principali per evitare taglio inizio */
  .container.py-5,
  .container-fluid.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .my-3, .mt-3, .mb-3, .pt-1 {
    margin-top: 0 !important;
    margin-bottom: 4pt !important;
    padding-top: 0 !important;
  }

  .container,
  .container-fluid,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .row {
    margin: 0 !important;
    display: block !important;
  }

  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
  .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
  }

  /* --- Mostrare titolo nascosto per la stampa --- */
  .d-none.d-print-block {
    display: block !important;
    visibility: visible !important;
  }

  .d-none.d-print-inline,
  .d-none.d-print-inline-block {
    display: inline !important;
    visibility: visible !important;
  }

  /* --- Testata articolo per la stampa --- */
  #the-content h1,
  .post-heading h1 {
    font-size: 13pt !important;
    font-weight: bold !important;
    margin-bottom: 12pt !important;
    margin-top: 10pt !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    border: none !important;
    padding-bottom: 6pt !important;
    padding-top: 6pt !important;
    visibility: visible !important;
    display: block !important;
  }

  /* --- Meta informazioni (data, categoria) --- */
  .meta,
  span.meta {
    font-size: 8pt !important;
    font-style: italic !important;
    margin-bottom: 6pt !important;
    display: block !important;
  }

  /* --- Contenuto articolo --- */
  #the-content {
    font-size: 8.5pt !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    display: block !important;
    visibility: visible !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #the-content p {
    orphans: 3;
    widows: 3;
    margin-bottom: 4pt !important;
    text-align: justify !important;
    display: block !important;
    visibility: visible !important;
    font-size: 8.5pt !important;
    line-height: 1.4 !important;
  }

  #the-content h2 {
    font-size: 11pt !important;
    font-weight: bold !important;
    margin-top: 8pt !important;
    margin-bottom: 3pt !important;
    page-break-after: avoid;
  }

  #the-content h3 {
    font-size: 10pt !important;
    font-weight: bold !important;
    margin-top: 6pt !important;
    margin-bottom: 3pt !important;
    page-break-after: avoid;
  }

  #the-content h4,
  #the-content h5,
  #the-content h6 {
    font-size: 9pt !important;
    font-weight: bold !important;
    margin-top: 5pt !important;
    margin-bottom: 2pt !important;
    page-break-after: avoid;
  }

  /* --- Tabelle --- */
  table {
    border-collapse: collapse !important;
    width: 100% !important;
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  th, td {
    border-bottom: 0.5pt solid #999 !important;
    padding: 2pt 4pt !important;
    font-size: 8pt !important;
  }

  thead {
    display: table-header-group;
  }

  /* --- Link: mostra solo testo, niente URL --- */
  #the-content a {
    text-decoration: underline !important;
    word-wrap: break-word !important;
  }

  /* Non stampare URL inline — troppo rumore */
  #the-content a::after {
    content: "" !important;
  }

  /* --- Blockquote --- */
  blockquote {
    border: none !important;
    margin: 6pt 0 !important;
    padding: 4pt 10pt !important;
    font-style: italic !important;
    page-break-inside: avoid;
  }

  /* --- Liste --- */
  #the-content ul,
  #the-content ol {
    margin: 8pt 0 8pt 20pt !important;
    padding: 0 !important;
  }

  #the-content li {
    margin-bottom: 2pt !important;
    line-height: 1.4 !important;
    font-size: 8.5pt !important;
  }

  /* --- Gestione interruzioni di pagina --- */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  table, blockquote, pre {
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  /* --- Pie' di pagina stampa con credit --- */
  body::after {
    content: "Stampato da canottaggio.org";
    display: block !important;
    visibility: visible !important;
    font-size: 7pt !important;
    font-style: italic !important;
    text-align: center !important;
    margin-top: 10pt !important;
    padding-top: 4pt !important;
    border: none !important;
  }

  /* --- WPBakery / Visual Composer --- */
  .vc_row,
  .wpb_column,
  .vc_column_container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  /* --- Pre / Code blocks --- */
  pre, code {
    font-size: 10pt !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    border: 1px solid #ccc !important;
    padding: 6pt !important;
    page-break-inside: avoid;
  }

}

