/*
 * Stili condivisi da tutte le pagine Momento:
 * blocco contatti nel footer, pagina Progetti, pagine legali.
 */

/* ---------- Footer: contatti ---------- */

.home-footer {
	scroll-margin-top: 0;
}

.home-footer__contact {
	display: grid;
	gap: 6px;
}

.home-footer__contact-label,
.home-footer__contact-place {
	margin: 0;
	color: var(--about-muted);
	font-size: clamp(11px, 2.6vw, 13px);
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.home-footer__contact-link {
	width: fit-content;
	color: var(--about-fg);
	text-decoration: none;
	font-size: clamp(20px, 5.4vw, 30px);
	line-height: 1.1;
	font-weight: 400;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
	border-bottom: 1px solid transparent;
	transition: border-color 0.22s ease;
}

.home-footer__contact-link:hover,
.home-footer__contact-link:focus-visible {
	color: var(--about-fg);
	border-bottom-color: var(--about-fg);
	outline: none;
}

/* ---------- Pagina Progetti ---------- */

.momento-progetti {
	display: grid;
	gap: clamp(54px, 9vw, 104px);
}

.momento-progetti__hero {
	display: grid;
	gap: clamp(22px, 4vw, 36px);
	padding: clamp(20px, 5vw, 48px) 0 0;
}

.momento-progetti__title {
	margin: 0;
	font-size: clamp(42px, 10vw, 84px);
	line-height: 0.96;
	font-weight: 400;
	letter-spacing: -0.04em;
}

.momento-progetti__title span {
	display: block;
}

.momento-progetti__intro {
	margin: 0;
	max-width: 44rem;
	font-size: clamp(15px, 2.8vw, 18px);
	line-height: 1.42;
	color: var(--hero-muted);
}

.momento-progetti__list {
	display: grid;
	gap: clamp(64px, 10vw, 120px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.momento-progetto {
	display: grid;
	gap: clamp(20px, 3.4vw, 32px);
}

.momento-progetto__rule {
	height: 1px;
	background: var(--hero-rule);
}

.momento-progetto__head {
	display: grid;
	gap: 10px;
}

.momento-progetto__meta {
	margin: 0;
	color: var(--about-bg);
	font-size: clamp(13px, 3vw, 15px);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.momento-progetto__name {
	margin: 0;
	font-size: clamp(30px, 7vw, 56px);
	line-height: 1;
	font-weight: 400;
	letter-spacing: -0.035em;
	color: var(--hero-fg);
}

.momento-progetto__body {
	display: grid;
	gap: 16px;
	max-width: 46rem;
}

.momento-progetto__text {
	margin: 0;
	font-size: clamp(15px, 2.8vw, 18px);
	line-height: 1.42;
	color: var(--hero-muted);
}

.momento-progetto__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.momento-progetto__tags li {
	padding: 6px 12px 5px;
	border: 1px solid rgba(240, 239, 215, 0.4);
	border-radius: 999px;
	color: var(--hero-fg);
	font-size: 12px;
	line-height: 1.1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.momento-progetto__link {
	width: fit-content;
	color: var(--hero-fg);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.momento-progetto__link:hover,
.momento-progetto__link:focus-visible {
	color: var(--about-bg);
	outline: none;
}

.momento-progetto__gallery {
	display: grid;
	gap: clamp(10px, 1.6vw, 16px);
	grid-template-columns: minmax(0, 1fr);
}

.momento-progetto__figure {
	margin: 0;
	overflow: hidden;
	border-radius: clamp(14px, 2.4vw, 24px);
	background: #111;
}

.momento-progetto__figure img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.momento-progetto__figure:not(:first-child) img {
	aspect-ratio: var(--progetto-ratio, 1 / 1);
}

.momento-progetti__cta {
	display: grid;
	gap: clamp(20px, 3vw, 28px);
	justify-items: start;
}

.momento-progetti__cta-text {
	margin: 0;
	max-width: 30ch;
	font-size: clamp(26px, 5.6vw, 44px);
	line-height: 1.04;
	letter-spacing: -0.03em;
	color: var(--hero-fg);
}

.momento-progetti__cta-link {
	display: inline-flex;
	align-items: center;
	padding: 20px 44px 19px;
	border: 1px solid var(--hero-fg);
	color: var(--hero-fg);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 18px;
	line-height: 1;
	font-weight: 600;
	transition: background-color 0.24s ease, color 0.24s ease;
}

.momento-progetti__cta-link:hover,
.momento-progetti__cta-link:focus-visible {
	background: var(--hero-fg);
	color: var(--hero-bg);
	outline: none;
}

/* ---------- Pagine legali ---------- */

.momento-legal {
	display: grid;
	gap: clamp(36px, 6vw, 64px);
	max-width: 52rem;
}

.momento-legal__title {
	margin: 0;
	font-size: clamp(38px, 8vw, 72px);
	line-height: 0.98;
	font-weight: 400;
	letter-spacing: -0.04em;
}

.momento-legal__updated {
	margin: 12px 0 0;
	color: var(--about-bg);
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.momento-legal__body {
	color: var(--hero-muted);
	font-size: clamp(15px, 2.6vw, 17px);
	line-height: 1.55;
}

.momento-legal__body h2 {
	margin: clamp(36px, 5vw, 52px) 0 12px;
	color: var(--hero-fg);
	font-size: clamp(20px, 3.6vw, 26px);
	line-height: 1.15;
	font-weight: 400;
	letter-spacing: -0.015em;
}

.momento-legal__body p,
.momento-legal__body ul {
	margin: 0 0 14px;
}

.momento-legal__body ul {
	padding-left: 1.2em;
}

.momento-legal__body li + li {
	margin-top: 6px;
}

.momento-legal__body a {
	color: var(--hero-fg);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.momento-legal__body strong {
	color: var(--hero-fg);
	font-weight: 600;
}

@media (min-width: 768px) {
	.momento-progetto {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
		grid-template-areas:
			"rule rule"
			"head gallery"
			"body gallery";
		grid-template-rows: auto auto 1fr;
		align-items: start;
		column-gap: clamp(32px, 4vw, 64px);
	}

	.momento-progetto__rule {
		grid-area: rule;
	}

	.momento-progetto__head {
		grid-area: head;
	}

	.momento-progetto__body {
		grid-area: body;
	}

	.momento-progetto__gallery {
		grid-area: gallery;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.momento-progetto__figure:first-child {
		grid-column: 1 / -1;
	}

	.momento-progetto__gallery--pair .momento-progetto__figure {
		grid-column: 1 / -1;
	}
}
