/* INFAP mega + main nav: prevent wrap misalignment, show compact course lists */

/* Top-level nav: keep labels on one line after Area lavoro was restored */
.thim-ekits-menu__nav,
#menu-main-menu {
	flex-wrap: nowrap !important;
	white-space: nowrap;
}

.thim-ekits-menu__nav > .menu-item,
#menu-main-menu > .menu-item {
	white-space: nowrap;
	flex-shrink: 1;
}

.thim-ekits-menu__nav > .menu-item > .thim-ekits-menu__nav-link,
#menu-main-menu > .menu-item > a {
	white-space: nowrap !important;
	align-items: center;
	font-size: 12px !important;
	letter-spacing: 0.01em;
	padding-left: 8px !important;
	padding-right: 8px !important;
	line-height: 1.2 !important;
}

.thim-ekits-menu__nav > .menu-item > .thim-ekits-menu__nav-link .icon,
.thim-ekits-menu__nav > .menu-item > .thim-ekits-menu__icon {
	margin-left: 2px;
}

/* Mega panel headings: reserve 2 lines so underlines stay aligned */
.thim-ekits-menu__content .elementor-widget-heading {
	min-height: 42px;
	display: flex;
	align-items: flex-end;
}

.thim-ekits-menu__content .elementor-widget-heading .elementor-heading-title,
.thim-ekits-megamenu .elementor-widget-heading .elementor-heading-title {
	min-height: 2.5em;
	line-height: 1.25 !important;
	display: flex;
	align-items: flex-end;
	font-size: 13px !important;
}

.thim-ekits-menu__content .elementor-widget-heading .elementor-heading-title a,
.thim-ekits-megamenu .elementor-widget-heading .elementor-heading-title a {
	display: inline-block;
}

/*
 * Compact course list inside mega (hide cards chrome).
 * Root cause of uneven gaps: Elementor columns stretch to the tallest
 * column; Thim course grid then expands row heights to fill that height
 * (few courses → large gaps). Keep lists content-sized from the top.
 */
.thim-ekits-menu__content .thim-ekits-course .course-price,
.thim-ekits-menu__content .thim-ekits-course .price,
.thim-ekits-menu__content .learn-press-course-results,
.thim-ekits-menu__content .course-readmore,
.thim-ekits-menu__content .course-thumbnail,
.thim-ekits-megamenu .thim-ekits-course .course-price,
.thim-ekits-megamenu .thim-ekits-course .price,
.thim-ekits-megamenu .learn-press-course-results,
.thim-ekits-megamenu .course-readmore,
.thim-ekits-megamenu .course-thumbnail {
	display: none !important;
}

.thim-ekits-menu__content .e-con.e-flex,
.thim-ekits-megamenu .e-con.e-flex {
	align-items: flex-start !important;
}

.thim-ekits-menu__content .thim-ekits-course,
.thim-ekits-megamenu .thim-ekits-course,
.thim-ekits-menu__content .elementor-widget-thim-ekits-course,
.thim-ekits-megamenu .elementor-widget-thim-ekits-course {
	height: auto !important;
	min-height: 0 !important;
	align-self: flex-start !important;
	flex-grow: 0 !important;
}

.thim-ekits-menu__content .thim-ekits-course__inner,
.thim-ekits-megamenu .thim-ekits-course__inner {
	height: auto !important;
	min-height: 0 !important;
	align-content: start !important;
	align-items: start !important;
	grid-auto-rows: max-content !important;
}

.thim-ekits-menu__content .thim-ekits-course__item,
.thim-ekits-megamenu .thim-ekits-course__item {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	height: auto !important;
	min-height: 0 !important;
	align-self: start !important;
}

.thim-ekits-menu__content .thim-ekits-course__item > .elementor,
.thim-ekits-megamenu .thim-ekits-course__item > .elementor {
	height: auto !important;
}

.thim-ekits-menu__content .thim-ekits-course .course-title,
.thim-ekits-menu__content .thim-ekits-course h2,
.thim-ekits-menu__content .thim-ekits-course h3,
.thim-ekits-megamenu .thim-ekits-course .course-title,
.thim-ekits-megamenu .thim-ekits-course h2,
.thim-ekits-megamenu .thim-ekits-course h3 {
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	margin: 0 !important;
	text-transform: none !important;
}

.thim-ekits-menu__content .elementor-icon-list-items .elementor-icon-list-text {
	font-size: 13px;
}

/* Landing e-Campus / UniPegaso: hide Eduma page-title strip */
.page-id-31888 .top_site_main,
.page-id-31888 .top_heading_out > .top_site_main,
body.page-id-31888 .top_heading.top_heading_out,
.page-id-31889 .top_site_main,
.page-id-31889 .top_heading_out > .top_site_main,
body.page-id-31889 .top_heading.top_heading_out,
.page-id-31899 .top_site_main,
.page-id-31899 .top_heading_out > .top_site_main,
body.page-id-31899 .top_heading.top_heading_out,
.page-id-31900 .top_site_main,
.page-id-31900 .top_heading_out > .top_site_main,
body.page-id-31900 .top_heading.top_heading_out {
	min-height: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
}
.page-id-31888 .top_site_main,
.page-id-31888 .overlay-top-header,
.page-id-31888 .page-title-wrapper,
.page-id-31889 .top_site_main,
.page-id-31889 .overlay-top-header,
.page-id-31889 .page-title-wrapper,
.page-id-31899 .top_site_main,
.page-id-31899 .overlay-top-header,
.page-id-31899 .page-title-wrapper,
.page-id-31900 .top_site_main,
.page-id-31900 .overlay-top-header,
.page-id-31900 .page-title-wrapper {
	display: none !important;
}
.page-id-31888 .site-content,
.page-id-31888 .content-area,
.page-id-31888 #main-content,
.page-id-31888 .full-width,
.page-id-31889 .site-content,
.page-id-31889 .content-area,
.page-id-31889 #main-content,
.page-id-31889 .full-width,
.page-id-31899 .site-content,
.page-id-31899 .content-area,
.page-id-31899 #main-content,
.page-id-31899 .full-width,
.page-id-31900 .site-content,
.page-id-31900 .content-area,
.page-id-31900 #main-content,
.page-id-31900 .full-width {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
