/* ==========================================================================
   78 Studio Associato · design B "Fotografico" (Figma jK5SN9qFj6RIZ6lcdlXDQS, 5:175)
   Misure di riferimento a 1440: contenuto 1360, gutter 40, gap 16.
   ========================================================================== */

/* Font ------------------------------------------------------------------- */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Token (variabili Figma della B) ---------------------------------------- */
:root {
	--color-bg: #141414;
	--color-text: #f2f2f0;
	--color-muted: #8c8c8c;
	--color-line: #2e2e2e;
	--color-placeholder: #1e1e1e;
	--color-logo: #707070;

	--font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--max: 1360px;
	--gutter: 40px;
	--gap: 16px;
	--inline: max(var(--gutter), calc((100% - var(--max)) / 2));
	--header-h: 96px;

	--fs-display: clamp(44px, 6.112vw, 88px);
	--fs-h2: clamp(40px, 5vw, 72px);
	--fs-lead: clamp(26px, 3.056vw, 44px);
	--fs-h3: clamp(20px, 1.667vw, 24px);

	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (max-width: 1023px) { :root { --gutter: 32px; --header-h: 88px; } }
@media (max-width: 767px)  { :root { --gutter: 20px; --header-h: 72px; } }
@media (max-width: 374px)  { :root { --gutter: 16px; } }

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--color-text); outline-offset: 4px; }
::selection { background: var(--color-text); color: var(--color-bg); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; border-radius: 100px;
	background: var(--color-text); color: var(--color-bg); font-size: 14px; font-weight: 500;
	transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }
.site-main { display: block; outline: none; }
body:not(.has-hero) .site-main { padding-top: var(--header-h); }

/* Tipografia ------------------------------------------------------------- */
.label {
	font-size: 13px; line-height: 18px; font-weight: 400;
	letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted);
}
.label--section { margin-bottom: 32px; }
.h2 {
	font-size: var(--fs-h2); font-weight: 200; line-height: 1.36; letter-spacing: -.03em; color: var(--color-text);
}
.lead {
	font-size: var(--fs-lead); font-weight: 300; line-height: 1.22; letter-spacing: -.02em; color: var(--color-text);
}
.lead--medio { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -.01em; }
.caption { margin-top: 12px; font-size: 13px; color: var(--color-muted); }
.prose { font-size: 16px; line-height: 1.6; color: var(--color-text); max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose h2, .prose h3 { font-weight: 300; letter-spacing: -.01em; line-height: 1.3; margin-top: 1.6em; }
.prose h2 { font-size: var(--fs-h3); }
.prose h3 { font-size: 18px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }

.placeholder {
	display: inline-block; color: var(--color-muted); font-size: 14px; line-height: 1.5; letter-spacing: 0; font-weight: 400;
	padding: 8px 12px; border: 1px dashed var(--color-muted); border-radius: 4px; text-transform: none;
}

/* Layout ----------------------------------------------------------------- */
.section {
	padding: 160px var(--inline) 40px;
}
.pt-xl { padding-top: 180px; }
.pt-l { padding-top: 160px; }
.pt-s { padding-top: 56px; }
.pt-xs { padding-top: 32px; }
.pt-none { padding-top: 0; }
@media (max-width: 1023px) {
	.pt-xl { padding-top: 128px; } .pt-l { padding-top: 112px; } .pt-s { padding-top: 48px; }
}
@media (max-width: 767px) {
	.pt-xl { padding-top: 96px; } .pt-l { padding-top: 88px; } .pt-s { padding-top: 40px; } .pt-xs { padding-top: 24px; }
}

/* Riga "label + testo": 440 | 40 | 880 */
.split { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 880fr); column-gap: 40px; align-items: start; }
.split--head { margin-bottom: 56px; }
@media (max-width: 1023px) {
	.split { grid-template-columns: 1fr; row-gap: 20px; }
	.split > span:empty { display: none; }
}

.section-head {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap;
	padding-bottom: 56px;
}
.section-head__titles { display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; flex-direction: column; gap: 16px; }
.page-head__intro { margin-top: 40px; }

