.xhive-risorse-results,
.xhive-risorse-evidenza,
.xhive-risorse-consigliate,
.xhive-risorse-filtri {
	box-sizing: border-box;
	color: #102855;
	font-family: inherit;
}

.xhive-risorse-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

.xhive-risorsa-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #dfe7ee;
	border-radius: 1px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(15, 35, 60, .05);
}

.xhive-risorsa-thumb {
	position: relative;
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	overflow: hidden;
	border-radius: 7px;
	background: linear-gradient(135deg, #eef4fb 0%, #dfe9f5 100%);
}

.xhive-risorsa-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xhive-risorsa-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: currentColor;
	background:
		radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 34%),
		linear-gradient(135deg, #eef4ff, #f8fbff);
}

.xhive-risorsa-icon,
.xhive-risorsa-format-icon {
	width: 42px;
	height: 42px;
	color: currentColor;
	opacity: .9;
	filter: drop-shadow(0 7px 12px rgba(15, 35, 60, .11));
}

.xhive-risorsa-file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	color: #dc2626;
	font-size: 50px;
	line-height: 1;
	filter: drop-shadow(0 7px 12px rgba(15, 35, 60, .11));
}

.xhive-file-zip {
	color: #8c6b22;
}

.xhive-file-ppt {
	color: #ea580c;
}

.xhive-file-xlsx {
	color: #16805d;
}

.xhive-file-txt {
	color: #64748b;
}

