/* =========================================================
   Modella Portfolio — sito pubblico, design system "Velvet Night" (feature 045)
   Valori e componenti: specs/045-frontend-velvet/design-system.md
   Mobile-first (Principio VIII): la base è il telefono, solo media query min-width.
   ========================================================= */

@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/bebas-neue-latin-400.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght.woff2") format("woff2");
}

:root {
	/* Colore. I valori qui sono il tema "Velvet Night"; gli altri temi colore (spec 051,
	   inc/color-themes.php) ridefiniscono solo questi token con un :root stampato dopo il file.
	   Le trasparenze si ottengono con color-mix() sul token, mai con rgba() scritti a mano. */
	--v-bg: #120912;
	--v-bg-2: #1c0f1f;
	--v-panel: #180c1b;
	--v-scrim: #0c060d;
	--v-deep: #3b1344;
	--v-deep-2: #331238;
	--v-deep-3: #1a0c1e;
	--v-halo-1: #d64caa;
	--v-halo-2: #7042e0;
	--v-glass: rgba(255, 255, 255, 0.07);
	--v-glass-strong: rgba(255, 255, 255, 0.12);
	--v-glass-dark: color-mix(in srgb, var(--v-panel) 72%, transparent);
	--v-line: rgba(255, 255, 255, 0.12);
	--v-ink: #fff4fb;
	--v-ink-2: #dcc7d8;
	--v-ink-3: #a88fa6;
	--v-accent: #f7a6de;
	--v-hot: #ff2e93;
	--v-hot-2: #ff74c6;
	--v-violet: #8a5cff;
	--v-on-hot: #fff;
	--v-success: #6ee7b7;
	--v-danger: #ff8a8a;
	--v-ring: conic-gradient(from 210deg, var(--v-hot), var(--v-violet), var(--v-accent), var(--v-hot));
	--v-glow: 0 14px 44px -10px color-mix(in srgb, var(--v-hot) 65%, transparent);
	--v-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.7);
	--v-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);

	/* Tipografia */
	--v-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
	--v-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Forme e spazi */
	--v-r-card: 28px;
	--v-r-photo: 22px;
	--v-r-pill: 999px;
	--v-gutter: 16px;
	--v-max: 1240px;
	--v-nav-h: 72px;
	--v-nav-space: calc(var(--v-nav-h) + 24px + env(safe-area-inset-bottom));
	--v-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

	color-scheme: dark;
}

/* =========================================================
   Base
   ========================================================= */

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

html {
	-webkit-text-size-adjust: 100%;
	background-color: var(--v-bg);
}

body {
	margin: 0;
	min-height: 100vh;
	padding-bottom: var(--v-nav-space);
	background-color: var(--v-bg);
	background-image:
		radial-gradient(900px 620px at 8% -8%, color-mix(in srgb, var(--v-halo-1) 34%, transparent), transparent 62%),
		radial-gradient(760px 700px at 105% 28%, color-mix(in srgb, var(--v-halo-2) 28%, transparent), transparent 60%),
		radial-gradient(1000px 640px at 50% 112%, color-mix(in srgb, var(--v-halo-1) 20%, transparent), transparent 62%);
	background-attachment: fixed;
	color: var(--v-ink);
	font-family: var(--v-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 16px;
	color: var(--v-ink);
	font-family: var(--v-display);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

p {
	margin: 0 0 16px;
}

.display {
	font-family: var(--v-display);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.accent {
	color: var(--v-accent);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	top: 12px;
	left: -9999px;
	z-index: 1000;
	padding: 12px 20px;
	border-radius: var(--v-r-pill);
	background: var(--v-ink);
	color: var(--v-bg);
	font-weight: 700;
}

.skip-link:focus {
	left: 12px;
}

.modella-icon {
	display: block;
	flex-shrink: 0;
}

/* =========================================================
   Layout
   ========================================================= */

.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
}

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

.section {
	margin-top: 56px;
}

@media (min-width: 768px) {
	:root {
		--v-gutter: 32px;
	}

	.section {
		margin-top: 88px;
	}
}

/* =========================================================
   Componenti: vetro, eyebrow, pulsanti, chip, stato vuoto
   ========================================================= */

.glass {
	border: 1px solid var(--v-line);
	background: var(--v-glass);
	box-shadow: var(--v-inset);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
}

.dot {
	display: inline-block;
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--v-accent);
	box-shadow: 0 0 12px var(--v-accent);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--v-ink-2);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: var(--v-r-pill);
	font-family: var(--v-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 160ms var(--v-ease), box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.btn:active {
	transform: scale(0.98);
}

.btn--primary,
.modella-contact-form button[type="submit"],
.modella-gallery-unlock-form button[type="submit"],
#modella-cookie-accept {
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
	box-shadow: var(--v-glow);
}

.btn--primary:hover {
	box-shadow: 0 18px 56px -8px color-mix(in srgb, var(--v-hot) 80%, transparent);
	transform: translateY(-2px);
}

.btn--glass {
	border-color: var(--v-line);
	background: var(--v-glass);
	color: var(--v-ink);
	box-shadow: var(--v-inset);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.btn--glass:hover {
	background: var(--v-glass-strong);
}

.btn--sm {
	min-height: 42px;
	padding: 0 18px;
	font-size: 12px;
}

.icon-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--v-ink);
	text-decoration: none;
}

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

.chips--center {
	justify-content: center;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	margin: 0;
	padding: 0 18px;
	border-radius: var(--v-r-pill);
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: 19px;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--v-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.link-more:hover .modella-icon {
	transform: translateX(3px);
}

.link-more .modella-icon {
	transition: transform 160ms var(--v-ease);
}

.empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 48px 24px;
	border-radius: var(--v-r-card);
	color: var(--v-ink-3);
	text-align: center;
}

.empty p {
	max-width: 36ch;
	margin: 0;
	color: var(--v-ink-2);
}

/* =========================================================
   Intestazione e navigazione a 4 voci
   ========================================================= */

.site-header {
	position: relative;
	z-index: 50;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: var(--v-max);
	margin-inline: auto;
	padding: calc(14px + env(safe-area-inset-top)) var(--v-gutter) 10px;
}

.site-brand {
	overflow: hidden;
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: 28px;
	letter-spacing: 0.03em;
	line-height: 1;
	text-decoration: none;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-header__avatar {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 2px;
	border-radius: 50%;
	background: var(--v-ring);
}

.site-header__avatar img {
	width: 100%;
	height: 100%;
	border: 2px solid var(--v-bg);
	border-radius: 50%;
	object-fit: cover;
}

/* Mobile: barra inferiore flottante da app */
.site-nav {
	position: fixed;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom));
	left: 12px;
	z-index: 90;
	height: var(--v-nav-h);
	border: 1px solid var(--v-line);
	border-radius: 28px;
	background: var(--v-glass-dark);
	box-shadow: var(--v-shadow), var(--v-inset);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
}

.site-nav__list {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	height: 100%;
	margin: 0;
	padding: 0 6px;
	list-style: none;
}

.site-nav__list li {
	display: flex;
	min-width: 0;
}

.site-nav__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	color: var(--v-ink-3);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.site-nav__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 38px;
	border-radius: var(--v-r-pill);
	transition: background-color 200ms ease, color 200ms ease;
}

.site-nav__label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-nav__link:hover {
	color: var(--v-ink);
}

.site-nav__link.is-active {
	color: var(--v-accent);
}

.site-nav__link.is-active .site-nav__icon {
	border: 1px solid var(--v-line);
	background: var(--v-glass-strong);
	color: var(--v-ink);
	box-shadow: 0 0 24px -4px color-mix(in srgb, var(--v-accent) 50%, transparent), var(--v-inset);
}

@media (min-width: 1024px) {
	body {
		padding-bottom: 0;
	}

	.site-header {
		position: sticky;
		top: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		background: color-mix(in srgb, var(--v-bg) 72%, transparent);
		-webkit-backdrop-filter: blur(20px) saturate(150%);
		backdrop-filter: blur(20px) saturate(150%);
	}

	.site-header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		padding-block: 18px;
	}

	.site-brand {
		justify-self: start;
		max-width: 100%;
		font-size: 32px;
	}

	.site-header__avatar {
		display: none;
	}

	/* Desktop: pillola centrale in vetro, voce attiva bianca ("FOR YOU") */
	.site-nav {
		position: static;
		height: auto;
		padding: 6px;
		border-radius: var(--v-r-pill);
		background: var(--v-glass);
		box-shadow: var(--v-inset);
	}

	.site-nav__list {
		display: flex;
		gap: 4px;
		padding: 0;
	}

	.site-nav__link {
		flex-direction: row;
		gap: 8px;
		min-height: 44px;
		padding: 0 18px;
		border-radius: var(--v-r-pill);
		color: var(--v-ink-2);
		transition: background-color 200ms ease, color 200ms ease;
	}

	.site-nav__icon {
		width: auto;
		height: auto;
		background: none;
	}

	.site-nav__icon .modella-icon {
		width: 17px;
		height: 17px;
	}

	.site-nav__label {
		font-size: 13px;
	}

	.site-nav__link:hover {
		background: var(--v-glass);
	}

	.site-nav__link.is-active {
		background: var(--v-ink);
		color: var(--v-bg);
	}

	.site-nav__link.is-active .site-nav__icon {
		border: 0;
		background: none;
		color: inherit;
		box-shadow: none;
	}

}

/* =========================================================
   Home — hero "copertina da app"
   ========================================================= */

.hero {
	padding-top: 8px;
}

.hero__inner {
	display: grid;
	gap: 28px;
}

.hero__title {
	margin: 0 0 18px;
	font-size: clamp(4rem, 23vw, 9.5rem);
	overflow-wrap: anywhere;
}

/* Come nei riferimenti: la parola in evidenza va sempre su una riga sua. */
.hero__title .accent {
	display: block;
}

.hero__lead {
	max-width: 46ch;
	margin: 0 0 26px;
	color: var(--v-ink-2);
	font-size: 17px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__actions .btn {
	flex: 1 1 auto;
}

.hero__media {
	position: relative;
	padding-bottom: 40px;
}

.hero__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border: 1px solid var(--v-line);
	border-radius: 32px;
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--v-hot-2) 55%, transparent), transparent 55%),
		linear-gradient(160deg, var(--v-deep), var(--v-bg-2));
	box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--v-halo-1) 55%, transparent);
}

.hero__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--v-bg) 60%, transparent), transparent 45%);
	pointer-events: none;
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__badge {
	position: absolute;
	bottom: 0;
	left: 12px;
	z-index: 2;
	display: grid;
	place-content: center;
	gap: 6px;
	width: 138px;
	height: 138px;
	padding: 16px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	text-align: center;
}

.hero__badge-title {
	color: var(--v-accent);
	font-size: 38px;
}

.hero__badge-text {
	color: var(--v-ink);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
}

@media (min-width: 1024px) {
	.hero {
		padding-top: 24px;
	}

	.hero__inner {
		grid-template-columns: 1.05fr 0.95fr;
		align-items: center;
		gap: 64px;
		min-height: min(calc(100vh - 100px), 880px);
	}

	.hero__title {
		font-size: clamp(6rem, 9vw, 9.5rem);
	}

	.hero__lead {
		font-size: 19px;
	}

	.hero__actions .btn {
		flex: 0 0 auto;
	}

	.hero__frame {
		max-height: 80vh;
		margin-left: auto;
	}

	.hero__badge {
		bottom: 72px;
		left: -64px;
		width: 176px;
		height: 176px;
	}

	.hero__badge-title {
		font-size: 50px;
	}

	.hero__badge-text {
		font-size: 11px;
	}
}

/* Numeri del portfolio (profilo: "8067 FOLLOWERS") */

.stats {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin-top: 40px;
}

.stat {
	display: grid;
	justify-items: center;
	gap: 6px;
	min-width: 0;
	padding: 6px 8px;
	text-align: center;
}

.stat + .stat {
	border-left: 1px solid var(--v-line);
}

.stat__value {
	max-width: 100%;
	overflow: hidden;
	font-size: 40px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stat__label {
	color: var(--v-ink-3);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.stats {
		margin-top: 64px;
	}

	.stat__value {
		font-size: 56px;
	}
}

/* Intestazioni di sezione */

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.section__title {
	margin: 0;
	font-size: clamp(2.5rem, 10vw, 4.5rem);
}

/* Card CTA sfumata */

.cta-card {
	position: relative;
	overflow: hidden;
	margin-top: 48px;
	padding: 32px 24px;
	border: 1px solid var(--v-line);
	border-radius: 32px;
	background:
		radial-gradient(520px 320px at 100% 0%, color-mix(in srgb, var(--v-hot) 45%, transparent), transparent 60%),
		radial-gradient(420px 320px at 0% 100%, color-mix(in srgb, var(--v-violet) 40%, transparent), transparent 60%),
		linear-gradient(150deg, var(--v-deep-2), var(--v-deep-3));
	box-shadow: var(--v-shadow), var(--v-inset);
}

.section .cta-card {
	margin-top: 0;
}

.cta-card__title {
	margin: 0 0 12px;
	font-size: clamp(2.8rem, 12vw, 5rem);
}

.cta-card__text {
	max-width: 44ch;
	margin: 0 0 24px;
	color: var(--v-ink-2);
}

@media (min-width: 768px) {
	.cta-card {
		padding: 56px;
	}
}

/* =========================================================
   Card gallery (griglia "Categories")
   ========================================================= */

.g-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.g-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-card);
	background: var(--v-bg-2);
	color: var(--v-ink);
	text-decoration: none;
	isolation: isolate;
	transition: transform 260ms var(--v-ease), box-shadow 260ms ease;
}

.g-card__media,
.g-card__media img,
.g-card__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.g-card__media img {
	object-fit: cover;
	transition: transform 600ms var(--v-ease);
}

.g-card__placeholder {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--v-hot-2) 45%, transparent), transparent 60%),
		linear-gradient(160deg, var(--v-deep), var(--v-bg-2));
	color: var(--v-ink-2);
}

.g-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--v-bg) 72%, transparent), transparent 42%);
	pointer-events: none;
}

.g-card__chip,
.g-card__lock,
.g-card__name {
	position: absolute;
	z-index: 1;
}

.g-card__chip {
	top: 10px;
	left: 10px;
	padding: 6px 12px;
	border-radius: var(--v-r-pill);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.g-card__lock {
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.g-card__name {
	right: 10px;
	bottom: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 12px;
	border-radius: var(--v-r-pill);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.g-card__title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.g-card:hover {
	box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--v-hot) 60%, transparent);
	transform: translateY(-4px);
}

.g-card:hover .g-card__media img {
	transform: scale(1.05);
}

@media (min-width: 768px) {
	.g-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
	}

	.g-card__name {
		right: 14px;
		bottom: 14px;
		left: 14px;
		min-height: 46px;
		font-size: 13px;
	}
}

@media (min-width: 1200px) {
	.g-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* =========================================================
   Intestazione pagina
   ========================================================= */

.page-hero {
	padding: 16px 0 28px;
}

.page-hero__title {
	margin: 0;
	font-size: clamp(3.2rem, 15vw, 7rem);
	overflow-wrap: anywhere;
}

.page-hero__lead {
	max-width: 60ch;
	margin: 16px 0 0;
	color: var(--v-ink-2);
	font-size: 17px;
}

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

@media (min-width: 1024px) {
	.page-hero {
		padding: 32px 0 44px;
	}
}

/* =========================================================
   Tour — elenco "stile messaggi"
   ========================================================= */

.tour-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tour-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 16px 12px 12px;
	border: 1px solid var(--v-line);
	border-radius: 26px;
	background: var(--v-glass);
	box-shadow: var(--v-inset);
}

.tour-row__ring {
	display: block;
	width: 62px;
	height: 62px;
	padding: 2px;
	border-radius: 50%;
	background: var(--v-ring);
}

.tour-row__date {
	display: grid;
	place-content: center;
	width: 100%;
	height: 100%;
	border: 2px solid var(--v-bg);
	border-radius: 50%;
	background: var(--v-bg-2);
	text-align: center;
	line-height: 1;
}

.tour-row__day {
	font-family: var(--v-display);
	font-size: 26px;
}

.tour-row__month {
	margin-top: 2px;
	color: var(--v-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tour-row__body {
	display: grid;
	min-width: 0;
	gap: 2px;
}

.tour-row__place {
	overflow: hidden;
	font-family: var(--v-display);
	font-size: 26px;
	letter-spacing: 0.02em;
	line-height: 1;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.tour-row__meta {
	color: var(--v-ink-3);
	font-size: 13px;
	line-height: 1.4;
}

.tour-row__when {
	justify-self: end;
	color: var(--v-ink-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-align: right;
	text-transform: uppercase;
	white-space: nowrap;
}

.badge-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--v-r-pill);
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
	box-shadow: var(--v-glow);
}

.badge-live::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--v-on-hot);
	animation: velvet-pulse 1.6s ease-in-out infinite;
}

@keyframes velvet-pulse {
	50% {
		opacity: 0.3;
	}
}

.tour-list--page + .cta-card,
.empty + .cta-card {
	margin-top: 32px;
}

@media (min-width: 768px) {
	.tour-row {
		gap: 20px;
		padding: 14px 24px 14px 14px;
	}

	.tour-row__ring {
		width: 72px;
		height: 72px;
	}

	.tour-row__place {
		font-size: 32px;
	}

	.tour-row__meta {
		font-size: 14px;
	}

	.tour-row__when {
		font-size: 12px;
	}
}

/* =========================================================
   Singola gallery — "profilo"
   ========================================================= */

.profile {
	position: relative;
	display: grid;
	justify-items: center;
	padding: 12px 0 28px;
	text-align: center;
}

.profile__back {
	position: absolute;
	top: 8px;
	left: 0;
}

.avatar-ring {
	display: block;
	width: 116px;
	height: 116px;
	padding: 3px;
	border-radius: 50%;
	background: var(--v-ring);
	box-shadow: 0 16px 50px -12px color-mix(in srgb, var(--v-hot) 60%, transparent);
}

.avatar-ring img {
	width: 100%;
	height: 100%;
	border: 3px solid var(--v-bg);
	border-radius: 50%;
	object-fit: cover;
}

/* Cerchio con icona al posto della copertina: gallery protette non sbloccate e gallery video. */
.avatar-ring--icon {
	display: grid;
	place-items: center;
}

.avatar-ring--icon > span {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border: 3px solid var(--v-bg);
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--v-hot-2) 45%, transparent), transparent 60%),
		linear-gradient(160deg, var(--v-deep), var(--v-bg-2));
	color: var(--v-ink);
}

/* Card di una gallery protetta (foto e video): segnaposto col lucchetto, nessuna copertina. */
.g-card.is-locked .g-card__placeholder {
	color: var(--v-accent);
}

.profile__title {
	margin: 18px 0 6px;
	font-size: clamp(2.8rem, 13vw, 5.5rem);
	overflow-wrap: anywhere;
}

