/**
 * STL Faculty — replica layout Elementor sezione Faculty (XLV Congresso).
 * Container 41e7e12 (grid) + card eaa7818 (30%, row, border, radius BR 20px).
 */

.stl-faculty {
	width: 100%;
	--stl-faculty-columns: 3;
	--stl-faculty-gap: 15px;
	--stl-faculty-content-spacing: 20px;
	--stl-faculty-image-size: 150px;
	--stl-faculty-slider-image-height: 220px;
}

.stl-faculty--empty {
	padding: 0.5em 0;
}

/* Grid container (ex 41e7e12) */
.stl-faculty .stl-faculty__grid.e-con {
	--display: flex;
	--flex-direction: row;
	--flex-wrap: wrap;
	--gap: var(--stl-faculty-gap);
	--row-gap: var(--stl-faculty-gap);
	--column-gap: var(--stl-faculty-gap);
	--width: 100%;
	--content-width: 100%;
	width: 100%;
}

/* Card container (ex eaa7818) */
.stl-faculty .stl-faculty__card.e-con {
	--display: flex;
	--flex-direction: row;
	--align-items: center;
	--flex-grow: 1;
	--content-width: 100%;
	flex: 1 1 calc((100% - (var(--stl-faculty-columns) - 1) * var(--stl-faculty-gap)) / var(--stl-faculty-columns));
	max-width: calc((100% - (var(--stl-faculty-columns) - 1) * var(--stl-faculty-gap)) / var(--stl-faculty-columns));
	min-width: 0;
	background-color: var(--e-global-color-third, #faf9f9);
	border: 1px solid rgba(23, 16, 15, 0.25);
	border-radius: 0 0 20px 0;
	box-sizing: border-box;
}

/* Immagine (ex widget image 769b689) */
.stl-faculty .stl-faculty__image-widget {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
	margin: 0;
}

.stl-faculty .stl-faculty__image-widget img {
	display: block;
	width: var(--stl-faculty-image-size);
	height: var(--stl-faculty-image-size);
	max-width: none;
	object-fit: cover;
	object-position: top center;
	border-radius: 0 0 20px 0;
}

/* Colonna contenuti (ex d258b21) */
.stl-faculty .stl-faculty__content.e-con {
	--display: flex;
	--flex-direction: column;
	--width: 100%;
	flex: 1 1 auto;
	min-width: 0;
}

.stl-faculty .stl-faculty__content > .elementor-element.elementor-widget:not(:last-child) {
	margin-bottom: var(--stl-faculty-content-spacing);
}

/* Titolo (ex 6f437d6) */
.stl-faculty .stl-faculty__content .elementor-widget-heading .elementor-heading-title {
	margin: 0;
	padding: 0;
	color: #17100f;
	font-family: Supreme, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.stl-faculty .stl-faculty__content .elementor-widget-heading .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
}

.stl-faculty .stl-faculty__content .elementor-widget-heading .elementor-heading-title a:hover {
	text-decoration: underline;
}

/* Bio (ex 8580296) */
.stl-faculty .stl-faculty__content .elementor-widget-text-editor {
	color: #8a6f67;
	font-family: var(--e-global-typography-7791fe1-font-family, "BCGHenSans"), sans-serif;
	font-size: var(--e-global-typography-7791fe1-font-size, 15px);
	font-weight: var(--e-global-typography-7791fe1-font-weight, 500);
	line-height: 1.4;
}

.stl-faculty .stl-faculty__content .elementor-widget-text-editor p {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Social (ex 89b8a19) */
.stl-faculty .stl-faculty__social-widget {
	--grid-column-gap: 5px;
	--grid-row-gap: 5px;
	--icon-size: 20px;
}

.stl-faculty .stl-faculty__social-widget .elementor-social-icons-wrapper {
	text-align: left;
}

.stl-faculty .stl-faculty__social-widget .elementor-social-icon {
	background-color: var(--e-global-color-third, #faf9f9) !important;
	--e-social-icon-icon-color: var(--e-global-color-main, #212121);
}

.stl-faculty .stl-faculty__social-widget .elementor-social-icon svg {
	fill: var(--e-global-color-main, #212121);
}

.stl-faculty .stl-faculty__social-widget .elementor-social-icon-facebook,
.stl-faculty .stl-faculty__social-widget .elementor-social-icon-linkedin,
.stl-faculty .stl-faculty__social-widget .elementor-social-icon-instagram,
.stl-faculty .stl-faculty__social-widget .elementor-social-icon-envelope {
	background-color: var(--e-global-color-third, #faf9f9) !important;
}

/* Layout "Solo nomi" — stessa griglia e card, senza immagine/ruolo/social */
.stl-faculty--layout-names-only .stl-faculty__card--names-only.e-con {
	--align-items: center;
	--justify-content: center;
	justify-content: center;
	align-items: center;
	min-height: 72px;
}

.stl-faculty--layout-names-only .stl-faculty__card--names-only .stl-faculty__content.e-con {
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.stl-faculty--layout-names-only .stl-faculty__card--names-only .stl-faculty__content > .elementor-element.elementor-widget:not(:last-child) {
	margin-bottom: 0;
}

.stl-faculty--layout-names-only .stl-faculty__card--names-only .elementor-widget-heading .elementor-heading-title {
	width: 100%;
}

/* Layout "Slider" — card verticali con immagine sopra */
.stl-faculty--layout-slider {
	position: relative;
}

.stl-faculty--layout-slider .stl-faculty__slider-wrap {
	position: relative;
	overflow: hidden;
}

.stl-faculty--layout-slider .stl-faculty__track.swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.stl-faculty--layout-slider .stl-faculty__slide.swiper-slide {
	height: auto;
	flex-shrink: 0;
	box-sizing: border-box;
}

.stl-faculty--layout-slider .stl-faculty__card--slider.e-con {
	flex-direction: column;
	align-items: stretch;
	flex: none;
	max-width: none;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.stl-faculty--layout-slider .stl-faculty__card--slider .stl-faculty__image-widget {
	width: 100%;
	flex: 0 0 auto;
}

.stl-faculty--layout-slider .stl-faculty__card--slider .stl-faculty__image-widget img {
	width: 100%;
	height: var(--stl-faculty-slider-image-height);
	border-radius: 0;
}

.stl-faculty--layout-slider .stl-faculty__card--slider .stl-faculty__content.e-con {
	flex: 1 1 auto;
	padding: 16px 20px 20px;
}

.stl-faculty--layout-slider-text .stl-faculty__card--slider-text .stl-faculty__content.e-con {
	justify-content: flex-start;
	min-height: 100%;
}

.stl-faculty--layout-slider-text .stl-faculty__card--slider-text.e-con {
	min-height: 180px;
}

.stl-faculty--layout-slider .stl-faculty__arrow {
	position: absolute;
	top: 50%;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(23, 16, 15, 0.25);
	border-radius: 50%;
	background-color: var(--e-global-color-third, #faf9f9);
	color: #17100f;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
	pointer-events: auto;
}

.stl-faculty--layout-slider .stl-faculty__arrow svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.stl-faculty--layout-slider .stl-faculty__arrow--prev {
	left: -8px;
}

.stl-faculty--layout-slider .stl-faculty__arrow--next {
	right: -8px;
}

.stl-faculty--layout-slider .stl-faculty__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.stl-faculty--layout-slider .stl-faculty__pagination {
	position: relative;
	margin-top: 20px;
	width: 100%;
	text-align: center;
}

.stl-faculty--layout-slider .stl-faculty__pagination.swiper-pagination-horizontal {
	bottom: auto;
}

.stl-faculty--layout-slider .stl-faculty__pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background-color: rgba(23, 16, 15, 0.25);
	opacity: 1;
}

.stl-faculty--layout-slider .stl-faculty__pagination .swiper-pagination-bullet-active {
	background-color: #17100f;
}

@media (max-width: 767px) {
	.stl-faculty--layout-slider .stl-faculty__arrow--prev {
		left: 0;
	}

	.stl-faculty--layout-slider .stl-faculty__arrow--next {
		right: 0;
	}
}
