/* ==========================================================================
   SPAZIO77ARCHITETTURA – stili del sito
   Indice: 1 Font e variabili · 2 Base · 3 Header e menu · 4 Banda laterale
           5 Hero · 6 Sezioni e testo · 7 Gallerie · 8 Progetti
           9 Pagine interne · 10 Footer · 11 Lightbox · 12 Animazioni
   ========================================================================== */

/* 1. Font e variabili ------------------------------------------------------ */

/* Jost (SIL Open Font License) – simile al Century Gothic del logo. */
@font-face {
	font-family: "Jost";
	src: url("../fonts/jost-vf.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #000;
	--bg-soft: #0d0d0d;
	--fg: #f2f2f2;
	--soft: #c4c4c4;
	--muted: #8e8e8e;
	--line: rgba(255, 255, 255, 0.14);
	--band: #3b3b3b;

	--font: "Jost", "Century Gothic", "Futura", "Avenir Next", system-ui, sans-serif;

	--gutter: clamp(20px, 5vw, 96px);
	--max: 1480px;
	--band-w: 0px;
	--header-h: 88px;

	--step--1: 0.8125rem;
	--step-0: 1.0625rem;
	--step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
	--step-2: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem);
	--step-3: clamp(2rem, 1.4rem + 2.6vw, 4.25rem);

	--space-s: clamp(1rem, 0.8rem + 1vw, 1.5rem);
	--space-m: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	--space-l: clamp(3.5rem, 2.5rem + 5vw, 8rem);

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1100px) {
	:root {
		--band-w: 52px;
	}
}