.xhive-format-pdf {
	color: #b42318;
	background: linear-gradient(135deg, #fff2f0, #ffe7e4);
}

.xhive-format-ppt {
	color: #b45309;
	background: linear-gradient(135deg, #fff7ed, #ffe8c7);
}

.xhive-format-xlsx {
	color: #047857;
	background: linear-gradient(135deg, #ecfdf5, #d8f7e8);
}

.xhive-format-txt {
	color: #334155;
	background: linear-gradient(135deg, #f8fafc, #e9eef5);
}

.xhive-format-img {
	color: #0e7490;
	background: linear-gradient(135deg, #ecfeff, #d7f3fb);
}

.xhive-format-video {
	color: #7c3aed;
	background: linear-gradient(135deg, #f5f3ff, #eadcff);
}

.xhive-format-audio {
	color: #be185d;
	background: linear-gradient(135deg, #fdf2f8, #fde0ef);
}

.xhive-format-link {
	color: #102855;
	background: linear-gradient(135deg, #eff6ff, #dcecff);
}

.xhive-format-altro {
	color: #102855;
	background: linear-gradient(135deg, #eef4ff, #f7f8fa);
}

.xhive-risorsa-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	min-height: 20px;
	padding: 4px 8px;
	border-radius: 5px;
	background: #dc2626;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	box-shadow: none;
}

.xhive-risorsa-card--video .xhive-risorsa-badge {
	background: #7c3aed;
}

.xhive-risorsa-card--xlsx .xhive-risorsa-badge {
	background: #72a646;
}

.xhive-risorsa-card--audio .xhive-risorsa-badge {
	background: #3b82f6;
}

.xhive-risorsa-card--ppt .xhive-risorsa-badge {
	background: #f97316;
}

.xhive-risorsa-card--zip .xhive-risorsa-badge {
	background: #c6922e;
}

.xhive-risorsa-card--txt .xhive-risorsa-badge,
.xhive-risorsa-card--altro .xhive-risorsa-badge {
	background: #c6922e;
}

.xhive-risorsa-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
	flex: 1;
	min-width: 0;
}

.xhive-risorsa-more {
	position: absolute;
	top: 11px;
	right: 10px;
	z-index: 2;
	width: 24px;
	height: 28px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #334155;
	font-size: 21px;
	line-height: 1;
	cursor: pointer;
}

.xhive-risorsa-more:hover {
	background: #f1f5f9;
}

.xhive-risorsa-bookmark {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	padding: 0;
}

.xhive-risorsa-bookmark:hover {
	background: #f1f5f9;
	color: #102855;
}

.xhive-risorsa-bookmark:focus-visible {
	outline: 2px solid #fbbf24;
	outline-offset: 2px;
}

.xhive-risorsa-bookmark.is-saved {
	color: #f59e0b;
}

.xhive-risorsa-bookmark.is-saved:hover {
	color: #d97706;
}

.xhive-risorsa-bookmark[data-busy="1"] {
	opacity: 0.55;
	pointer-events: none;
}

.xhive-risorsa-head {
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 14px;
	padding-right: 22px;
	align-items: start;
}

.xhive-risorsa-heading {
	min-width: 0;
}

.xhive-risorsa-topic {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 5px;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.xhive-risorsa-meta {
	display: grid;
	gap: 4px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #edf1f5;
	color: #3f4e60;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.25;
}

.xhive-risorsa-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.xhive-risorsa-title {
	display: -webkit-box;
	margin: 7px 0 0;
	overflow: hidden;
	color: #0f172a;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.xhive-risorsa-excerpt {
	display: -webkit-box;
	margin: 14px 0 12px;
	overflow: hidden;
	color: #4b5b70;
	font-size: 13px;
	line-height: 1.4;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.xhive-risorsa-footer {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 10px;
	padding: 12px 0 0;
}

.xhive-risorsa-access {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: inherit;
	font-weight: inherit;
	white-space: normal;
}

.xhive-access-public {
	color: #102855;
}

.xhive-access-allowed {
	color: #16805d;
}

.xhive-access-denied {
	color: #c62828;
}

.xhive-access-missing {
	color: #6b7888;
}

.xhive-risorsa-access-icon {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
}

.xhive-risorsa-meta-icon {
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	color: currentColor;
}

.xhive-risorsa-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	width: 100%;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid #cfe0f5;
	border-radius: 1px;
	background: #fff;
	color: #102855 !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}

.xhive-risorsa-cta:hover {
	border-color: #102855;
	background: #eef5ff;
	color: #102855 !important;
}

.xhive-risorsa-state {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid #dbe5ef;
	border-radius: 8px;
	background: #f8fafc;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: anywhere;
}

.xhive-risorsa-state-link {
	border-color: #cfe0f5;
	background: #fff;
	color: #102855 !important;
	text-decoration: none !important;
	cursor: pointer;
}

.xhive-risorsa-state-link:hover {
	border-color: #102855;
	background: #eef5ff;
	color: #102855 !important;
}

.xhive-risorsa-cta.is-disabled,
.xhive-risorsa-cta[aria-disabled="true"] {
	border-color: #e9eef5;
	background: #e9eef5;
	color: #6b7888 !important;
	pointer-events: none;
}

.xhive-risorsa-cta.xhl-resource-button-download:not(.is-disabled):not([aria-disabled="true"]),
.xhive-risorsa-cta.xhl-resource-button-preview:not(.is-disabled):not([aria-disabled="true"]) {
	border-color: #FBBF24;
	background: #FBBF24;
	color: #082f69 !important;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.xhive-risorsa-cta.xhl-resource-button-download:not(.is-disabled):not([aria-disabled="true"]):hover,
.xhive-risorsa-cta.xhl-resource-button-preview:not(.is-disabled):not([aria-disabled="true"]):hover {
	border-color: #082f69;
	background: #082f69;
	color: #fff !important;
}

.xhive-risorsa-card--locked .xhl-resource-button-locked {
	border-color: #cfe0f5;
	background: #fff;
	color: #102855 !important;
	cursor: pointer;
}

.xhive-risorsa-card--locked .xhive-risorsa-excerpt,
.xhive-risorsa-card--locked .xhl-resource-button-locked {
	transition: opacity .24s ease, transform .24s ease;
}

.xhive-risorsa-card.is-showing-access .xhive-risorsa-excerpt {
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
}

.xhive-risorsa-card.is-showing-access .xhl-resource-button-locked {
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
}

.xhive-risorsa-registration-gate {
	position: relative;
	display: flex;
	align-items: center;
	flex-direction: column;
	margin: 6px -18px 0;
	padding: 32px 18px 2px;
	background: linear-gradient(180deg, rgba(206, 213, 222, .82) 0, rgba(255, 255, 255, .96) 36px, #fff 70px);
	text-align: center;
}

.xhive-risorsa-registration-lock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -18px;
	border: 1px solid #edf0f4;
	border-radius: 50%;
	background: #fff;
	color: #f7b500;
	box-shadow: 0 5px 14px rgba(15, 35, 60, .12);
}

.xhive-risorsa-registration-lock .xhive-risorsa-access-icon {
	width: 19px;
	height: 19px;
}

.xhive-risorsa-registration-gate strong {
	margin-top: 10px;
	color: #102855;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
}

.xhive-risorsa-registration-gate p {
	margin: 7px 0 12px;
	color: #52627a;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
}

.xhive-risorsa-registration-gate > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 0;
	background: #102855;
	box-shadow: 0 2px 5px rgba(16, 40, 85, .24);
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none !important;
}

.xhive-risorsa-registration-gate > a:hover,
.xhive-risorsa-registration-gate > a:focus {
	background: #102855;
	color: #fff !important;
}

.xhive-risorsa-login-badge {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 28px;
}

.xhive-risorsa-login-icon {
	display: block;
	width: 22px;
	height: 24px;
	color: #f7b500;
	fill: none;
}

.xhive-risorsa-access-info {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid #fde68a;
	border-radius: 8px;
	background: #fffbeb;
	color: #3b4656;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.xhive-risorsa-access-info[hidden] {
	display: none;
}

.xhive-risorsa-access-info a {
	color: #102855;
	font-weight: 800;
	text-decoration: underline;
}

.xhive-risorsa-access-info.xhive-risorsa-registration-gate {
	position: absolute;
	inset: 0;
	z-index: 10;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 28px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(180deg, #dce2e9 0, rgba(255, 255, 255, .98) 42%, #fff 100%);
	opacity: 0;
	transform: translateY(10px) scale(.985);
	visibility: hidden;
	text-align: center;
	transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

.xhive-risorsa-access-info.xhive-risorsa-registration-gate .xhive-risorsa-registration-lock {
	margin-top: 0;
}

.xhive-risorsa-access-info.xhive-risorsa-registration-gate.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	visibility: visible;
}

.xhive-risorsa-access-info.xhive-risorsa-registration-gate > a {
	color: #fff !important;
	text-decoration: none !important;
}

.xhive-risorsa-card--compact .xhive-risorsa-body {
	padding: 16px;
}

.xhive-risorsa-card--compact .xhive-risorsa-title {
	font-size: 14px;
}

.xhive-risorsa-card--compact .xhive-risorsa-footer {
	padding-top: 12px;
}

.xhive-risorse-filtri {
	display: grid;
	grid-template-columns: repeat(4, minmax(112px, .75fr)) minmax(280px, 1.55fr) auto;
	gap: 12px;
	align-items: end;
	margin: 0 0 24px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 1px;
	background: rgba(255, 255, 255, .55);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 8px 22px rgba(16, 40, 85, .08);
	font-family: var(--body_typography-font-family, inherit) !important;
	font-size: var(--body_typography-font-size, inherit);
}

.xhive-risorse-filtri.has-template-filter {
	grid-template-columns: repeat(5, minmax(104px, .7fr)) minmax(280px, 1.55fr) auto;
}

.xhive-risorse-filtri * {
	font-family: var(--body_typography-font-family, inherit) !important;
}

.xhive-risorse-filtri label {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.xhive-risorse-filtri-search {
	min-width: 260px;
}

.xhive-risorse-filtri span {
	color: #102855;
	font-size: inherit;
	font-weight: 400;
}

.xhive-risorse-filtri select,
.xhive-risorse-filtri input {
	width: 100%;
	height: 42px;
	min-height: 42px;
	border: 1px solid #d7e2f2;
	border-radius: 1px;
	background: #fff;
	color: #102855;
	font: inherit;
	font-size: 10px;
	line-height: 42px;
	padding: 0 12px;
	box-sizing: border-box;
}

.xhive-risorse-filtri-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 42px;
}

.xhive-risorse-filtri-actions button {
	height: 42px;
	min-height: 42px;
	border: 0;
	border-radius: 1px;
	background: #102855;
	color: #fff;
	font: inherit;
	font-weight: 500;
	line-height: 42px;
	padding: 0 18px;
	cursor: pointer;
}

.xhive-risorse-filtri-actions a {
	color: #102855;
	font-size: 14px !important;
	font-weight: 500;
	text-decoration: none !important;
	white-space: nowrap;
}

.xhive-risorse-count {
	margin: 0 0 16px;
	color: #102855;
	font-size: 15px;
	font-weight: 800;
}

.xhive-risorse-empty {
	margin: 0;
	padding: 22px;
	border: 1px solid #e1e7ef;
	border-radius: 1px;
	background: #fff;
	color: #53627c;
	font-weight: 700;
}

.xhive-risorse-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.xhive-risorse-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid #d7e2f2;
	border-radius: 8px;
	background: #fff;
	color: #102855;
	font-weight: 800;
	text-decoration: none;
}

.xhive-risorse-pagination .current {
	background: #102855;
	color: #fff;
	border-color: #102855;
}

.xhive-risorse-carousel {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.xhive-risorse-carousel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(min(100%, 260px), calc((100% - 36px) / 3));
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 2px 18px;
	box-sizing: border-box;
}

.xhive-risorse-carousel-track::-webkit-scrollbar {
	display: none;
}

.xhive-risorse-carousel-item {
	min-width: 0;
	scroll-snap-align: start;
}

.xhive-risorse-carousel-item .xhive-risorsa-card {
	height: 100%;
}

.xhive-risorse-carousel-arrow {
	position: absolute;
	top: 82px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #d7e2f2;
	border-radius: 999px;
	background: #fff;
	color: #102855;
	box-shadow: 0 10px 24px rgba(15, 35, 60, .16);
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}

.xhive-risorse-carousel-arrow:hover {
	background: #102855;
	color: #fff;
	transform: translateY(-1px);
}

.xhive-risorse-carousel-arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.xhive-risorse-carousel-prev {
	left: -18px;
}

.xhive-risorse-carousel-next {
	right: -18px;
}

@media (max-width: 1180px) {
	.xhive-risorse-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.xhive-risorse-filtri {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.xhive-risorse-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.xhive-risorse-grid,
	.xhive-risorse-filtri {
		grid-template-columns: 1fr;
	}

	.xhive-risorse-filtri-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.xhive-risorse-filtri-actions button,
	.xhive-risorse-filtri-actions a {
		width: 100%;
		text-align: center;
	}
}