.profile__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--v-ink-2);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.modella-gallery-figure-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.modella-gallery-figure {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	margin: 0;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-photo);
	background: var(--v-bg-2);
	cursor: zoom-in;
}

.modella-gallery-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--v-ease);
}

.modella-gallery-figure:hover img {
	transform: scale(1.04);
}

.float-cta {
	position: fixed;
	bottom: calc(var(--v-nav-h) + 24px + env(safe-area-inset-bottom));
	left: 50%;
	z-index: 80;
	width: min(calc(100vw - 48px), 420px);
	transform: translateX(-50%);
}

.float-cta:hover,
.float-cta:active {
	transform: translateX(-50%) translateY(-2px);
}

.gallery-single {
	padding-bottom: 96px;
}

.unlock-card {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px;
	border-radius: var(--v-r-card);
}

@media (min-width: 768px) {
	.modella-gallery-figure-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.avatar-ring {
		width: 140px;
		height: 140px;
	}
}

@media (min-width: 1024px) {
	.float-cta {
		bottom: 28px;
	}
}

/* =========================================================
   Contatti — layout "onboarding"
   ========================================================= */

.contact__layout {
	display: grid;
	gap: 28px;
	padding-top: 8px;
}

.contact__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	max-height: 52vh;
	border: 1px solid var(--v-line);
	border-radius: 32px;
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--v-hot-2) 55%, transparent), transparent 55%),
		linear-gradient(160deg, var(--v-deep), var(--v-bg-2));
	box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--v-halo-1) 55%, transparent);
}

.contact__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.contact__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--v-bg) 55%, transparent), transparent 40%);
}

.contact__badge {
	position: absolute;
	bottom: 14px;
	left: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: var(--v-r-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.contact__panel {
	text-align: center;
}

.contact__title {
	margin: 0 0 14px;
	font-size: clamp(3.2rem, 15vw, 6rem);
}

.contact__content > p:first-child {
	max-width: 46ch;
	margin-inline: auto;
	color: var(--v-ink-2);
}

/* Nota privacy del contenuto (blocco paragrafo "has-small-font-size") sotto il modulo. */
.contact__content .has-small-font-size {
	margin: 14px 0 0;
	color: var(--v-ink-3);
	font-size: 12px;
}

.contact__content a {
	color: var(--v-accent);
}

.contact__panel .modella-social-links {
	justify-content: center;
	margin-top: 24px;
}

@media (min-width: 1024px) {
	.contact__layout {
		grid-template-columns: 0.9fr 1.1fr;
		align-items: center;
		gap: 64px;
		padding-top: 24px;
	}

	.contact__media {
		aspect-ratio: 4 / 5;
		max-height: 78vh;
	}

	.contact__panel {
		text-align: left;
	}

	.contact__content > p:first-child {
		margin-inline: 0;
	}

	.contact__panel .modella-social-links {
		justify-content: flex-start;
	}
}

/* Modulo di contatto (feature 011): campi a pillola in vetro, pulsante luminoso */

.modella-contact-form {
	display: grid;
	gap: 14px;
	margin-top: 24px;
	text-align: left;
}

.modella-contact-form p {
	margin: 0;
}

.modella-contact-form label,
.modella-gallery-unlock-form label {
	display: block;
	margin: 0 0 8px 6px;
	color: var(--v-ink-3);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.modella-contact-form input[type="text"],
.modella-contact-form input[type="email"],
.modella-contact-form textarea,
.modella-gallery-unlock-form input[type="password"] {
	width: 100%;
	min-height: 56px;
	padding: 16px 22px;
	border: 1px solid var(--v-line);
	border-radius: 20px;
	background: var(--v-glass);
	box-shadow: var(--v-inset);
	color: var(--v-ink);
	font-family: var(--v-body);
	font-size: 16px;
	transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.modella-contact-form textarea {
	min-height: 150px;
	resize: vertical;
}

.modella-contact-form input:focus,
.modella-contact-form textarea:focus,
.modella-gallery-unlock-form input:focus {
	border-color: var(--v-accent);
	background: var(--v-glass-strong);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-accent) 18%, transparent);
	outline: none;
}

.modella-contact-form button[type="submit"],
.modella-gallery-unlock-form button[type="submit"] {
	width: 100%;
	min-height: 58px;
	border: 0;
	border-radius: var(--v-r-pill);
	font-family: var(--v-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 160ms var(--v-ease), box-shadow 200ms ease;
}

.modella-contact-form button[type="submit"]:hover,
.modella-gallery-unlock-form button[type="submit"]:hover {
	box-shadow: 0 18px 56px -8px color-mix(in srgb, var(--v-hot) 80%, transparent);
	transform: translateY(-2px);
}

.modella-gallery-unlock-form button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.modella-contact-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.modella-contact-message,
.modella-form-message {
	margin: 16px 0;
	padding: 14px 18px;
	border: 1px solid var(--v-line);
	border-radius: 18px;
	background: var(--v-glass);
	font-size: 14px;
	text-align: left;
}

.modella-contact-message--success,
.modella-form-message--success {
	border-color: rgba(110, 231, 183, 0.45);
	color: var(--v-success);
}

.modella-contact-message--error,
.modella-form-message--error {
	border-color: rgba(255, 138, 138, 0.45);
	color: var(--v-danger);
}

/* Sblocco gallery riservata (feature 036) */

.modella-gallery-locked-intro {
	color: var(--v-ink-2);
	text-align: center;
}

.modella-gallery-unlock-form p {
	margin: 0 0 14px;
}

.modella-gallery-password-badge {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 4px 12px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-glass);
	color: var(--v-ink-2);
	font-family: var(--v-body);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	vertical-align: middle;
}

/* =========================================================
   Pagine di testo (Chi sono, Press, Privacy), 404, indice
   ========================================================= */

.prose {
	max-width: 72ch;
	color: var(--v-ink-2);
	font-size: 17px;
}

.prose h2 {
	margin: 40px 0 14px;
	font-size: clamp(2.2rem, 8vw, 3.4rem);
}

.prose h3 {
	margin: 0 0 10px;
	font-size: 1.9rem;
}

.prose a {
	color: var(--v-accent);
	text-underline-offset: 3px;
}

.prose .wp-block-group {
	margin: 14px 0;
	padding: 22px 24px;
	border: 1px solid var(--v-line);
	border-radius: 24px;
	background: var(--v-glass);
	box-shadow: var(--v-inset);
}

.prose .wp-block-group p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   Informativa privacy (spec 130): generata dal tema, in ogni lingua.
   Mobile-first; solo token --v-* così segue tutti i temi colore.
   ========================================================= */

.policy-doc {
	max-width: none;
	overflow-wrap: anywhere;
}

.policy-doc__updated {
	margin: 0 0 12px;
	color: var(--v-ink-3);
	font-size: 0.9em;
}

.policy-doc h2 {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 5vw, 2.3rem);
}

.policy-doc__summary,
.policy-doc__toc,
.policy-doc__item,
.policy-doc__card {
	border: 1px solid var(--v-line);
	border-radius: 20px;
	background: var(--v-glass);
	box-shadow: var(--v-inset);
}

/* The page text uses the whole width of the content area (workspace rule «full width»): the policy lifts the 72ch column of .prose. */
.prose:has(.policy-doc) {
	max-width: none;
}

.policy-doc__top {
	display: grid;
	gap: 16px;
	margin: 20px 0 8px;
}

.policy-doc__summary {
	margin: 0;
	padding: 20px;
}

.policy-doc__summary h2 {
	margin-top: 0;
}

.policy-doc ul {
	margin: 0 0 14px;
	padding-left: 1.2em;
}

.policy-doc__summary ul {
	margin-bottom: 0;
}

.policy-doc li {
	margin: 4px 0;
}

.policy-doc__toc {
	margin: 0;
	padding: 18px 20px;
}

.policy-doc__toc p {
	margin: 0 0 8px;
	color: var(--v-ink);
	font-weight: 600;
}

.policy-doc__toc ol {
	column-gap: 48px;
	margin: 0;
	padding-left: 1.4em;
}

.policy-doc__toc li {
	break-inside: avoid;
	margin: 0;
}

/* Touch target of 44 px on phones and tablets; a closer list on large screens (Principle VIII). */
.policy-doc__toc a,
.policy-doc p > a:only-child,
.policy-doc dd > a:only-child {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

@media (min-width: 1024px) {
	.policy-doc__toc a {
		min-height: 32px;
	}
}

/* Sections are equal cards in one grid: same padding, same gap, rows aligned (no CSS columns, which left ragged, uneven blocks). */
.policy-doc__body {
	display: grid;
	gap: 16px;
	margin-top: 24px;
}

.policy-doc__section {
	margin: 0;
	padding: 22px 20px;
	border: 1px solid var(--v-line);
	border-radius: 24px;
	background: var(--v-glass);
	box-shadow: var(--v-inset);
	scroll-margin-top: calc(var(--v-nav-h, 64px) + 16px);
}

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

.policy-doc__section h2 {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--v-line);
	font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.policy-doc__section p {
	margin: 0 0 12px;
}

.policy-doc__section .policy-doc__item,
.policy-doc__section .policy-doc__facts div,
.policy-doc__section .policy-doc__card {
	background: rgba(255, 255, 255, 0.03);
	box-shadow: none;
}

.policy-doc__item {
	margin: 0 0 12px;
	padding: 16px 18px;
}

.policy-doc__item h3 {
	margin: 0 0 6px;
	color: var(--v-ink);
	font-size: 1.05em;
}

.policy-doc__item p {
	margin: 0;
}

.policy-doc__facts {
	display: grid;
	gap: 10px;
	margin: 0;
}

.policy-doc__facts div {
	padding: 12px 16px;
	border: 1px solid var(--v-line);
	border-radius: 16px;
	background: var(--v-glass);
}

.policy-doc__facts dt {
	color: var(--v-ink-3);
	font-size: 0.85em;
}

.policy-doc__facts dd {
	margin: 2px 0 0;
	color: var(--v-ink);
}

.policy-doc__storage {
	display: grid;
	gap: 10px;
	margin: 14px 0;
}

.policy-doc__card {
	padding: 14px 16px;
}

.policy-doc__card p {
	margin: 0;
}

.policy-doc__card-name code {
	color: var(--v-ink);
	font-size: 0.95em;
}

.policy-doc__card-purpose {
	margin-top: 4px;
}

.policy-doc__card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
	font-size: 0.85em;
}

.policy-doc__card-meta span {
	padding: 3px 10px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	color: var(--v-ink-2);
}

/* Each section is a container: its cards flow by the width the section really has, not by the screen. */
.policy-doc__body {
	container-type: inline-size;
}

.policy-doc__section > * { min-width: 0; }

/* Items inside a section flow in columns by the section width; headings and paragraphs span the row. */
.policy-doc__section > .policy-doc__item { margin: 0; }
@container (min-width: 700px) {
	.policy-doc__section:has(.policy-doc__item) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.policy-doc__section:has(.policy-doc__item) > :not(.policy-doc__item) { grid-column: 1 / -1; margin: 0; }
}
@container (min-width: 1100px) {
	.policy-doc__section:has(.policy-doc__item) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container (min-width: 520px) {
	.policy-doc__facts,
	.policy-doc__storage {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (min-width: 900px) {
	.policy-doc__storage {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 640px) {
	.policy-doc__toc ol {
		columns: 2;
	}
}

/* Wide screens: summary and index side by side, the sections in two columns (three on very wide screens). */
@media (min-width: 1100px) {
	.policy-doc__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.policy-doc__top {
		align-items: stretch;
	}

	.policy-doc__section {
		padding: 26px 28px;
	}
}

@media (min-width: 1700px) {
	.policy-doc__toc ol {
		columns: 3;
	}

}

.error-404 {
	display: grid;
	justify-items: center;
	padding: 48px 0 64px;
	text-align: center;
}

.error-404 .error-404__code {
	margin: 0;
	background: linear-gradient(135deg, var(--v-hot), var(--v-accent), var(--v-violet));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(8rem, 40vw, 16rem);
}

.error-404__title {
	font-size: clamp(2.4rem, 10vw, 4rem);
}

.error-404 p {
	color: var(--v-ink-2);
}

.entry-title a {
	text-decoration: none;
}

/* =========================================================
   Footer, link social, banner cookie
   ========================================================= */

.site-footer {
	margin-top: 72px;
	padding: 0 0 24px;
	overflow: hidden;
	color: var(--v-ink-3);
	font-size: 14px;
}

.site-footer__inner {
	display: grid;
	gap: 44px;
	width: 100%;
	max-width: var(--v-max);
	margin-inline: auto;
	padding-inline: var(--v-gutter);
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: 3px;
	border-radius: 8px;
}

/* Colonne */
.footer-grid {
	display: grid;
	gap: 36px;
}

.footer-brand {
	margin: 0;
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: 40px;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
}

.footer-tagline {
	margin: 14px 0 26px;
	max-width: 36ch;
	color: var(--v-ink-2);
	font-size: 15px;
	line-height: 1.6;
}

.footer-title {
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--v-line);
	color: var(--v-accent);
	font-family: var(--v-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.footer-title--inline {
	padding-bottom: 0;
	border-bottom: 0;
	color: var(--v-ink);
}

.footer-links,
.footer-chats {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
}

.footer-links a {
	display: flex;
	align-items: center;
	min-height: 46px;
	border-bottom: 1px solid color-mix(in srgb, var(--v-line) 60%, transparent);
	color: var(--v-ink-2);
	font-size: 15px;
	transition: color 160ms ease, padding-left 200ms var(--v-ease);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
	color: var(--v-accent);
}

.footer-links a:hover {
	padding-left: 6px;
}

/* Scheda tappa */
.footer-stop {
	position: relative;
	display: grid;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-photo);
	background:
		radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--v-halo-1) 24%, transparent), transparent 70%),
		var(--v-glass);
	color: var(--v-ink-2);
	transition: border-color 200ms ease, transform 200ms var(--v-ease);
}

.footer-stop:hover {
	border-color: color-mix(in srgb, var(--v-accent) 55%, transparent);
	transform: translateY(-2px);
}

.footer-stop__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
}

.footer-stop__city {
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: 30px;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
}

.footer-stop__dates {
	font-size: 14px;
}

.footer-stop__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	color: var(--v-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Canali di chat */
.footer-chats {
	gap: 10px;
}

.footer-chats a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 10px 16px 10px 10px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-glass);
	color: var(--v-ink);
	font-weight: 600;
	transition: border-color 200ms ease, background-color 200ms ease;
}

.footer-chats a span {
	flex: 1;
}

.footer-chats a > svg:last-child {
	color: var(--v-ink-3);
}

.footer-chats a:hover {
	border-color: color-mix(in srgb, var(--v-accent) 55%, transparent);
	background: var(--v-glass-strong);
}

/* Barra finale */
.footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	padding-top: 22px;
	border-top: 1px solid var(--v-line);
	font-size: 12px;
}

.footer-legal {
	flex: 1 1 100%;
	margin: 0;
}

.footer-legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	min-width: 44px;
	color: var(--v-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-bar .lang-switcher {
	flex: 1 1 auto;
}

.footer-top {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	border: 1px solid var(--v-line);
	border-radius: 50%;
	background: var(--v-glass);
	color: var(--v-ink);
	transition: background-color 200ms ease, transform 160ms var(--v-ease);
}

.footer-top:hover {
	background: var(--v-glass-strong);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 44px 40px;
	}

	.footer-col--brand {
		grid-column: 1 / -1;
	}

	.footer-links {
		grid-template-columns: 1fr;
	}

	.footer-legal {
		flex: 0 1 auto;
	}
}

@media (min-width: 1024px) {
	.site-footer {
		margin-top: 112px;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1.5fr);
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		gap: 56px;
		align-items: start;
	}

	.footer-col--brand {
		grid-column: auto;
	}

	.footer-links a {
		min-height: 42px;
	}
}

.modella-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#modella-cookie-banner {
	position: fixed;
	right: 12px;
	bottom: calc(var(--v-nav-h) + 24px + env(safe-area-inset-bottom));
	left: 12px;
	z-index: 95;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 14px 14px 18px;
	border: 1px solid var(--v-line);
	border-radius: 22px;
	background: var(--v-glass-dark);
	box-shadow: var(--v-shadow), var(--v-inset);
	color: var(--v-ink-2);
	font-size: 13px;
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

#modella-cookie-banner p {
	flex: 1 1 220px;
	margin: 0;
}

#modella-cookie-banner a {
	color: var(--v-accent);
}

#modella-cookie-accept {
	flex-shrink: 0;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--v-r-pill);
	font-family: var(--v-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

@media (min-width: 1024px) {
	#modella-cookie-banner {
		right: 24px;
		bottom: 24px;
		left: auto;
		max-width: 440px;
	}
}

/* =========================================================
   Comparsa e movimento ridotto
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
	.hero__text,
	.hero__media,
	.page-hero,
	.profile,
	.contact__layout {
		animation: velvet-rise 600ms var(--v-ease) both;
	}

	.hero__media {
		animation-delay: 120ms;
	}
}

@keyframes velvet-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Contatti — canali con i loghi ufficiali (spec 070; prima: pulsanti chat della feature 047) */

.modella-chat-links {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin: 0 0 22px;
	text-align: left;
}

.modella-chat-link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	padding: 10px 18px 10px 10px;
	border: 1px solid var(--v-line);
	border-radius: 20px;
	background: var(--v-glass);
	box-shadow: var(--v-inset);
	color: var(--v-ink);
	text-decoration: none;
	transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--v-ease), box-shadow 200ms ease;
}

.modella-chat-link__text {
	display: grid;
	gap: 1px;
	min-width: 0;
}

.modella-chat-link__text strong {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.modella-chat-link__text small {
	overflow: hidden;
	color: var(--v-ink-3);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.modella-chat-link:hover,
.modella-chat-link:focus-visible {
	border-color: var(--v-accent);
	background: var(--v-glass-strong, var(--v-glass));
	box-shadow: var(--v-inset), 0 10px 30px -14px var(--v-accent);
	transform: translateY(-2px);
}

.modella-chat-link:focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: 3px;
}

@media (min-width: 520px) {
	.modella-chat-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Pagina Contatti senza foto: una sola colonna centrata; il badge sta sopra il titolo. */
.contact__layout.is-single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 720px;
	margin-inline: auto;
}

.contact__layout.is-single .contact__panel {
	text-align: center;
}

.contact__badge-row {
	display: flex;
	justify-content: center;
	margin: 0 0 16px;
}

.contact__badge-row .contact__badge {
	position: static;
}

/* Social nel piè di pagina e nella pagina di manutenzione: logo ufficiale su riquadro di marca */
.modella-social-links a {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	transition: transform 160ms var(--v-ease);
}

.modella-social-links a:hover,
.modella-social-links a:focus-visible {
	transform: translateY(-2px);
}

.modella-social-links a:focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: 2px;
}

/* =========================================================
   Popup degli annunci (spec 052): ancorato in basso su telefono, centrato da 640px.
   ========================================================= */