/* Bottoni & chip ----------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; min-height: 53px;
	border: 1px solid var(--color-text); border-radius: 100px;
	font-size: 14px; font-weight: 500; line-height: 19px; color: var(--color-text); white-space: nowrap;
	transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn__arrow { font-weight: 400; transition: transform .4s var(--ease); }
.btn:hover { background: var(--color-text); color: var(--color-bg); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; padding-top: 48px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; height: 40px; padding: 10px 18px;
	border: 1px solid var(--color-line); border-radius: 100px;
	font-size: 13px; line-height: 18px; color: var(--color-text); white-space: nowrap;
	transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.chip:hover { border-color: var(--color-muted); }
.chip.is-active { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
@media (max-width: 767px) {
	.chips {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
		margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
		width: calc(100% + var(--gutter) * 2);
	}
	.chips::-webkit-scrollbar { display: none; }
	.chip { height: 44px; }
}

/* Righe con bordo superiore (servizi, contatti, scheda) ------------------- */
.row-line { position: relative; }
.row-line::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--color-line);
	transform-origin: left center;
}
.rows__item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 20px 0; }
.rows__item dt { font-size: 13px; line-height: 18px; color: var(--color-muted); padding-top: 3px; }
.rows__item dd { font-size: 16px; line-height: 1.5; }
.rows__item dd a { transition: opacity .3s; }
.rows__item dd a:hover { opacity: .65; }
.rows--wide .rows__item { grid-template-columns: 200px minmax(0, 1fr); }
@media (max-width: 767px) {
	.rows__item, .rows--wide .rows__item { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}

/* Header ------------------------------------------------------------------ */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	padding: 28px var(--inline);
	color: #fff;
	transition: transform .6s var(--ease), background-color .5s var(--ease), padding .5s var(--ease);
}
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-line);
	opacity: 0; transition: opacity .5s var(--ease);
}
body:not(.has-hero) .site-header,
.site-header.is-solid { background: rgba(20, 20, 20, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--color-text); }
.site-header.is-solid::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 40px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; line-height: 20px; }
.brand .logo-78 { width: 40px; height: 40px; flex: none; }
.nav__list { display: flex; gap: 40px; }
.nav__list a { position: relative; font-size: 15px; line-height: 20px; padding: 10px 0; transition: opacity .3s; }
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: right center; transition: transform .5s var(--ease);
}
.nav__list a:hover::after,
.nav__list .current-menu-item > a::after,
.nav__list .current-menu-ancestor > a::after,
.nav__list .current_page_item > a::after { transform: scaleX(1); transform-origin: left center; }

.menu-toggle { display: none; align-items: center; gap: 12px; height: 44px; font-size: 15px; line-height: 20px; }
.menu-toggle__icon { position: relative; width: 22px; height: 10px; }
.menu-toggle__icon span {
	position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
	transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 9px; }
.menu-open .menu-toggle__icon span:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon span:last-child { top: 4.5px; transform: rotate(-45deg); }

@media (max-width: 767px) {
	.site-header { padding-block: 16px; }
	.nav { display: none; }
	.menu-toggle { display: inline-flex; }
	.brand { gap: 12px; }
}

.menu-mobile {
	position: fixed; inset: 0; z-index: 45; background: var(--color-bg); color: var(--color-text);
	padding: calc(var(--header-h) + 32px) var(--gutter) 32px; overflow-y: auto;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.menu-mobile__list li { border-top: 1px solid var(--color-line); }
.menu-mobile__list li:last-child { border-bottom: 1px solid var(--color-line); }
.menu-mobile__list a { display: block; padding: 18px 0; font-size: clamp(32px, 10vw, 44px); font-weight: 300; letter-spacing: -.02em; line-height: 1.22; }
.menu-mobile__contacts { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--color-muted); }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--color-bg); color: var(--color-text); transform: none; }