/* 2. Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	padding-right: var(--band-w);
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: var(--step-0);
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: #fff;
}

:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 4px;
}

p {
	margin: 0 0 1em;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 300;
	line-height: 1.15;
}

ul[role="list"] {
	list-style: none;
	margin: 0;
	padding: 0;
}

address {
	font-style: normal;
}

::selection {
	background: #fff;
	color: #000;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: #fff;
	color: #000;
}

.skip-link:focus {
	top: 1rem;
}

.container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Titoletti in stile PDF: piccoli, maiuscoli, grigi */
.eyebrow {
	margin: 0 0 1.25rem;
	color: var(--muted);
	font-size: var(--step--1);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Etichetta progetto: "RISTORANTE | MILANO" */
.label {
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
}

.label__place,
.label__sep {
	color: var(--muted);
}

/* Ambiti: "SPACE PLANNING | RETAIL | WORKS" */
.tagline {
	margin: 0;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tagline .is-muted,
.tagline__sep {
	color: var(--muted);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--soft);
}

.link-arrow::after {
	content: "";
	width: 2.5em;
	height: 1px;
	background: currentColor;
	transition: width 0.3s var(--ease);
}

.link-arrow:hover::after {
	width: 3.5em;
}

/* 3. Header e menu --------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 var(--band-w) auto 0;
	z-index: 100;
	transition: background-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--max);
	height: var(--header-h);
	margin-inline: auto;
	padding-inline: var(--gutter);
	transition: height 0.35s var(--ease);
}

body:not(.has-hero) .site-header,
.site-header.is-scrolled {
	background: rgba(0, 0, 0, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.site-header.is-scrolled .site-header__inner {
	height: 68px;
}

.logo {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 0.9rem;
	background: #000;
	text-decoration: none;
	line-height: 1;
}

.logo__img {
	width: clamp(170px, 18vw, 250px);
	height: auto;
}

.logo__text {
	font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.logo__a {
	color: #fff;
}

.logo__b {
	color: var(--muted);
	font-weight: 300;
}

.nav__list {
	display: flex;
	gap: clamp(1.5rem, 3vw, 3rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list a {
	position: relative;
	display: block;
	padding: 0.5rem 0;
	color: var(--soft);
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s;
}

.nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0.15rem;
	height: 1px;
	background: currentColor;
	transition: right 0.3s var(--ease);
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a {
	color: #fff;
}

.nav__list a:hover::after,
.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after {
	right: 0;
}

.nav-toggle {
	display: none;
}

@media (max-width: 899px) {
	:root {
		--header-h: 72px;
	}

	.nav-toggle {
		position: relative;
		z-index: 2;
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		cursor: pointer;
	}

	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block;
		width: 24px;
		height: 1.5px;
		background: currentColor;
		transition: transform 0.3s var(--ease), background-color 0.2s;
	}

	.nav-toggle__bars {
		position: relative;
	}

	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bars::before {
		transform: translateY(-7px);
	}

	.nav-toggle__bars::after {
		transform: translateY(7px);
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
		background: transparent;
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
		transform: rotate(45deg);
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
		transform: rotate(-45deg);
	}

	.nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		padding: var(--header-h) var(--gutter) 3rem;
		background: #000;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
	}

	.nav.is-open {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.35s var(--ease);
	}

	.nav__list {
		flex-direction: column;
		gap: 0.5rem;
	}

	.nav__list a {
		font-size: clamp(1.6rem, 7vw, 2.4rem);
		font-weight: 300;
		letter-spacing: 0.08em;
		color: #fff;
	}

	.nav__list a::after {
		display: none;
	}

	.nav__list .current-menu-item > a,
	.nav__list .current_page_item > a {
		color: var(--muted);
	}

	body.nav-open {
		overflow: hidden;
	}

	/* backdrop-filter "intrappola" gli elementi fixed: lo togliamo a menu aperto */
	body.nav-open .site-header {
		background: #000;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* 4. Banda laterale (come nel PDF) ----------------------------------------- */

.side-band {
	display: none;
}

@media (min-width: 1100px) {
	.side-band {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 101;
		display: flex;
		align-items: flex-start;
		justify-content: center;
		width: var(--band-w);
		padding-top: 2.25rem;
		background: linear-gradient(180deg, #4a4a4a 0%, var(--band) 45%, #262626 100%);
	}

	.side-band__text {
		writing-mode: vertical-rl;
		font-size: 1.05rem;
		letter-spacing: 0.06em;
		white-space: nowrap;
	}

	.side-band .logo__b {
		color: #b5b5b5;
	}
}

/* 5. Hero homepage --------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
}

.hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: s77-zoom 14s var(--ease) both;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.05) 75%),
		linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 35%);
}

@media (max-width: 699px) {
	.hero::before {
		background:
			linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 20%),
			linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.2) 75%);
	}
}

.hero--plain {
	min-height: 80svh;
}

.hero__content {
	padding-top: calc(var(--header-h) + 2rem);
	padding-bottom: clamp(4.5rem, 10vh, 7rem);
}

.hero__text {
	max-width: 34ch;
	font-size: var(--step-2);
	font-weight: 300;
	line-height: 1.5;
	text-wrap: pretty;
	animation: s77-rise 1s 0.2s var(--ease) both;
}

.hero__text p:last-child {
	margin-bottom: 0;
}

.hero__text strong {
	font-weight: 500;
}

.hero__tagline {
	margin-top: 2rem;
	animation: s77-rise 1s 0.45s var(--ease) both;
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.25rem;
	width: 1px;
	height: 48px;
	background: rgba(255, 255, 255, 0.25);
	overflow: hidden;
}

.hero__scroll::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	transform: translateY(-100%);
	animation: s77-scroll 2.2s var(--ease) infinite;
}

/* 6. Sezioni e testo ------------------------------------------------------- */

.section {
	padding-block: var(--space-l);
}

.section--tight {
	padding-top: 0;
}

.section--line {
	border-top: 1px solid var(--line);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: var(--space-m);
}

.section-head .eyebrow {
	margin: 0;
}

.intro__text {
	position: relative;
	max-width: 46ch;
	padding-top: 2.5rem;
	font-size: var(--step-2);
	font-weight: 300;
	line-height: 1.5;
	text-wrap: pretty;
}

.intro__text::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 64px;
	height: 1px;
	background: var(--muted);
}

.intro__text p + p {
	color: var(--soft);
}

.intro__text strong {
	font-weight: 500;
}

.prose {
	max-width: 62ch;
	color: var(--soft);
}

.prose strong,
.prose b {
	color: #fff;
	font-weight: 500;
}

.prose a {
	color: #fff;
}

.prose--lead {
	font-size: var(--step-1);
	line-height: 1.7;
}

.prose--page {
	max-width: 75ch;
}

.prose--page h2,
.prose--page h3 {
	margin: 2em 0 0.75em;
	color: #fff;
	font-size: var(--step-1);
	font-weight: 500;
}

.prose > :last-child {
	margin-bottom: 0;
}

.empty {
	color: var(--muted);
}

/* 7. Gallerie -------------------------------------------------------------- */

.gallery {
	margin: 0;
}

.gallery__item {
	margin: 0;
	overflow: hidden;
	background: var(--bg-soft);
}

.gallery__link {
	display: block;
	height: 100%;
	cursor: zoom-in;
}

.gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease), opacity 0.4s;
}

.gallery__link:hover .gallery__img {
	transform: scale(1.035);
}