.site-notice {
	width: 100%;
	max-width: none;
	max-height: calc(100dvh - 24px);
	margin: auto 0 0;
	padding: 0;
	overflow: auto;
	border: 0;
	background: transparent;
	color: var(--v-ink);
}

.site-notice::backdrop {
	background: color-mix(in srgb, var(--v-scrim) 72%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.site-notice__inner {
	position: relative;
	padding: 28px 22px calc(22px + env(safe-area-inset-bottom));
	border: 1px solid var(--v-line);
	border-bottom: 0;
	border-radius: var(--v-r-card) var(--v-r-card) 0 0;
	background:
		radial-gradient(420px 260px at 0% 0%, color-mix(in srgb, var(--v-hot) 32%, transparent), transparent 62%),
		radial-gradient(360px 260px at 100% 100%, color-mix(in srgb, var(--v-violet) 26%, transparent), transparent 60%),
		var(--v-bg-2);
	box-shadow: var(--v-shadow), var(--v-inset);
}

.site-notice[open] .site-notice__inner {
	animation: site-notice-in 420ms var(--v-ease) both;
}

.site-notice__close {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 0;
	border: 1px solid var(--v-line);
	background: var(--v-glass);
	cursor: pointer;
}

.site-notice .eyebrow {
	padding-right: 48px;
}

.site-notice__title {
	margin-bottom: 12px;
	font-size: clamp(34px, 9vw, 48px);
}

.site-notice__text {
	margin: 0 0 22px;
	color: var(--v-ink-2);
	font-size: 16px;
	line-height: 1.6;
}

.site-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.site-notice__actions .btn {
	flex: 1 1 auto;
}

@keyframes site-notice-in {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
}

@media (min-width: 640px) {
	.site-notice {
		width: min(480px, calc(100% - 48px));
		margin: auto;
	}

	.site-notice__inner {
		padding: 36px 32px 32px;
		border-bottom: 1px solid var(--v-line);
		border-radius: var(--v-r-card);
	}

	.site-notice__actions .btn {
		flex: 0 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-notice[open] .site-notice__inner {
		animation: none;
	}
}

/* =========================================================
   Sito offline (spec 053): pagina di cortesia e striscia per chi è collegato.
   ========================================================= */

.maintenance-page {
	padding-bottom: 0;
}

.maintenance {
	display: grid;
	min-height: 100vh;
	min-height: 100dvh;
	place-items: center;
	padding: 32px var(--v-gutter);
}

.maintenance__card {
	display: grid;
	justify-items: center;
	gap: 4px;
	width: 100%;
	max-width: 560px;
	padding: 36px 22px 30px;
	border-radius: var(--v-r-card);
	text-align: center;
}

.maintenance__avatar {
	display: block;
	width: 112px;
	height: 112px;
	margin-bottom: 18px;
	padding: 3px;
	border-radius: 50%;
	background: var(--v-ring);
	box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--v-hot) 70%, transparent);
}

.maintenance__avatar img {
	width: 100%;
	height: 100%;
	border: 3px solid var(--v-bg);
	border-radius: 50%;
	object-fit: cover;
}

.maintenance .eyebrow {
	margin-bottom: 10px;
}

.maintenance__title {
	margin-bottom: 14px;
	font-size: clamp(52px, 16vw, 88px);
}

.maintenance__message {
	max-width: 44ch;
	margin: 0 0 22px;
	color: var(--v-ink-2);
	font-size: 17px;
}

.maintenance__reopen {
	margin: 0 0 12px;
	color: var(--v-ink-3);
	font-size: 14px;
}

.maintenance__reopen time {
	display: block;
	color: var(--v-accent);
	font-size: 16px;
	font-weight: 600;
}

.maintenance__countdown {
	display: flex;
	gap: 10px;
	margin-bottom: 26px;
}

.maintenance__unit {
	display: grid;
	min-width: 76px;
	padding: 12px 8px 10px;
	border-radius: 18px;
}

.maintenance__unit b {
	font-family: var(--v-display);
	font-size: 40px;
	font-weight: 400;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.maintenance__unit small {
	color: var(--v-ink-3);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.maintenance .modella-social-links {
	justify-content: center;
	margin-top: 22px;
}

.maintenance-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	padding: 10px var(--v-gutter);
	border-bottom: 1px solid var(--v-line);
	background: var(--v-bg-2);
	color: var(--v-ink-2);
	font-size: 13px;
	text-align: center;
}

.maintenance-bar a {
	color: var(--v-accent);
	font-weight: 700;
}

@media (min-width: 640px) {
	.maintenance__card {
		padding: 48px 48px 40px;
	}

	.maintenance__avatar {
		width: 132px;
		height: 132px;
	}
}

/* Descrizione sotto il titolo di una gallery, foto e video (spec 054/055). */
.v-gallery-description {
	max-width: 52ch;
	margin: 14px auto 0;
	color: var(--v-ink-2);
	font-size: 15px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* =========================================================
   Selettore di lingua e suggerimento (spec 073)
   ========================================================= */

.modella-flag {
	display: block;
	flex: 0 0 auto;
	border-radius: 3px;
}

.lang-switcher__details {
	position: relative;
}

.lang-switcher__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 12px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-glass);
	box-shadow: var(--v-inset);
	color: var(--v-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: border-color 200ms ease, background-color 200ms ease;
}

.lang-switcher__button::-webkit-details-marker {
	display: none;
}

.lang-switcher__button:hover,
.lang-switcher__details[open] .lang-switcher__button {
	border-color: var(--v-accent);
}

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

.lang-switcher__chevron {
	transition: transform 160ms var(--v-ease);
}

.lang-switcher__details[open] .lang-switcher__chevron {
	transform: rotate(180deg);
}

.lang-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	min-width: 210px;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--v-line);
	border-radius: 18px;
	background: color-mix(in srgb, var(--v-bg) 94%, transparent);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	backdrop-filter: blur(20px) saturate(150%);
	box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.65);
	list-style: none;
}

.lang-switcher__menu a,
.lang-switcher--footer a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: 12px;
	color: var(--v-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.lang-switcher__menu a:hover,
.lang-switcher__menu a:focus-visible,
.lang-switcher--footer a:hover,
.lang-switcher--footer a:focus-visible {
	background: var(--v-glass);
}

.lang-switcher__menu a:focus-visible,
.lang-switcher--footer a:focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: -2px;
}

.lang-switcher__menu a[aria-current="true"],
.lang-switcher--footer a[aria-current="true"] {
	color: var(--v-accent);
}

.lang-switcher__name {
	flex: 1;
}

.lang-switcher__check {
	color: var(--v-accent);
}

.lang-switcher--footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 10px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.lang-switcher--footer a {
	gap: 8px;
	padding: 6px 10px;
	font-size: 14px;
}

.lang-suggest {
	position: fixed;
	top: 84px;
	left: 50%;
	z-index: 120;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 14px;
	max-width: calc(100vw - 24px);
	padding: 10px 16px;
	border: 1px solid var(--v-line);
	border-radius: 22px;
	background: color-mix(in srgb, var(--v-bg) 94%, transparent);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	backdrop-filter: blur(20px) saturate(150%);
	box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.65);
	color: var(--v-ink);
	font-size: 14px;
	transform: translateX(-50%);
}

.lang-suggest p {
	margin: 0;
}

.lang-suggest__yes,
.lang-suggest__no {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--v-r-pill);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.lang-suggest__yes {
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
	text-decoration: none;
}

.lang-suggest__no {
	border: 1px solid var(--v-line);
	background: transparent;
	color: var(--v-ink);
}

@media (min-width: 1024px) {
	.lang-switcher--header {
		justify-self: end;
	}

	.lang-suggest {
		top: 108px;
	}
}

/* Responsive check of the public site (spec 087) */

/* The logo is a 44 px touch target. */
.site-brand {
	line-height: 44px;
}

/* While the cookie banner is shown, the end of the page can still be scrolled clear of it. */
body:has(#modella-cookie-banner:not([style*="display: none"])) {
	padding-bottom: calc(var(--v-nav-space) + 150px);
}

@media (min-width: 1024px) {
	body:has(#modella-cookie-banner:not([style*="display: none"])) {
		padding-bottom: 112px;
	}
}

/* ==========================================================================
   Gallery miste (spec 091): pillole «Tutto · Foto · Video» e sezioni con intestazione.
   ========================================================================== */
.media-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 4px 0 24px;
}

.media-filter[hidden] {
	display: none;
}

.media-filter__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-glass);
	color: var(--v-ink-2);
	font-family: var(--v-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transition: color 0.2s var(--v-ease), background-color 0.2s var(--v-ease), box-shadow 0.2s var(--v-ease), transform 0.2s var(--v-ease);
}

.media-filter__pill:hover {
	color: var(--v-ink);
	transform: translateY(-1px);
}

.media-filter__pill.is-active {
	border-color: transparent;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	box-shadow: var(--v-glow);
	color: var(--v-on-hot);
}

.media-filter__count {
	min-width: 22px;
	padding: 3px 7px;
	border-radius: var(--v-r-pill);
	background: rgba(255, 255, 255, 0.16);
	font-size: 11px;
	text-align: center;
}

.media-section {
	margin: 8px 0 28px;
}

.media-section[hidden] {
	display: none;
}

.media-section__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 14px;
}

.media-section__head::after {
	flex: 1;
	height: 1px;
	background: var(--v-line);
	content: "";
}

.media-section__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--v-glass-strong);
	color: var(--v-accent);
}

.media-section__title {
	margin: 0;
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.media-section__count {
	padding: 4px 10px;
	border-radius: var(--v-r-pill);
	background: var(--v-glass);
	color: var(--v-ink-2);
	font-size: 12px;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.media-filter__pill {
		transition: none;
	}

	.media-filter__pill:hover {
		transform: none;
	}
}

/* The floating call-to-action rises above the cookie banner while the banner is visible (spec 095 follow-up). */
body:has(#modella-cookie-banner:not([style*="display: none"])) .float-cta {
	bottom: calc(var(--v-nav-h) + 24px + env(safe-area-inset-bottom) + 150px);
}

@media (min-width: 1024px) {
	body:has(#modella-cookie-banner:not([style*="display: none"])) .float-cta {
		bottom: 120px;
	}
}

/* Smaller photo previews: more columns as the screen grows (spec 095 follow-up). */
@media (min-width: 480px) {
	.modella-gallery-figure-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.modella-gallery-figure-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (min-width: 1100px) {
	.modella-gallery-figure-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 1500px) {
	.modella-gallery-figure-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Gallery and video cards and photo previews share the same column counts (spec 095 follow-up). */
@media (min-width: 480px) {
	.g-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.g-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (min-width: 1100px) {
	.g-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 1500px) {
	.g-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Smaller chips on the cards so they cover less of the picture: the title is a compact pill at the bottom left, the counter a small tag (spec 095 follow-up). */
.g-card__chip {
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	font-size: 9px;
	letter-spacing: 0.08em;
}

.g-card__name,
.g-card .g-card__name {
	right: auto;
	bottom: 8px;
	left: 8px;
	justify-content: flex-start;
	gap: 6px;
	width: fit-content;
	max-width: calc(100% - 16px);
	min-height: 28px;
	padding: 0 10px;
	font-size: 11px;
	letter-spacing: 0.05em;
}

@media (min-width: 768px) {
	.g-card__name,
	.g-card .g-card__name {
		bottom: 10px;
		left: 10px;
		max-width: calc(100% - 20px);
		min-height: 30px;
		font-size: 11px;
	}

	.g-card__chip {
		top: 10px;
		left: 10px;
	}
}

/* Section headers wrap instead of overflowing when a translation is long (French at 320 px). */
.section__head {
	flex-wrap: wrap;
	gap: 4px 16px;
}

/* Default focal point a little above the centre for photos with no saved point (spec 098); an inline object-position from a saved point wins. */
.modella-gallery-figure img,
.g-card__media img {
	object-position: 50% 25%;
}

/* ==========================================================================
   Watermark on the photos (spec 099): text, colour, transparency and position come from the Dashboard (CSS variables on :root);
   the size is a proportion of each photo's width, so it is the same on every photo.
   ========================================================================== */
.modella-wm {
	container-type: inline-size;
}

body.has-watermark .modella-wm::after,
body.has-watermark .modella-lightbox-slot::after {
	content: var(--wm-text);
	position: absolute;
	z-index: 2;
	color: var(--wm-color);
	opacity: var(--wm-opacity);
	font-family: var(--wm-font, 'Bebas Neue', Impact, sans-serif);
	font-size: calc(var(--wm-size) * 1cqw);
	font-weight: var(--wm-weight, 400);
	line-height: 1;
	letter-spacing: 0.08em;
	white-space: nowrap;
	text-transform: var(--wm-case, uppercase);
	text-shadow: var(--wm-shadow);
	pointer-events: none;
	user-select: none;
}

body.has-watermark .modella-lightbox-slot::after {
	font-size: var(--wm-px, 16px);
}

body.has-watermark .modella-lightbox-slot {
	position: relative;
}

body.wm-pos-br .modella-wm::after { right: 5cqw; bottom: 5cqw; }
body.wm-pos-bl .modella-wm::after { bottom: 5cqw; left: 5cqw; }
body.wm-pos-tr .modella-wm::after { top: 5cqw; right: 5cqw; }
body.wm-pos-tl .modella-wm::after { top: 5cqw; left: 5cqw; }
body.wm-pos-center .modella-wm::after { top: 50%; left: 50%; transform: translate(-50%, -50%); }

body.wm-pos-br .modella-lightbox-slot::after { right: 5%; bottom: 5%; }
body.wm-pos-bl .modella-lightbox-slot::after { bottom: 5%; left: 5%; }
body.wm-pos-tr .modella-lightbox-slot::after { top: 5%; right: 5%; }
body.wm-pos-tl .modella-lightbox-slot::after { top: 5%; left: 5%; }
body.wm-pos-center .modella-lightbox-slot::after { top: 50%; left: 50%; transform: translate(-50%, -50%); }

body.wm-pos-custom .modella-wm::after { top: var(--wm-y); left: var(--wm-x); transform: translate(-50%, -50%); }
body.wm-pos-custom .modella-lightbox-slot::after { top: var(--wm-y); left: var(--wm-x); transform: translate(-50%, -50%); }

/* =========================================================
   Header «Noir pennellata» (spec 111): barra nera, bordo a pennellata, marchio con la prima lettera rosa,
   navigazione a testo in carattere serif, selettore lingua a contorno. Il bordo è la maschera PNG del
   tema della titolare (assets/img/brush-edge-mask.png), applicata a una fascia nera.
   ========================================================= */

@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-latin-wght.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}

.site-header {
	--header-tint: color-mix(in srgb, var(--v-scrim) 68%, transparent);
	border-bottom: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* La sfocatura sta su uno strato a parte: un filtro sull'header stesso lo renderebbe il contenitore del menu fisso del telefono. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--header-tint);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
	backdrop-filter: blur(14px) saturate(130%);
	pointer-events: none;
}

.header-brush {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 4;
	height: clamp(26px, 5.2vw, 76px);
	margin-top: 0;
	background: var(--header-tint);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
	backdrop-filter: blur(14px) saturate(130%);
	-webkit-mask: url("../img/brush-edge-mask.png") top left / 100% 100% no-repeat;
	mask: url("../img/brush-edge-mask.png") top left / 100% 100% no-repeat;
	pointer-events: none;
}

.site-brand {
	color: var(--v-ink);
	font-family: "Playfair Display", Georgia, serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* lo svolazzo della iniziale esce a sinistra: spazio dentro il marchio, compensato dal margine */
.site-brand {
	margin-left: -0.4em;
	padding: 0 0.15em 0 0.4em;
	letter-spacing: 0.01em;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	line-height: 1.12;
	min-width: 0;
	min-height: 44px;
	padding-block: 13px;
}

/* una parola non si spezza mai: a capo solo dopo il trattino o lo spazio */
.site-brand__word {
	white-space: nowrap;
}

.site-brand__cap {
	display: inline-block;
	/* margine interno: lo sfondo sfumato del testo deve coprire anche lo svolazzo che esce dal riquadro */
	padding: 0.35em 0.2em 0.15em;
	margin: -0.35em -0.18em -0.15em -0.2em;
	background: linear-gradient(135deg, var(--v-hot-2), var(--v-hot));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: "Great Vibes", "Brush Script MT", cursive;
	font-size: 1.7em;
	font-weight: 400;
	line-height: 0.6;
	vertical-align: -0.12em;
	filter: drop-shadow(0 0 10px color-mix(in srgb, var(--v-hot) 55%, transparent));
}

/* Selettore di lingua: pillola morbida con filo sottile, nessuna cornice dura */
.lang-switcher--header .lang-switcher__button {
	gap: 9px;
	padding: 6px 13px 6px 9px;
	border: 1px solid color-mix(in srgb, var(--v-ink) 16%, transparent);
	border-radius: var(--v-r-pill);
	background: linear-gradient(180deg, color-mix(in srgb, var(--v-ink) 11%, transparent), color-mix(in srgb, var(--v-ink) 4%, transparent));
	box-shadow: var(--v-inset);
	font-size: 12px;
	letter-spacing: 0.14em;
	transition: border-color 200ms ease, box-shadow 250ms ease, background-color 200ms ease;
}

.lang-switcher--header .modella-flag {
	border-radius: 5px;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--v-ink) 22%, transparent);
}

.lang-switcher--header .lang-switcher__chevron {
	color: var(--v-ink-2);
}

.lang-switcher--header .lang-switcher__button:hover,
.lang-switcher--header .lang-switcher__details[open] .lang-switcher__button {
	border-color: color-mix(in srgb, var(--v-accent) 60%, transparent);
	box-shadow: var(--v-inset), 0 0 0 4px color-mix(in srgb, var(--v-hot) 14%, transparent);
}

.lang-switcher--header .lang-switcher__menu {
	min-width: 220px;
	padding: 8px;
	border-color: color-mix(in srgb, var(--v-accent) 22%, transparent);
	border-radius: 22px;
	background: color-mix(in srgb, var(--v-scrim) 88%, transparent);
	box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--v-hot) 8%, transparent);
}

.lang-switcher--header .lang-switcher__menu a {
	border-radius: 14px;
}

@media (min-width: 480px) {
	.site-brand {
		font-size: 22px;
	}
}

@media (min-width: 1024px) {
	.site-header {
		position: relative;
	}

	.site-brand {
		flex: 0 0 auto;
		font-size: clamp(16px, 1.65vw, 24px);
		white-space: nowrap;
	}

	.site-header__inner {
		display: flex;
		justify-content: space-between;
		gap: 24px;
	}

	.site-nav {
		margin-inline: auto;
	}

	.lang-switcher--header {
		justify-self: auto;
	}

	.site-nav {
		border: 0;
		background: none;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.site-nav__list {
		gap: 8px;
	}

	.site-nav__icon {
		display: none;
	}

	.site-nav__link {
		padding: 0 clamp(8px, 1.3vw, 18px);
		background: none;
		box-shadow: none;
		color: var(--v-ink);
		font-family: "Playfair Display", Georgia, serif;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0.03em;
		text-transform: uppercase;
	}

	.site-nav__link.is-active,
	.site-nav__link:hover {
		background: none;
		box-shadow: none;
		color: var(--v-accent);
	}
}

/* =========================================================
   Home «Aurora» (spec 114): la vetrina. Foto ad arco con anelli e cerchi colorati, nastro scorrevole,
   «Chi sono» con grande cerchio sfumato, mosaico di scatti in forme diverse, video, linea del tour.
   Tutti i colori vengono dai token del tema colore; il movimento solo se consentito.
   ========================================================= */

@font-face {
	font-family: "Great Vibes";
	src: url("../fonts/great-vibes-latin-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.home {
	--serif: "Playfair Display", Georgia, serif;
	overflow-x: clip;
}

.home .eyebrow {
	margin: 0;
}

/* ---------- Apertura ---------- */

.hx {
	position: relative;
	isolation: isolate;
	padding: 18px 0 56px;
}

.hx__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	/* niente bordi netti: luci, anelli e scritta sfumano verso il fondo della sezione */
	-webkit-mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 96%);
	mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 96%);
}

