/* ==========================================================================
   GF · main.css
   Token e tipografia ricavati dal progetto Framer «NEW Gianluca Fazio».
   Mobile-first: Phone < 810 px, Tablet 810–1199 px, Desktop ≥ 1200 px.
   ========================================================================== */

/* Font --------------------------------------------------------------------- */
@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/raleway-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: "Raleway";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/raleway-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;
}
@font-face {
	font-family: "Raleway";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/raleway-latin-wght-italic.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: "Raleway";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/raleway-latin-ext-wght-italic.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 -------------------------------------------------------------------- */
:root {
	/* Palette essenziale */
	--c-deep-black: #141414;
	--c-linen: #faf0e6;
	--c-signal-coral: #e75b42;
	--c-atlantic-petrol: #3e6b7c;

	/* Toni di supporto presenti in Framer */
	--c-linen-100: #e8ded5;
	--c-linen-50: #f1e7de;
	--c-neutral-border: #d1c8c0;
	--c-warm-secondary: #beb7b0;
	--c-warm-tertiary: #9e9892;

	/* Ruoli: tema scuro come espressione principale */
	--bg: var(--c-deep-black);
	--fg: var(--c-linen);
	--muted: var(--c-warm-tertiary);
	--accent: var(--c-signal-coral);
	--line: rgba(250, 240, 230, 0.12);

	/* Spaziatura su base 4 px */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 20px;
	--s-6: 24px;
	--s-8: 32px;
	--s-10: 40px;
	--s-12: 48px;
	--s-16: 64px;
	--s-20: 80px;
	--s-30: 120px;

	--gutter: var(--s-5);
	--section-y: var(--s-20);
	--max: 1440px;

	--font: "Raleway", system-ui, sans-serif;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 810px) {
	:root {
		--gutter: var(--s-10);
		--section-y: var(--s-30);
	}
}

@media (min-width: 1200px) {
	:root {
		--gutter: var(--s-16);
		--section-y: 160px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	overscroll-behavior: none;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.3;
	letter-spacing: -0.04em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, ol, ul, figure {
	margin: 0;
}

ol, ul {
	padding: 0;
	list-style: none;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

::selection {
	background: var(--accent);
	color: var(--c-deep-black);
}

/* Tipografia (stili di testo Framer) ------------------------------------- */
/* Ogni classe parte dal valore Phone e cresce a Tablet e Desktop. */
[class^="t-"], [class*=" t-"] {
	font-family: var(--font);
	font-style: normal;
}

.t-h1 { font-weight: 600; font-size: 5.38rem; line-height: 1; letter-spacing: -0.04em; }
.t-h2 { font-weight: 500; font-size: 7rem; line-height: 1; letter-spacing: -0.07em; }
.t-h3 { font-weight: 500; font-size: 3.25rem; line-height: 1; letter-spacing: -0.06em; }
.t-h3b { font-weight: 500; font-size: 3rem; line-height: 1; letter-spacing: -0.06em; }
.t-h4 { font-weight: 500; font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.07em; }
.t-h5 { font-weight: 600; font-size: 3rem; line-height: 1.1; letter-spacing: -0.05em; }
.t-h6 { font-weight: 500; font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.05em; }
.t-h7 { font-weight: 500; font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.06em; }
.t-h8 { font-weight: 400; font-size: 2rem; line-height: 1.2; letter-spacing: -0.05em; }
.t-h9 { font-weight: 400; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.06em; }
.t-h10 { font-weight: 500; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.06em; }
.t-h11 { font-weight: 500; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.05em; }

.t-body-21 { font-weight: 400; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.04em; }
.t-body-18 { font-weight: 400; font-size: 1rem; line-height: 1.4; letter-spacing: -0.05em; }
.t-body-18-list { font-weight: 400; font-size: 1.13rem; line-height: 2; letter-spacing: -0.04em; }
.t-body-16 { font-weight: 400; font-size: 1rem; line-height: 1.3; letter-spacing: -0.04em; }
.t-body-14 { font-weight: 400; font-size: 0.88rem; line-height: 1.3; letter-spacing: -0.04em; }
.t-body-14-list { font-weight: 400; font-size: 0.88rem; line-height: 1.8; letter-spacing: -0.04em; }
.t-body-12 { font-weight: 400; font-size: 0.75rem; line-height: 1.2; letter-spacing: -0.06em; }

.t-mono-32, .t-mono-20, .t-mono-18, .t-mono-16, .t-mono-13, .t-mono-12, .t-mono-10 {
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: -0.05em;
	line-height: 1.3;
}
.t-mono-32 { font-size: 2rem; }
.t-mono-20 { font-size: 1rem; }
.t-mono-18 { font-size: 1.13rem; }
.t-mono-16 { font-size: 1rem; line-height: 1.5; }
.t-mono-13 { font-size: 13px; }
.t-mono-12 { font-size: 0.75rem; }
.t-mono-10 { font-size: 0.64rem; line-height: 1.2; letter-spacing: -0.04em; }

@media (min-width: 810px) {
	.t-h1 { font-size: 6.72rem; }
	.t-h3 { font-size: 6rem; }
	.t-h3b { font-size: 5rem; }
	.t-h4 { font-size: 4rem; }
	.t-h6 { font-size: 2.7rem; line-height: 1; }
	.t-h9 { font-size: 1.6rem; }
	.t-body-18 { font-size: 16px; }
	.t-mono-20 { font-size: 1.73rem; }
}

@media (min-width: 1200px) {
	.t-h1 { font-size: 10rem; }
	.t-h3 { font-size: 8rem; }
	.t-h3b { font-size: 6rem; }
	.t-h4 { font-size: 5rem; }
	.t-h5 { font-size: 3.5rem; }
	.t-h6 { font-size: 3rem; line-height: 1.1; }
	.t-h7 { font-size: 2rem; }
	.t-h9 { font-size: 1.8rem; }
	.t-h11 { font-size: 1.3rem; }
	.t-body-21 { font-size: 1.3rem; }
	.t-body-18 { font-size: 1.13rem; letter-spacing: -0.04em; }
	.t-mono-20 { font-size: 1.25rem; }
}

/* Utilità ------------------------------------------------------------------ */
.u-container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.u-muted { color: var(--muted); }
.u-accent { color: var(--accent); }

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

.skip-link {
	position: absolute;
	left: var(--s-4);
	top: -100px;
	z-index: 100;
	padding: var(--s-2) var(--s-4);
	background: var(--accent);
	color: var(--c-deep-black);
}
.skip-link:focus { top: var(--s-4); }

/* Header ------------------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: var(--s-6);
	padding: var(--s-4) var(--gutter);
	mix-blend-mode: difference;
	color: var(--c-linen);
}

.site-header__logo { margin-right: auto; }

.site-nav__list {
	display: none;
	gap: var(--s-6);
}

.site-header__burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.site-header__burger span:not(.screen-reader-text) {
	display: block;
	height: 1px;
	background: currentColor;
}

.site-header.is-open .site-nav__list {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--gutter);
	background: var(--bg);
	mix-blend-mode: normal;
}
.site-header.is-open .site-nav__list a { font-size: 2rem; }

@media (min-width: 1200px) {
	.site-nav__list { display: flex; }
	.site-header__burger { display: none; }
}

/* Sezioni ----------------------------------------------------------------- */
.section {
	position: relative;
	padding-block: var(--section-y);
	scroll-margin-top: var(--s-16);
}

.section > .u-container > * + * { margin-top: var(--s-6); }

.hero {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: var(--s-20);
}

.expertise__list,
.method__list,
.path__list {
	display: grid;
	gap: var(--s-10);
	margin-top: var(--s-12);
}

.expertise__item,
.method__item,
.path__step {
	display: grid;
	gap: var(--s-3);
	padding-top: var(--s-6);
	border-top: 1px solid var(--line);
}

@media (min-width: 810px) {
	.expertise__list,
	.method__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
	.expertise__list,
	.method__list { grid-template-columns: repeat(3, 1fr); }
}



.projects__grid {
	display: grid;
	gap: var(--s-10) var(--s-6);
	margin-top: var(--s-12);
}
@media (min-width: 810px) {
	.projects__grid { grid-template-columns: repeat(2, 1fr); }
}
.projects__card { display: grid; gap: var(--s-3); }
.projects__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 2px;
	background: var(--c-linen-100);
}
.projects__media img { width: 100%; height: 100%; object-fit: cover; }

.method { margin-top: var(--section-y); }

/* Pagine ------------------------------------------------------------------- */
main.page { padding-block: calc(var(--section-y) + var(--s-12)) var(--section-y); }
.legal__inner { max-width: 820px; display: grid; gap: var(--s-6); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.05em; margin-top: 2em; }
.prose a { color: var(--accent); }

/* Comparse (Fase 3 le tarerà sui valori Framer) -------------------------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Fase 2 · progetti a schermate, frecce di sezione, footer compatto
   ========================================================================== */

html { background: var(--c-deep-black); }
.is-locked, .is-locked body { overflow: hidden; }
.u-measure { max-width: 46ch; }
.u-hl { font-style: normal; color: var(--accent); }
.hero__specs, .expertise__situations { line-height: 1.4; }

/* Copertine dei progetti */
.projects__open {
	display: grid;
	gap: var(--s-3);
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.projects__open img { transition: transform 0.8s var(--ease-out); }
.projects__open:hover img { transform: scale(1.03); }
.projects__open:hover .projects__title { color: var(--accent); }

/* ==========================================================================
   Fedeltà a Framer · misure rilevate sul sito pubblicato (390, 810, 1440 px)
   ========================================================================== */

:root { --gutter: 20px; --max: 1760px; }
@media (min-width: 810px) { :root { --gutter: 20px; } }
@media (min-width: 1200px) { :root { --gutter: 20px; } }

/* Barra in alto: monogramma e voci in maiuscolo */
.site-header {
	height: 60px;
	padding: 0 var(--gutter);
	gap: 25px;
	mix-blend-mode: normal;
	background: var(--c-deep-black);
}
.site-header__logo { margin-right: 0; display: block; width: 32px; color: var(--c-linen); }
.gf-mono { width: 32px; height: 32px; }
.site-nav { margin-left: 83px; margin-right: auto; }
.site-nav__list { gap: 25px; }
.site-nav__list a,
.site-header__lang {
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: var(--c-linen-100);
}
.site-header__lang { margin-left: auto; }
.site-header__burger { margin-left: var(--s-4); color: var(--c-linen); }
.site-header.is-open .site-nav { margin: 0; }
.site-header.is-open .site-nav__list a { font-size: 2rem; }

/* Sezioni con intestazione di capitolo */
.section { padding-block: 0; scroll-margin-top: 0; }
.chaptered { padding-top: 176px; padding-bottom: 120px; }
.chapter {
	position: sticky;
	top: 0;
	z-index: 5;
	height: 0;
	margin-top: -176px;
	margin-bottom: 176px;
	pointer-events: none;
}
.chapter__band {
	position: absolute;
	inset: 0 0 auto;
	height: 151px;
	padding: 96px var(--gutter) 0;
	background: linear-gradient(to bottom, var(--c-deep-black) 84%, transparent);
}
.chapter__label {
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
}
.chapter__bar { position: relative; height: 3px; margin-top: 8px; }
.chapter__bar::before { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--c-linen); opacity: 0.15; }
.chapter__bar span { position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 699.98px) {
	.chaptered { padding-top: 160px; }
	.chapter { margin-top: -160px; margin-bottom: 160px; }
	.chapter__band { padding-top: 84px; height: 139px; }
}
.section > .u-container > * + * { margin-top: 44px; }

/* Scala tipografica dei titoli */
.t-display { font-weight: 500; font-size: 3.25rem; line-height: 1; letter-spacing: -0.06em; }
.t-statement { font-weight: 500; font-size: 3.68rem; line-height: 1; letter-spacing: -0.06em; }
.t-sub { font-weight: 400; font-size: 2.32rem; line-height: 1.1; letter-spacing: -0.05em; }
.t-headline { font-weight: 500; font-size: 2.2rem; line-height: 1.1; letter-spacing: -0.05em; }
.t-bridge { font-weight: 500; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.05em; }
.t-lead { font-weight: 400; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.04em; max-width: 1400px; }
@media (min-width: 810px) {
	.t-display { font-size: 6rem; }
	.t-statement { font-size: 5.7rem; }
	.t-sub { font-size: 3.59rem; }
	.t-headline { font-size: 3rem; }
	.t-bridge { font-size: 1.6rem; }
}
@media (min-width: 1200px) {
	.t-display { font-size: 8rem; }
	.t-statement { font-size: 9.38rem; }
	.t-sub { font-size: 4.04rem; }
	.t-headline { font-size: 3.6rem; }
	.t-bridge { font-size: 1.8rem; }
	.t-lead { font-size: 1.3rem; }
}
.welcome, .approach { min-height: 100svh; }

/* Apertura */
.hero { min-height: 100svh; justify-content: flex-end; gap: 0; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__dots {
	position: absolute;
	inset: 0;
	opacity: 0.5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='1' cy='1' r='1' fill='%233D3D3D'/%3E%3C/svg%3E");
	background-size: 4px 4px;
}
.hero__inner { position: relative; display: grid; gap: 20px; padding: 0 var(--gutter) 112px; }
.hero__role { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.03em; text-transform: uppercase; }
.hero__name {
	font-weight: 700;
	font-size: min(7.6rem, calc((100vw - 40px) / 6.4));
	line-height: 1;
	white-space: nowrap;
	letter-spacing: -0.07em;
	color: var(--accent);
}
.hero__specs { font-size: 16px; line-height: 1.5; letter-spacing: -0.05em; text-transform: uppercase; }
@media (min-width: 810px) { .hero__role { font-size: 1.875rem; } }
@media (min-width: 1200px) { .hero__role { font-size: 2rem; } }

/* Di cosa mi occupo */
.expertise__situations .u-hl, .expertise .u-accent { color: var(--accent); }
.expertise__item h3 { text-transform: uppercase; }

/* Progetti: mosaico a colonne, titolo sopra la foto */
.projects__grid { display: block; columns: 2; column-gap: 6px; margin-top: 44px; }
@media (min-width: 810px) { .projects__grid { columns: 3; } }
@media (min-width: 1200px) { .projects__grid { columns: 4; } }
.projects__card { break-inside: avoid; margin-bottom: 6px; }
.projects__open { position: relative; display: block; gap: 0; }
.projects__media { aspect-ratio: auto; border-radius: 0; background: #222; }
.projects__media img { height: auto; }
.projects__card:nth-child(3n+1) .projects__media img { aspect-ratio: 4 / 5; object-fit: cover; }
.projects__card:nth-child(3n+2) .projects__media img { aspect-ratio: 3 / 2; object-fit: cover; }
.projects__card:nth-child(3n) .projects__media img { aspect-ratio: 1; object-fit: cover; }
.projects__caption {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	gap: 8px;
	padding: 48px 14px 14px;
	background: linear-gradient(to top, rgba(20, 20, 20, 0.85), transparent);
}
.projects__title { font-weight: 600; font-size: 15px; line-height: 1.15; letter-spacing: -0.03em; color: var(--c-linen); }
.projects__type { font-weight: 600; font-size: 10.5px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 1200px) { .projects__title { font-size: 22px; } }

/* Metodo */
.method .t-statement { font-size: 2.8rem; }
@media (min-width: 810px) { .method .t-statement { font-size: 5rem; } }
@media (min-width: 1200px) { .method .t-statement { font-size: 6.79rem; } }
.method__title { margin-top: 120px !important; }
.method__list { grid-template-columns: 1fr !important; gap: 0; margin-top: 64px; }
.method__item {
	position: relative;
	display: grid;
	gap: 12px;
	padding: 40px 0;
	border-top: 1px solid var(--line);
}
.method__num { font-weight: 500; font-size: 3rem; line-height: 1; letter-spacing: -0.06em; color: var(--accent); }
.method__name { font-weight: 500; font-size: 3rem; line-height: 1; letter-spacing: -0.06em; text-transform: uppercase; }
.method__text { font-size: 1.2rem; line-height: 1.3; max-width: 680px; }
@media (min-width: 1200px) {
	.method__item { grid-template-columns: 200px 1fr 680px; align-items: baseline; }
	.method__num, .method__name { font-size: 5rem; }
	.method__text { font-size: 1.875rem; }
}

/* La mia storia */
.mystory .t-statement .u-accent { color: var(--accent); }
.mystory__cue { font-weight: 500; }
.path__list { grid-template-columns: 1fr; gap: 0; margin-top: 120px; }
.path__step { display: grid; gap: 16px; padding: 48px 0; border-top: 1px solid var(--line); }
.path__year { font-weight: 500; font-size: 5rem; line-height: 0.9; letter-spacing: -0.06em; }
.path__role { font-size: 16px; text-transform: uppercase; letter-spacing: -0.05em; color: var(--accent); }
.path__title { font-weight: 500; font-size: 2.2rem; line-height: 1.1; letter-spacing: -0.05em; margin-top: 8px; }
.path__text { font-size: 18px; line-height: 1.45; max-width: 620px; margin-top: 16px; }
@media (min-width: 1200px) {
	.path__step { grid-template-columns: 1fr 980px; }
	.path__year { font-size: 12rem; }
	.path__title { font-size: 4.05rem; }
}

/* Pulsanti del design system: forma rotonda per le azioni */
.gf-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 24px;
	border-radius: 9999px;
	border: 2px solid var(--fg);
	background: transparent;
	color: var(--fg);
	font: 600 16px/1 var(--font);
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.gf-btn--primary { border-color: var(--c-signal-coral); background: var(--c-signal-coral); color: var(--c-deep-black); }
.gf-btn--primary:hover { border-color: #ea735c; background: #ea735c; }
.gf-btn--primary:active { border-color: #d6553e; background: #d6553e; }
.gf-btn:focus-visible { outline: 2px solid var(--c-linen); outline-offset: 2px; }
.gf-btn[disabled], .gf-btn[aria-busy="true"] { opacity: 0.5; cursor: default; }
.gf-btn .gf-icon { flex: none; }
.section-cta { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 9vw, 128px); }
#about .section-cta { padding-top: clamp(24px, 4vw, 48px); }

/* Progetti: respiro tra la frase d'apertura e il mosaico */
.projects > .fc { margin-top: clamp(48px, 7vw, 112px); }
.projects:has(> .section-cta) { padding-bottom: 0; }

/* Scrivimi: campi con etichetta visibile, superficie scura, bordo che si accende */
.contact__title { font-weight: 500; }
.gf-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 24px;
	max-width: 880px;
	margin-top: clamp(64px, 8vw, 120px) !important;
}
.gf-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gf-field--wide, .gf-form__foot, .gf-form__status { grid-column: 1 / -1; }
.gf-field__label { font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--c-linen); }
.gf-field__req { color: var(--c-signal-coral); }
.gf-field__opt { font-weight: 400; color: var(--c-warm-tertiary); }
.gf-field__input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #737c81;
	border-radius: 0;
	background: #202629;
	color: var(--c-linen);
	font: 400 16px/1.4 var(--font);
	box-sizing: border-box;
	transition: border-color 0.2s;
}
.gf-field__input--area { height: auto; min-height: 168px; padding: 12px 16px; resize: vertical; }
.gf-field__input:hover { border-color: var(--c-warm-secondary); }
.gf-field__input:focus-visible { outline: 2px solid var(--c-linen); outline-offset: 2px; border-color: var(--c-linen); }
.gf-field__input[aria-invalid="true"] { border-color: #f08fa0; }
.gf-field__err { margin: 0; min-height: 0; font-size: 14px; line-height: 1.5; color: #f08fa0; }
.gf-field__err:empty { display: none; }
.gf-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 8px; }
.gf-form__note { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.5; color: var(--c-warm-secondary); }
.gf-form__note a { color: var(--c-linen); text-decoration: underline; text-decoration-color: var(--c-signal-coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gf-form__status { margin: 0; font-size: 18px; line-height: 1.5; }
.gf-form__status:empty { display: none; }
.gf-form__status[data-state="ok"] { color: var(--c-linen); }
.gf-form__status[data-state="err"] { color: #f08fa0; }
.gf-form.is-sent .gf-field, .gf-form.is-sent .gf-form__foot { display: none; }
.gf-form.is-sent .gf-form__status { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.03em; }
@media (max-width: 649.98px) {
	.gf-form { grid-template-columns: 1fr; }
	.gf-form__foot .gf-btn, .section-cta .gf-btn { width: 100%; justify-content: center; }
}

/* Footer: una schermata intera su ogni dispositivo */
.site-footer {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	padding: 100px 40px 24px; /* 60 px di barra in alto + respiro */
	border-top: 0;
	background: var(--c-deep-black);
	box-sizing: border-box;
}
.site-footer__inner {
	position: relative;
	flex: 1;
	display: grid;
	grid-template-rows: repeat(4, auto) 1fr;
	gap: 48px 32px;
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
}
.site-footer__intro { display: grid; gap: 16px; align-content: start; padding-top: 24px; border-top: 1px solid rgba(250, 240, 230, 0.22); }
.site-footer__role { font-weight: 500; font-size: 24px; letter-spacing: -0.04em; }
.site-footer__name a { color: inherit; text-decoration: none; }
.site-footer__name { font-weight: 700; font-size: clamp(3.4rem, 5.8vw, 5.22rem); line-height: 1; letter-spacing: -0.07em; color: var(--accent); }
.site-footer__claim { display: flex; align-items: center; gap: 16px; max-width: 420px; font-size: 14px; line-height: 1.3; }
.site-footer__photo { flex: 0 0 80px; width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.site-footer__col { display: grid; gap: 0; align-content: start; }
.site-footer__head { font-size: 13px; text-transform: uppercase; letter-spacing: -0.05em; padding-bottom: 28px; border-bottom: 1px solid rgba(250, 240, 230, 0.22); }
.site-footer__col ul { display: grid; gap: 12px; margin-top: 24px; }
.site-footer__col a { font-size: 16px; line-height: 1.5; letter-spacing: -0.05em; text-transform: uppercase; }
.site-footer__dl { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.site-footer__dl .gf-icon { color: var(--accent); transition: transform 0.2s var(--ease-out); }
.site-footer__dl:hover .gf-icon { transform: translateY(2px); }
.site-footer__bottom { align-self: end; display: grid; gap: 8px; margin: 0; font-size: 12px; color: var(--c-warm-tertiary); }
.site-footer__legal { display: flex; gap: 8px; }
.site-footer__top { position: absolute; right: 0; bottom: 0; width: 32px; height: 56px; color: var(--accent); }
.site-footer__top svg { width: 100%; height: 100%; }
@media (min-width: 810px) {
	.site-footer__inner { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto 1fr; }
	.site-footer__intro { grid-column: 1 / -1; }
	.site-footer__bottom { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
	.site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; grid-template-rows: auto 1fr; }
	.site-footer__intro { grid-column: auto; }
	.site-footer__bottom { grid-column: 1; }
}
@media (max-width: 649.98px) {
	.site-footer { padding: 76px var(--gutter) 20px; }
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: "intro intro" "nav contact" "nav res" "bottom bottom";
		grid-template-rows: auto auto 1fr auto;
		gap: 28px 20px;
	}
	.site-footer__intro { grid-area: intro; }
	.site-footer__col--nav { grid-area: nav; }
	.site-footer__col--contact { grid-area: contact; }
	.site-footer__col--res { grid-area: res; }
	.site-footer__bottom { grid-area: bottom; }
	.site-footer__head { padding-bottom: 16px; }
	.site-footer__col ul { gap: 8px; margin-top: 16px; }
}

/* ==========================================================================
   Racconto di un progetto (come ProjectsMosaic in Framer)
   ========================================================================== */
dialog.story {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: var(--c-deep-black);
	color: var(--c-linen);
	--side: 48px;
	--top: 116px;
	--bot: 84px;
}
dialog.story::backdrop { background: var(--c-deep-black); }
dialog.story:not([open]) { display: none; }
@media (min-width: 600px) and (orientation: landscape) { dialog.story { --side: clamp(40px, 7vw, 120px); } }
@media (max-width: 599.98px) { dialog.story { --side: 22px; --top: 76px; --bot: 76px; } }

.story__track {
	position: absolute;
	inset: 0;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	outline: none;
}
.story__track::-webkit-scrollbar { display: none; }
.story__screen {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.s-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Testi ricorrenti */
.sl { margin-bottom: 22px; font: 600 11.5px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.sl--num { color: var(--c-warm-tertiary); }
.sl--num span { margin-right: 10px; color: var(--accent); font-variant-numeric: tabular-nums; }
.s-title { font: 400 clamp(26px, 2.6vw, 40px)/1.14 var(--font); letter-spacing: -0.02em; white-space: pre-line; }
.s-title--big { font-size: clamp(32px, 3.4vw, 52px); }
.s-body { max-width: 34em; margin-top: 22px; font: 400 17px/1.62 var(--font); letter-spacing: 0; color: var(--c-warm-secondary); }
.sl + .s-body { margin-top: 0; }
.s-out { display: inline-block; flex: none; width: 0.72em; height: 0.72em; color: var(--accent); }

/* Pannelli di testo */
.s-panel { display: flex; flex-direction: column; justify-content: center; overflow-y: auto; scrollbar-width: none; }
.s-pad { box-sizing: border-box; width: 100%; padding: var(--top) var(--side) var(--bot); }
.s-panel > .s-pad { display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.s-narrow > * { max-width: 680px; }
.s-mid > * { max-width: 940px; }
.s-wide > * { max-width: 1320px; }

/* Copertina */
.s-cover__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.95) 0%, rgba(20,20,20,.76) 44%, rgba(20,20,20,.34) 80%), linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,0) 24%); }
.s-cover__text { position: absolute; left: 6vw; bottom: 14vh; max-width: min(48vw, 760px); }
.s-cover__logo { display: block; width: auto; height: 28px; max-width: 180px; margin-bottom: 26px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.s-cover__type { font: 600 11.5px/1.3 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.s-cover__name { margin-top: 10px; font: 600 17px/1.3 var(--font); letter-spacing: 0; opacity: 0.9; }
.s-cover__title { margin-top: 18px; font: 400 clamp(44px, 5.4vw, 88px)/1.02 var(--font); letter-spacing: -0.03em; }
.s-cover__sub { max-width: 32em; margin-top: 20px; font: 400 19px/1.45 var(--font); letter-spacing: 0; opacity: 0.86; }
.s-scroll { display: none; }
@media (max-width: 599.98px) {
	.s-cover__shade { background: linear-gradient(180deg, rgba(20,20,20,.62) 0%, rgba(20,20,20,.4) 34%, rgba(20,20,20,.93) 72%); }
	.s-cover__text { left: 22px; right: 22px; bottom: 88px; max-width: none; }
	.s-cover__logo { height: 22px; margin-bottom: 14px; }
	.s-cover__name { font-size: 15px; }
	.s-cover__title { margin-top: 14px; font-size: 38px; }
	.s-cover__sub { margin-top: 12px; font-size: 16px; }
	.s-scroll {
		display: flex;
		align-items: center;
		gap: 12px;
		width: fit-content;
		margin: 22px 0 0 auto;
		padding: 0;
		border: 0;
		background: none;
		color: var(--accent);
		font: 600 11.5px/1 var(--font);
		letter-spacing: 0.16em;
		text-transform: uppercase;
		cursor: pointer;
	}
	.s-scroll .s-arrow { width: 30px; height: 17px; animation: gfCue 1.8s cubic-bezier(.45,0,.55,1) infinite; }
}

/* Il progetto e la seconda immagine */
.s-over__text { max-width: 27em; font: 400 clamp(24px, 2.2vw, 36px)/1.4 var(--font); letter-spacing: -0.01em; white-space: pre-line; }
.s-side { display: none; margin: 0; }
.s-photo { background: #1f1f1f; }
.s-photo-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20,20,20,.6) 0%, rgba(20,20,20,0) 20%, rgba(20,20,20,0) 78%, rgba(20,20,20,.65) 100%); }
@media (min-width: 600px) and (orientation: landscape) {
	.s-over.has-second { --iw: min(75vh, 50vw); }
	.s-over.has-second > .s-pad { width: calc(100% - var(--iw)); }
	.s-over.has-second .s-side { position: absolute; top: 0; right: 0; bottom: 0; display: block; width: var(--iw); overflow: hidden; background: #1f1f1f; }
	.s-over.has-second + .s-photo { display: none; }
}
@media (max-width: 599.98px) { .s-over__text { font-size: 21px; } }

/* Cosa ho fatto */
.s-list { display: flex; flex-direction: column; gap: 26px; margin-top: 30px; }
.sl + .s-list { margin-top: 6px; }
.s-list li { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; padding-top: 18px; border-top: 1px solid rgba(250, 240, 230, 0.14); font: 400 17px/1.55 var(--font); letter-spacing: 0; color: var(--c-warm-secondary); }
.s-list__n { font: 300 24px/1 var(--font); color: var(--c-linen); opacity: 0.5; font-variant-numeric: tabular-nums; }

/* Freelance */
.s-camp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.s-visual { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.s-visual--logo { display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 16px; background: #202629; }
.s-visual--logo img { max-width: 52%; max-height: 26%; width: auto; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.92; }
.s-visual--logo span { font: 600 26px/1.2 var(--font); text-align: center; opacity: 0.92; }
.s-camp__text { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: var(--top) var(--side) var(--bot); overflow-y: auto; }
.s-camp__client { margin-bottom: 14px; font: 600 16px/1.3 var(--font); letter-spacing: 0; opacity: 0.9; }
.s-camp__year { margin-top: 14px; font: 600 11.5px/1.3 var(--font); letter-spacing: 0.16em; color: var(--accent); }
.s-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; }
.s-links a { display: inline-flex; align-items: baseline; gap: 8px; font: 600 15px/1.3 var(--font); letter-spacing: 0; color: var(--accent); }
.s-links--small { margin-top: 6px; }
.s-links--small a { font-size: 13.5px; }
.s-group { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 24px; }
.s-group .s-visual { height: auto; aspect-ratio: 4 / 5; max-height: calc(100svh - 340px); }
.s-group__meta { margin-top: 12px; }
.s-group__name { display: inline-flex; align-items: baseline; gap: 8px; font: 600 16px/1.3 var(--font); letter-spacing: 0; color: var(--c-linen); }
.s-group__sub { margin-top: 3px; font: 400 13.5px/1.4 var(--font); letter-spacing: 0; color: var(--c-warm-tertiary); }
.s-rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; max-width: 1400px; }
.s-rest li { min-width: 0; padding-top: 10px; border-top: 1px solid rgba(250, 240, 230, 0.14); }
.s-rest a, .s-rest span { display: inline-flex; align-items: baseline; gap: 8px; font: 600 16px/1.3 var(--font); letter-spacing: 0; }
.s-rest p { margin-top: 3px; font: 400 13.5px/1.4 var(--font); letter-spacing: 0; color: var(--c-warm-tertiary); }
@media (min-width: 1300px) { .s-rest { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599.98px) {
	.s-camp { grid-template-columns: 1fr; grid-template-rows: 44% 56%; }
	.s-camp__text { justify-content: flex-start; padding: 22px 22px var(--bot); }
	.s-camp__client { margin-bottom: 10px; font-size: 14px; }
	.s-camp__year { margin-top: 10px; }
	.s-links { margin-top: 16px; }
	.s-links a { font-size: 14px; }
	.s-group { grid-template-columns: repeat(min(2, var(--cols)), minmax(0, 1fr)); gap: 18px 14px; }
	.s-group .s-visual { aspect-ratio: 1; max-height: calc((100svh - 330px) / 2); }
	.s-group__meta { margin-top: 8px; }
	.s-group__name { font-size: 14px; }
	.s-group__sub, .s-links--small a { font-size: 12.5px; }
	.s-visual--logo span { font-size: 18px; }
	.s-rest { grid-template-columns: 1fr; gap: 10px; }
	.s-rest li { padding-top: 8px; }
	.s-rest a, .s-rest span { font-size: 15px; }
	.s-rest p { font-size: 13px; }
}

/* I risultati */
.s-results { background: var(--c-atlantic-petrol); }
.s-results .sl { color: var(--c-linen); }
.s-stats { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3vw; max-width: 1240px; margin: 0; }
.s-stats > div { min-width: 0; padding-top: 22px; border-top: 1px solid rgba(250, 240, 230, 0.3); }
.s-stats dt { font: 400 clamp(64px, 6.6vw, 112px)/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.s-stats dd { max-width: 24em; margin: 16px 0 0; font: 400 17px/1.5 var(--font); letter-spacing: 0; color: rgba(250, 240, 230, 0.88); }
.s-results__text { max-width: 20em; margin-top: 44px; font: 400 clamp(30px, 3vw, 48px)/1.2 var(--font); letter-spacing: -0.02em; }
.sl + .s-results__text { margin-top: 0; }

/* Approfondisci */
.s-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.s-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(250, 240, 230, 0.32);
	border-radius: 12px;
	background: rgba(250, 240, 230, 0.06);
	color: var(--c-linen);
	font: 600 13px/1 var(--font);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.s-btn .s-out { color: currentColor; }
.s-btn--main { border-color: var(--accent); background: var(--accent); color: var(--c-deep-black); }
.s-btn:hover { background: rgba(250, 240, 230, 0.14); color: var(--c-linen); }

/* Altri progetti */
.s-others { margin: 0 auto; max-width: calc(1320px + 2 * var(--side)); }
.s-others__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.s-others__grid > :nth-child(4) { display: none; }
@media (min-width: 1300px) { .s-others__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .s-others__grid > :nth-child(4) { display: block; } }
.s-other { all: unset; box-sizing: border-box; display: block; min-width: 0; cursor: pointer; }
.s-other__thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: #202629; }
.s-other__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.s-other:hover .s-other__thumb img { transform: scale(1.05); }
.s-other:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s-other__meta { display: block; min-width: 0; margin-top: 16px; }
.s-other__logo { display: block; height: 18px; margin-bottom: 12px; }
.s-other__logo img { width: auto; height: 100%; max-width: 140px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: 0.92; }
.s-other__type { display: block; font: 600 10.5px/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.s-other__name { display: -webkit-box; margin-top: 6px; overflow: hidden; font: 600 18px/1.25 var(--font); letter-spacing: 0; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
@media (max-width: 599.98px) {
	.sl { margin-bottom: 16px; }
	.s-title { font-size: 24px; }
	.s-title--big { font-size: 30px; }
	.s-body, .s-list li { font-size: 15.5px; }
	.s-body { margin-top: 16px; }
	.s-list { gap: 18px; margin-top: 22px; }
	.s-list li { grid-template-columns: 36px 1fr; padding-top: 14px; }
	.s-list__n { font-size: 20px; }
	.s-stats { grid-template-columns: 1fr; gap: 22px; }
	.s-stats > div { padding-top: 14px; }
	.s-stats dt { font-size: 52px; }
	.s-stats dd { margin-top: 10px; font-size: 15px; }
	.s-results__text { margin-top: 28px; font-size: 26px; }
	.s-buttons { margin-top: 24px; }
	.s-others__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
	.s-others__grid > :nth-child(4) { display: flex; }
	.s-other { display: flex; align-items: center; gap: 14px; }
	.s-other__thumb { flex: 0 0 112px; width: 112px; }
	.s-other__meta { flex: 1; margin-top: 0; }
	.s-other__logo { height: 14px; margin-bottom: 8px; }
	.s-other__logo img { max-width: 110px; }
	.s-other__name { font-size: 15px; }
}

/* Comandi fissi del racconto */
.s-veil { position: absolute; left: 0; right: 0; z-index: 2; height: 104px; pointer-events: none; }
.s-veil--top { top: 0; background: linear-gradient(180deg, rgba(20,20,20,.5), rgba(20,20,20,0)); }
.s-veil--bottom { bottom: 0; background: linear-gradient(0deg, rgba(20,20,20,.5), rgba(20,20,20,0)); }
.s-seq {
	position: absolute;
	bottom: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-linen);
	font: 500 11.5px/1 var(--font);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
	cursor: pointer;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.s-seq span { opacity: 0.72; transition: opacity 0.25s ease; }
.s-seq:hover span, .s-seq:focus-visible span { opacity: 1; }
.s-seq:focus-visible { outline: 2px solid var(--c-linen); outline-offset: 4px; border-radius: 6px; }
.s-arrow { display: block; flex: 0 0 auto; width: 36px; height: 20px; overflow: visible; color: var(--accent); filter: drop-shadow(0 0 6px rgba(20, 20, 20, 0.7)); }
.s-arrow--big { width: 42px; height: 23px; }
.s-prev { left: 24px; }
.s-next { right: 24px; }
.s-back { top: 22px; bottom: auto; left: 24px; z-index: 4; gap: 12px; }
.s-back span { opacity: 0.92; }
dialog.story.is-end .s-next { opacity: 0; transform: translateY(6px); pointer-events: none; }
.s-count {
	position: absolute;
	top: 34px;
	right: 30px;
	z-index: 3;
	font: 600 11.5px/1 var(--font);
	letter-spacing: 0.16em;
	color: var(--c-warm-secondary);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}
.s-count.is-on { opacity: 1; }
.s-cue {
	position: absolute;
	top: 50%;
	right: 96px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
	cursor: pointer;
	transition: opacity 0.4s ease;
}
.s-cue svg { width: 36px; height: 36px; animation: gfCue 1.8s cubic-bezier(.45,0,.55,1) infinite; }
dialog.story.is-moved .s-cue { opacity: 0; pointer-events: none; }
.s-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(250, 240, 230, 0.1); }
.s-progress span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
@keyframes gfCue { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(6px); } }
@media (max-width: 599.98px) {
	.s-veil { height: 84px; }
	.s-seq { bottom: 10px; }
	.s-prev { left: 14px; }
	.s-next { right: 14px; }
	.s-prev span, .s-next span { display: none; }
	.s-arrow { width: 30px; height: 17px; }
	.s-arrow--big { width: 34px; height: 19px; }
	.s-back { top: 14px; left: 14px; }
	.s-count { top: 26px; right: 18px; }
	.s-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) { .s-cue svg, .s-scroll .s-arrow { animation: none; } }

/* ==========================================================================
   Barra, menu, frecce di sezione e clienti (come in Framer)
   ========================================================================== */
.site-header__burger {
	position: relative;
	display: block;
	width: 52px;
	height: 24px;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-linen);
	cursor: pointer;
}
.site-header__burger span:not(.screen-reader-text) {
	position: absolute;
	right: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: background 0.25s;
}
.site-header__burger span:nth-of-type(2) { top: 0; }
.site-header__burger span:nth-of-type(3) { top: 11px; width: 60%; }
.site-header__burger span:nth-of-type(4) { top: 22px; }
.site-header.is-open .site-header__burger { color: var(--accent); }
.site-header__lang { display: none; }
.site-nav__home { display: none; }
@media (max-width: 1199.98px) {
	.site-nav { margin: 0; }
	.site-header.is-open::after { content: ""; position: fixed; inset: 60px 0 0; z-index: -1; background: rgba(20, 20, 20, 0.92); }
	.site-header.is-open .site-nav__list {
		position: absolute;
		top: 82px;
		right: var(--gutter);
		left: auto;
		inset-block-end: auto;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		justify-content: flex-start;
		gap: 8px;
		padding: 0;
		background: none;
	}
	.site-header.is-open .site-nav__home { display: block; }
	.site-header.is-open .site-nav__list a { font-size: 32px; line-height: 1.3; letter-spacing: -0.05em; color: var(--c-linen); }
}
@media (min-width: 1200px) { .site-header__burger { display: none; } }

/* Frecce di sezione: sottili, nel colore d'accento, indietro a sinistra e avanti a destra */
.section-arrows { position: static; }
.section-arrows__btn {
	position: fixed;
	bottom: calc(14px + env(safe-area-inset-bottom));
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 52px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
	cursor: pointer;
	transition: opacity 0.3s ease;
}
.section-arrows__btn[data-arrow="prev"] { left: 20px; }
.section-arrows__btn[data-arrow="next"] { right: 20px; }
.section-arrows__btn svg { width: 20px; height: 40px; overflow: visible; filter: drop-shadow(0 0 6px rgba(20, 20, 20, 0.6)); }
.section-arrows__btn[data-arrow="next"] svg { animation: gfNavDown 1.8s cubic-bezier(.45,0,.55,1) infinite; }
.section-arrows__btn[data-arrow="prev"] svg { animation: gfNavUp 1.8s cubic-bezier(.45,0,.55,1) infinite; }
.section-arrows__btn.is-off { opacity: 0; pointer-events: none; }
.is-locked .section-arrows__btn { opacity: 0; pointer-events: none; }
@media (min-width: 1200px) { .section-arrows { display: none; } }
@keyframes gfNavDown { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes gfNavUp { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-4px); } }

/* Invito a scorrere nell'apertura */
.hero__cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; display: flex; width: 44px; height: 52px; margin-left: -22px; align-items: center; justify-content: center; color: var(--accent); }
.hero__cue svg { width: 20px; height: 40px; overflow: visible; animation: gfNavDown 1.8s cubic-bezier(.45,0,.55,1) infinite; filter: drop-shadow(0 0 6px rgba(20, 20, 20, 0.6)); }
@media (prefers-reduced-motion: reduce) { .section-arrows__btn svg, .hero__cue svg { animation: none; } }

/* I miei clienti: la composizione finale di Framer, tutti i marchi nella stessa misura ottica */
.clients { min-height: 100svh; padding-top: 148px; padding-bottom: 84px; display: flex; flex-direction: column; }
.clients .chapter { margin-top: -148px; margin-bottom: 148px; }
.clients > .u-container { flex: 1; display: flex; flex-direction: column; }
.clients__title { max-width: 1100px; font-weight: 500; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.055em; }
.clients__stage { position: relative; flex: 1; min-height: 360px; margin-top: 40px !important; }
.clients__logo { position: absolute; opacity: 0.9; }
.clients__logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.clients__logo.is-color img { filter: grayscale(1) invert(1); }
.no-js .clients__stage, .clients__stage:not(.is-ready) { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: center; justify-items: center; }
.clients__stage:not(.is-ready) .clients__logo { position: static; width: 72%; height: 28px; }
@media (max-width: 699.98px) {
	.clients { padding-top: 128px; padding-bottom: 72px; }
	.clients .chapter { margin-top: -128px; margin-bottom: 128px; }
	.clients__title { font-size: clamp(22px, 6.8vw, 28px); }
	.clients__stage { margin-top: 24px !important; }
}

/* ==========================================================================
   Fase 3 · apertura, comparse, scorrimento morbido
   ========================================================================== */

/* Apertura con il monogramma (HeroIntro) */
.gfi { position: fixed; inset: 0; z-index: 9999; display: none; }
html.gf-intro .gfi { display: block; }
html.gf-intro { overflow: hidden; }
.gfi__cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--c-deep-black); }
.gfi__star { position: absolute; width: min(34vmin, 280px); height: min(34vmin, 280px); color: var(--c-linen); opacity: 0; }
.gfi__star svg { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; }
.gfi__mono { position: absolute; top: 50%; left: 50%; width: min(20vmin, 150px); height: min(20vmin, 150px); margin: calc(min(20vmin, 150px) / -2) 0 0 calc(min(20vmin, 150px) / -2); will-change: transform, opacity; }
.gfi__mono svg { display: block; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.gfi__mono path { fill: var(--c-linen); fill-opacity: 0; stroke: var(--c-linen); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round; }
.gfi.is-play .gfi__cover { animation: gfiWipe 0.7s cubic-bezier(.76,0,.24,1) 1.8s forwards; }
.gfi.is-play .gfi__star { animation: gfiIn 0.35s ease 0.05s forwards, gfiOut 0.3s ease 1.05s forwards; }
.gfi.is-play .gfi__star svg { animation: gfiTurn 0.85s cubic-bezier(.65,0,.35,1) 0.15s both; }
.gfi.is-play .gfi__mono svg { animation: gfiPop 0.7s cubic-bezier(.2,.8,.2,1) 1.05s both; }
.gfi.is-play .gfi__mono path { animation: gfiDraw 0.5s cubic-bezier(.4,0,.2,1) 1.05s forwards, gfiFill 0.3s ease 1.45s forwards; }
.gfi.is-out { animation: gfiOut 0.25s ease forwards; pointer-events: none; }
@keyframes gfiDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gfiTurn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes gfiIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gfiFill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes gfiWipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes gfiOut { to { opacity: 0; } }
@keyframes gfiPop { 0% { transform: scale(1.3); filter: blur(6px); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1); filter: blur(0); opacity: 1; } }

/* Comparse con ritardo dell'apertura (TypeScramble e appear effect di Framer) */
.js [data-appear] { opacity: 0; transition: opacity var(--t, 1s) cubic-bezier(.25,.1,.25,1) var(--d, 0s); }
.js [data-appear].is-in { opacity: 1; }
.hero__cue.is-in { transition-delay: var(--d, 0s); }

/* Lettere che si accendono scorrendo (TextReveal) */
[data-text-reveal] .tr-w { white-space: nowrap; }

/* Scorrimento morbido (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.js [data-appear] { opacity: 1; transition: none; }
}

/* ---- Componenti di Framer montati (specialità, clienti, metodo, percorso) ---- */
.fc { position: relative; }
.fc.is-mounted { height: var(--fc-h); }
@media (max-width: 1199px) { .fc.is-mounted { height: var(--fc-h-t); } }
@media (max-width: 809px) { .fc.is-mounted { height: var(--fc-h-p); } }
.fc__host { position: relative; width: 100%; height: 100%; }
.section:has(> .fc--scroll.is-mounted) { padding: 0; min-height: 0; }
.section:has(> .fc--scroll.is-mounted)::before, .section:has(> .fc--scroll.is-mounted)::after { content: none; }

/* ---- /brand: ingresso, come il componente BrandPortal ---- */
.brand-page { background: #141414; }
.gfb-gate { --fl: calc((100vw - 320px) / 1120); min-height: 100svh; padding: 0 clamp(24px, 5vw, 64px); display: flex; align-items: center; box-sizing: border-box; background: #141414; color: #FAF0E6; font-family: "Raleway", system-ui, sans-serif; font-feature-settings: "lnum" 1, "tnum" 1; }
.gfb-gate__wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: clamp(120px, 14vw, 160px) 0 clamp(64px, 9vw, 128px); }
.gfb-gate__box { max-width: 560px; display: flex; flex-direction: column; gap: 24px; }
.gfb-gate__eyebrow { margin: 0; color: #BEB7B0; font-size: clamp(12px, calc(12px + 1 * var(--fl)), 13px); line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.gfb-gate__title { margin: 0; color: #FAF0E6; font-size: clamp(36px, calc(36px + 28 * var(--fl)), 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.gfb-gate__lead { margin: 0; color: #BEB7B0; max-width: 68ch; font-size: clamp(19px, calc(19px + 5 * var(--fl)), 24px); line-height: 1.5; }
.gfb-gate__form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.gfb-gate__label, .gfb-gate__err { margin: 0; font-size: clamp(14px, calc(14px + 1 * var(--fl)), 15px); line-height: 1.5; }
.gfb-gate__label { font-weight: 600; color: #FAF0E6; }
.gfb-gate__err { color: #F08FA0; min-height: 1.5em; }
.gfb-gate__row { display: flex; flex-wrap: wrap; gap: 12px; }
.gfb-gate__field { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 16px; border-radius: 0; border: 1px solid #737C81; background: #202629; color: #FAF0E6; font: 400 16px/1 "Raleway", system-ui, sans-serif; box-sizing: border-box; }
.gfb-gate__field[aria-invalid="true"] { border-color: #F08FA0; }
.gfb-gate__btn { height: 48px; padding: 0 24px; border-radius: 9999px; border: 2px solid #E75B42; background: #E75B42; color: #141414; font: 600 16px/1 "Raleway", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.gfb-gate__btn:hover { background: #EA735C; border-color: #EA735C; }
.gfb-gate__btn:active { background: #D6553E; border-color: #D6553E; }
.gfb-gate__btn:focus-visible, .gfb-gate__field:focus-visible { outline: 2px solid #FAF0E6; outline-offset: 2px; }

/* ---- Tipografia: vedove e orfane, in modo automatico ----
   Titoli bilanciati, testi correnti senza parole isolate in fondo. Solo resa delle righe:
   font, corpi, interlinee e larghezze restano quelli del design system. Dove il browser
   non conosce text-wrap, il testo va a capo come sempre. */
:where(h1, h2, h3, h4, .wp-block-heading, .entry-title, .page-title, .t-display, .t-headline, .t-statement, .t-h6, .t-h7) {
	text-wrap: balance;
}
:where(p, li, blockquote, figcaption, dd, .t-lead, .t-sub, .t-body-16) {
	text-wrap: pretty;
}
/* Fuori dai contenuti editoriali: navigazione, pulsanti, etichette, moduli e componenti animati
   (questi ultimi misurano le righe da soli) tornano al comportamento normale. */
:where(nav, button, label, .gf-btn, .site-header, .section-arrows, .gf-form, .fc__host) :where(h1, h2, h3, h4, p, li, span, a) {
	text-wrap: wrap;
}
@media print {
	:where(p, li, blockquote, figcaption, dd) { orphans: 2; widows: 2; }
	:where(h1, h2, h3, h4) { break-after: avoid; page-break-after: avoid; }
}

/* ---- Titoli che si stringono (Benvenuto, Come lavoro) ----
   La sezione è più alta di una schermata: il contenuto resta fermo mentre il titolo si riduce.
   In basso resta lo spazio delle frecce. */
.welcome.is-shrink, .approach.is-shrink { min-height: 0; height: 180vh; height: 180svh; padding: 0; }
.is-shrink > .chapter { margin-top: 0; margin-bottom: 0; }
.is-shrink .shrink__pin {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	padding-top: 176px;
	padding-bottom: 64px;
	box-sizing: border-box;
	overflow: hidden;
}
.is-shrink .shrink__pin > * + * { margin-top: 0; }
.is-shrink .shrink__title { margin: 0; }
.is-shrink .shrink__lead { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; margin: 0; opacity: 0; will-change: opacity, transform; }
@media (max-width: 1199.98px) {
	.is-shrink .shrink__pin { padding-bottom: 96px; }
	.is-shrink .shrink__lead { bottom: 96px; }
}
@media (max-width: 699.98px) {
	.is-shrink .shrink__pin { padding-top: 160px; }
}
@media (prefers-reduced-motion: reduce) {
	.welcome.is-shrink, .approach.is-shrink { height: 100vh; height: 100svh; }
}
.welcome.is-shrink.is-static, .approach.is-shrink.is-static { height: 100vh; height: 100svh; }

/* ---- Spaziature su mobile: niente vuoti larghi, frecce libere ---- */
@media (max-width: 809.98px) {
	.section-cta { padding-top: 32px; padding-bottom: 0; }
	#about .section-cta { position: relative; z-index: 2; margin-top: -48px; padding-top: 0; }
	.contact.chaptered { padding-bottom: 32px; }
	.site-footer { padding-top: 76px; }
}

/* ---- Banner del consenso: in basso, sopra le frecce, rifiuta e accetta con lo stesso peso ---- */
.gf-consent {
	position: fixed;
	left: var(--gutter);
	right: var(--gutter);
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 60;
	max-width: 560px;
	padding: 24px;
	background: #202629;
	border: 1px solid #2f363a;
	color: var(--c-linen);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.gf-consent[hidden] { display: none; }
.gf-consent__title { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-warm-secondary); }
.gf-consent__text { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.gf-consent__text a { color: var(--c-linen); text-decoration: underline; text-decoration-color: var(--c-signal-coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gf-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.gf-consent__actions .gf-btn { flex: 1 1 140px; justify-content: center; }
.has-consent-banner .section-arrows__btn { opacity: 0; pointer-events: none; }
@media (min-width: 810px) { .gf-consent { left: auto; right: 24px; bottom: 24px; } }