/* Hero slider · 1440×900 --------------------------------------------------- */
.hero {
	position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1400px;
	overflow: hidden; background: #000; color: #fff;
}
.hero__slides, .hero__slide, .hero__media { position: absolute; inset: 0; }
.hero__slides { z-index: 0; } /* contesto proprio: il velo resta sempre sopra le slide */
.hero__slide { opacity: 0; visibility: hidden; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
	position: absolute; inset: 0; pointer-events: none;
	/* Gradiente del Figma (5:176) + un velo morbido in basso a sinistra, dietro ai titoli, per la leggibilità. */
	background:
		radial-gradient(75% 70% at 0% 100%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,0) 78%),
		linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.08) 58%, rgba(0,0,0,.76) 100%);
}
.hero__bottom {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 0 var(--inline) 40px;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero__captions { display: grid; min-width: 0; flex: 1 1 auto; }
/* Le didascalie sono sovrapposte nella stessa cella: si allineano in basso, così un titolo su due righe
   cresce verso l'alto. Il margine sotto = una riga di titolo (lo spazio dei titoli su una riga). */
@media (min-width: 768px) {
	.hero__captions { padding-bottom: var(--fs-display); }
	/* Navigazione e "Tutti i progetti" alla stessa altezza della riga località/anno. */
	.hero__nav { margin-bottom: calc(var(--fs-display) - var(--nav-shift, 6px)); }
	.hero__back { margin-bottom: calc(var(--fs-display) - var(--back-shift, 12px)); }
}
.hero__caption {
	grid-area: 1 / 1; align-self: end; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
	opacity: 0; visibility: hidden; color: #fff;
}
.hero__caption.is-active { opacity: 1; visibility: visible; }
.hero__label { font-size: 13px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.hero__label, .hero__title, .hero__meta, .hero__count { text-shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 36px rgba(0,0,0,.42); }
.hero__title { font-size: var(--fs-display); font-weight: 260; line-height: 1; letter-spacing: -.03em; max-width: 14ch; }
.hero__meta { font-size: 16px; line-height: 22px; color: rgba(255,255,255,.86); }
a.hero__caption:hover .hero__title { opacity: .85; }
.hero__nav { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.hero__count { font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.hero__count-row { display: flex; align-items: center; gap: 12px; }
.hero__toggle {
	position: relative; width: 28px; height: 28px; border-radius: 100px; display: grid; place-items: center;
	border: 1px solid rgba(255,255,255,.4); color: #fff; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.hero__toggle::after { content: ""; position: absolute; inset: -8px; } /* area di tocco 44px */
.hero__toggle:hover { background: #fff; color: #000; border-color: #fff; }
.hero__toggle[hidden] { display: none; }
.hero__toggle-play { display: none; }
.hero__toggle.is-paused .hero__toggle-play { display: block; }
.hero__toggle.is-paused .hero__toggle-pause { display: none; }
.hero__bars { display: flex; gap: 6px; }
.hero__bar { position: relative; width: 36px; height: 22px; }
.hero__bar::before, .hero__bar-fill {
	content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px;
}
.hero__bar::before { background: rgba(255,255,255,.35); }
.hero__bar-fill { background: #fff; transform: scaleX(0); transform-origin: left center; }
.hero__bar.is-active .hero__bar-fill, .hero__bar.is-done .hero__bar-fill { transform: scaleX(1); }
.hero--single .hero__title { max-width: 18ch; }
.hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.hero__cat {
	display: inline-flex; align-items: center; height: 32px; padding: 6px 14px;
	border: 1px solid rgba(255,255,255,.55); border-radius: 100px;
	background: rgba(20,20,20,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-size: 13px; line-height: 18px; letter-spacing: .02em; color: #fff;
	transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.hero__cat:hover { background: #fff; color: var(--color-bg); border-color: #fff; }
@media (max-width: 767px) { .hero__cat { height: 36px; } }
.hero__back { flex: none; font-size: 13px; line-height: 18px; color: rgba(255,255,255,.8); padding: 12px 0; transition: color .3s; }
.hero__back:hover { color: #fff; }
@media (max-width: 767px) {
	.hero { min-height: 520px; }
	.hero__bottom { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 28px; }
	.hero__nav { align-items: flex-start; flex-direction: column-reverse; gap: 8px; }
	.hero__bar { width: 28px; }
	.hero__title { max-width: none; font-weight: 300; }
	.hero__shade { background: radial-gradient(120% 55% at 0% 100%, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.8) 100%); }
}

/* Mosaico progetti --------------------------------------------------------- */
.mosaic__grid { display: flex; flex-direction: column; gap: var(--gap); }
.mosaic__row { display: flex; gap: var(--gap); }
.mosaic__row--ls, .mosaic__row--sl, .mosaic__row--f, .mosaic__row--l, .mosaic__row--s { aspect-ratio: 1360 / 620; }
.mosaic__row--mmm, .mosaic__row--mm, .mosaic__row--m { aspect-ratio: 1360 / 440; }
.tile--l { flex: 872 1 0; }
.tile--s { flex: 472 1 0; }
.tile--m { flex: 443 1 0; }
.tile--f { flex: 1 1 0; }
.mosaic__empty { padding: 80px 0; text-align: center; color: var(--color-muted); }
@media (max-width: 1023px) {
	.mosaic__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mosaic__row { display: contents; }
	.tile { aspect-ratio: 4 / 5; }
	.tile--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
	.mosaic__grid { grid-template-columns: minmax(0, 1fr); }
	.tile, .tile--wide { grid-column: auto; aspect-ratio: 4 / 5; }
	.tile--l, .tile--f, .tile--wide { aspect-ratio: 1 / 1; }
}

.tile { position: relative; overflow: hidden; background: var(--color-placeholder); min-width: 0; }
.tile[hidden] { display: none; }
.tile__link { display: block; position: absolute; inset: 0; color: #fff; }
.tile__media { position: absolute; inset: 0; overflow: hidden; }
.tile__img, .tile__empty { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile__media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
	transition: opacity .6s var(--ease);
}
.gallery .tile__media::after { opacity: 0; }
.tile__caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 0 28px 24px;
	display: flex; flex-direction: column; gap: 4px; transition: transform .6s var(--ease);
}
.tile__title { font-size: 22px; font-weight: 500; line-height: 30px; letter-spacing: -.01em; }
.tile__meta { font-size: 13px; line-height: 18px; color: rgba(255,255,255,.7); }
.tile__link:hover .tile__img { transform: scale(1.04); }
.tile__link:hover .tile__caption { transform: translateY(-4px); }
.tile__link:focus-visible { outline-offset: -6px; }
.gallery .tile__link { cursor: zoom-in; }
@media (max-width: 767px) {
	.tile__caption { padding: 0 20px 20px; }
	.tile__title { font-size: 20px; line-height: 26px; }
}

/* Servizi · immagine 872 + elenco 472 --------------------------------------- */
.services { display: grid; grid-template-columns: minmax(0, 872fr) minmax(0, 472fr); gap: var(--gap); align-items: start; }
.services__media { position: relative; aspect-ratio: 872 / 560; overflow: hidden; background: var(--color-placeholder); }
.services__img, .contact__img, .wide-figure__img { width: 100%; height: 115%; object-fit: cover; position: absolute; top: -7.5%; left: 0; }
.service { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 24px; padding: 24px 0; align-items: start; }
.service__num { font-size: 13px; line-height: 18px; color: var(--color-muted); padding-top: 4px; }
.service__body { display: flex; flex-direction: column; gap: 8px; }
.service__title { font-size: var(--fs-h3); font-weight: 300; line-height: 1.375; letter-spacing: -.01em; transition: transform .5s var(--ease); }
.service__desc { font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.service .icon--arrow-ne { margin-top: 3px; transition: transform .5s var(--ease); }
.service:hover .icon--arrow-ne { transform: translate(3px, -3px); }
.service:hover .service__title { transform: translateX(4px); }
@media (max-width: 1023px) {
	.services { grid-template-columns: 1fr; gap: 32px; }
	.service { grid-template-columns: 28px minmax(0, 1fr) 22px; }
}

/* Team · fondatori -------------------------------------------------------- */
.team { display: grid; grid-template-columns: minmax(0, 472fr) minmax(0, 428fr) minmax(0, 428fr); gap: var(--gap); align-items: start; }
.team__text { padding-right: 48px; display: flex; flex-direction: column; gap: 32px; }
.person { position: relative; display: flex; flex-direction: column; }
.person__portrait {
	position: relative; aspect-ratio: 428 / 540; background: var(--color-placeholder); overflow: hidden;
	display: grid; place-items: center; margin-bottom: 22px;
}
.person--persona .person__portrait { aspect-ratio: 213 / 284; }
.person__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.person:hover .person__img { filter: grayscale(0); }
.person__name { font-size: 18px; font-weight: 400; line-height: 25px; }
.person__role { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--color-muted); }
.person__bio { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--color-muted); }
.person__summary { margin-top: 16px; font-size: 15px; line-height: 1.6; color: rgba(242,242,240,.78); max-width: 46ch; }
.person--fondatore .person__open { margin-top: 16px; font-size: 14px; }
.person--fondatore .person__more .icon { width: 18px; height: 18px; }
.person__open { margin-top: 12px; align-self: flex-start; font-size: 13px; line-height: 18px; color: var(--color-text); }
.person__open::after { content: ""; position: absolute; inset: 0; }
.person__more { display: inline-flex; align-items: center; gap: 6px; }
.person__more .icon { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.person--clickable:hover .person__more .icon { transform: translate(2px, -2px); }
.person--clickable:hover .person__img { transform: scale(1.03); }
@media (max-width: 1023px) {
	.team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.team__text { grid-column: 1 / -1; padding-right: 0; max-width: 640px; margin-bottom: 24px; }
}
@media (max-width: 767px) {
	.team { grid-template-columns: 1fr; gap: 40px; }
	.team__text { margin-bottom: 0; }
}

.people { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px var(--gap); }
@media (max-width: 1279px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; } }

.alumni { margin-top: 96px; padding-top: 32px; display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 880fr); column-gap: 40px; row-gap: 20px; }
.alumni__list { columns: 3; column-gap: 40px; }
.alumni__list li { font-size: 16px; line-height: 1.5; padding: 4px 0; break-inside: avoid; }
@media (max-width: 1023px) { .alumni { grid-template-columns: 1fr; } }
@media (max-width: 767px)  { .alumni { margin-top: 64px; } .alumni__list { columns: 2; column-gap: 16px; } }

.bio-dialog {
	width: min(720px, calc(100% - 2 * var(--gutter))); max-height: calc(100% - 2 * var(--gutter));
	padding: 0; border: 1px solid var(--color-line); background: var(--color-bg); color: var(--color-text);
}
.bio-dialog::backdrop { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bio-dialog__inner { position: relative; padding: 48px; display: flex; flex-direction: column; gap: 16px; }
.bio-dialog__title { font-size: var(--fs-lead); font-weight: 300; line-height: 1.22; letter-spacing: -.02em; margin-bottom: 16px; }
.bio-dialog .prose { font-size: 15px; color: var(--color-muted); }
.bio-dialog__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; }
@media (max-width: 767px) { .bio-dialog__inner { padding: 56px 24px 32px; } }

/* Contatti · 533 + 811 ------------------------------------------------------ */
.section--contatti { padding-bottom: 120px; }
.section--contatti .label--section { margin-bottom: 56px; }
.contact { display: grid; grid-template-columns: minmax(0, 533fr) minmax(0, 811fr); gap: var(--gap); align-items: stretch; }
.contact__info { padding-right: 64px; display: flex; flex-direction: column; gap: 48px; }
.contact__head { display: flex; flex-direction: column; gap: 24px; }
.contact__title { max-width: 469px; }
.contact__email { font-size: var(--fs-h3); font-weight: 300; line-height: 1.375; letter-spacing: -.01em; align-self: flex-start; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); overflow-wrap: anywhere; }
.contact__email:hover { background-size: 100% 1px; }
.contact__info .rows { max-width: 469px; }
.contact__media { position: relative; overflow: hidden; background: var(--color-placeholder); min-height: 320px; }
@media (max-width: 1023px) {
	.section--contatti { padding-bottom: 96px; }
	.contact { grid-template-columns: 1fr; gap: 48px; }
	.contact__info { padding-right: 0; }
	.contact__media { aspect-ratio: 811 / 560; min-height: 0; }
}
@media (max-width: 767px) { .section--contatti { padding-bottom: 72px; } .section--contatti .label--section { margin-bottom: 32px; } }

/* Pagine interne ----------------------------------------------------------- */
.section--progetti-archivio .section-head { align-items: center; }
.mosaic__count { font-variant-numeric: tabular-nums; }

.service-details { display: flex; flex-direction: column; }
.service-detail { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 880fr); column-gap: 40px; row-gap: 20px; padding: 40px 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.service-detail__num { font-size: 13px; line-height: 18px; color: var(--color-muted); grid-row: span 2; padding-top: 12px; }
.service-detail__head { display: flex; flex-direction: column; gap: 12px; }
.service-detail__title { font-size: var(--fs-lead); font-weight: 300; line-height: 1.22; letter-spacing: -.02em; }
.service-detail__desc { font-size: 16px; line-height: 1.5; color: var(--color-muted); max-width: 560px; }
.service-detail__list { grid-column: 2; columns: 2; column-gap: 40px; }
.service-detail__list li { font-size: 16px; line-height: 1.5; padding: 10px 0; border-top: 1px solid var(--color-line); break-inside: avoid; }
@media (max-width: 1023px) {
	.service-detail { grid-template-columns: 1fr; }
	.service-detail__num { grid-row: auto; padding-top: 0; }
	.service-detail__list { grid-column: auto; }
}
@media (max-width: 767px) { .service-detail__list { columns: 1; } .service-detail { padding: 32px 0; } }

.sectors { margin-top: 40px; padding-top: 32px; display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 880fr); column-gap: 40px; row-gap: 20px; }
.sectors__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sectors__list li { display: inline-flex; align-items: center; height: 40px; padding: 10px 18px; border: 1px solid var(--color-line); border-radius: 100px; font-size: 13px; line-height: 18px; }
@media (max-width: 1023px) { .sectors { grid-template-columns: 1fr; } }

.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-line); }
.logos__item { border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); aspect-ratio: 3 / 2; }
.logos__link { display: grid; place-items: center; width: 100%; height: 100%; padding: 12%; transition: background-color .5s var(--ease); }
.logos__img { width: auto; max-width: 78%; max-height: 64px; object-fit: contain; opacity: .72; transition: opacity .5s var(--ease), transform .8s var(--ease); }
a.logos__link:hover { background: var(--color-placeholder); }
a.logos__link:hover .logos__img { opacity: 1; transform: scale(1.04); }
@media (max-width: 1023px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos__img { max-height: 44px; } }

.wide-figure__media { position: relative; aspect-ratio: 1360 / 640; overflow: hidden; background: var(--color-placeholder); }
@media (max-width: 767px) { .wide-figure__media { aspect-ratio: 4 / 3; } }

.map { position: relative; height: var(--map-h, 520px); border: 1px solid var(--color-line); background: var(--color-placeholder); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 40px; max-width: 640px; }
.map__address { font-size: var(--fs-h3); font-weight: 300; letter-spacing: -.01em; }
.map__note { font-size: 13px; color: var(--color-muted); }
.map.is-loaded .map__consent { display: none; }
@media (max-width: 767px) { .map { height: 420px; } .map__consent { padding: 24px; } }

/* Progetto singolo --------------------------------------------------------- */
.project-sheet__desc { margin-bottom: 40px; max-width: 760px; }
.project-sheet__desc p + p { margin-top: .7em; }
.project-sheet .rows { border-bottom: 1px solid var(--color-line); }
.project-gallery .mosaic__grid { margin-top: 0; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.96); }
.lightbox[hidden] { display: none; }
/* Area fissa rispetto allo schermo: la foto ci sta sempre intera (mai ritagliata), qualunque sia il formato. */
.lightbox__stage { position: absolute; inset: 72px 96px; margin: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__btn { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; color: var(--color-text); border: 1px solid var(--color-line); border-radius: 100px; transition: background-color .3s, color .3s; }
.lightbox__btn:hover { background: var(--color-text); color: var(--color-bg); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 24px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; font-size: 13px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
	/* Mobile: pulsanti da 44 px (minimo comodo al tocco) e 24 px di respiro tra pulsanti e foto. */
	.lightbox__btn { width: 44px; height: 44px; }
	.lightbox__btn .icon { width: 18px; height: 18px; }
	.lightbox__close { top: 16px; right: 16px; }
	.lightbox__stage { inset: 84px 0 84px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: none; }
	.lightbox__prev { left: 16px; }
	.lightbox__next { right: 16px; }
	.lightbox__count { bottom: 28px; }
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--color-line); padding: 24px var(--inline) 28px;
	display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
	font-size: 13px; line-height: 18px; color: var(--color-muted);
}
.site-footer__sep { margin: 0 2px; }
.site-footer__list { display: flex; }
.site-footer__list li + li::before { content: "·"; margin: 0 6px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--color-text); }
@media (max-width: 767px) { .site-footer { flex-direction: column; align-items: flex-start; padding-bottom: 32px; } }

/* Documento con indice (privacy, cookie) --------------------------------- */
.legal { align-items: start; }
.legal__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 32px; }
.legal__toc ol { margin-top: 16px; border-top: 1px solid var(--color-line); }
.legal__toc li { border-bottom: 1px solid var(--color-line); }
.legal__toc a { display: flex; gap: 16px; padding: 12px 0; font-size: 14px; line-height: 1.4; color: var(--color-muted); transition: color .3s, transform .5s var(--ease); }
.legal__toc a:hover, .legal__toc a.is-current { color: var(--color-text); }
.legal__toc a:hover { transform: translateX(4px); }
.legal__num { font-size: 13px; color: var(--color-muted); font-variant-numeric: tabular-nums; min-width: 22px; }
.legal__updated { font-size: 13px; color: var(--color-muted); }
.legal__intro { margin-bottom: 48px; font-size: 18px; }
.legal__chapter { padding: 32px 0 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__title { display: flex; gap: 24px; align-items: baseline; font-size: var(--fs-h3); font-weight: 300; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 20px; }
.legal__title .legal__num { padding-top: 2px; }
.legal .prose { max-width: 760px; color: rgba(242,242,240,.86); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--color-line); }
.prose th { font-size: 13px; font-weight: 400; color: var(--color-muted); }
.prose td code, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; color: var(--color-text); }
@media (max-width: 1023px) {
	.legal__aside { position: static; }
	.legal__toc { display: none; }
}
@media (max-width: 767px) {
	.prose table, .prose thead, .prose tbody, .prose tr, .prose td, .prose th { display: block; }
	.prose thead { display: none; }
	.prose tr { border-top: 1px solid var(--color-line); padding: 10px 0; }
	.prose td { border: 0; padding: 2px 0; }
	.prose td:first-child { color: var(--color-text); }
}