.hx__orb {
	position: absolute;
	display: block;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.55;
}

.hx__orb--1 {
	top: -120px;
	left: -140px;
	width: 380px;
	height: 380px;
	background: radial-gradient(closest-side, var(--v-hot), transparent);
}

.hx__orb--2 {
	top: 120px;
	right: -180px;
	width: 440px;
	height: 440px;
	background: radial-gradient(closest-side, var(--v-violet), transparent);
}

.hx__orb--3 {
	bottom: -120px;
	left: 28%;
	width: 300px;
	height: 300px;
	background: radial-gradient(closest-side, var(--v-hot-2), transparent);
	opacity: 0.35;
}

.hx__inner {
	display: grid;
	gap: 36px;
	width: 100%;
	max-width: var(--v-max);
	margin-inline: auto;
	padding-inline: var(--v-gutter);
}

.hx__copy {
	display: grid;
	justify-items: start;
	gap: 20px;
}

.hx__title {
	margin: 0;
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: clamp(60px, 17vw, 140px);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 0.92;
	text-transform: uppercase;
}

.hx__title .accent {
	background: linear-gradient(100deg, var(--v-accent), var(--v-hot-2) 60%, var(--v-hot));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hx__lead {
	max-width: 44ch;
	margin: 0;
	color: var(--v-ink-2);
	font-size: 17px;
	line-height: 1.6;
}

.hx__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
}

/* ---------- Chi sono ---------- */

/* ---------- Intestazioni di sezione ---------- */

/* ---------- Mosaico di scatti ---------- */

/* ---------- Video ---------- */

/* ---------- Linea del tour ---------- */

/* ---------- Schermi più larghi ---------- */

@media (min-width: 768px) {
	.hx {
		padding: 28px 0 80px;
	}

	.hx__orb--1 { width: 520px; height: 520px; }
	.hx__orb--2 { width: 620px; height: 620px; }

	

	

	

	

	

	

	

	

	
}

@media (min-width: 1024px) {
	.hx__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		align-items: center;
		gap: 56px;
		min-height: min(78vh, 760px);
	}

	

	

	
}

/* ---------- Movimento (solo se consentito) ---------- */

@media (prefers-reduced-motion: no-preference) {
	

	

	.hx__orb--1,
	.hx__orb--2 {
		animation: aurora-breathe 9s ease-in-out infinite;
	}

	

	

	

	
}

@keyframes aurora-spin { to { transform: rotate(360deg); } }
@keyframes aurora-breathe { 50% { opacity: 0.8; transform: scale(1.1); } }
@keyframes aurora-float { 50% { transform: translateY(-14px); } }
@keyframes aurora-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--v-hot) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes aurora-rise { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Aurora II: profondità, luce e movimento ---------- */

/* Scritta gigante in contorno dietro l'apertura */
.hx__ghost {
	position: absolute;
	top: 6%;
	left: -2vw;
	color: transparent;
	font-family: var(--v-display);
	font-size: clamp(120px, 30vw, 400px);
	letter-spacing: 0.02em;
	line-height: 0.85;
	text-transform: uppercase;
	white-space: nowrap;
	-webkit-text-stroke: 1.5px color-mix(in srgb, var(--v-ink) 13%, transparent);
	user-select: none;
}

/* Seconda foto in un cerchio che esce dall'arco */

/* Chip di vetro che fluttuano attorno alla foto */

/* Scritte giganti in contorno dietro i titoli */

/* Mosaico inclinato con didascalia */

/* Video: cerchio «play» con onde */

/* Tour: la prima tappa pulsa */

/* Movimento */

@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.hx__ghost {
			animation: aurora-ghost linear both;
			animation-timeline: scroll(root);
			animation-range: 0 90vh;
		}

		.hx__orb--1 {
			animation: aurora-drift-a linear both;
			animation-timeline: scroll(root);
			animation-range: 0 100vh;
		}

		.hx__orb--2 {
			animation: aurora-drift-b linear both;
			animation-timeline: scroll(root);
			animation-range: 0 100vh;
		}

		
	}
}

@keyframes aurora-wave { 0% { opacity: 0.8; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes aurora-ghost { to { transform: translateX(-9vw); } }
@keyframes aurora-drift-a { to { transform: translateY(140px) scale(1.15); } }
@keyframes aurora-drift-b { to { transform: translateY(-110px) scale(0.9); } }

/* =========================================================
   Apertura «Aurora» v3 (spec 114): composizione geometrica. Tutto il quadro della foto si misura in cqw (la larghezza
   del riquadro): disco, anello e orbita sono concentrici, i puntini e la seconda foto stanno esattamente sull'anello
   (raggio 54cqw dal centro 50cqw, 56cqw). Il parallasse orizzontale usa solo `transform` guidato dallo scroll (nessuno
   script, niente layout): le oscillazioni usano la proprietà `translate`, così i due movimenti si sommano senza scontrarsi.
   ========================================================= */

/* Riga di stato: tipografia, non una scatola */
.hx__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 24px;
	margin: 0;
	color: var(--v-ink-2);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.hx__live {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--v-hot);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--v-hot) 24%, transparent);
}

.hx__where {
	color: var(--v-ink);
	font-weight: 600;
}

.hx__when {
	position: relative;
	font-family: var(--serif);
	font-size: 15px;
	font-style: italic;
	letter-spacing: 0.02em;
	text-transform: none;
}

/* Quadro della foto */

/* disco colorato: diametro 84cqw, centro (50cqw, 56cqw) */

/* anello tratteggiato: diametro 108cqw, stesso centro */

/* orbita inclinata: filo pieno, ellisse 112 x 70cqw ruotata, stesso centro */

/* puntini sull'anello (centri a 54cqw dal centro): angoli -62 e 152 gradi */

.hx__arch {
	position: absolute;
	inset: 3cqw 6cqw 4cqw;
	overflow: hidden;
	border-radius: 999px 999px 36px 36px;
	/* la foto sfuma verso il fondo e ai lati: nessun rettangolo visibile */
	-webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 98%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 98%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
	mask-composite: intersect;
}

.hx__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 14%;
}

/* seconda foto: centro sull'anello a 50 gradi, diametro 24cqw */
.hx__orbit {
	position: absolute;
	top: 85.4cqw;
	left: 72.7cqw;
	z-index: 3;
	width: 24cqw;
	aspect-ratio: 1;
	overflow: hidden;
	border: 3px solid var(--v-bg);
	border-radius: 50%;
	box-shadow: 0 0 0 1.5px var(--v-hot), 0 14px 36px -10px color-mix(in srgb, var(--v-hot) 70%, transparent);
}

.hx__orbit img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
}

/* etichette: capsule sottili, allineate ai margini del quadro */
.hx__chips {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
}

.hx__chip {
	position: absolute;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 11px;
	border: 1px solid color-mix(in srgb, var(--v-ink) 16%, transparent);
	border-radius: var(--v-r-pill);
	background: color-mix(in srgb, var(--v-scrim) 62%, transparent);
	color: var(--v-ink-2);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	white-space: nowrap;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.hx__chip svg {
	color: var(--v-accent);
}

.hx__chip strong {
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0.04em;
}

.hx__chip--1 { top: 22cqw; left: 0; }
.hx__chip--2 { top: 50cqw; right: 0; }

@media (min-width: 480px) {
	.hx__when::before {
		content: "";
		position: absolute;
		top: 50%;
		left: -13px;
		width: 1px;
		height: 14px;
		background: color-mix(in srgb, var(--v-accent) 60%, transparent);
		transform: translateY(-50%) rotate(20deg);
	}
}

@media (min-width: 1024px) {
	.hx__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 64px;
	}

	.hx__visual {
		margin-inline: 0 auto;
		margin-left: auto;
	}
}

@media (min-width: 1280px) {
	.hx__visual {
		width: min(100%, 480px);
	}
}

/* Movimento: solo se consentito */
@media (prefers-reduced-motion: no-preference) {
	.stg__ring:not(.stg__tilt) {
		animation: aurora-spin 90s linear infinite;
	}

	.hx__chip,
	.hx__orbit {
		animation: hx-bob 8s ease-in-out infinite;
	}

	.hx__chip--2 { animation-delay: -3s; }
	.hx__orbit { animation-delay: -5s; }

	.hx__live {
		animation: aurora-pulse 2.4s ease-out infinite;
	}
}

/* Parallasse orizzontale guidato dallo scroll (solo `transform`, nessun layout). Ogni elemento elenca le sue animazioni: la prima è a tempo
   (oscillazione), la seconda segue lo scroll. */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.hx__chip--1 {
			animation: hx-bob 8s ease-in-out infinite, hx-slide-r linear both;
			animation-timeline: auto, scroll(root);
			animation-range: normal, 0 90vh;
		}

		.hx__chip--2 {
			animation: hx-bob 8s ease-in-out -3s infinite, hx-slide-l-far linear both;
			animation-timeline: auto, scroll(root);
			animation-range: normal, 0 90vh;
		}

		.hx__orbit {
			animation: hx-bob 8s ease-in-out -5s infinite, hx-slide-l linear both;
			animation-timeline: auto, scroll(root);
			animation-range: normal, 0 90vh;
		}

		.hx__arch {
			animation: hx-slide-l-near linear both;
			animation-timeline: scroll(root);
			animation-range: 0 90vh;
		}

		.hx .stg__tilt {
			animation: hx-tilt linear both;
			animation-timeline: scroll(root);
			animation-range: 0 90vh;
		}
	}
}

@keyframes hx-bob { 50% { translate: 0 -7px; } }
@keyframes hx-slide-r { to { transform: translateX(26px); } }
@keyframes hx-slide-l { to { transform: translateX(-30px); } }
@keyframes hx-slide-l-far { to { transform: translateX(-44px); } }
@keyframes hx-slide-l-near { to { transform: translateX(-12px); } }
@keyframes hx-tilt { to { rotate: -6deg; } }

/* =========================================================
   Home «Aurora» v4 (spec 114): linguaggio unico per tutte le sezioni.
   - quadro geometrico condiviso (.stg): disco, anello, orbita inclinata e puntini concentrici, in cqw;
   - intestazione editoriale (.sh): numero in corsivo, titolo, link, filo sottile;
   - ogni sezione è composta con proporzioni misurate (nessun valore a occhio): mosaico a forme sovrapposte,
     video dentro il quadro con il tasto «play» sull'anello, tappe come schede attraversate da un filo.
   Colori solo dai token del tema. Il movimento (solo se consentito) usa transform/rotate/translate.
   ========================================================= */

/* ---------- Quadro geometrico condiviso ---------- */

.stg-box {
	container-type: inline-size;
	position: relative;
	width: min(100%, 440px);
	aspect-ratio: 5 / 6;
	margin-inline: auto;
}

.stg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.stg__disc,
.stg__ring,
.stg__node {
	position: absolute;
	display: block;
	border-radius: 50%;
}

/* disco colorato: diametro 84cqw, centro (50cqw, 56cqw) */
.stg__disc {
	top: 14cqw;
	left: 8cqw;
	width: 84cqw;
	aspect-ratio: 1;
	background: conic-gradient(from 200deg, var(--v-hot), var(--v-violet), var(--v-hot-2), var(--v-hot));
	opacity: 0.88;
	filter: blur(2px);
}

/* anello tratteggiato: diametro 108cqw, stesso centro */
.stg__ring {
	top: 2cqw;
	left: -4cqw;
	width: 108cqw;
	aspect-ratio: 1;
	border: 1.5px dashed color-mix(in srgb, var(--v-accent) 50%, transparent);
}

/* orbita inclinata: ellisse 112 x 70cqw ruotata, stesso centro */
.stg__tilt {
	top: 21cqw;
	left: -6cqw;
	width: 112cqw;
	height: 70cqw;
	aspect-ratio: auto;
	border: 1px solid color-mix(in srgb, var(--v-hot-2) 38%, transparent);
	rotate: -20deg;
}

/* puntini sull'anello (raggio 54cqw): angoli -62 e 152 gradi */
.stg__node {
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	background: var(--v-accent);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--v-hot) 18%, transparent), 0 0 22px color-mix(in srgb, var(--v-hot) 65%, transparent);
}

.stg__node--1 { top: 8.3cqw; left: 75.4cqw; }

.stg__node--2 {
	top: 81.3cqw;
	left: 2.3cqw;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	background: var(--v-hot-2);
}

/* ---------- Intestazione editoriale ---------- */

.sh {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
	gap: 12px 24px;
	margin-bottom: 40px;
	padding-bottom: 22px;
	border-bottom: 1px solid color-mix(in srgb, var(--v-ink) 12%, transparent);
}

.sh__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--v-ink-2);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.sh__eyebrow::after {
	content: "";
	width: 48px;
	height: 1px;
	background: linear-gradient(90deg, var(--v-accent), transparent);
}

.sh__no {
	color: var(--v-accent);
	font-family: var(--serif);
	font-size: 15px;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
}

.sh__title {
	margin: 0;
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: clamp(2.6rem, 9vw, 4.4rem);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.sh__title .accent {
	color: var(--v-accent);
}

.sx {
	margin-top: 96px;
}

/* ---------- Chi sono ---------- */

.ab {
	padding-top: 72px;
}

.ab__inner {
	display: grid;
	gap: 48px;
	width: 100%;
	max-width: var(--v-max);
	margin-inline: auto;
	padding-inline: var(--v-gutter);
}

/* foto in un cerchio netto: diametro 76cqw, stesso centro del disco (resta una corona di 4cqw) */
.ab__photo {
	position: absolute;
	top: 18cqw;
	left: 12cqw;
	z-index: 2;
	width: 76cqw;
	aspect-ratio: 1;
	overflow: hidden;
	border: 3px solid var(--v-bg);
	border-radius: 50%;
	box-shadow: var(--v-shadow);
}

.ab__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

/* iniziale corsiva sull'anello (angolo 50 gradi), diametro 16cqw */

.ab__text {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 20px;
}

.ab__text .sh__eyebrow {
	margin-bottom: -4px;
}

.ab__title {
	margin: 0;
	color: var(--v-hot);
	font-family: var(--serif);
	font-size: clamp(56px, 13vw, 104px);
	font-weight: 700;
	line-height: 1;
	text-transform: none;
}

.ab__lead,
.ab__body {
	margin: 0;
	max-width: 52ch;
}

.ab__lead {
	padding-left: 20px;
	border-left: 2px solid var(--v-hot);
	color: var(--v-ink);
	font-family: var(--serif);
	font-size: 19px;
	font-style: italic;
	line-height: 1.6;
}

.ab__body {
	color: var(--v-ink-2);
	font-size: 15px;
	line-height: 1.75;
}

.ab__signature {
	margin: 4px 0;
	color: var(--v-ink);
	font-family: "Great Vibes", "Brush Script MT", cursive;
	font-size: clamp(36px, 8vw, 54px);
	line-height: 1.1;
	rotate: -3deg;
	transform-origin: left center;
}

/* ---------- Mosaico di scatti ---------- */

/* telefono: due colonne, la prima foto a tutta larghezza; rettangoli e cerchi alternati */
.mz {
	container-type: inline-size;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
}

.mz__item {
	position: relative;
}

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

.mz__tile {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--v-r-photo);
	background: linear-gradient(160deg, var(--v-deep), var(--v-deep-3));
	box-shadow: var(--v-shadow);
}

.mz__item:first-child .mz__tile {
	aspect-ratio: 16 / 11;
}

.mz__item:nth-child(even) .mz__tile {
	aspect-ratio: 1;
	border-radius: 50%;
}

.mz__tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--v-ease);
}

.mz__tile:hover img {
	transform: scale(1.07);
}

.mz__tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--v-hot-2) 42%, transparent);
	pointer-events: none;
}

.mz__tile:focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: 4px;
}

/* filo d'accento intorno ai cerchi (tratteggio) e ai rettangoli (tratto pieno) */
.mz__ring {
	position: absolute;
	inset: -3.5%;
	border: 1px solid color-mix(in srgb, var(--v-hot-2) 30%, transparent);
	border-radius: 32px;
	pointer-events: none;
}

.mz__item:nth-child(even) .mz__ring {
	inset: -7%;
	border: 1.5px dashed color-mix(in srgb, var(--v-accent) 42%, transparent);
	border-radius: 50%;
}

.mz__item:nth-child(5n + 1) { rotate: -2.5deg; }
.mz__item:nth-child(5n + 2) { rotate: 2deg; }
.mz__item:nth-child(5n + 3) { rotate: -1.5deg; }
.mz__item:nth-child(5n + 4) { rotate: 3deg; }
.mz__item:nth-child(5n + 5) { rotate: -3.5deg; }

