/* Override stili Divi: header, pagine evento, calendario, tipografia */

/* Header scuro: forza testo bianco */
.et_pb_section[style*="background-color: #0f172a"] h1,
.et_pb_section[style*="background-color:#0f172a"] h1,
.et_pb_section[style*="background-color: #0f172a"] h2,
.et_pb_section[style*="background-color:#0f172a"] h2,
.et_pb_section[style*="background-color: #0f172a"] h3,
.et_pb_section[style*="background-color:#0f172a"] h3,
.et_pb_section[style*="background-color: #0f172a"] p,
.et_pb_section[style*="background-color:#0f172a"] p,
.et_pb_section[style*="background-color: #0f172a"] .et_pb_text_inner,
.et_pb_section[style*="background-color:#0f172a"] .et_pb_text_inner {
	color: #ffffff !important;
}
.et_pb_section[style*="background-color: #0f172a"] h3,
.et_pb_section[style*="background-color:#0f172a"] h3 {
	color: #0093d0 !important;
}

/* Pagine custom: rimuovi padding Divi */
.lcf-evento-page,
#main-content .lcf-evento-page,
.lcf-evento-embed-page,
#main-content .lcf-evento-embed-page,
.lcf-dicono-page,
#main-content .lcf-dicono-page,
.lcf-media-gallery-page,
#main-content .lcf-media-gallery-page,
.lcf-academy-page,
#main-content .lcf-academy-page {
	padding: 0 !important;
}

/* Linea verticale decorativa Divi */
#main-content .lcf-cal-container::before {
	display: none !important;
}

/* Pagine evento: tipografia */
.page-template-default .et_pb_text_inner h3 {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 5px;
}

/* Tabelle ECM */
.et_pb_text_inner table {
	width: 100%;
	border-collapse: collapse;
}
.et_pb_text_inner table td {
	padding: 6px 12px;
	border: 1px solid #e2e8f0;
}
.et_pb_text_inner table tr td:first-child {
	background: #f8fafc;
	font-weight: 600;
	width: 40%;
}

/* Bottoni */
.et_pb_button {
	font-family: "Montserrat", sans-serif !important;
}

/* Box sidebar con bordo ciano */
.et_pb_text_inner div[style*="border-left:4px solid #0093d0"] {
	background: #f8fafc !important;
}

/* Box segreteria scuro */
.et_pb_text_inner div[style*="background:#0f172a"] {
	border-radius: 0;
}
.et_pb_text_inner div[style*="background:#0f172a"] p {
	color: #cbd5e1 !important;
}
.et_pb_text_inner div[style*="background:#0f172a"] a {
	color: #0093d0 !important;
}

/* Tag tipo evento */
.et_pb_text_inner span[style*="background:#0093d0"],
.et_pb_text_inner span[style*="background:#64748b"] {
	display: inline-block;
	padding: 4px 12px;
	margin: 3px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	color: #fff;
}

/* Breadcrumb e navigazione */
.et_pb_section[style*="background-color: #f8fafc"] .et_pb_text_inner a,
.et_pb_section[style*="background-color:#f8fafc"] .et_pb_text_inner a {
	text-decoration: none;
}
.et_pb_section[style*="background-color: #f1f5f9"] .et_pb_text_inner a,
.et_pb_section[style*="background-color:#f1f5f9"] .et_pb_text_inner a {
	text-decoration: none;
	color: #0093d0;
}

/* Immagine locandina sidebar */
.et_pb_column_1_3 .et_pb_image {
	box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* Header titolo pagine interne */
.et_pb_fullwidth_header,
.et_pb_fullwidth_header h1 {
	color: #ffffff !important;
}

/* Calendario eventi: link e headings */
body.lcf-page-calendario .et_pb_text_inner a {
	display: inline-block;
	text-decoration: none;
}
body.lcf-page-calendario .et_pb_text_inner h3 {
	margin: 0;
}
