/* Selva — stili del sito */

/* ------------------------------------------------------------ Font */
@font-face { font-family: "Ogg"; src: url("../fonts/ogg-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Ogg"; src: url("../fonts/ogg-regular-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Arial Grotesk"; src: url("../fonts/arial-grotesk-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Arial Grotesk"; src: url("../fonts/arial-grotesk-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------ Base */
:root {
	/* I tre colori arrivano da Selva → Impostazioni tramite --orange, --green, --pale. */
	--c-orange: var(--orange, #FE5524);
	--c-green: var(--green, #26654F);
	--c-pale: var(--pale, #F0F4F3);

	--f-serif: "Ogg", Georgia, "Times New Roman", serif;
	--f-sans: "Arial Grotesk", Arial, "Helvetica Neue", sans-serif;

	--s-title: clamp(3rem, 10.4vw, 15rem);
	--s-sub: clamp(0.8rem, 1.05vw, 1.15rem);
	--s-text: 1.125rem;            /* 18px: tutti i testi di lettura del sito */
	--s-nav: clamp(0.85rem, 1.4vw, 1.4rem);

	--gut: clamp(1.2rem, 6.6vw, 7rem);
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);

	color-scheme: light;
}

/* Ogni sezione sceglie la sua coppia di colori */
.t { background: var(--bg); color: var(--fg); }
.t-green { --bg: var(--c-green); --fg: var(--c-pale); --accent: var(--c-orange); }
.t-orange { --bg: var(--c-orange); --fg: var(--c-pale); --accent: var(--c-green); }
.t-pale { --bg: var(--c-pale); --fg: var(--c-green); --accent: var(--c-orange); }

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

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

body {
	margin: 0;
	background: var(--c-pale);
	color: var(--c-green);
	font: 300 var(--s-text) / 1.4 var(--f-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
/* body[class]: batte il colore dei link che Elementor imposta con .elementor-kit-N a */
a, body[class] a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--fg, #26654F); color: var(--bg, #F0F4F3); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.serif { font-family: var(--f-serif); font-weight: 400; }

/* ------------------------------------------------------------ Entrata dei testi
   Una riga alla volta: sale dal basso diventando opaca. --i dà il ritardo.
   In apertura parte da sola; più in basso aspetta di arrivare a schermo (.anim--wait). */
/* Il riquadro nasconde il testo mentre sale: il margine negativo recupera lo spazio,
   e quello laterale evita che una parola lunga (PROJECTS) venga tagliata di netto. */
.line { display: block; overflow: hidden; padding: 0.24em 0.3em 0; margin: -0.24em -0.3em 0; }
.line > span { display: block; }

.js .anim { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes rise {
	from { opacity: 0; transform: translateY(0.9em); }
	to { opacity: 1; transform: none; }
}
/* Fuori dalla prima schermata l'animazione resta ferma finché la sezione non arriva a schermo */
.js .anim--wait { animation-play-state: paused; }
.js .is-in .anim--wait, .js .anim--wait.is-in { animation-play-state: running; }

.skip,
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; top: 0.5rem; left: 0.5rem; z-index: 100; padding: 0.5rem 1rem; background: var(--c-green); color: var(--c-pale); }

/* Link di testo: sottolineatura che si disegna al passaggio */
.u {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.4s var(--ease);
}
.u:hover, .u:focus-visible { background-size: 100% 1px; }

/* Menu della testata: nessuna sottolineatura, cambia colore.
   --nav-hover lo imposta main.js secondo la sezione che scorre sotto:
   arancione su verde e su chiaro, chiaro sull'arancione. */
.site-nav a {
	text-decoration: none;
	transition: color 0.25s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current],
.site-nav .current-menu-item > a { color: var(--nav-hover, var(--c-orange)); }

.prose { font-size: var(--s-text); }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* Titoli: Arial Grotesk in maiuscolo, con le parole in Ogg scelte a mano ({graffe}) */
.title {
	margin-inline: auto;
	max-width: 52vw;
	font: 400 var(--s-title) / 0.86 var(--f-sans);
	letter-spacing: -0.01em;
	text-align: center;
	text-transform: uppercase;
}
.title .serif, .title.serif { font-family: var(--f-serif); }
.sub {
	margin-top: 2.4vw;
	font: 400 var(--s-sub) / 1.3 var(--f-sans);
	text-align: center;
	text-transform: uppercase;
}
.stars { margin-top: 1.8vw; padding-left: 0.2em; font-size: clamp(2.6rem, 4.9vw, 6.5rem); line-height: 1; letter-spacing: 0.2em; text-align: center; }

/* ------------------------------------------------------------ Testata */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

.site-head {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: clamp(0.8rem, 1.3vw, 1.6rem) clamp(1rem, 5.9vw, 6rem) 0 clamp(1rem, 4vw, 5rem);
	color: var(--c-pale);
	transition: color 0.35s, opacity 0.5s var(--ease);
	pointer-events: none; /* così lo script legge la sezione che sta sotto */
	view-transition-name: site-head;
}
.site-head a { pointer-events: auto; }
/* Con la barra di WordPress in alto (utenti collegati) la testata scende sotto di lei */
@media (min-width: 601px) { .admin-bar .site-head { top: 46px; } }
@media (min-width: 783px) { .admin-bar .site-head { top: 32px; } }

.brand { display: block; text-decoration: none; }
.brand__word { font-size: 1.6rem; line-height: 1; text-transform: uppercase; }

.logo-mask { display: block; aspect-ratio: 1; background-color: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.brand__logo { width: clamp(2.8rem, 4.7vw, 5.5rem); }
.hero__logo { width: clamp(4.5rem, 6.6vw, 8rem); margin-bottom: 1.6vw; }
.foot__logo { flex: none; width: clamp(5rem, 7.3vw, 9rem); }

.site-nav { font: 400 var(--s-nav) / 1 var(--f-serif); text-transform: uppercase; }
.site-nav .menu { --menu-gap: clamp(1.2rem, 3.6vw, 3.4rem); display: flex; gap: var(--menu-gap); }
.site-nav li { position: relative; }
.site-nav li + li::before { content: ""; position: absolute; top: 50%; left: calc(var(--menu-gap) / -2); width: 1px; height: 0.65em; background: currentColor; transform: translateY(-50%); }

/* ------------------------------------------------------------ Home: apertura */
.hero {
	min-height: 100svh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 6rem var(--gut) 4rem;
	text-align: center;
}
.hero .title { max-width: 66vw; }
.line--small { font-size: 0.34em; line-height: 1.1; }
.line--big { font-size: 1.03em; }
.js .hero__logo { animation: fade 1.2s ease 0.25s both; }
@keyframes fade { from { opacity: 0; } }

.intro { padding: max(8vw, 6rem) var(--gut) 10vw; text-align: center; }
.claim-small { font-size: clamp(1.3rem, 3.2vw, 4rem); line-height: 1; text-transform: uppercase; }
.intro .title { max-width: 76vw; margin-top: 1.6vw; }
.intro__text { margin-top: 5.5vw; column-count: 3; column-gap: 3.2vw; text-align: left; line-height: 1.45; }
.intro__text p { break-inside: avoid; margin: 0 0 0.9em; }

/* ------------------------------------------------------------ Showreel a tutto schermo */
.reel { position: relative; width: 100%; height: 100svh; overflow: hidden; padding: 0; background: #000; }
.reel__stage { position: absolute; inset: 0; }
.reel__media { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
/* Un file video non ha comandi: togliamo anche il clic destro sul video */
video.reel__media { pointer-events: none; }
/* YouTube e Vimeo: l'iframe si allarga oltre lo schermo per riempirlo senza bande nere */
iframe.reel__media {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 100vw; height: 56.25vw; min-height: 100svh; min-width: calc(100svh * 16 / 9);
}
/* Pellicola trasparente: tiene lontani i riquadri che YouTube mostra al passaggio del mouse */
.reel__shield { position: absolute; inset: 0; z-index: 2; }

/* ------------------------------------------------------------ Sezioni progetti */
.sec { padding: max(5vw, 5.5rem) var(--gut) 8vw; text-align: center; }
.sec__head { margin-bottom: 5vw; }
.sec__more { margin-top: 3.5vw; }

/* Elenco (area visual): ogni riga si riempie con i colori del progetto */
.rows { border-top: 1px solid currentColor; }
.row {
	display: block; padding: 1.3vw 1rem 1.4vw;
	border-bottom: 1px solid currentColor;
	text-decoration: none; text-transform: uppercase;
	transition: color 0.25s var(--ease);
}
.row__t { display: block; font-size: clamp(1.5rem, 3vw, 3.8rem); line-height: 1.05; }
.row__s { display: block; margin-top: 0.5vw; font: 400 var(--s-sub) / 1.3 var(--f-sans); }
/* Al passaggio del mouse il titolo e i servizi passano al colore d'accento: rapido ma morbido */
.row:hover, .row:focus-visible { color: var(--accent); }
.row:focus-visible { outline-offset: -3px; }

/* Anteprima che segue il cursore (solo con mouse) */
.peek {
	position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
	width: clamp(14rem, 22vw, 26rem); aspect-ratio: 4 / 5;
	translate: -50% -50%;
}
.peek__in { position: absolute; inset: 0; overflow: hidden; background: var(--c-pale); clip-path: inset(0 0 100% 0); transform: scale(0.9); transition: clip-path 0.45s var(--ease), transform 0.45s var(--ease); }
.peek.is-on .peek__in { clip-path: inset(0); transform: none; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) { .peek { display: none; } .row:hover { color: inherit; } }

/* Immagini larghe (aree spaces, art e altre) */
.cards { display: grid; gap: 3.3vw; }
.card { display: block; text-align: left; text-decoration: none; }
.card__img { display: block; aspect-ratio: var(--card-ratio, 3 / 1); overflow: hidden; background: color-mix(in srgb, currentColor 12%, transparent); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__cap { display: block; margin-top: 0.8vw; font: 400 clamp(0.85rem, 1.15vw, 1.3rem) / 1.3 var(--f-sans); text-transform: uppercase; }
.card:hover .serif, .card:focus-visible .serif { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Immagini: entrano ingrandendosi e diventando opache, una volta sola */
.js [data-reveal] { display: block; overflow: hidden; }
.js [data-reveal] > img { opacity: 0; transform: scale(1.08); will-change: transform, opacity; }
.js [data-reveal].is-in > img { opacity: 1; transform: none; transition: transform 1.3s var(--ease), opacity 0.9s var(--ease); }
/* Un passo di zoom al passaggio del mouse: entra svelto, esce con calma */
@media (hover: hover) {
	.js [data-reveal].is-in:hover > img,
	.js a:hover [data-reveal].is-in > img { transform: scale(1.045); transition-duration: 0.55s; }
}

/* ------------------------------------------------------------ Invito finale */
.cta { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem var(--gut); text-align: center; }
.cta .title { max-width: 58vw; }
.pill {
	display: inline-grid; place-items: center; min-width: 12vw; margin-top: 3.5vw; padding: 1.6vw 2.6vw;
	border: 1px solid currentColor; border-radius: 50%;
	font-size: clamp(0.85rem, 1.2vw, 1.4rem); line-height: 1; text-decoration: none; text-transform: uppercase;
	transition: background-color 0.3s, color 0.3s;
}
.pill:hover, .pill:focus-visible { background: var(--fg); color: var(--bg); }
.pill--sm { min-width: 0; margin-top: 0; padding: 1.1rem 2.4rem; font-size: var(--s-sub); }

/* Form di contatto al posto del bottone (per esempio Fluent Forms) */
.cta__form { width: min(44rem, 100%); margin: 4vw auto 0; text-align: left; }
.cta__form input[type="text"], .cta__form input[type="email"], .cta__form textarea {
	display: block; width: 100%; margin: 0.5rem 0 1.4rem; padding: 0.8rem 0;
	background: transparent; color: inherit; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
	font: inherit;
}
.cta__form textarea { min-height: 7rem; resize: vertical; }
.cta__form label { display: block; font-size: var(--s-sub); text-transform: uppercase; letter-spacing: 0.04em; }
.cta__form button, .cta__form .ff-btn, .cta__form input[type="submit"] {
	display: inline-grid; place-items: center; min-width: 10rem; padding: 1.1rem 2.4rem;
	background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 50%;
	font: 400 var(--s-sub) / 1 var(--f-serif); text-transform: uppercase; cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}
.cta__form button:hover, .cta__form .ff-btn:hover, .cta__form input[type="submit"]:hover { background: var(--fg); color: var(--bg); }

/* ------------------------------------------------------------ Pagina Progetti */
.page-head { padding: max(9vw, 7rem) var(--gut) 5vw; text-align: center; }
.page-head .title { font-size: clamp(4rem, 16vw, 24rem); max-width: none; }
/* La frase sta fra due linee, come quelle che dividono i progetti */
.page-head__line {
	margin: 3.5vw 0 0;
	padding: 1.2vw 0;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	font-size: var(--s-text);
	text-align: center;
}

/* Elenco ampio: titolo a sinistra, anteprima a destra, allineati alle linee */
.wrows { border-top: 1px solid currentColor; }
.wrow {
	display: grid; grid-template-columns: 1fr clamp(16rem, 34%, 34rem); align-items: center; gap: 2vw;
	padding: 1.8vw 0;
	border-bottom: 1px solid currentColor;
	text-decoration: none; text-align: left; text-transform: uppercase;
	transition: color 0.25s var(--ease);
}
.wrow:hover, .wrow:focus-visible { color: var(--accent); }
.wrow:focus-visible { outline-offset: -3px; }
.wrow__t { display: block; font-size: clamp(1.5rem, 3vw, 3.8rem); line-height: 1.05; }
.wrow__s { display: block; margin-top: 0.6vw; font: 400 var(--s-sub) / 1.3 var(--f-sans); }
.wrow__img { display: block; aspect-ratio: 8 / 3; overflow: hidden; background: color-mix(in srgb, currentColor 12%, transparent); }
.wrow__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.wrow:hover .wrow__img img { transform: scale(1.04); }
.sec--wide { padding-bottom: 6vw; }

/* ------------------------------------------------------------ Singolo progetto */
.proj { padding: max(6vw, 6.5rem) var(--gut) 8vw; text-align: center; }
.proj__head { margin-bottom: 6vw; }
.proj__title { max-width: 90vw; margin-inline: auto; font-size: clamp(2.6rem, 9vw, 13rem); overflow-wrap: anywhere; }
/* Le categorie stanno fra due linee larghe quanto quelle che dividono i progetti */
.proj__meta {
	margin-top: 3vw;
	padding: 1.2vw 0;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	font: 400 var(--s-sub) / 1.3 var(--f-sans);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.proj__text { display: grid; gap: 2.5rem 3.2vw; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 5vw; text-align: left; }
.proj__block h2 { margin-bottom: 0.6em; font-size: clamp(1.2rem, 1.9vw, 2.2rem); line-height: 1.1; text-transform: uppercase; }

/* Galleria del progetto: ogni riga trova da sé la propria altezza.
   Le foto affiancate restano intere e alla stessa altezza; chi è più largo occupa più spazio.
   --rsum è la somma delle proporzioni della riga, --gc quanti spazi ci sono fra le foto,
   --h l'altezza massima che una riga può raggiungere. */
.proj__gallery { margin-top: 6vw; text-align: left; }
.shots {
	--h: 86svh;
	display: flex;
	align-items: flex-start;
	gap: 1.4vw;
	max-width: calc(var(--rsum, 1.5) * var(--h) + var(--gc, 0) * 1.4vw);
	margin: 2vw auto 0;
}
.shots:first-child { margin-top: 0; }
.shot { flex: var(--r, 1.5) 1 0; min-width: 0; margin: 0; }
.shot__img { display: block; }
.shot img { display: block; width: 100%; height: auto; }

/* Una sola foto, a metà larghezza, accostata a sinistra o a destra */
.shots--left, .shots--right { max-width: min(calc(var(--rsum, 1.5) * var(--h)), calc(50% - 0.7vw)); }
.shots--left { --h: 76svh; margin-inline: 0 auto; }
.shots--right { --h: 76svh; margin-inline: auto 0; }

.proj__end { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1vw 1.4vw; margin-top: 8vw; }
.proj__end .pill { margin-top: 0; min-width: clamp(12rem, 17vw, 18rem); padding: 1.1rem 2rem; font-size: var(--s-sub); }

/* ------------------------------------------------------------ About */
.about-top { padding: max(10vw, 7rem) var(--gut) 8vw; }
.about-top__title { max-width: none; margin: 0; font-size: clamp(2.2rem, 5.6vw, 7.5rem); line-height: 0.95; text-align: center; }
.about-top__text { margin-top: 5vw; column-count: 3; column-gap: 3.2vw; text-align: left; }
.about-top__text p { break-inside: avoid; margin: 0 0 0.9em; }
.about-top__in { max-width: 70rem; margin-inline: auto; }

.about__shot { margin: 0; }
.about__shot img { display: block; width: 100%; max-height: 92svh; object-fit: cover; }

.about-block { padding: max(8vw, 6rem) var(--gut); text-align: center; }
.about-block__title { max-width: none; margin: 0 0 4vw; }

/* Righe separate da linee (contatti, servizi) */
.rowlist { border-top: 1px solid currentColor; max-width: 72rem; margin-inline: auto; }
.rowlist__r { margin: 0; padding: 1.6vw 1rem; border-bottom: 1px solid currentColor; font-size: var(--s-text); }

/* ------------------------------------------------------------ Pagine semplici */
.plain { min-height: 60svh; padding: max(8vw, 7rem) var(--gut) 8vw; }
.plain .title { max-width: none; margin: 0 0 1.5rem; font-size: clamp(2.2rem, 6vw, 7rem); text-align: left; }
.plain .prose { max-width: 44rem; }
.plain__item + .plain__item { margin-top: 2.5rem; }
.plain__item h2 { font-size: clamp(1.4rem, 2.4vw, 2.6rem); line-height: 1.1; text-transform: uppercase; }

/* ------------------------------------------------------------ Piè di pagina */
.site-foot { padding: 4.5vw 0 3vw; }
.foot__big { display: flex; align-items: center; justify-content: center; gap: 2.6vw; padding: 0 var(--gut) 1.8vw; border-bottom: 1px solid currentColor; }
.foot__title { white-space: nowrap; }
.foot__title em { font-style: normal; }
.foot__big .title { max-width: none; margin: 0; white-space: nowrap; }
.foot__big .title span:first-child { font-family: var(--f-sans); }
.foot__info { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem 2rem; padding: 2.2vw var(--gut) 0; font-size: clamp(0.85rem, 1.3vw, 1.4rem); line-height: 1.2; text-transform: uppercase; }

/* ------------------------------------------------------------ Avviso cookie */
.cookie {
	position: fixed; left: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem); z-index: 60;
	width: min(24rem, calc(100vw - 2rem)); padding: 1rem 1.1rem;
	background: var(--c-pale); color: var(--c-green); border: 1px solid var(--c-green);
	font: 400 0.9rem / 1.4 var(--f-sans);
}
.cookie[hidden] { display: none; }
.cookie__act { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; }
.cookie button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ------------------------------------------------------------ Schermi piccoli */
/* ------------------------------------------------------------ Pagina Shop
   Non è un negozio: è la vetrina delle autoproduzioni. Apertura come la pagina Works,
   poi una voce dopo l'altra, ognuna sotto la sua linea, con le foto affiancate e intere. */
.shop { padding: 0.1px var(--gut) 8vw; text-align: left; }
.shop__text {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
	gap: 2.4rem 3.2vw;
	margin: 3.5vw 0 0;
	padding: 1.6vw 0;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	text-align: left;
}
.shop__block h2 { margin-bottom: 0.6em; font-size: clamp(1.2rem, 1.9vw, 2.2rem); line-height: 1.1; text-transform: uppercase; }
.shop__block .prose { max-width: 34rem; }

/* Una autoproduzione: nome a sinistra, descrizione a destra, foto sotto */
.buy { margin-top: 5vw; padding-top: 2.4vw; border-top: 1px solid currentColor; }
.buy:first-child { margin-top: 3vw; }
.buy__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 1.2rem 3vw; align-items: start; }
.buy__name { font-size: clamp(1.6rem, 3.2vw, 3.4rem); line-height: 1; }
.buy__text { max-width: 46rem; }
.buy .proj__gallery { margin-top: 2.6vw; }
.proj__gallery--shop .shots { --h: 57svh; }
.proj__gallery--shop .shots--left, .proj__gallery--shop .shots--right { --h: 50svh; }

/* ------------------------------------------------------------ Backstage
   Un muro di immagini: colonne uguali, altezze libere. Ogni foto occupa tante righe
   quante ne servono alla sua altezza (le calcola lo script, dopo il caricamento). */
.bs { padding: max(9vw, 7rem) var(--gut) 8vw; text-align: left; }
/* «backstage» è una parola lunga: sta su una riga sola senza uscire dallo schermo */
.bs__title { margin-inline: 0; max-width: none; font-size: clamp(2.4rem, 12.6vw, 17rem); text-align: left; }
.bs__intro { max-width: 46rem; margin-top: 2.5vw; padding-top: 1.4vw; border-top: 1px solid currentColor; }
.bs__wall {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 1.4vw;
	grid-auto-rows: 8px;
	margin-top: 5vw;
}
.bs__item { margin: 0; grid-row-end: span 40; }
.bs__in { padding-bottom: 1.4vw; }
.bs__img { display: block; }
.bs__img img { display: block; width: 100%; height: auto; }
.bs__item figcaption { padding-top: 0.6vw; font: 400 var(--s-sub) / 1.3 var(--f-sans); text-transform: uppercase; }
.bs__empty { margin-top: 4vw; font-size: var(--s-text); }
/* Senza JavaScript il muro resta una griglia ordinata, non un mucchio sovrapposto */
.no-js .bs__wall, .bs__wall:not(.is-set) { grid-auto-rows: auto; }
.no-js .bs__item, .bs__wall:not(.is-set) .bs__item { grid-row-end: auto; }

/* ------------------------------------------------------------ Caricamento
   Il simbolo si compone da sé: i tratti si intrecciano, poi il cerchio li chiude. */
.selva-load {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 2.4rem;
	background: var(--c-green);
	color: var(--c-pale);
	transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.selva-load[hidden] { display: none; }
.js.is-loading { overflow: hidden; }
/* Durante il caricamento resta solo il simbolo: la testata entra con la pagina */
.js.is-loading .site-head { opacity: 0; }
.js.is-loading .anim, .js.is-loading .is-in .anim--wait { animation-play-state: paused; }
.selva-load--out { opacity: 0; visibility: hidden; pointer-events: none; }
.selva-load__mark { width: clamp(7rem, 16vw, 13rem); height: auto; overflow: visible; }
.selva-load__mark path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; }
.selva-load__word { font: 400 clamp(1.1rem, 2vw, 1.6rem) / 1.2 var(--f-serif); letter-spacing: 0.02em; text-align: center; }
.selva-load__word span { display: block; opacity: 0; animation: load-word 0.9s var(--ease) forwards; animation-delay: 0.55s; }
.selva-load__word span + span { font-size: 0.8em; opacity: 0; animation-delay: 0.8s; }
@keyframes load-word { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }
/* I tratti si disegnano uno dopo l'altro, poi si riempiono di colore */
.selva-load__mark .lw {
	stroke-dasharray: var(--len) var(--len);
	stroke-dashoffset: var(--len);
	animation: load-draw 1.15s var(--ease) forwards, load-fill 0.5s var(--ease) forwards;
	animation-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms + 1.05s);
}
@keyframes load-draw { to { stroke-dashoffset: 0; } }
@keyframes load-fill { to { fill: currentColor; stroke-width: 0; } }

@media (max-width: 800px) {
	.title, .hero .title, .intro .title, .cta .title { max-width: none; }
	.title { font-size: clamp(2.2rem, 11.5vw, 6rem); }
	.intro__text, .about-top__text { column-count: 1; }
	.reel { height: 70svh; }
	iframe.reel__media { height: 70svh; min-height: 0; min-width: calc(70svh * 16 / 9); }
	.row { padding-block: 1.1rem; }
	.row__t { font-size: clamp(1.4rem, 6.4vw, 2.2rem); }
	.row__s { margin-top: 0.3rem; }
	/* Elenco Progetti: titolo sopra, anteprima sotto */
	.wrow { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.4rem; }
	.wrow__t { font-size: clamp(1.4rem, 6.4vw, 2.2rem); }
	.wrow__s { margin-top: 0.3rem; }
	.wrow__img { aspect-ratio: 16 / 7; }
	.card__img { aspect-ratio: 4 / 3; }
	.card__cap { margin-top: 0.6rem; padding-top: 0.6rem; }
	.cards { gap: 1.2rem; }
	/* Galleria progetto: su schermo stretto le quattro in linea restano due, il resto una per riga */
	.shots { max-width: none; gap: 1.2rem; margin-top: 1.2rem; flex-wrap: wrap; }
	.shots--full .shot, .shots--half .shot, .shots--left .shot, .shots--right .shot { flex: 1 1 100%; }
	.shots--quarter .shot { flex: 1 1 calc(50% - 0.6rem); }
	.shots--left, .shots--right { max-width: none; margin-inline: auto; }
	.shot--empty { display: none; }
	.proj__meta, .page-head__line { padding-block: 0.9rem; }
	.shop, .bs { padding-bottom: 5rem; }
	.buy__head { grid-template-columns: 1fr; gap: 0.8rem; }
	.buy { margin-top: 3rem; padding-top: 1.4rem; }
	.bs__wall { grid-template-columns: repeat(2, 1fr); gap: 0 1.2rem; }
	.bs__in { padding-bottom: 1.2rem; }
	.shop__text { padding-top: 1.2rem; }
	.proj__end { gap: 0.9rem; }
	.pill { min-width: 9rem; margin-top: 2rem; padding: 1.1rem 2rem; }
	.pill--sm, .proj__end .pill { margin-top: 0; }
	.rowlist__r { padding: 1rem 0.5rem; }
	.about-block__title { margin-bottom: 2rem; }
	.foot__big { flex-direction: column; gap: 1.2rem; }
	.foot__big .title { white-space: normal; }
	.foot__info { flex-direction: column; align-items: center; text-align: center; padding-top: 1.5rem; }
	.site-nav .menu { --menu-gap: 1.1rem; }
}

/* ------------------------------------------------------------ Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal] > img { opacity: 1; transform: none; }
	.js .anim { opacity: 1; transform: none; }
	.selva-load__mark .lw { stroke-dashoffset: 0; fill: currentColor; stroke-width: 0; }
	.selva-load__word span { opacity: 1; }
	@view-transition { navigation: none; }
}