.mz__cap {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 3;
	padding: 8px 14px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: color-mix(in srgb, var(--v-scrim) 72%, transparent);
	color: var(--v-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 250ms ease, transform 300ms var(--v-ease);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.mz__tile:hover .mz__cap,
.mz__tile:focus-visible .mz__cap {
	opacity: 1;
	transform: none;
}

@media (hover: none) {
	.mz__cap {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Video ---------- */

/* scheda: larghezza 56cqw, centrata (22cqw a sinistra), dentro l'anello */

/* tasto play: centro sull'anello a 50 gradi, diametro 20cqw */

/* ---------- Tour: schede attraversate da un filo ---------- */

/* cerchio-data a cavallo del bordo alto della scheda: diametro 76px */

/* la prima tappa è quella in arrivo: cerchio pieno e onda */

/* ---------- Schermi più larghi ---------- */

@media (min-width: 768px) {
	.ab {
		padding-top: 96px;
	}

	.sh {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.sh__eyebrow {
		grid-column: 1 / -1;
	}

	/* mosaico: forme di larghezze diverse, sovrapposte di 3cqw e sfalsate in verticale (misure in cqw del contenitore) */
	.mz {
		display: flex;
		align-items: center;
		justify-content: center;
		padding-block: 36px;
	}

	.mz__item {
		flex: 0 0 auto;
		width: calc(var(--w) * var(--k, 1));
		margin-left: -3cqw;
		translate: 0 var(--dy, 0);
	}

	.mz__item:first-child {
		margin-left: 0;
	}

	.mz__item:nth-child(5n + 1) { --w: 23cqw; --dy: 0; }
	.mz__item:nth-child(5n + 2) { --w: 27cqw; --dy: -3cqw; }
	.mz__item:nth-child(5n + 3) { --w: 23cqw; --dy: 4cqw; }
	.mz__item:nth-child(5n + 4) { --w: 19cqw; --dy: -5cqw; }
	.mz__item:nth-child(5n + 5) { --w: 21cqw; --dy: 3cqw; }

	.mz[data-n="1"] { --k: 1.7; }
	.mz[data-n="2"] { --k: 1.45; }
	.mz[data-n="3"] { --k: 1.2; }
	.mz[data-n="5"] { --k: 0.84; }

	.mz__item:nth-child(5n + 1) .mz__tile { aspect-ratio: 3 / 4; border-radius: 999px 999px 28px 28px; }
	.mz__item:nth-child(5n + 3) .mz__tile { aspect-ratio: 4 / 5; border-radius: var(--v-r-photo); }
	.mz__item:nth-child(5n + 5) .mz__tile { aspect-ratio: 3 / 4; border-radius: 50%; }
	.mz__item:nth-child(5n + 1) .mz__ring { border-radius: 999px 999px 32px 32px; }

	/* tour: tre schede in fila, il filo passa sul bordo alto attraverso i cerchi-data */
	

	
}

@media (min-width: 1024px) {
	.ab__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 96px;
		align-items: center;
	}

	.ab__stage {
		margin-inline: 0 auto;
		width: min(100%, 460px);
	}

	

	

	
}

/* ---------- Movimento (solo se consentito) ---------- */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.ab__stage,
	.ab__text,
	.sh {
			animation: aurora-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 55%;
		}

		/* parallasse del mosaico: ogni foto arriva da lato, con sensibilità diverse, si allinea e si ferma (rotate e translate restano della composizione) */
		.mz__item:nth-child(odd) {
			animation: mz-drift-a linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 42%;
		}

		.mz__item:nth-child(even) {
			animation: mz-drift-b linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 54%;
		}

		.ab .stg__tilt {
			animation: hx-tilt linear both;
			animation-timeline: view();
			animation-range: cover;
		}
	}
}

@keyframes mz-drift-a { from { transform: translateX(-20px); } to { transform: none; } }
@keyframes mz-drift-b { from { transform: translateX(26px); } to { transform: none; } }

/* =========================================================
   Home «Aurora» v5 (spec 114): Video cinematografico, Tour a biglietti, parallasse X e Y su testi ed elementi.
   ========================================================= */

.vx {
	margin-top: 96px;
}

/* ---------- Video: scena cinematografica ---------- */

.vx__stage {
	container-type: inline-size;
	position: relative;
	max-width: 880px;
	margin-inline: auto;
	padding-block: 5cqw;
}

/* cornice: 4:5 su telefono, 16:9 dal tablet */
.vx__frame {
	position: relative;
	z-index: 2;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border: 1px solid color-mix(in srgb, var(--v-hot-2) 40%, transparent);
	border-radius: 32px;
	background: linear-gradient(160deg, var(--v-deep), var(--v-deep-3));
	box-shadow: var(--v-shadow), 0 0 80px -24px color-mix(in srgb, var(--v-hot) 55%, transparent);
	color: var(--v-ink);
	text-decoration: none;
	isolation: isolate;
}

.vx__frame:focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: 6px;
}

.vx__shot {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

/* l'immagine è più alta della cornice: scorre dentro di essa (parallasse interno) */
.vx__shot img {
	position: absolute;
	top: -7%;
	left: 0;
	width: 100%;
	height: 114%;
	object-fit: cover;
}

.vx__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--v-ink-2);
}

.vx__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--v-scrim) 55%, transparent) 0, transparent 26%, transparent 48%, color-mix(in srgb, var(--v-scrim) 90%, transparent) 100%),
		radial-gradient(closest-side at 50% 50%, color-mix(in srgb, var(--v-hot) 24%, transparent), transparent);
}

/* perforazioni da pellicola */
.vx__perf {
	position: absolute;
	right: 22px;
	left: 22px;
	height: 8px;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--v-ink) 70%, transparent) 0 14px, transparent 14px 28px);
	opacity: 0.5;
}

.vx__perf--t { top: 16px; }
.vx__perf--b { bottom: 16px; }

.vx__meta {
	position: absolute;
	right: 28px;
	bottom: 40px;
	left: 28px;
	display: grid;
	gap: 10px;
}

.vx__facts {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--v-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.vx__facts::before {
	content: "";
	width: 32px;
	height: 1px;
	background: var(--v-accent);
}

.vx__name {
	font-family: var(--v-display);
	font-size: clamp(34px, 7cqw, 72px);
	line-height: 1;
	text-transform: uppercase;
}

/* play al centro, con onde */
.vx__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: clamp(68px, 15cqw, 120px);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	box-shadow: var(--v-glow);
	color: var(--v-on-hot);
}

.vx__play::before,
.vx__play::after {
	content: "";
	position: absolute;
	inset: -10px;
	border: 1.5px solid color-mix(in srgb, var(--v-hot-2) 60%, transparent);
	border-radius: 50%;
	opacity: 0;
}

/* orbite ellittiche dietro la cornice: semiasse 54cqw, centrate sul riquadro; i puntini sono alle estremità dell'orbita a */
.vx__orbit {
	position: absolute;
	top: 50%;
	z-index: 0;
	border-radius: 50%;
	pointer-events: none;
}

.vx__orbit--a {
	right: -4cqw;
	left: -4cqw;
	height: 50cqw;
	margin-top: -25cqw;
	border: 1px solid color-mix(in srgb, var(--v-hot-2) 42%, transparent);
	rotate: -6deg;
}

.vx__orbit--b {
	right: -2cqw;
	left: -2cqw;
	height: 42cqw;
	margin-top: -21cqw;
	border: 1.5px dashed color-mix(in srgb, var(--v-accent) 38%, transparent);
	rotate: 5deg;
}

.vx__node {
	position: absolute;
	z-index: 3;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	background: var(--v-accent);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--v-hot) 18%, transparent), 0 0 22px color-mix(in srgb, var(--v-hot) 65%, transparent);
}

.vx__node--1 {
	top: calc(50% - 5.64cqw);
	left: calc(50% + 53.7cqw);
}

.vx__node--2 {
	top: calc(50% + 5.64cqw);
	left: calc(50% - 53.7cqw);
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	background: var(--v-hot-2);
}

/* ---------- Tour: biglietti con linguetta perforata ---------- */

/* biglietto: corpo + linguetta di 92px, separati da una tacca semicircolare in alto e in basso */

/* la tappa in arrivo: linguetta piena, bordo acceso */

/* collegamento tra un biglietto e il successivo: tratteggio verticale su telefono */

@media (min-width: 1024px) {
	

	
	

	/* arco tratteggiato con due puntini nello spazio tra i biglietti */
	
}

@media (min-width: 768px) {
	.vx__frame {
		aspect-ratio: 16 / 9;
		border-radius: 44px;
	}

	.vx__meta {
		right: 48px;
		bottom: 52px;
		left: 48px;
	}

	.vx__perf {
		right: 40px;
		left: 40px;
	}
}

/* ---------- Parallasse X e Y su testi ed elementi ---------- */

/* Ogni elemento arriva da una piccola distanza (--x0, --y0), si allinea e resta fermo: non supera mai la posizione allineata.
   La sensibilità è diversa per elemento: --r1 è il punto dello scorrimento (in % di "cover") in cui l'elemento ha finito.
   Le distanze si riducono su schermi stretti (--k) perché il testo non esca dallo schermo. */
.home {
	--k: 0.3;
}

@media (min-width: 768px) {
	.home {
		--k: 0.6;
	}
}

@media (min-width: 1280px) {
	.home {
		--k: 1;
	}
}

.sh__eyebrow { --x0: -18px; --y0: 0px; --r1: 25%; }
.sh__title { --x0: 30px; --y0: 14px; --r1: 38%; }
.sh__link { --x0: 22px; --y0: 10px; --r1: 52%; }
.ab__title { --x0: -26px; --y0: 10px; --r1: 34%; }
.ab__lead { --x0: 24px; --y0: 16px; --r1: 42%; }
.ab__body { --x0: 0px; --y0: 22px; --r1: 48%; }
.ab__signature { --x0: 34px; --y0: 0px; --r1: 56%; }
.ab__stage { --x0: 0px; --y0: 30px; --r1: 40%; }
.vx__meta { --x0: -20px; --y0: 18px; --r1: 40%; }
.vx__play { --x0: 26px; --y0: 0px; --r1: 45%; }

@keyframes px {
	from { transform: translate3d(calc(var(--x0, 0px) * var(--k, 1)), calc(var(--y0, 0px) * var(--k, 1)), 0); }
	to { transform: none; }
}

@keyframes vx-shot { from { transform: translateY(-4%) scale(1.04); } to { transform: translateY(4%) scale(1.04); } }

@media (prefers-reduced-motion: no-preference) {
	.vx__play::before {
		animation: aurora-wave 2.8s ease-out infinite;
	}

	.vx__play::after {
		animation: aurora-wave 2.8s ease-out 1.4s infinite;
	}
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.sh__eyebrow,
		.sh__title,
		.sh__link,
		.ab__title,
		.ab__lead,
		.ab__body,
		.ab__signature {
			animation: px linear both;
			animation-timeline: view();
			animation-range: entry 0% cover var(--r1, 45%);
		}

		/* elementi che hanno anche la comparsa: due animazioni sulla stessa voce, proprietà diverse (translate/opacity e transform) */
		.ab__stage {
			animation: aurora-rise linear both, px linear both;
			animation-timeline: view(), view();
			animation-range: entry 0% entry 55%, entry 0% cover var(--r1, 45%);
		}

		/* dentro la cornice del video (overflow nascosto) la vista di scorrimento propria dell'elemento non funziona: tutti seguono la scena */
		.vx__stage {
			view-timeline: --vx-scene block;
		}

		.vx__meta,
		.vx__play {
			animation: px linear both;
			animation-timeline: --vx-scene;
			animation-range: entry 0% cover var(--r1, 45%);
		}

		/* parallasse interno dell'immagine nella cornice del video (non è testo: resta continuo e lieve) */
		.vx__shot img {
			animation: vx-shot linear both;
			animation-timeline: --vx-scene;
			animation-range: cover;
		}
	}
}

/* =========================================================
   Tour «carte ad arco» (spec 114): ogni tappa è un arco con la foto, il velo caldo rosa-viola, una luna-data sull'apice
   e il nome della città in grande. La prima tappa è più alta, con alone e pulsazione. Dietro le carte passa un'orbita
   ellittica con due puntini esattamente alle estremità (come nella scena video).
   ========================================================= */

.tl-wrap {
	margin-top: 72px;
}

.tl-stage {
	container-type: inline-size;
	position: relative;
	padding-top: 1cqw;
}

.tl__orbit {
	position: absolute;
	top: 56%;
	right: -4cqw;
	left: -4cqw;
	z-index: 0;
	height: 24cqw;
	margin-top: -12cqw;
	border: 1px solid color-mix(in srgb, var(--v-hot-2) 42%, transparent);
	border-radius: 50%;
	pointer-events: none;
	rotate: -3deg;
}

/* estremità dell'orbita: semiasse 54cqw, inclinazione -5 gradi => (53.8cqw, -4.7cqw) dal centro (50%, 56%) */
.tl__node {
	position: absolute;
	z-index: 3;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	background: var(--v-accent);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--v-hot) 18%, transparent), 0 0 22px color-mix(in srgb, var(--v-hot) 65%, transparent);
	pointer-events: none;
}

.tl__node--1 {
	top: calc(56% - 2.8cqw);
	left: calc(50% + 53.8cqw);
}

.tl__node--2 {
	top: calc(56% + 2.8cqw);
	left: calc(50% - 53.8cqw);
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	background: var(--v-hot-2);
}

.tl {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 40px;
	max-width: 420px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.tl__item {
	position: relative;
	padding-top: 18px;
}

/* carta: arco sopra, angoli morbidi sotto; il contenuto è in basso, centrato */
.tl__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	aspect-ratio: 1 / 1.08;
	border-radius: 26px 130px 26px 130px;
	box-shadow: 0 30px 70px -28px color-mix(in srgb, var(--v-hot) 55%, transparent);
	color: var(--v-ink);
	text-align: center;
	text-decoration: none;
	isolation: isolate;
	transition: transform 300ms var(--v-ease), box-shadow 300ms ease;
}

.tl__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 36px 80px -24px color-mix(in srgb, var(--v-hot) 75%, transparent);
}

.tl__card:focus-visible {
	outline: 2px solid var(--v-accent);
	outline-offset: 6px;
}

.tl__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--v-hot-2) 45%, transparent);
	border-radius: inherit;
	background: linear-gradient(160deg, var(--v-deep), var(--v-deep-3));
}

.tl__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	filter: saturate(1.12);
	transition: transform 700ms var(--v-ease);
}

.tl__card:hover .tl__media img {
	transform: scale(1.06);
}

/* velo caldo: tinta rosa-viola sul volto, scuro in basso per leggere il nome */
.tl__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 18%, color-mix(in srgb, var(--v-scrim) 40%, transparent) 52%, color-mix(in srgb, var(--v-scrim) 94%, transparent) 100%),
		linear-gradient(155deg, color-mix(in srgb, var(--v-hot) 42%, transparent), color-mix(in srgb, var(--v-violet) 34%, transparent));
}

/* luna-data sullo spigolo vivo della carta (alto a sinistra; sulla carta centrale, dentro la curva) */
.tl__date {
	position: absolute;
	top: -22px;
	left: -14px;
	z-index: 2;
	display: grid;
	place-content: center;
	justify-items: center;
	width: 64px;
	height: 64px;
	border: 2px solid transparent;
	border-radius: 50%;
	background:
		linear-gradient(var(--v-bg), var(--v-bg)) padding-box,
		linear-gradient(135deg, var(--v-hot), var(--v-violet)) border-box;
	box-shadow: 0 0 0 7px color-mix(in srgb, var(--v-hot) 12%, transparent), 0 10px 30px -8px color-mix(in srgb, var(--v-hot) 70%, transparent);
	color: var(--v-ink);
}

.tl__day {
	font-family: var(--v-display);
	font-size: 25px;
	line-height: 1;
}

