/*
 * ELAS – stili frontend per il sito Elementor (tema Hello).
 * Il markup degli shortcode è stilizzato da uploads/elas-core/uncode-compat.css (regole Uncode
 * limitate a .elas-sc); qui solo correzioni e componenti nuovi.
 */

/* Le animazioni di Uncode partivano via JS: senza Uncode gli elementi resterebbero invisibili. */
.elas-sc .animate_when_almost_visible,
.elas-sc .animate_inner_when_almost_visible,
.elas-sc .animate_when_parent_almost_visible,
.elas-sc .split-word,
.elas-sc .split-word-inner {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}

/* Link di base coerenti col sito precedente. */
.elas-sc a { color: #2DBDA8; }
.elas-sc a:hover { color: #343434; }

/* Titoli dei box icona: il link dentro il titolo eredita il colore del titolo. */
.elementor-icon-box-title a { color: inherit; }

/* ------------------------------------------------------------------
 * Tipografia dei blocchi di testo (widget Testo e contenuto articoli),
 * allineata ai valori del sito Uncode misurati dal vivo.
 * ------------------------------------------------------------------ */
.elementor-widget-text-editor,
.elementor-widget-theme-post-content {
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.75;
	letter-spacing: 0.7px;
	color: #6D6D6D;
}
.elementor-widget-text-editor :is(h1, h2, h3, h4, h5, h6),
.elementor-widget-theme-post-content :is(h1, h2, h3, h4, h5, h6) {
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	color: #343434;
	line-height: 1.2;
	letter-spacing: normal;
	margin: 27px 0 0;
}
.elementor-widget-text-editor h1, .elementor-widget-theme-post-content h1 { font-size: 35px; }
.elementor-widget-text-editor h2, .elementor-widget-theme-post-content h2 { font-size: 29px; }
.elementor-widget-text-editor h3, .elementor-widget-theme-post-content h3 { font-size: 24px; }
.elementor-widget-text-editor h4, .elementor-widget-theme-post-content h4 { font-size: 20px; }
.elementor-widget-text-editor h5, .elementor-widget-theme-post-content h5 { font-size: 17px; }
.elementor-widget-text-editor h6, .elementor-widget-theme-post-content h6 { font-size: 14px; }
.elementor-widget-text-editor :is(p, ul, ol, table, figure),
.elementor-widget-theme-post-content :is(p, ul, ol, table, figure) {
	margin: 18px 0 0;
}
.elementor-widget-text-editor blockquote,
.elementor-widget-theme-post-content blockquote {
	margin: 36px 0 0;
	padding-left: 36px;
	border-left: 2px solid #2DBDA8;
}
.elementor-widget-text-editor :is(ul, ol),
.elementor-widget-theme-post-content :is(ul, ol) { padding-left: 18px; }
.elementor-widget-text-editor li,
.elementor-widget-theme-post-content li { line-height: 1.75; }
.elementor-widget-text-editor .elementor-widget-container > :first-child,
.elementor-widget-text-editor > :first-child,
.elementor-widget-theme-post-content .elementor-widget-container > :first-child,
.elementor-widget-theme-post-content > :first-child { margin-top: 0; }
.elementor-widget-text-editor :is(strong, b),
.elementor-widget-theme-post-content :is(strong, b) { font-weight: 600; }
.elementor-widget-text-editor a,
.elementor-widget-theme-post-content a { color: #2DBDA8; }
.elementor-widget-text-editor a:hover,
.elementor-widget-theme-post-content a:hover { color: #343434; }
.elementor-widget-text-editor img,
.elementor-widget-theme-post-content img { max-width: 100%; height: auto; }

@media (max-width: 767px) {
	.elementor-widget-text-editor h1, .elementor-widget-theme-post-content h1 { font-size: 26px; }
	.elementor-widget-text-editor h2, .elementor-widget-theme-post-content h2 { font-size: 23px; }
	.elementor-widget-text-editor h3, .elementor-widget-theme-post-content h3 { font-size: 20px; }
}

/* Frecce Slick: il reset dei pulsanti (Hello/Uncode) non deve mostrarne il testo. */
.elas-sc .slick-prev,
.elas-sc .slick-next {
	font-size: 0;
	line-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: transparent;
	width: 20px;
	height: 20px;
}
.elas-sc .slick-prev:hover,
.elas-sc .slick-next:hover,
.elas-sc .slick-prev:focus,
.elas-sc .slick-next:focus { background: transparent; color: transparent; }
.elas-sc .slick-dots li button { font-size: 0; line-height: 0; padding: 5px; border: 0; background: transparent; }

/* Colore dei link del sito (sostituisce il rosa predefinito di Hello). */
a { color: #2DBDA8; }
a:hover, a:focus { color: #343434; }

/* ------------------------------------------------------------------
 * Sidebar (aree widget ex Uncode) – valori misurati sul sito precedente.
 * ------------------------------------------------------------------ */
.elas-sidebar {
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 1.75;
	letter-spacing: 0.7px;
	color: #6D6D6D;
}
.elas-sidebar .widget { margin: 0 0 36px; }
.elas-sidebar .widget:last-child { margin-bottom: 0; }
.elas-sidebar .widget-title {
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.75px;
	text-transform: uppercase;
	color: #2DBDA8;
	padding: 0 0 27px;
	margin: 0 0 27px;
	border-bottom: 1px solid #2DBDA8;
}
.elas-sidebar ul { list-style: none; margin: 0; padding: 0; }
.elas-sidebar li { margin: 0 0 9px; padding: 0; }
.elas-sidebar a { color: #343434; }
.elas-sidebar a:hover { color: #2DBDA8; }
.elas-sidebar .post-date { display: block; font-size: 12px; color: #6D6D6D; }
.elas-sidebar select {
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #DDDDDD;
	border-radius: 2px;
	background: #FFFFFF;
	font-size: 14px;
	color: #343434;
}
.elas-sidebar img { max-width: 100%; height: auto; }

/* Galleria convegni (sostituisce il vc_gallery di Uncode): masonry a colonne, 4 / 3 / 2. */
.elas-event-gallery {
	column-count: 4;
	column-gap: 12px;
	margin: 27px 0;
}
.elas-event-gallery__item {
	display: block;
	break-inside: avoid;
	margin: 0 0 12px;
	overflow: hidden;
}
.elas-event-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .4s ease, opacity .4s ease;
}
.elas-event-gallery__item:hover img { transform: scale(1.04); opacity: .9; }
@media (max-width: 1024px) { .elas-event-gallery { column-count: 3; } }
@media (max-width: 767px)  { .elas-event-gallery { column-count: 2; } }

/* Resti di layout WPBakery convertiti in HTML (inc/content-compat.php). */
hr.elas-sep { border: 0; border-top: 1px solid #EAEAEA; margin: 27px 0; }
.elas-space { height: 36px; }
