/* Home FE UNICAM: chrome Event, senza Unify. Colori da produzione SSH. */

:root {
	--unicam-home-primary: #00346b;
	--unicam-home-primary-soft: #dbe7f6;
	--unicam-home-text: #222;
	--unicam-home-muted: #555;
	--unicam-home-extra: #f8f9fa;
}

.unicam-home {
	display: block;
	overflow-x: hidden;
	color: var(--unicam-home-text);
}

.unicam-home-hero {
	background-image: url('../img/unicam_orienta.png');
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	aspect-ratio: 1920 / 1080;
	width: 100%;
	height: auto;
	min-height: 180px;
	margin-bottom: 0;
	padding: 0;
	border-radius: 0;
}

.unicam-home-welcome {
	background-color: var(--unicam-home-extra);
	position: relative;
	overflow: hidden;
	padding: 40px 0 20px;
}

@media (min-width: 992px) {
	.unicam-home-welcome::before,
	.unicam-home-sedi.unicam-home-sedi--bg::before {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		width: 100%;
		height: 100%;
		background: url('https://www.unicam.it/themes/custom/italiagov/unicam/img/stemma.jpg') no-repeat right center;
		background-size: auto 50%;
		opacity: .3;
		pointer-events: none;
		z-index: 1;
	}

	.unicam-home-sedi.unicam-home-sedi--bg::before {
		background-size: auto 30%;
	}

	.unicam-home-steps.unicam-home-steps--bg::before {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: url('https://www.unicam.it/themes/custom/italiagov/unicam/img/scritta-full.png') -200px 100% no-repeat;
		opacity: .3;
		pointer-events: none;
		z-index: 0;
		margin-bottom: 100px;
	}
}

.unicam-home-welcome .container,
.unicam-home-steps .container,
.unicam-home-sedi .container {
	position: relative;
	z-index: 2;
}

.unicam-home-kicker {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.unicam-home-kicker-dot {
	width: 20px;
	height: 20px;
	background-color: var(--unicam-home-primary);
	border-radius: 50%;
	margin-right: 10px;
	flex-shrink: 0;
}

.unicam-home-welcome h1,
.unicam-home-welcome .unicam-home-lead,
.unicam-home-sedi h3,
.unicam-home-sedi h2,
.unicam-home-video-title {
	color: var(--unicam-home-primary);
	font-weight: 700;
}

.unicam-home-welcome h1 {
	margin: 0;
}

.unicam-home-lead {
	margin-bottom: 20px;
}

.unicam-home-welcome-head {
	align-items: flex-start;
}

.unicam-home-welcome-logo {
	text-align: right;
}

.unicam-home-logo {
	width: 180px;
	max-width: 70%;
	height: auto;
}

.unicam-home-intro {
	margin-top: 10px;
	margin-bottom: 50px;
	background: var(--unicam-home-primary-soft);
	padding: 22px;
	border-radius: 8px;
	color: var(--unicam-home-text);
	font-size: 1.1rem;
}

.unicam-home-side-img {
	max-width: 100%;
	height: auto;
	margin-top: 10px;
}

.unicam-home-cards {
	margin-top: 2rem;
	margin-bottom: 3rem;
}

.unicam-home-card {
	position: relative;
	min-height: 200px;
	background-size: cover !important;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 30px;
	margin-bottom: 10px;
}

.unicam-home-card::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: linear-gradient(to bottom, rgba(0, 52, 107, 0) 0%, rgba(0, 52, 107, 0.85) 100%);
}

.unicam-home-card-inner {
	position: relative;
	z-index: 1;
}

.unicam-home-card h2 {
	color: #fff;
	font-weight: 600;
	font-size: 1.6rem;
	margin-bottom: 12px;
}

.unicam-home-card-btn {
	display: inline-block;
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid transparent;
	font-size: 1rem;
	border-radius: 25px;
	padding: 10px 20px;
	text-decoration: none;
}

.unicam-home-card-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.35);
	border-color: #fff;
	text-decoration: none;
}

.unicam-home-steps {
	position: relative;
	overflow: hidden;
	padding: 50px 0;
}

.unicam-home-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	color: inherit;
	text-decoration: none;
	padding: 15px 10px;
	transition: background-color 0.3s ease;
}

.unicam-home-step:hover {
	color: inherit;
	text-decoration: none;
	background: rgba(0, 52, 107, 0.04);
}