.tl__month {
	color: var(--v-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tl__body {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 0 20px 26px;
}

.tl__when {
	padding: 5px 14px;
	border: 1px solid color-mix(in srgb, var(--v-ink) 22%, transparent);
	border-radius: var(--v-r-pill);
	background: color-mix(in srgb, var(--v-scrim) 45%, transparent);
	color: var(--v-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.tl__place {
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: clamp(30px, 8vw, 38px);
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
	text-shadow: 0 2px 18px color-mix(in srgb, var(--v-scrim) 80%, transparent);
	text-wrap: balance;
}

.tl__range {
	color: var(--v-ink-2);
	font-family: var(--serif);
	font-size: 15px;
	font-style: italic;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 12px color-mix(in srgb, var(--v-scrim) 85%, transparent);
}

/* forme a foglia alternate: la carta centrale è speculare */
.tl__item:nth-child(2) .tl__card {
	border-radius: 130px 26px 130px 26px;
}

.tl__item:nth-child(2) .tl__date {
	top: 4px;
	left: 22px;
}

/* la tappa in arrivo: alone acceso, luna piena che pulsa */
.tl__item:first-child .tl__card {
	box-shadow: 0 34px 90px -22px var(--v-hot);
}

.tl__item:first-child .tl__media {
	border-color: var(--v-hot);
}

.tl__item:first-child .tl__date {
	border-color: transparent;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	box-shadow: var(--v-glow);
	color: var(--v-on-hot);
}

.tl__item:first-child .tl__month {
	color: var(--v-on-hot);
}

.tl__item:first-child .tl__date::after {
	content: "";
	position: absolute;
	inset: -10px;
	border: 1.5px solid var(--v-hot);
	border-radius: 50%;
	opacity: 0;
}

.tl__item.is-current .tl__when {
	border-color: transparent;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
}

@media (min-width: 1024px) {
	.tl {
		grid-template-columns: minmax(0, 1.14fr) repeat(2, minmax(0, 1fr));
		align-items: end;
		max-width: 1000px;
		margin: 0 auto;
		gap: 36px;
	}

	.tl__item:first-child .tl__card {
		aspect-ratio: 1 / 1.16;
	}

	.tl__item:nth-child(2) .tl__card,
	.tl__item:nth-child(3) .tl__card {
		aspect-ratio: 1 / 1.06;
	}

	.tl__item:nth-child(3) {
		padding-bottom: 0;
	}
}

/* ---------- movimento (solo se consentito) ---------- */

.tl__item:nth-child(1) { --x0: -14px; --y0: 28px; --r1: 36%; }
.tl__item:nth-child(2) { --x0: 0px; --y0: 40px; --r1: 46%; }
.tl__item:nth-child(3) { --x0: 14px; --y0: 22px; --r1: 56%; }

@media (prefers-reduced-motion: no-preference) {
	.tl__item:first-child .tl__date::after {
		animation: aurora-wave 2.6s ease-out infinite;
	}
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.tl__item {
			animation: aurora-rise linear both, px linear both;
			animation-timeline: view(), view();
			animation-range: entry 0% entry 55%, entry 0% cover var(--r1, 45%);
		}
	}
}

/* =========================================================
   Mosaico «editoriale» (spec 114, round 6): un solo linguaggio di forme, quello a foglia del Tour; niente cerchi tratteggiati,
   niente rotazioni, niente sovrapposizioni. Le carte hanno la stessa altezza di base e si alternano in verticale; numerazione
   sottile in un angolo e un filo d'accento sul bordo.
   ========================================================= */

.mz {
	counter-reset: mz;
	gap: 18px 14px;
	padding-block: 8px 20px;
}

.mz__item {
	counter-increment: mz;
	rotate: none;
	margin-left: 0;
}

.mz__item:nth-child(even) {
	translate: 0 22px;
}

.mz__ring {
	display: none;
}

.mz__item .mz__tile,
.mz__item:nth-child(5n + 1) .mz__tile,
.mz__item:nth-child(5n + 3) .mz__tile,
.mz__item:nth-child(5n + 5) .mz__tile,
.mz__item:nth-child(even) .mz__tile {
	aspect-ratio: 3 / 4;
	border-radius: 22px 96px 22px 96px;
	box-shadow: 0 28px 60px -30px color-mix(in srgb, var(--v-hot) 50%, transparent);
}

.mz__item:nth-child(even) .mz__tile {
	border-radius: 96px 22px 96px 22px;
}

.mz__item:first-child .mz__tile {
	aspect-ratio: 16 / 12;
}

/* numero editoriale */
.mz__item::after {
	content: counter(mz, decimal-leading-zero);
	position: absolute;
	top: 14px;
	left: 18px;
	z-index: 4;
	color: color-mix(in srgb, var(--v-ink) 85%, transparent);
	font-family: var(--serif);
	font-size: 14px;
	font-style: italic;
	letter-spacing: 0.14em;
	pointer-events: none;
	text-shadow: 0 1px 10px color-mix(in srgb, var(--v-scrim) 80%, transparent);
}

.mz__item:nth-child(even)::after {
	right: 18px;
	left: auto;
}

@media (min-width: 1024px) {
	.mz {
		align-items: flex-start;
		gap: 0;
		padding-block: 10px 40px;
	}

	.mz__item {
		margin-left: 18px;
		translate: 0 0;
	}

	.mz__item:first-child {
		margin-left: 0;
	}

	.mz__item:nth-child(even) {
		translate: 0 6cqw;
	}

	.mz__item:nth-child(5n + 1) { --w: 17.6cqw; --dy: 0; }
	.mz__item:nth-child(5n + 2) { --w: 17.6cqw; --dy: 0; }
	.mz__item:nth-child(5n + 3) { --w: 17.6cqw; --dy: 0; }
	.mz__item:nth-child(5n + 4) { --w: 17.6cqw; --dy: 0; }
	.mz__item:nth-child(5n + 5) { --w: 17.6cqw; --dy: 0; }

	.mz__item {
		width: calc(var(--w) * var(--k, 1));
	}

	.mz__item:nth-child(5n + 1) .mz__tile,
	.mz__item:nth-child(5n + 3) .mz__tile,
	.mz__item:nth-child(5n + 5) .mz__tile,
	.mz__item:nth-child(even) .mz__tile,
	.mz__item:first-child .mz__tile {
		aspect-ratio: 3 / 4.2;
	}

	.mz[data-n="1"] { --k: 2.6; }
	.mz[data-n="2"] { --k: 2.4; }
	.mz[data-n="3"] { --k: 1.75; }
	.mz[data-n="4"] { --k: 1.33; }
	.mz[data-n="5"] { --k: 1; }
}

/* =========================================================
   Pagina Gallery «Atelier» (spec 116): stesso linguaggio della Home: scritta in contorno, carte a foglia alternate e sfalsate,
   numerazione editoriale, titoli in display sulle foto, foto sciolte con la stessa forma. Solo colori --v-*.
   ========================================================= */

.pa {
	position: relative;
	overflow-x: clip;
	overflow-clip-margin: 0;
}

.pa__hero {
	position: relative;
	isolation: isolate;
	padding-block: 28px 36px;
}

.pa__hero::before {
	content: "";
	position: absolute;
	inset: -40px -10vw -20px;
	z-index: -2;
	background:
		radial-gradient(60% 80% at 8% 10%, color-mix(in srgb, var(--v-hot) 26%, transparent), transparent 70%),
		radial-gradient(40% 70% at 92% 30%, color-mix(in srgb, var(--v-violet) 24%, transparent), transparent 70%);
	pointer-events: none;
}

.pa__hero .page-hero__title {
	font-size: clamp(3.4rem, 13vw, 8rem);
	line-height: 0.95;
}

.pa__hero .chips {
	margin-top: 22px;
}

/* ---------- carte gallery ---------- */

.g-grid--atelier {
	counter-reset: gc;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 12px;
	padding-bottom: 28px;
}

.g-grid--atelier .g-card {
	counter-increment: gc;
	aspect-ratio: 3 / 4;
	border-color: color-mix(in srgb, var(--v-hot-2) 38%, transparent);
	border-radius: 22px 96px 22px 96px;
	box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--v-hot) 55%, transparent);
}

.g-grid--atelier .g-card:nth-child(even) {
	border-radius: 96px 22px 96px 22px;
}

.g-grid--atelier .g-card::after {
	background:
		linear-gradient(to top, color-mix(in srgb, var(--v-scrim) 92%, transparent) 4%, color-mix(in srgb, var(--v-scrim) 30%, transparent) 40%, transparent 62%),
		linear-gradient(160deg, color-mix(in srgb, var(--v-hot) 18%, transparent), transparent 55%);
}

.g-grid--atelier .g-card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 11;
}

.g-grid--atelier .g-card__chip {
	top: 14px;
	left: 18px;
	padding: 4px 10px;
	font-size: 9px;
}

.g-grid--atelier .g-card:nth-child(even) .g-card__chip {
	right: 18px;
	left: auto;
}

.g-grid--atelier .g-card__lock {
	top: auto;
	right: 22px;
	bottom: 22px;
}

.g-grid--atelier .g-card .g-card__name {
	right: 44px;
	bottom: 34px;
	left: 30px;
	display: block;
	width: auto;
	max-width: none;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
}

.g-grid--atelier .g-card__name .dot {
	display: none;
}

.g-grid--atelier .g-card__title {
	display: block;
	overflow: visible;
	color: var(--v-ink);
	font-family: var(--v-display);
	font-size: clamp(22px, 6.4vw, 32px);
	letter-spacing: 0.03em;
	line-height: 1;
	text-shadow: 0 2px 18px color-mix(in srgb, var(--v-scrim) 80%, transparent);
	text-transform: uppercase;
	white-space: normal;
	text-wrap: balance;
}

.g-grid--atelier .g-card__title::before {
	content: counter(gc, decimal-leading-zero);
	display: block;
	margin-bottom: 8px;
	color: var(--v-accent);
	font-family: var(--serif);
	font-size: 13px;
	font-style: italic;
	letter-spacing: 0.16em;
}

.g-grid--atelier .g-card__title::after {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-top: 10px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--v-hot), var(--v-hot-2));
	transition: width 350ms var(--v-ease);
}

.g-grid--atelier .g-card:hover .g-card__title::after,
.g-grid--atelier .g-card:focus-visible .g-card__title::after {
	width: 64px;
}

.g-grid--atelier .g-card:nth-child(even) .g-card__name {
	right: 30px;
	left: 46px;
}

.g-grid--atelier .g-card:hover {
	box-shadow: 0 36px 70px -28px color-mix(in srgb, var(--v-hot) 75%, transparent);
}

@media (min-width: 768px) {
	.g-grid--atelier .g-card:last-child:nth-child(odd) {
		grid-column: auto;
		aspect-ratio: 3 / 4;
	}

	.g-grid--atelier {
		grid-template-columns: repeat(auto-fit, minmax(max(210px, 17%), 300px));
		gap: 28px 24px;
		padding-bottom: 56px;
	}

	.g-grid--atelier .g-card:nth-child(even) {
		translate: 0 32px;
	}

	.g-grid--atelier .g-card__title {
		font-size: clamp(24px, 2.2vw, 34px);
	}
}

/* ---------- foto sciolte ---------- */

.media-section--atelier {
	margin-top: 12px;
}

.media-section--atelier .media-section__head {
	margin-bottom: 20px;
}

.media-section--atelier .modella-gallery-figure-grid {
	gap: 14px;
}

.media-section--atelier .modella-gallery-figure {
	aspect-ratio: 3 / 4;
	border-color: color-mix(in srgb, var(--v-hot-2) 32%, transparent);
	border-radius: 18px 72px 18px 72px;
	box-shadow: 0 24px 50px -32px color-mix(in srgb, var(--v-hot) 50%, transparent);
	transition: box-shadow 300ms ease, transform 300ms var(--v-ease);
}

.media-section--atelier .modella-gallery-figure:nth-child(even) {
	border-radius: 72px 18px 72px 18px;
}

.media-section--atelier .modella-gallery-figure:hover {
	box-shadow: 0 30px 60px -26px color-mix(in srgb, var(--v-hot) 70%, transparent);
	transform: translateY(-3px);
}

@media (min-width: 768px) {
	.media-section--atelier .modella-gallery-figure-grid {
		gap: 20px;
	}

	.media-section--atelier .modella-gallery-figure:nth-child(even) {
		translate: 0 18px;
	}
}

/* =========================================================
   Pagina della singola gallery «Atelier» (spec 117): stessa lingua della Home e della pagina Gallery: scritta in contorno,
   aloni caldi, copertina a foglia, titolo grande, foto a foglia alternate e numerate. Vale anche per la gallery video.
   ========================================================= */

.gallery-single {
	position: relative;
	overflow-x: clip;
}

.gallery-single .profile {
	isolation: isolate;
	padding: 76px 0 40px;
}

.gallery-single .profile::before {
	content: "";
	position: absolute;
	inset: -40px -10vw -10px;
	z-index: -2;
	background:
		radial-gradient(55% 80% at 50% 0%, color-mix(in srgb, var(--v-hot) 26%, transparent), transparent 70%),
		radial-gradient(35% 60% at 92% 40%, color-mix(in srgb, var(--v-violet) 22%, transparent), transparent 70%);
	pointer-events: none;
}

.gallery-single .avatar-ring {
	width: 100px;
	height: 100px;
}

/* il pennello scuro dell'intestazione scende fino a circa 130 px: copertina e tasto indietro iniziano sotto */
.gallery-single .profile__back {
	top: 72px;
	width: 40px;
	height: 40px;
}

.gallery-single .profile__title {
	margin: 22px 0 10px;
	font-size: clamp(3rem, 12vw, 7rem);
	line-height: 0.95;
	text-wrap: balance;
}

.gallery-single .profile__status {
	color: var(--v-accent);
	font-family: var(--serif);
	font-size: 14px;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0.22em;
}

.gallery-single .chips {
	margin-top: 22px;
}

/* foto: forma a foglia alternata, numero editoriale, ritmo sfalsato */
.gallery-single .modella-gallery-figure-grid {
	counter-reset: gf;
	gap: 16px 14px;
	padding-bottom: 24px;
}

.gallery-single .modella-gallery-figure {
	counter-increment: gf;
	aspect-ratio: 3 / 4;
	border-color: color-mix(in srgb, var(--v-hot-2) 32%, transparent);
	border-radius: 18px 72px 18px 72px;
	box-shadow: 0 24px 50px -32px color-mix(in srgb, var(--v-hot) 50%, transparent);
	transition: box-shadow 300ms ease, transform 300ms var(--v-ease);
}

.gallery-single .modella-gallery-figure:nth-child(even) {
	border-radius: 72px 18px 72px 18px;
}

.gallery-single .modella-gallery-figure::before {
	content: counter(gf, decimal-leading-zero);
	position: absolute;
	top: 14px;
	left: 20px;
	z-index: 3;
	color: color-mix(in srgb, var(--v-ink) 88%, transparent);
	font-family: var(--serif);
	font-size: 13px;
	font-style: italic;
	letter-spacing: 0.14em;
	text-shadow: 0 1px 10px color-mix(in srgb, var(--v-scrim) 85%, transparent);
	pointer-events: none;
}

.gallery-single .modella-gallery-figure:nth-child(even)::before {
	right: 20px;
	left: auto;
}

.gallery-single .modella-gallery-figure:hover {
	box-shadow: 0 30px 60px -26px color-mix(in srgb, var(--v-hot) 70%, transparent);
	transform: translateY(-3px);
}

@media (min-width: 768px) {
	.gallery-single .modella-gallery-figure-grid {
		gap: 24px 20px;
		padding-bottom: 48px;
	}

	.gallery-single .modella-gallery-figure:nth-child(even) {
		translate: 0 20px;
	}
}

/* =========================================================
   Video, Tour e Contatti «Atelier» (spec 117): stessa lingua delle pagine Gallery. Il pennello scuro dell'intestazione scende
   fino a circa 130 px: le aperture iniziano sotto. Le carte con poche voci non si allargano a tutta riga.
   ========================================================= */

.pa__hero {
	padding-top: 60px;
}

/* ---------- Tour: tappe come carte a foglia ---------- */

.pa--tour .tour-list--page {
	gap: 16px;
	margin-top: 28px;
}

.pa--tour .tour-row {
	position: relative;
	gap: 18px;
	padding: 18px 26px 18px 18px;
	border-color: color-mix(in srgb, var(--v-hot-2) 34%, transparent);
	border-radius: 22px 72px 22px 72px;
	background:
		radial-gradient(240px 160px at 0% 0%, color-mix(in srgb, var(--v-hot) 20%, transparent), transparent 70%),
		linear-gradient(150deg, var(--v-deep-2), var(--v-deep-3));
	box-shadow: 0 26px 56px -34px color-mix(in srgb, var(--v-hot) 60%, transparent), var(--v-inset);
	transition: transform 280ms var(--v-ease), box-shadow 280ms ease;
}

.pa--tour .tour-row:nth-child(even) {
	border-radius: 72px 22px 72px 22px;
}

.pa--tour .tour-row:hover {
	box-shadow: 0 32px 64px -30px color-mix(in srgb, var(--v-hot) 80%, transparent), var(--v-inset);
	transform: translateY(-3px);
}

.pa--tour .tour-row.is-current {
	border-color: var(--v-hot);
}

.pa--tour .tour-row__ring {
	width: 76px;
	height: 76px;
	box-shadow: 0 0 0 7px color-mix(in srgb, var(--v-hot) 12%, transparent), 0 12px 30px -10px color-mix(in srgb, var(--v-hot) 65%, transparent);
}

.pa--tour .tour-row__day {
	font-size: 28px;
}

.pa--tour .tour-row__place {
	overflow: visible;
	font-size: clamp(26px, 6.4vw, 36px);
	text-overflow: clip;
	text-shadow: 0 2px 18px color-mix(in srgb, var(--v-scrim) 70%, transparent);
	white-space: normal;
	text-wrap: balance;
}

.pa--tour .tour-row__meta {
	color: var(--v-ink-2);
	font-family: var(--serif);
	font-size: 15px;
	font-style: italic;
}

.pa--tour .tour-row__when {
	padding: 6px 14px;
	border: 1px solid color-mix(in srgb, var(--v-ink) 20%, transparent);
	border-radius: var(--v-r-pill);
	background: color-mix(in srgb, var(--v-scrim) 40%, transparent);
	color: var(--v-accent);
	letter-spacing: 0.12em;
}

.pa--tour .tour-row__when.badge-live {
	border-color: transparent;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
}