/* Modulo di contatto -------------------------------------------------------- */
.form-title { margin-bottom: 16px; max-width: 760px; }
.form-lede { font-size: 16px; line-height: 1.5; color: var(--color-muted); max-width: 640px; margin-bottom: 8px; }
.form { margin-top: 32px; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.field { position: relative; display: flex; flex-direction: column; padding: 20px 0 8px; border-top: 1px solid var(--color-line); }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 13px; line-height: 18px; color: var(--color-muted); margin-bottom: 6px; transition: color .3s; }
.field__input {
	width: 100%; padding: 6px 0 10px; border: 0; border-radius: 0; background: transparent;
	font: inherit; font-size: 18px; line-height: 1.4; color: var(--color-text);
	border-bottom: 1px solid transparent; transition: border-color .4s var(--ease);
	-webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: rgba(140,140,140,.6); }
.field__input:focus { outline: none; border-bottom-color: var(--color-text); }
.field:focus-within .field__label { color: var(--color-text); }
.field__input--area { resize: vertical; min-height: 140px; }
.field--select .field__input { padding-right: 28px; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23f2f2f0' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field--select option { background: var(--color-bg); color: var(--color-text); }
.field__error { min-height: 0; font-size: 13px; line-height: 18px; color: #ff8a7a; }
.field__error:empty { display: none; }
.field.has-error .field__input { border-bottom-color: #ff8a7a; }
.field.has-error .field__label { color: #ff8a7a; }
.field--check { padding: 20px 0 0; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check__box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--color-muted); border-radius: 4px; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.check__box::after { content: ""; width: 10px; height: 6px; border: solid var(--color-bg); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--color-text); border-color: var(--color-text); }
.check input:checked + .check__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible + .check__box { outline: 1px solid var(--color-text); outline-offset: 3px; }
.check__text { font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.check__text a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.field--check.has-error .check__box { border-color: #ff8a7a; }
.field--turnstile { border-top: 0; padding: 20px 0 0; min-height: 0; }
.field--turnstile .cf-turnstile:empty { display: none; }
.form__footer { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { font-size: 14px; line-height: 1.5; max-width: 520px; }
.form__status.is-ok { color: var(--color-text); }
.form__status.is-error { color: #ff8a7a; }
.form.is-sent .form__status { padding-left: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3E%3Ccircle cx='9' cy='9' r='8.4' stroke='%23f2f2f0' stroke-width='1.2'/%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-4.9' stroke='%23f2f2f0' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat left 2px; }
@media (max-width: 767px) {
	.form__grid { grid-template-columns: 1fr; }
	.field__input { font-size: 16px; } /* niente zoom automatico su iOS */
	.form__footer { flex-direction: column; align-items: stretch; }
	.form__submit { justify-content: center; }
}

/* Banner cookie ------------------------------------------------------------ */
.cookie {
	position: fixed; z-index: 80; bottom: 16px; left: 16px; width: min(420px, calc(100% - 32px));
	background: rgba(20,20,20,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border: 1px solid var(--color-line); color: var(--color-text); padding: 24px;
	box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.cookie[hidden] { display: none; }
.cookie--destra { left: auto; right: 16px; }
.cookie--barra { left: 0; right: 0; bottom: 0; width: 100%; border-width: 1px 0 0; box-shadow: none; padding: 20px var(--inline); }
.cookie--barra .cookie__main { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.cookie--barra .cookie__text { flex: 1 1 420px; margin: 0; }
.cookie--barra .cookie__title { display: none; }
.cookie--barra .cookie__prefs { max-width: 640px; }
.cookie__title { font-size: 13px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 10px; }
.cookie__text { font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.cookie__text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cookie__btn {
	height: 40px; padding: 0 20px; border: 1px solid var(--color-text); border-radius: 100px;
	font-size: 13px; font-weight: 500; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.cookie__btn:hover { background: var(--color-text); color: var(--color-bg); }
.cookie__link { margin-left: auto; height: 40px; padding: 0 4px; font-size: 13px; color: var(--color-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .3s; }
.cookie__link:hover { color: var(--color-text); }
.cookie__prefs { overflow: hidden; margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--color-line); }
.cookie__prefs[hidden] { display: none; }
.cookie__cat { padding: 14px 0; border-bottom: 1px solid var(--color-line); }
.cookie__cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: default; }
label.cookie__cat-head { cursor: pointer; }
.cookie__cat-name { font-size: 14px; }
.cookie__always { font-size: 12px; color: var(--color-muted); }
.cookie__cat-text { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--color-muted); }
.cookie__prefs .cookie__actions { margin-top: 16px; }
.switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__ui { position: absolute; inset: 0; border: 1px solid var(--color-muted); border-radius: 100px; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-muted); transition: transform .4s var(--ease), background-color .3s; }
.switch input:checked + .switch__ui { background: var(--color-text); border-color: var(--color-text); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); background: var(--color-bg); }
.switch input:focus-visible + .switch__ui { outline: 1px solid var(--color-text); outline-offset: 3px; }
.site-footer__cookie { font-size: 13px; color: var(--color-muted); transition: color .3s; }
.site-footer__cookie:hover { color: var(--color-text); }
@media (max-width: 767px) {
	.cookie { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 20px; }
	.cookie--barra { left: 0; right: 0; bottom: 0; }
	.cookie__btn { flex: 1 1 0; height: 44px; }
	.cookie__link { flex-basis: 100%; margin-left: 0; text-align: center; }
}

/* Stati iniziali delle animazioni (solo con JS + motion consentito) ------- */
/* Valgono solo finché l'elemento non è stato animato (.is-revealed), poi comandano gli stili finali. */
.motion [data-reveal="fade"]:not(.is-revealed),
.motion [data-reveal="row"]:not(.is-revealed),
.motion [data-reveal="lines"]:not(.is-revealed),
.motion [data-reveal="stagger"]:not(.is-revealed) > * { opacity: 0; }
.motion [data-reveal="row"]:not(.is-revealed)::before { transform: scaleX(0); }
.motion [data-reveal="row"].is-revealed::before { transform: scaleX(var(--line, 1)); }
.motion [data-reveal="image"]:not(.is-revealed) { clip-path: inset(100% 0 0 0); }
.motion:not(.intro-done) .hero__caption.is-active,
.motion:not(.intro-done) .hero__nav,
.motion:not(.intro-done) .site-header__inner { opacity: 0; }
/* Maschera delle righe animate (SplitText): più alta della riga per non tagliare g, p, q e accenti,
   con margini negativi uguali così l'interlinea resta quella del design. */
.sline-mask { padding-bottom: .24em; margin-bottom: -.24em; overflow-clip-margin: .12em; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