.unicam-home-step-icon {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	margin-right: 1.5rem;
	border-radius: 50%;
	background: #e9ecef;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.unicam-home-step-icon img {
	width: 50px;
	margin-top: 4px;
}

.unicam-home-step h3 {
	color: var(--unicam-home-primary);
	font-weight: 800;
	font-size: 1.1rem;
	margin-bottom: 4px;
}

.unicam-home-step p {
	font-size: 1rem;
	margin-bottom: 0;
	color: var(--unicam-home-muted);
}

.unicam-home-video-frame {
	border: 7px solid #fff;
	border-radius: 5px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	margin-bottom: 1.5rem;
}

.unicam-home-sedi {
	background-color: var(--unicam-home-extra);
	padding: 40px 0;
	position: relative;
	overflow: hidden;
}

.unicam-home-sedi .container {
	max-width: 1200px;
}

.unicam-home-sedi h3 {
	margin-bottom: 40px;
	text-align: center;
	font-weight: 700;
}

.unicam-home-sede {
	margin-bottom: 1.5rem;
	border: 1px solid #dee2e6;
}

@media (min-width: 992px) {
	.unicam-home-sede {
		background: linear-gradient(to top, #00346b 20%, transparent 20%);
	}
}

.unicam-home-sede img {
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.unicam-home-sede img:hover {
	transform: scale(1.02);
}

.unicam-home-sede h2 {
	font-weight: 800;
	padding-top: 2rem;
	font-size: 1.5rem;
}

.unicam-home-sede p {
	color: var(--unicam-home-muted);
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 20px;
}

.unicam-home-sede hr {
	margin-top: 3rem;
}

.unicam-home-why {
	background-color: var(--unicam-home-primary);
	color: #fff;
	padding: 100px 0 120px;
}

.unicam-home-why-title {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 60px;
	text-align: center;
}

.unicam-home-why-title h2 {
	color: #fff;
	margin: 0 1rem 0 0;
}

.unicam-home-why-title i {
	font-size: 4rem;
	color: #fff;
}

.unicam-home-why-row {
	margin: 1.5rem 0;
}

.unicam-home-why h4 {
	color: #fff;
	font-weight: 700;
}

.unicam-home-why p {
	font-size: 1.15rem;
	margin-bottom: 0;
}

.unicam-home-news {
	padding: 60px 0 20px;
}

.unicam-home-news h2 {
	font-weight: 700;
}

.unicam-home-news-card {
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.unicam-home-news-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 180px;
}

.unicam-home-news-meta {
	font-size: 16px;
	color: var(--unicam-home-muted);
	margin-bottom: 8px;
}

.unicam-home-news-card h4 a {
	color: var(--unicam-home-primary);
	font-weight: 600;
	font-size: 18px;
}

.unicam-home-news-card h4 a:hover {
	text-decoration: none;
	opacity: 0.85;
}

.unicam-home-news-excerpt {
	height: 100px;
	overflow: hidden;
	color: var(--unicam-home-primary);
}

.unicam-home-news-btn {
	display: inline-block;
	color: #fff;
	background: var(--unicam-home-primary);
	border-radius: 30px;
	padding: 10px 15px;
	margin-top: 20px;
	text-decoration: none;
}

.unicam-home-news-btn:hover {
	color: #fff;
	opacity: 0.9;
	text-decoration: none;
}

@media (max-width: 768px) {
	.unicam-home-hero {
		background-position: center center !important;
		background-size: 100% 100% !important;
		aspect-ratio: 1920 / 1080 !important;
		height: auto !important;
	}

	.unicam-home-welcome-head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 10px;
		align-items: center;
		margin-left: 0;
		margin-right: 0;
	}

	.unicam-home-welcome-copy {
		display: contents;
	}

	.unicam-home-kicker {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 0;
		min-width: 0;
	}

	.unicam-home-welcome h1 {
		font-size: 1.65rem;
		line-height: 1.2;
	}

	.unicam-home-lead {
		grid-column: 1 / -1;
		grid-row: 2;
		margin: 8px 0 12px;
	}

	.unicam-home-welcome-logo {
		grid-column: 2;
		grid-row: 1;
		width: auto;
		max-width: none;
		padding: 0;
		text-align: right;
	}

	.unicam-home-logo {
		width: 120px;
		max-width: 120px;
	}

	.unicam-home-card h2 {
		font-size: 1.35rem;
	}

	.unicam-home-why {
		padding: 50px 0 60px;
	}

	.unicam-home-why-title i {
		font-size: 2.5rem;
	}
}