@media (max-width: 599px) {
	.pa--tour .tour-row {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.pa--tour .tour-row__when {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (min-width: 1024px) {
	.pa--tour .tour-list--page {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 24px;
	}
}

.pa--tour .cta-card {
	border-radius: 28px 110px 28px 110px;
}

/* ---------- Contatti: foto a foglia e canali come carte ---------- */

.contact.pa {
	position: relative;
	overflow-x: clip;
}

.contact.pa::before {
	content: "";
	position: absolute;
	inset: -20px -10vw auto;
	z-index: -1;
	height: 560px;
	background:
		radial-gradient(55% 80% at 12% 10%, color-mix(in srgb, var(--v-hot) 24%, transparent), transparent 70%),
		radial-gradient(40% 70% at 90% 30%, color-mix(in srgb, var(--v-violet) 22%, transparent), transparent 70%);
	pointer-events: none;
}

.contact .contact__layout {
	padding-top: 64px;
}

.contact .contact__media {
	max-height: 62vh;
	aspect-ratio: 3 / 4;
	border-color: color-mix(in srgb, var(--v-hot-2) 38%, transparent);
	border-radius: 28px 140px 28px 140px;
	box-shadow: 0 40px 90px -36px color-mix(in srgb, var(--v-hot) 60%, transparent);
}

.contact .contact__media img {
	object-position: 50% 22%;
}

.contact .contact__badge {
	bottom: 26px;
	left: 28px;
}

.contact .contact__panel {
	text-align: left;
}

.contact .contact__title {
	font-size: clamp(3.2rem, 12vw, 6.4rem);
	line-height: 0.95;
}

.contact .modella-chat-links {
	gap: 14px;
	margin-top: 26px;
}

.contact .modella-chat-link {
	position: relative;
	min-height: 84px;
	padding: 14px 64px 14px 14px;
	border-color: color-mix(in srgb, var(--v-hot-2) 30%, transparent);
	border-radius: 20px 56px 20px 56px;
	background:
		radial-gradient(200px 120px at 0% 0%, color-mix(in srgb, var(--v-hot) 16%, transparent), transparent 70%),
		linear-gradient(150deg, var(--v-deep-2), var(--v-deep-3));
	box-shadow: 0 22px 46px -32px color-mix(in srgb, var(--v-hot) 55%, transparent), var(--v-inset);
}

.contact .modella-chat-link:nth-child(even) {
	border-radius: 56px 20px 56px 20px;
}

.contact .modella-chat-link__text strong {
	font-family: var(--v-display);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.contact .modella-chat-link__text small {
	color: var(--v-ink-2);
	font-family: var(--serif);
	font-size: 14px;
	font-style: italic;
}

/* freccia disegnata con i bordi, dentro un cerchio d'accento */
.contact .modella-chat-link::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 34px;
	height: 34px;
	border: 1px solid color-mix(in srgb, var(--v-accent) 55%, transparent);
	border-radius: 50%;
	translate: 0 -50%;
	transition: background-color 200ms ease, translate 250ms var(--v-ease);
}

.contact .modella-chat-link::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 28px;
	width: 8px;
	height: 8px;
	border-top: 1.5px solid var(--v-accent);
	border-right: 1.5px solid var(--v-accent);
	rotate: 45deg;
	translate: 0 -50%;
	transition: translate 250ms var(--v-ease);
}

.contact .modella-chat-link:hover::after {
	background-color: color-mix(in srgb, var(--v-accent) 18%, transparent);
	translate: 4px -50%;
}

.contact .modella-chat-link:hover::before {
	translate: 4px -50%;
}

@media (min-width: 520px) {
	.contact .modella-chat-links {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 1100px) {
	.contact .modella-chat-links {
		max-width: 560px;
	}
}

/* Anteprime più piccole nelle gallery (richiesta 19/11/2026): più colonne e angoli a foglia in proporzione. */
.media-section--atelier .modella-gallery-figure,
.gallery-single .modella-gallery-figure {
	border-radius: 14px 52px 14px 52px;
}

.media-section--atelier .modella-gallery-figure:nth-child(even),
.gallery-single .modella-gallery-figure:nth-child(even) {
	border-radius: 52px 14px 52px 14px;
}

@media (min-width: 480px) {
	.media-section--atelier .modella-gallery-figure-grid,
	.gallery-single .modella-gallery-figure-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.media-section--atelier .modella-gallery-figure-grid,
	.gallery-single .modella-gallery-figure-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 18px 14px;
	}
}

@media (min-width: 1100px) {
	.media-section--atelier .modella-gallery-figure-grid,
	.gallery-single .modella-gallery-figure-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (min-width: 1500px) {
	.media-section--atelier .modella-gallery-figure-grid,
	.gallery-single .modella-gallery-figure-grid {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

.g-grid--atelier .g-card {
	border-radius: 18px 76px 18px 76px;
}

.g-grid--atelier .g-card:nth-child(even) {
	border-radius: 76px 18px 76px 18px;
}

.g-grid--atelier .g-card__title {
	font-size: clamp(20px, 5.4vw, 26px);
}

@media (min-width: 768px) {
	.g-grid--atelier .g-card__title {
		font-size: clamp(20px, 1.7vw, 26px);
	}
}

/* Contatti: la foto con la grafica del «Chi sono» della Home (spec 118): cerchio netto dentro il disco colorato. */
.contact .contact__media--stage {
	overflow: visible;
	max-height: none;
	aspect-ratio: 5 / 6;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.contact .contact__media--stage::after {
	content: none;
}

.contact .contact__media--stage .ab__photo img {
	height: 100%;
}

.contact .contact__media--stage .contact__badge {
	bottom: 2cqw;
	left: 50%;
	z-index: 4;
	translate: -50% 0;
	white-space: nowrap;
}

@media (min-width: 1024px) {
	.contact .contact__media--stage {
		margin-inline: 0 auto;
		width: min(100%, 460px);
	}
}

/* Carte larghe (canali dei Contatti, tappe del Tour): rettangoli puliti con angoli uguali e un filo d'accento a sinistra,
   senza le forme a foglia (richiesta 19/11/2026: le forme asimmetriche stanno bene solo sulle foto). */
.contact .modella-chat-link,
.contact .modella-chat-link:nth-child(even),
.pa--tour .tour-row,
.pa--tour .tour-row:nth-child(even) {
	border-radius: 22px;
}

.contact .modella-chat-link {
	box-shadow: inset 3px 0 0 var(--v-hot), 0 22px 46px -32px color-mix(in srgb, var(--v-hot) 55%, transparent), var(--v-inset);
}

.pa--tour .tour-row {
	box-shadow: inset 3px 0 0 var(--v-hot), 0 26px 56px -34px color-mix(in srgb, var(--v-hot) 60%, transparent), var(--v-inset);
}

.pa--tour .tour-row:hover {
	box-shadow: inset 3px 0 0 var(--v-hot), 0 32px 64px -30px color-mix(in srgb, var(--v-hot) 80%, transparent), var(--v-inset);
}


/* =========================================================
   Smartphone con la chat simulata (spec 118). Misure in cqw del riquadro .stg-box che lo contiene. Con «riduci movimento» e senza JavaScript
   la conversazione resta ferma e completa.
   ========================================================= */

.cd {
	position: relative;
	--cu: 2.1739cqw;
	width: 100%;
	aspect-ratio: 9 / 18;
	padding: calc(1.6 * var(--cu));
	border: 1px solid color-mix(in srgb, var(--v-ink) 22%, transparent);
	border-radius: calc(7.5 * var(--cu));
	background: linear-gradient(150deg, color-mix(in srgb, var(--v-ink) 26%, var(--v-deep)), var(--v-scrim));
	box-shadow:
		0 40px 80px -24px color-mix(in srgb, var(--v-scrim) 95%, transparent),
		0 0 0 1px color-mix(in srgb, var(--v-hot) 30%, transparent),
		0 0 70px -10px color-mix(in srgb, var(--v-hot) 45%, transparent),
		inset 0 0 0 1.5px color-mix(in srgb, var(--v-ink) 12%, transparent);
	animation: cd-float 7s ease-in-out infinite;
}

.cd__island {
	position: absolute;
	top: calc(3 * var(--cu));
	left: 50%;
	z-index: 3;
	width: calc(12 * var(--cu));
	height: calc(3.2 * var(--cu));
	border-radius: calc(2 * var(--cu));
	background: var(--v-scrim);
	translate: -50% 0;
}

.cd__screen {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
	overflow: hidden;
	border-radius: calc(6 * var(--cu));
	background:
		radial-gradient(80% 40% at 100% 0%, color-mix(in srgb, var(--v-hot) 20%, transparent), transparent 70%),
		radial-gradient(70% 40% at 0% 100%, color-mix(in srgb, var(--v-violet) 22%, transparent), transparent 70%),
		var(--v-bg);
}

.cd__bar {
	display: flex;
	align-items: center;
	gap: calc(1.6 * var(--cu));
	padding: calc(7 * var(--cu)) calc(2.6 * var(--cu)) calc(2.2 * var(--cu));
	border-bottom: 1px solid var(--v-line);
	background: color-mix(in srgb, var(--v-scrim) 55%, transparent);
	color: var(--v-ink);
}

.cd__back {
	display: grid;
	place-items: center;
	flex: none;
	color: var(--v-accent);
}

.cd__back svg {
	width: calc(3.6 * var(--cu));
	height: calc(3.6 * var(--cu));
}

.cd__avatar {
	flex: none;
	width: calc(7.4 * var(--cu));
	height: calc(7.4 * var(--cu));
	overflow: hidden;
	border: 1.5px solid var(--v-hot);
	border-radius: 50%;
	background: var(--v-deep);
}

.cd__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.cd__who {
	display: grid;
	min-width: 0;
	line-height: 1.15;
}

.cd__who strong {
	overflow: hidden;
	font-size: clamp(10px, calc(2.9 * var(--cu)), 14px);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cd__who small {
	display: flex;
	align-items: center;
	gap: calc(1 * var(--cu));
	color: var(--v-accent);
	font-size: clamp(8px, calc(2.2 * var(--cu)), 11px);
}

.cd__dot {
	width: calc(1.4 * var(--cu));
	height: calc(1.4 * var(--cu));
	border-radius: 50%;
	background: var(--v-accent);
	box-shadow: 0 0 6px var(--v-accent);
}

.cd.is-typing .cd__dot {
	animation: cd-pulse 0.9s ease-in-out infinite;
}

.cd__feed {
	min-height: 0;
	overflow: hidden;
	padding: 0 calc(2.4 * var(--cu));
}

.cd__list {
	display: flex;
	flex-direction: column;
	gap: calc(1.8 * var(--cu));
	margin: 0;
	padding: calc(3 * var(--cu)) 0 calc(2 * var(--cu));
	list-style: none;
	transition: opacity 600ms ease;
}

.cd__list.is-out {
	opacity: 0;
}

.cd__msg {
	position: relative;
	max-width: 82%;
	padding: calc(1.9 * var(--cu)) calc(2.5 * var(--cu)) calc(1.5 * var(--cu));
	border-radius: calc(3.4 * var(--cu));
	color: var(--v-ink);
	font-size: clamp(9px, calc(2.7 * var(--cu)), 13px);
	line-height: 1.32;
}

.cd__msg--her {
	align-self: flex-start;
	border: 1px solid var(--v-line);
	border-bottom-left-radius: calc(0.8 * var(--cu));
	background: var(--v-glass-strong, var(--v-glass));
}

.cd__msg--me {
	align-self: flex-end;
	border-bottom-right-radius: calc(0.8 * var(--cu));
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
	box-shadow: 0 8px 20px -10px var(--v-hot);
}

.cd__text {
	display: block;
}

.cd__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: calc(0.8 * var(--cu));
	margin-top: calc(0.6 * var(--cu));
	font-size: clamp(7px, calc(1.9 * var(--cu)), 10px);
	opacity: 0.7;
}

.cd__ticks {
	position: relative;
	display: inline-block;
	width: calc(2.6 * var(--cu));
	height: calc(1.6 * var(--cu));
}

.cd__ticks::before,
.cd__ticks::after {
	content: "";
	position: absolute;
	bottom: calc(0.1 * var(--cu));
	left: 0;
	width: calc(0.8 * var(--cu));
	height: calc(1.5 * var(--cu));
	border-right: 1.5px solid currentcolor;
	border-bottom: 1.5px solid currentcolor;
	rotate: 40deg;
	opacity: 0.55;
}

.cd__ticks::after {
	left: calc(0.9 * var(--cu));
	opacity: 0;
	transition: opacity 250ms ease;
}

.cd__ticks.is-read::before,
.cd__ticks.is-read::after {
	opacity: 1;
}

.cd__msg.is-new {
	animation: cd-pop 380ms var(--v-ease) both;
}

.cd__msg--her.is-new {
	transform-origin: 0 100%;
}

.cd__msg--me.is-new {
	transform-origin: 100% 100%;
}

.cd__typing {
	display: flex;
	align-items: center;
	gap: calc(1.1 * var(--cu));
	padding-block: calc(2.6 * var(--cu));
}

.cd__typing i {
	width: calc(1.5 * var(--cu));
	height: calc(1.5 * var(--cu));
	border-radius: 50%;
	background: var(--v-ink-2);
	animation: cd-bounce 1s ease-in-out infinite;
}

.cd__typing i:nth-child(2) {
	animation-delay: 0.15s;
}

.cd__typing i:nth-child(3) {
	animation-delay: 0.3s;
}

.cd__input {
	display: flex;
	align-items: center;
	gap: calc(1.6 * var(--cu));
	padding: calc(2 * var(--cu)) calc(2.4 * var(--cu)) calc(3.2 * var(--cu));
}

.cd__field {
	flex: 1;
	min-width: 0;
	min-height: calc(6.4 * var(--cu));
	overflow: hidden;
	padding: calc(1.7 * var(--cu)) calc(3 * var(--cu));
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-glass);
	color: var(--v-ink);
	font-size: clamp(9px, calc(2.6 * var(--cu)), 13px);
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cd__field:empty::before {
	content: attr(data-placeholder);
	color: var(--v-ink-3);
}

.cd__field.is-typing {
	border-color: color-mix(in srgb, var(--v-hot) 60%, transparent);
}

.cd__send {
	display: grid;
	flex: none;
	place-items: center;
	width: calc(6.8 * var(--cu));
	height: calc(6.8 * var(--cu));
	border-radius: 50%;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
	box-shadow: var(--v-glow);
}

.cd__send svg {
	width: 55%;
	height: 55%;
}

@keyframes cd-float {
	50% {
		translate: 0 calc(-1.6 * var(--cu));
	}
}

@keyframes cd-pop {
	from {
		opacity: 0;
		scale: 0.82;
		translate: 0 calc(2 * var(--cu));
	}
}

@keyframes cd-bounce {
	40% {
		translate: 0 calc(-1.1 * var(--cu));
		opacity: 1;
	}

	0%,
	80%,
	100% {
		opacity: 0.45;
	}
}

@keyframes cd-pulse {
	50% {
		opacity: 0.3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cd,
	.cd__msg.is-new {
		animation: none;
	}
}


/* ---- Telegram: data, bolle morbide, vocale con la forma d'onda, microfono ---- */
.cd--tg .cd__bar {
	background: linear-gradient(180deg, color-mix(in srgb, var(--v-hot) 14%, var(--v-scrim)), color-mix(in srgb, var(--v-scrim) 70%, transparent));
}

.cd__day {
	display: flex;
	justify-content: center;
	margin: calc(3 * var(--cu)) 0 0;
}

.cd__day span {
	padding: calc(0.7 * var(--cu)) calc(2.4 * var(--cu));
	border-radius: var(--v-r-pill);
	background: color-mix(in srgb, var(--v-ink) 12%, transparent);
	color: var(--v-ink-2);
	font-size: clamp(8px, calc(2.1 * var(--cu)), 11px);
}

.cd--tg .cd__list {
	padding-top: calc(2 * var(--cu));
}

.cd--tg .cd__msg {
	border-radius: calc(4 * var(--cu));
}

.cd--tg .cd__msg--her {
	border: 0;
	border-bottom-left-radius: calc(1 * var(--cu));
	background: color-mix(in srgb, var(--v-ink) 11%, var(--v-bg));
}

.cd--tg .cd__msg--me {
	border-bottom-right-radius: calc(1 * var(--cu));
}

.cd--tg .cd__clip,
.cd--tg .cd__send {
	display: grid;
	flex: none;
	place-items: center;
	width: calc(6.8 * var(--cu));
	height: calc(6.8 * var(--cu));
	color: var(--v-accent);
}

.cd--tg .cd__send {
	background: none;
	box-shadow: none;
}

.cd--tg .cd__field {
	border-radius: calc(4 * var(--cu));
}

.cd__voice {
	display: flex;
	align-items: center;
	gap: calc(2 * var(--cu));
	min-width: calc(24 * var(--cu));
}

.cd__voice-play {
	display: grid;
	flex: none;
	place-items: center;
	width: calc(6.4 * var(--cu));
	height: calc(6.4 * var(--cu));
	border-radius: 50%;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2));
	color: var(--v-on-hot);
}

.cd__voice-play svg {
	width: 50%;
	height: 50%;
}

.cd__wave {
	display: flex;
	align-items: center;
	gap: calc(0.55 * var(--cu));
	height: calc(5 * var(--cu));
}

.cd__wave i {
	width: calc(0.7 * var(--cu));
	height: 40%;
	border-radius: 2px;
	background: var(--v-ink-3);
}

.cd__wave i:nth-child(3n) {
	height: 80%;
}

.cd__wave i:nth-child(4n + 1) {
	height: 60%;
}

.cd__wave i:nth-child(5n + 2) {
	height: 95%;
}

.cd__msg.is-playing .cd__wave i {
	background: var(--v-accent);
	animation: cd-wave 0.8s ease-in-out infinite;
}

.cd__msg.is-playing .cd__wave i:nth-child(2n) {
	animation-delay: 0.2s;
}

.cd__msg.is-playing .cd__wave i:nth-child(3n) {
	animation-delay: 0.4s;
}

@keyframes cd-wave {
	50% {
		scale: 1 0.45;
	}
}

/* ---- Instagram: storie, post che scorrono, cuore al doppio tocco ---- */
.ig {
	grid-template-rows: auto auto minmax(0, 1fr);
}

.ig__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(7 * var(--cu)) calc(3 * var(--cu)) calc(1.6 * var(--cu));
	color: var(--v-ink);
}

.ig__handle {
	font-size: clamp(10px, calc(3 * var(--cu)), 14px);
	letter-spacing: 0.02em;
}

.ig__icon {
	display: grid;
	place-items: center;
}

.ig__stories {
	display: flex;
	gap: calc(2.4 * var(--cu));
	margin: 0;
	padding: calc(1.4 * var(--cu)) calc(3 * var(--cu)) calc(2.4 * var(--cu));
	overflow: hidden;
	list-style: none;
}

.ig__story span {
	display: block;
	width: calc(10 * var(--cu));
	height: calc(10 * var(--cu));
	padding: calc(0.55 * var(--cu));
	border-radius: 50%;
	background: linear-gradient(135deg, var(--v-hot), var(--v-hot-2), var(--v-accent));
}

.ig__story img {
	display: block;
	width: 100%;
	height: 100%;
	border: calc(0.7 * var(--cu)) solid var(--v-bg);
	border-radius: 50%;
	object-fit: cover;
	object-position: center 22%;
}

.ig__story.is-first span {
	animation: cd-ring 2.4s ease-in-out infinite;
}

.ig__viewport {
	position: relative;
	min-height: 0;
	overflow: hidden;
	border-top: 1px solid var(--v-line);
}

.ig__track {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 400%;
	animation: ig-scroll 18s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.ig__post {
	display: flex;
	flex-direction: column;
	height: 25%;
	color: var(--v-ink);
	font-size: clamp(8px, calc(2.4 * var(--cu)), 12px);
}

.ig__head {
	display: flex;
	align-items: center;
	gap: calc(1.8 * var(--cu));
	padding: calc(1.6 * var(--cu)) calc(3 * var(--cu));
}

.ig__mini {
	width: calc(5.6 * var(--cu));
	height: calc(5.6 * var(--cu));
	overflow: hidden;
	border-radius: 50%;
}

.ig__mini img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.ig__photo {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.ig__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.ig__pop {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	color: var(--v-ink);
	filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--v-scrim) 70%, transparent));
	opacity: 0;
	translate: -50% -50%;
	animation: ig-pop 6s ease-out infinite;
}

.ig__pop svg {
	width: calc(15 * var(--cu));
	height: calc(15 * var(--cu));
	fill: var(--v-hot);
	stroke: var(--v-hot);
}

.ig__actions {
	display: flex;
	align-items: center;
	gap: calc(2.6 * var(--cu));
	padding: calc(2 * var(--cu)) calc(3 * var(--cu)) calc(1 * var(--cu));
}

.ig__actions svg {
	width: calc(5.4 * var(--cu));
	height: calc(5.4 * var(--cu));
}

.ig__save {
	margin-left: auto;
}

.ig__like svg {
	animation: ig-like 6s ease-out infinite;
}

.ig__likes,
.ig__caption {
	margin: 0;
	padding: 0 calc(3 * var(--cu));
	line-height: 1.3;
}

.ig__likes {
	font-weight: 700;
}

.ig__caption {
	padding-bottom: calc(2.4 * var(--cu));
	color: var(--v-ink-2);
}

.ig__caption strong {
	color: var(--v-ink);
}

@keyframes ig-scroll {
	0%,
	26% {
		translate: 0 0;
	}

	33.33%,
	59.33% {
		translate: 0 -25%;
	}

	66.66%,
	92.66% {
		translate: 0 -50%;
	}

	100% {
		translate: 0 -75%;
	}
}

@keyframes ig-pop {
	0%,
	22% {
		opacity: 0;
		scale: 0.4;
	}

	30% {
		opacity: 1;
		scale: 1.25;
	}

	38%,
	52% {
		opacity: 1;
		scale: 1;
	}

	60%,
	100% {
		opacity: 0;
		scale: 1.15;
	}
}

@keyframes ig-like {
	0%,
	28% {
		color: var(--v-ink);
		fill: transparent;
	}

	32%,
	100% {
		color: var(--v-hot);
		fill: var(--v-hot);
	}
}

@keyframes cd-ring {
	50% {
		box-shadow: 0 0 0 calc(1 * var(--cu)) color-mix(in srgb, var(--v-hot) 35%, transparent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ig__track,
	.ig__pop,
	.ig__like svg,
	.ig__story.is-first span {
		animation: none;
	}
}

/* =========================================================
   Pagina Contatti, un telefono per ogni modo di scrivermi (spec 118).
   ========================================================= */

.contact .contact__layout {
	align-items: center;
}

.contact .contact__media--stage {
	margin-bottom: 0;
}

.contact .contact__panel {
	display: grid;
	justify-items: start;
	gap: 6px;
}

.contact__lead {
	max-width: 36ch;
	margin: 10px 0 0;
	color: var(--v-ink-2);
	font-family: var(--serif);
	font-size: clamp(18px, 2.4vw, 24px);
	font-style: italic;
	line-height: 1.4;
}

.contact .contact__badge-row {
	margin: 0 0 10px;
}

.cx {
	display: grid;
	gap: 28px;
	margin-top: 56px;
	padding-bottom: 24px;
}

.cx__col {
	display: grid;
	justify-items: center;
	gap: 22px;
	padding: 28px 18px 26px;
	border: 1px solid color-mix(in srgb, var(--v-hot-2) 28%, transparent);
	border-radius: 28px;
	background:
		radial-gradient(260px 180px at 50% 0%, color-mix(in srgb, var(--v-hot) 20%, transparent), transparent 70%),
		linear-gradient(160deg, var(--v-deep-2), var(--v-deep-3));
	box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--v-hot) 55%, transparent), var(--v-inset);
}

.cx__head {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--v-ink);
	text-decoration: none;
}

.cx__name {
	display: grid;
	gap: 2px;
}

.cx__name strong {
	font-family: var(--v-display);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.cx__name small {
	color: var(--v-ink-2);
	font-family: var(--serif);
	font-size: 15px;
	font-style: italic;
}

.cx__phone {
	container-type: inline-size;
	width: min(100%, 280px);
}

.cx__phone .cd {
	animation: cd-float 7s ease-in-out infinite;
}

.cx__col:nth-child(2) .cd {
	animation-delay: -2.3s;
}

.cx__col:nth-child(3) .cd {
	animation-delay: -4.6s;
}

.cx__cta {
	justify-self: stretch;
	justify-content: center;
	max-width: 280px;
	margin-inline: auto;
}

.cx__more {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 20px;
}

.cx__more .modella-chat-link {
	flex: 1 1 260px;
}

@media (min-width: 900px) {
	.cx {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 24px;
	}
}

/* Il testo non esce mai dallo smartphone (richiesta 19/11/2026): la colonna della griglia dello schermo non si allarga con il testo che si scrive,
   e il campo di scrittura resta nella sua riga. */
.cd__screen {
	grid-template-columns: minmax(0, 1fr);
}

.cd__input,
.cd__bar,
.cd__feed,
.cd__who {
	min-width: 0;
}

.cd__field {
	max-width: 100%;
}

.cd__msg {
	overflow-wrap: anywhere;
}

/* Tour della Home: il testo sta dentro la forma, mai sulle curve (richiesta 19/11/2026). Angoli grandi più contenuti e margine
   interno maggiore dal lato dell'angolo grande; se non basta, il testo va a capo. */
.tl__card {
	border-radius: 20px 84px 20px 84px;
}

.tl__item:nth-child(2) .tl__card {
	border-radius: 84px 20px 84px 20px;
}

.tl__body {
	padding: 0 52px 36px;
}

.tl__range,
.tl__place,
.tl__when {
	max-width: 100%;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* Smartphone senza animazione (riduci movimento o senza JavaScript): la conversazione resta ferma e si vede la sua fine, senza messaggi tagliati. */
.cd:not(.is-live) .cd__feed {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* =========================================================
   Home: più di un video in evidenza (specifica 120). Da due scene in su le cornici stanno in fila, ciascuna con lo stesso
   disegno della scena singola, in proporzione.
   ========================================================= */

.vx__stage--multi {
	display: grid;
	gap: 20px;
	max-width: none;
	padding-block: 8px;
}

.vx__stage--multi .vx__frame {
	aspect-ratio: 4 / 5;
	border-radius: 26px;
}

.vx__stage--multi .vx__meta {
	right: 22px;
	bottom: 32px;
	left: 22px;
	gap: 8px;
}

.vx__stage--multi .vx__facts {
	gap: 10px;
	font-size: 11px;
	letter-spacing: 0.16em;
}

.vx__stage--multi .vx__facts::before {
	width: 22px;
}

.vx__stage--multi .vx__name {
	font-size: clamp(26px, 6vw, 36px);
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.vx__stage--multi .vx__play {
	width: 64px;
}

@media (min-width: 768px) {
	.vx__stage--multi[data-n="2"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 880px;
	}

	.vx__stage--multi[data-n="3"] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vx__stage--multi .vx__name {
		font-size: clamp(24px, 2.6vw, 38px);
	}
}

/* =========================================================
   Home più compatta (richiesta 19/11/2026): meno aria tra l'apertura, «Chi sono» e la gallery; le scene video multiple sono piccole come le
   anteprime delle gallery (forma a foglia, due per riga sul telefono).
   ========================================================= */

.hx {
	padding-bottom: 24px;
}

.ab {
	padding-top: 32px;
}

.sx {
	margin-top: 64px;
}

@media (min-width: 1024px) {
	.hx {
		padding-bottom: 16px;
	}

	.hx__inner {
		min-height: min(64vh, 620px);
	}

	.ab {
		padding-top: 24px;
	}

	.sx {
		margin-top: 56px;
	}
}

.vx__stage--multi {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	justify-content: center;
}

.vx__stage--multi .vx__frame {
	aspect-ratio: 3 / 4.2;
	border-radius: 18px 64px 18px 64px;
}

.vx__stage--multi .vx__frame:nth-child(even) {
	border-radius: 64px 18px 64px 18px;
}

.vx__stage--multi .vx__frame:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 10;
}

.vx__stage--multi .vx__meta {
	right: 16px;
	bottom: 22px;
	left: 18px;
	gap: 6px;
}

.vx__stage--multi .vx__facts {
	font-size: 10px;
	letter-spacing: 0.12em;
}

.vx__stage--multi .vx__facts::before {
	width: 16px;
}

.vx__stage--multi .vx__name {
	font-size: clamp(20px, 5vw, 26px);
}

.vx__stage--multi .vx__play {
	width: 52px;
}

.vx__stage--multi .vx__perf {
	display: none;
}

@media (min-width: 768px) {
	.vx__stage--multi,
	.vx__stage--multi[data-n="2"],
	.vx__stage--multi[data-n="3"] {
		display: flex;
		flex-wrap: wrap;
		gap: 22px;
		justify-content: center;
		max-width: none;
	}

	.vx__stage--multi .vx__frame,
	.vx__stage--multi .vx__frame:last-child:nth-child(odd) {
		flex: 0 1 clamp(200px, 22%, 270px);
		aspect-ratio: 3 / 4.2;
	}

	.vx__stage--multi .vx__name {
		font-size: clamp(18px, 1.7vw, 26px);
	}
}

/* Scene multiple: il testo sta lontano dall'angolo grande (sinistra nelle carte dispari, destra nelle pari). */
.vx__stage--multi .vx__meta {
	right: 18px;
	bottom: 30px;
	left: 40px;
}

.vx__stage--multi .vx__frame:nth-child(even) .vx__meta {
	right: 40px;
	left: 18px;
}

.vx__stage--multi .vx__frame:last-child:nth-child(odd) .vx__meta {
	right: 18px;
	left: 40px;
}

.vx__stage--multi .vx__name {
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* Scene video multiple, simmetriche: le carte riempiono tutta la riga, alla stessa larghezza dell'intestazione; l'altezza segue
   il numero (meno carte, più larghe e meno alte). Ritmo uguale tra le sezioni della Home. */
@media (min-width: 768px) {
	.vx__stage--multi,
	.vx__stage--multi[data-n="2"],
	.vx__stage--multi[data-n="3"],
	.vx__stage--multi[data-n="4"] {
		display: grid;
		gap: 22px;
		justify-content: stretch;
		max-width: none;
	}

	.vx__stage--multi[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vx__stage--multi[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vx__stage--multi[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	.vx__stage--multi .vx__frame,
	.vx__stage--multi .vx__frame:last-child:nth-child(odd) {
		flex: none;
		grid-column: auto;
		aspect-ratio: 3 / 4.1;
	}

	.vx__stage--multi[data-n="2"] .vx__frame { aspect-ratio: 5 / 4; }
	.vx__stage--multi[data-n="3"] .vx__frame { aspect-ratio: 1 / 1.12; }

	.vx__stage--multi[data-n="4"] .vx__name {
		font-size: clamp(18px, 1.8vw, 26px);
	}
}

.sx,
.vx,
.tl-wrap {
	margin-top: 56px;
}

@media (min-width: 1024px) {
	.sx,
	.vx,
	.tl-wrap {
		margin-top: 72px;
	}
}

/* Altezze delle scene: simili a quelle delle anteprime delle gallery (circa 300 px), non più alte. */
@media (min-width: 768px) {
	.vx__stage--multi[data-n="2"] .vx__frame { aspect-ratio: 16 / 9; }
	.vx__stage--multi[data-n="3"] .vx__frame { aspect-ratio: 4 / 3.3; }
	.vx__stage--multi[data-n="4"] .vx__frame { aspect-ratio: 1 / 1.12; }
}

@media (min-width: 768px) {
	.vx__stage--multi[data-n="2"] .vx__frame,
	.vx__stage--multi[data-n="2"] .vx__frame:last-child:nth-child(odd) { aspect-ratio: 16 / 9; }
	.vx__stage--multi[data-n="3"] .vx__frame,
	.vx__stage--multi[data-n="3"] .vx__frame:last-child:nth-child(odd) { aspect-ratio: 4 / 3.3; }
	.vx__stage--multi[data-n="4"] .vx__frame,
	.vx__stage--multi[data-n="4"] .vx__frame:last-child:nth-child(odd) { aspect-ratio: 1 / 1.12; }
}

/* «Chi sono» in colonna (sotto 1024 px): prima il testo, poi la foto, così la foto dell'apertura e quella del «Chi sono» non sono mai una dopo l'altra (richiesta 19/11/2026). */
@media (max-width: 1023px) {
	.ab__text {
		order: -1;
	}

	.ab__stage {
		margin-top: 8px;
	}
}

/* =========================================================
   Quante voci per dispositivo (specifica 121): telefono (sotto 768 px), tablet (768–1023 px), computer (da 1024 px). Il tema stampa il numero più alto
   e nasconde le voci in più; le colonne dei video seguono il numero visibile in quel dispositivo (data-np, data-nt, data-n).
   ========================================================= */

@media (max-width: 767px) {
	.mz__item--hp,
	.vx__frame--hp {
		display: none;
	}

	.vx__stage--multi .vx__frame:last-child:nth-child(odd):not(.vx__frame--full-p) {
		grid-column: auto;
		aspect-ratio: 3 / 4.2;
	}

	.vx__stage--multi .vx__frame.vx__frame--full-p:nth-child(n) {
		grid-column: 1 / -1;
		aspect-ratio: 16 / 10;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.mz__item--ht,
	.vx__frame--ht {
		display: none;
	}

	.vx__stage--multi[data-nt="1"] { grid-template-columns: minmax(0, 1fr); }
	.vx__stage--multi[data-nt="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vx__stage--multi[data-nt="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vx__stage--multi[data-nt="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	.vx__stage--multi[data-nt="1"] .vx__frame:nth-child(n),
	.vx__stage--multi[data-nt="2"] .vx__frame:nth-child(n) { grid-column: auto; aspect-ratio: 16 / 9; }
	.vx__stage--multi[data-nt="3"] .vx__frame:nth-child(n) { grid-column: auto; aspect-ratio: 4 / 3.3; }
	.vx__stage--multi[data-nt="4"] .vx__frame:nth-child(n) { grid-column: auto; aspect-ratio: 1 / 1.12; }
}

@media (min-width: 1024px) {
	.mz__item--hd,
	.vx__frame--hd {
		display: none;
	}

	.vx__stage--multi[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
	.vx__stage--multi[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vx__stage--multi[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vx__stage--multi[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	.vx__stage--multi[data-n="1"] .vx__frame:nth-child(n),
	.vx__stage--multi[data-n="2"] .vx__frame:nth-child(n) { grid-column: auto; aspect-ratio: 16 / 9; }
	.vx__stage--multi[data-n="3"] .vx__frame:nth-child(n) { grid-column: auto; aspect-ratio: 4 / 3.3; }
	.vx__stage--multi[data-n="4"] .vx__frame:nth-child(n) { grid-column: auto; aspect-ratio: 1 / 1.12; }
}

/* Prossime tappe nella Home: quante carte per dispositivo (specifica 123). Il tema stampa il numero più alto, il CSS nasconde le carte in più. */
@media (max-width: 767px) {
	.tl__item--hp {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.tl__item--ht {
		display: none;
	}
}

@media (min-width: 1024px) {
	.tl__item--hd {
		display: none;
	}

	.tl[data-n="1"] {
		grid-template-columns: minmax(0, 1fr);
		max-width: 420px;
	}

	.tl[data-n="2"] {
		grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
		max-width: 700px;
	}
}

/* «Mostra altre» (specifica 127): le voci oltre il limite si nascondono solo se gli script sono attivi; senza JavaScript si vede tutto. */
@media (scripting: enabled) {
	.lm__over {
		display: none;
	}
}

.lm__more-wrap {
	display: flex;
	justify-content: center;
	margin: 24px 0 8px;
}

.lm__more-wrap[hidden] {
	display: none;
}

/* ---- TikTok e Facebook: altri due smartphone della pagina Contatti (spec 129) ---- */
.tt {
	position: relative;
	grid-template-rows: minmax(0, 1fr);
}

.tt__tabs {
	position: absolute;
	z-index: 2;
	top: calc(7 * var(--cu));
	right: 0;
	left: 0;
	display: flex;
	justify-content: center;
	gap: calc(4 * var(--cu));
	color: color-mix(in srgb, var(--v-ink) 70%, transparent);
	font-size: clamp(9px, calc(2.8 * var(--cu)), 13px);
	text-shadow: 0 1px 6px color-mix(in srgb, var(--v-scrim) 80%, transparent);
}

.tt__tabs strong {
	color: var(--v-ink);
	border-bottom: 2px solid var(--v-ink);
}

.tt__viewport {
	position: relative;
	min-height: 0;
	overflow: hidden;
}

.tt__track {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 400%;
	animation: ig-scroll 18s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.tt__clip {
	position: relative;
	height: 25%;
	overflow: hidden;
	color: var(--v-ink);
	font-size: clamp(8px, calc(2.5 * var(--cu)), 12px);
}

.tt__clip > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.tt__clip::after {
	content: "";
	position: absolute;
	inset: 55% 0 0;
	background: linear-gradient(transparent, color-mix(in srgb, var(--v-scrim) 78%, transparent));
}

.tt__pop {
	position: absolute;
	z-index: 1;
	top: 45%;
	left: 42%;
	display: grid;
	place-items: center;
	opacity: 0;
	translate: -50% -50%;
	animation: ig-pop 6s ease-out infinite;
}

.tt__pop svg {
	width: calc(15 * var(--cu));
	height: calc(15 * var(--cu));
	fill: var(--v-hot);
	stroke: var(--v-hot);
}

.tt__rail {
	position: absolute;
	z-index: 1;
	right: calc(2 * var(--cu));
	bottom: calc(8 * var(--cu));
	display: grid;
	justify-items: center;
	gap: calc(2.6 * var(--cu));
}

.tt__avatar {
	width: calc(8 * var(--cu));
	height: calc(8 * var(--cu));
	overflow: hidden;
	border: calc(0.5 * var(--cu)) solid var(--v-ink);
	border-radius: 50%;
}

.tt__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.tt__act {
	display: grid;
	justify-items: center;
	gap: calc(0.4 * var(--cu));
	filter: drop-shadow(0 1px 4px color-mix(in srgb, var(--v-scrim) 70%, transparent));
}

.tt__act svg {
	width: calc(6.4 * var(--cu));
	height: calc(6.4 * var(--cu));
}

.tt__act small {
	font-size: clamp(7px, calc(2 * var(--cu)), 10px);
}

.tt__like svg {
	animation: ig-like 6s ease-out infinite;
}

.tt__info {
	position: absolute;
	z-index: 1;
	right: calc(14 * var(--cu));
	bottom: calc(6 * var(--cu));
	left: calc(3 * var(--cu));
	display: grid;
	gap: calc(0.8 * var(--cu));
	min-width: 0;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.fb {
	grid-template-rows: auto minmax(0, 1fr);
}

.fb__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(7 * var(--cu)) calc(3 * var(--cu)) calc(1.8 * var(--cu));
	color: var(--v-ink);
}

.fb__logo {
	color: var(--v-accent);
	font-size: clamp(12px, calc(4.4 * var(--cu)), 19px);
	letter-spacing: -0.02em;
}

.fb__icon {
	display: grid;
	place-items: center;
}

.fb__viewport {
	position: relative;
	min-height: 0;
	overflow: hidden;
	border-top: 1px solid var(--v-line);
}

.fb__track {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 400%;
	animation: ig-scroll 18s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.fb__post {
	display: flex;
	flex-direction: column;
	height: 25%;
	color: var(--v-ink);
	font-size: clamp(8px, calc(2.4 * var(--cu)), 12px);
}

.fb__head {
	display: flex;
	align-items: center;
	gap: calc(1.8 * var(--cu));
	padding: calc(1.8 * var(--cu)) calc(3 * var(--cu)) 0;
}

.fb__mini {
	width: calc(6.4 * var(--cu));
	height: calc(6.4 * var(--cu));
	overflow: hidden;
	border-radius: 50%;
}

.fb__mini img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.fb__text {
	margin: 0;
	padding: calc(1.4 * var(--cu)) calc(3 * var(--cu));
	color: var(--v-ink-2);
	line-height: 1.3;
}

.fb__photo {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.fb__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.fb__stats {
	display: flex;
	align-items: center;
	gap: calc(1.2 * var(--cu));
	padding: calc(1.6 * var(--cu)) calc(3 * var(--cu)) calc(1 * var(--cu));
	color: var(--v-ink-2);
}

.fb__like {
	display: grid;
	place-items: center;
	width: calc(4.2 * var(--cu));
	height: calc(4.2 * var(--cu));
	border-radius: 50%;
	background: var(--v-hot);
	color: var(--v-ink);
}

.fb__like svg {
	width: 68%;
	height: 68%;
	fill: currentcolor;
	animation: fb-like 6s ease-out infinite;
}

@keyframes fb-like {
	0%,
	28% {
		scale: 1;
	}

	34% {
		scale: 1.45;
	}

	42%,
	100% {
		scale: 1;
	}
}

.fb__actions {
	display: flex;
	justify-content: space-around;
	padding: calc(1.2 * var(--cu)) calc(3 * var(--cu)) calc(2.2 * var(--cu));
	border-top: 1px solid var(--v-line);
}

.fb__actions svg {
	width: calc(5.2 * var(--cu));
	height: calc(5.2 * var(--cu));
}

.cx__col:nth-child(4) .cd {
	animation-delay: -1.2s;
}

.cx__col:nth-child(5) .cd {
	animation-delay: -3.4s;
}

@media (prefers-reduced-motion: reduce) {
	.tt__track,
	.tt__pop,
	.tt__like svg,
	.fb__track,
	.fb__like svg {
		animation: none;
	}
}

/* ---------- Width of the circles (spec 138): the whole stage scales around the centre of the disc, the photo does not ---------- */

.stg {
	scale: var(--stg-k, 1);
	transform-origin: 50% 56cqw;
}

/* Softness of the disc (spec 139): the colour fades from the inside to the outside; 0 = solid to the edge, 100 = fades from the centre */
.stg__disc {
	-webkit-mask-image: radial-gradient(closest-side, #000 calc(100% - var(--stg-soft, 35) * 0.6%), transparent 100%);
	mask-image: radial-gradient(closest-side, #000 calc(100% - var(--stg-soft, 35) * 0.6%), transparent 100%);
}