/* Mosaico in homepage */
.gallery--mosaic {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: clamp(150px, 15vw, 270px);
	gap: clamp(8px, 1.2vw, 18px);
}

.gallery--mosaic .gallery__item:nth-child(1) {
	grid-column: span 4;
	grid-row: span 2;
}

.gallery--mosaic .gallery__item:nth-child(2),
.gallery--mosaic .gallery__item:nth-child(3) {
	grid-column: span 2;
}

.gallery--mosaic .gallery__item:nth-child(4),
.gallery--mosaic .gallery__item:nth-child(5) {
	grid-column: span 3;
	grid-row: span 1;
}

.gallery--mosaic .gallery__item:nth-child(n + 6) {
	grid-column: span 2;
}

.gallery--count-1 .gallery__item:nth-child(1) {
	grid-column: 1 / -1;
}

.gallery--count-2 .gallery__item:nth-child(1),
.gallery--count-2 .gallery__item:nth-child(2) {
	grid-column: span 3;
	grid-row: span 2;
}

.gallery--count-4 .gallery__item:nth-child(4) {
	grid-column: 1 / -1;
}

@media (max-width: 699px) {
	.gallery--mosaic {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 42vw;
	}

	.gallery--mosaic .gallery__item:nth-child(n) {
		grid-column: span 1;
		grid-row: span 1;
	}

	.gallery--mosaic .gallery__item:nth-child(1),
	.gallery--mosaic .gallery__item:last-child:nth-child(even) {
		grid-column: 1 / -1;
		grid-row: span 1;
	}

	.gallery--mosaic .gallery__item:nth-child(1) {
		grid-row: span 2;
	}
}

/* Griglia a colonne (rispetta le proporzioni delle foto) */
.gallery--grid,
.gallery--two {
	column-gap: clamp(8px, 1.2vw, 18px);
}

.gallery--grid {
	columns: 3;
}

.gallery--two {
	columns: 2;
}

.gallery--grid .gallery__item,
.gallery--two .gallery__item {
	margin-bottom: clamp(8px, 1.2vw, 18px);
	break-inside: avoid;
}

.gallery--grid .gallery__img,
.gallery--two .gallery__img {
	height: auto;
}

@media (max-width: 999px) {
	.gallery--grid {
		columns: 2;
	}
}

@media (max-width: 559px) {
	.gallery--grid,
	.gallery--two {
		columns: 1;
	}
}

/* 8. Progetti -------------------------------------------------------------- */

.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
}

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

@media (max-width: 599px) {
	.cards {
		grid-template-columns: 1fr;
	}
}

.card__link {
	display: block;
	text-decoration: none;
}

.card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bg-soft);
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease), filter 0.5s;
	filter: grayscale(0.15) brightness(0.92);
}

.card__link:hover .card__img,
.card__link:focus-visible .card__img {
	transform: scale(1.04);
	filter: none;
}

.card__title {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--line);
	transition: border-color 0.3s;
}

.card__link:hover .card__title {
	border-color: rgba(255, 255, 255, 0.5);
}

.projects-intro {
	margin-bottom: var(--space-m);
}

.pagination {
	margin-top: var(--space-m);
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination a,
.pagination span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 0.75rem;
	border: 1px solid var(--line);
	color: var(--soft);
	text-decoration: none;
}

.pagination .current {
	border-color: #fff;
	color: #fff;
}

.pagination a:hover {
	border-color: rgba(255, 255, 255, 0.5);
}

.project-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
	padding-block: var(--space-m);
	border-top: 1px solid var(--line);
}

.project-nav a {
	text-decoration: none;
}

.project-nav__item a {
	display: inline-flex;
	flex-direction: column;
}

.project-nav__item .eyebrow {
	margin-bottom: 0.35rem;
}

.project-nav__item--next {
	text-align: right;
}

.project-nav__item--next a {
	align-items: flex-end;
}

.project-nav__all {
	color: var(--soft);
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

@media (max-width: 699px) {
	.project-nav {
		grid-template-columns: 1fr 1fr;
	}

	.project-nav__all {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: center;
	}
}

/* 9. Pagine interne -------------------------------------------------------- */

.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(360px, 66vh, 760px);
	overflow: hidden;
	isolation: isolate;
}

.page-hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: s77-zoom 14s var(--ease) both;
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.15) 100%);
}

.page-hero--plain {
	min-height: 0;
}

.page-hero--plain::before {
	display: none;
}

