/* Insight Filtri — layout responsive */
.insight {
	--blu: #26364c;
	--insight-muted: #68758a;
	--insight-line: #c5ccd5;
	--insight-chip-bg: #f0f2f5;
	color: var(--blu);
	width: 100%;
}

.insight-featured {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: clamp(10px, 1.2vw, 16px);
	align-items: stretch;
	margin: 0 0 58px;
}

.insight-featured__image {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1.48 / 1;
	border-radius: 14px;
	background: #e9edf2;
}

.insight-featured__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.insight-featured__placeholder,
.insight-card__img--empty {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, #26364c, #53647b);
}

.insight-featured__content {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) clamp(72px, 6vw, 84px);
	border-radius: 14px;
	background: #d9d9d9 url('img/featured-bg.png') right top / cover no-repeat;
}

.insight-featured .insight-card__cat {
	background: rgba(38, 54, 76, .1);
}

.insight-featured .insight-read-more {
	position: absolute;
	right: clamp(16px, 2vw, 24px);
	bottom: clamp(16px, 2vw, 24px);
}

.insight-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	color: var(--insight-muted);
	font-size: 11px;
	line-height: 1.4;
}

.insight-card__cat {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 20px;
	background: #eef0f4;
	color: #536078;
	font-size: 15px;
	text-transform: uppercase;
}

.insight-featured__title {
	margin: 0 0 12px;
	color: var(--blu);
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.2;
	font-weight: 600;
}

.insight-featured__title a,
.insight-card__title a {
	color: inherit;
	text-decoration: none;
}

.insight-featured__title a:hover,
.insight-card__title a:hover {
	color: var(--blu);
}

.insight-featured__excerpt,
.insight-card__excerpt {
	margin: 0 0 16px;
	color: var(--blu);
	font-size: 15px;
}

.insight-read-more {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.insight-read-more__icon {
	display: block;
	width: 44px;
	height: 44px;
	transition: transform .25s ease;
}

.insight-read-more__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.insight-read-more:hover .insight-read-more__icon,
.insight-read-more:focus-visible .insight-read-more__icon,
.insight-card:hover .insight-read-more__icon,
.insight-card:focus-within .insight-read-more__icon,
.insight-featured:hover .insight-read-more__icon,
.insight-featured:focus-within .insight-read-more__icon {
	transform: rotate(90deg);
}

.insight-filtri {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 32px;
	padding: 0;
	border: 0;
}

.insight-tipologie {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.insight-filter-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #d8dde5;
	border-radius: 22px;
	background: var(--insight-chip-bg);
	color: var(--blu);
	font: inherit;
	font-size: 11px;
	line-height: 1.25;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.insight-filter-chip:hover {
	border-color: var(--blu);
	color: var(--blu);
}

.insight-filter-chip.is-active {
	border-color: var(--blu);
	background: var(--blu);
	color: #fff;
}

.insight-professionista-select {
	flex: 0 0 auto;
	width: auto;
	min-width: 220px;
	max-width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 6px 34px 6px 14px;
	border: 1px solid #d8dde5;
	border-radius: 22px;
	background-color: var(--insight-chip-bg);
	color: var(--blu);
	font: inherit;
	font-size: 12px;
	box-shadow: none;
	cursor: pointer;
}

.insight-professionista-select:focus {
	border-color: var(--blu);
	outline: none;
}

.insight-clear {
	flex: 0 0 auto;
	margin: 0;
	padding: 7px 0;
	border: 0;
	background: transparent;
	color: var(--rosso);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.insight-griglia {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 64px 48px;
}

.insight-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.insight-card__img {
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1.5 / 1;
	margin-bottom: 14px;
	border-radius: 12px;
	background: #e9edf2;
}

.insight-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.insight-card:hover .insight-card__img img {
	transform: scale(1.035);
}

.insight-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
}

.insight-card__meta {
	width: 100%;
	margin-bottom: 12px;
	font-size: 14px;
}

.insight-card__title {
	margin: 0 0 9px;
	color: var(--blu);
	font-size: 18px;
	font-weight: 600;
}

.insight-card__excerpt {
	margin-bottom: 12px;
	font-size: 15px;
}

.insight-card .insight-read-more {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}

.insight-card .insight-read-more__icon {
	width: 40px;
	height: 40px;
}

.insight-vuoto {
	margin: 24px 0;
	color: var(--insight-muted);
	font-size: 14px;
}

.insight-footer {
	display: flex;
	justify-content: center;
	margin: 38px 0 0;
}

.insight-more {
	min-height: 42px;
	padding: 10px 26px;
	border: 1px solid var(--blu);
	border-radius: 24px;
	background: var(--blu);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .2s ease, background .2s ease;
}

.insight-more:hover {
	background: #3a4c65;
}

.insight-more:disabled {
	opacity: .55;
	cursor: wait;
}

.insight-status {
	min-height: 1px;
	margin: 10px 0 0;
	color: var(--insight-muted);
	font-size: 12px;
	text-align: center;
}

.insight [hidden] {
	display: none !important;
}

@media (max-width: 1024px) {
	.insight-griglia {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 18px;
	}

	.insight-featured {
		gap: 26px;
		margin-bottom: 44px;
	}
}

@media (max-width: 767px) {
	.insight-featured {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-bottom: 34px;
	}

	.insight-featured__image {
		aspect-ratio: 1.55 / 1;
	}

	.insight-featured__content {
		padding: 22px 20px 76px;
	}

	.insight-featured__title {
		font-size: 23px;
	}

	.insight-filtri {
		margin-bottom: 24px;
	}

	.insight-tipologie {
		gap: 7px;
		flex-basis: 100%;
	}

	.insight-filter-chip {
		min-height: 38px;
		padding: 9px 12px;
		font-size: 12px;
	}

	.insight-professionista-select {
		flex: 1 1 auto;
		min-height: 40px;
	}

	.insight-griglia {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.insight-card__img {
		aspect-ratio: 1.65 / 1;
		margin-bottom: 12px;
	}

	.insight-card__title {
		font-size: 18px;
	}

	.insight-card__excerpt {
		font-size: 13px;
	}
}