.page-hero__content {
	padding-top: calc(var(--header-h) + var(--space-m));
	padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-hero--plain .page-hero__content {
	padding-bottom: 0;
}

.page-hero__label {
	margin-bottom: 0.75rem;
}

.page-hero__title {
	font-size: var(--step-3);
	font-weight: 300;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-wrap: balance;
	animation: s77-rise 0.9s 0.1s var(--ease) both;
}

/* Testo a sinistra, contenuto a destra (o sotto su mobile) */
.split {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--space-m) clamp(1.5rem, 3vw, 3rem);
	align-items: start;
}

.split__text {
	grid-column: 1 / span 5;
}

.split__main {
	grid-column: 7 / -1;
}

.split--single .split__text {
	grid-column: 1 / span 8;
}

@media (min-width: 1000px) {
	.split__text--sticky {
		position: sticky;
		top: calc(var(--header-h) + 2rem);
	}
}

@media (max-width: 999px) {
	.split__text,
	.split__main,
	.split--single .split__text {
		grid-column: 1 / -1;
	}
}

/* Persone dello studio */
.team {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem clamp(1rem, 2vw, 1.75rem);
}

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

.team__photo {
	aspect-ratio: 4 / 5;
	margin-bottom: 1rem;
	overflow: hidden;
	background: var(--bg-soft);
}

.team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
}

.team__name {
	margin: 0;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.team__role {
	margin: 0.15rem 0 0;
	color: var(--muted);
	font-size: var(--step--1);
}

/* Elenco attività */
.services {
	columns: 2;
	column-gap: clamp(2rem, 6vw, 6rem);
	max-width: 1100px;
}

.services__item {
	position: relative;
	padding: 0.85rem 0 0.85rem 1.6rem;
	border-bottom: 1px solid var(--line);
	font-size: var(--step-1);
	font-weight: 300;
	break-inside: avoid;
}

.services__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.55em;
	width: 6px;
	height: 6px;
	background: var(--muted);
}

@media (max-width: 699px) {
	.services {
		columns: 1;
	}
}

.columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-m) clamp(2rem, 6vw, 6rem);
}

@media (max-width: 799px) {
	.columns {
		grid-template-columns: 1fr;
	}
}

/* 10. Footer --------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--line);
	color: var(--soft);
	font-size: 0.95rem;
}

.site-footer__inner,
.site-footer__legal {
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2.5rem 4rem;
	padding-block: var(--space-l) var(--space-m);
}

.logo--footer {
	padding: 0;
	margin-bottom: 1.25rem;
}

.logo--footer .logo__img {
	width: clamp(170px, 16vw, 220px);
}

.site-footer__contacts p {
	margin: 0 0 0.35rem;
}

.site-footer__contacts a {
	text-decoration: none;
}

.site-footer__contacts a:hover {
	text-decoration: underline;
}

.site-footer__social {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: 1.5rem 2rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: var(--step--1);
	letter-spacing: 0.04em;
}

.site-footer__legal p {
	margin: 0;
}

.site-footer__dot {
	margin-inline: 0.4em;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu a {
	text-decoration: none;
}

.site-footer__menu a:hover {
	text-decoration: underline;
}

@media (max-width: 699px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}

/* 11. Lightbox ------------------------------------------------------------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: #000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s var(--ease);
}

.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem var(--gutter);
	color: var(--muted);
	font-size: var(--step--1);
	letter-spacing: 0.12em;
}

.lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 0 clamp(0.5rem, 6vw, 5rem);
	touch-action: pan-y;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	max-height: calc(100svh - 140px);
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity 0.25s;
}

.lightbox__img.is-loading {
	opacity: 0;
}

.lightbox__caption {
	min-height: 3rem;
	padding: 0.75rem var(--gutter) 1.25rem;
	color: var(--soft);
	font-size: 0.9rem;
	text-align: center;
}

.lightbox button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 1.75rem;
	font-weight: 200;
	line-height: 1;
	cursor: pointer;
}

.lightbox__prev,
.lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__prev {
	left: 0.5rem;
}

.lightbox__next {
	right: 0.5rem;
}

.lightbox button:hover {
	color: var(--muted);
}

/* 12. Animazioni ----------------------------------------------------------- */

@keyframes s77-zoom {
	from {
		transform: scale(1.06);
	}
	to {
		transform: scale(1);
	}
}

@keyframes s77-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes s77-scroll {
	0% {
		transform: translateY(-100%);
	}
	60%,
	100% {
		transform: translateY(100%);
	}
}

.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* Stampa */
@media print {
	.site-header,
	.side-band,
	.hero__scroll,
	.lightbox {
		display: none !important;
	}

	body {
		padding: 0;
		background: #fff;
		color: #000;
	}
}
