/* ==========================================================================
   De Ferrari 26 — main.css
   1. Token  2. Base  3. Utility  4. Pulsanti  5. Loader  6. Header / Menu
   7. Hero  8. Home  9. Pagine interne  10. Footer  11. Lightbox  12. Motion
   ========================================================================== */

/* 1. Token ---------------------------------------------------------------- */

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

:root {
	/* Colori del marchio: blu-grigio #658999 e pesca #F4A582, con le loro scale. */
	--ink: #1c2d35; /* solo fondi scuri: footer e lightbox */
	--heading: #547989; /* titoli e testi grandi: il blu-grigio del logo, un tono sotto */
	--strong: #2f4955; /* testi piccoli in evidenza: menu, etichette, nomi */
	--btn: var(--heading); /* pulsanti pieni e stati attivi: stesso blu-grigio dei titoli */
	--btn-hover: var(--slate-700);
	--slate-800: #2b414c;
	--slate-700: #3d5764;
	--slate-600: #527382;
	--slate-500: #658999;
	--slate-400: #8ba6b2;
	--slate-300: #b4c7cf;
	--slate-200: #d5e0e5;
	--slate-100: #e7eef1;
	--slate-50: #f3f7f8;

	--peach-600: #ec8c62;
	--peach-500: #f4a582;
	--peach-300: #f9d1bf;
	--peach-200: #fbe2d6;
	--peach-100: #fdf0e9;

	--aqua: #e4f0f1;
	--paper: #faf7f4;
	--white: #fff;

	--text: var(--slate-700);
	--line: rgba(28, 45, 53, 0.1);
	--line-light: rgba(255, 255, 255, 0.14);

	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(20px, 4.4vw, 72px);
	--container: 1560px;
	--header-h: 92px;
	--radius: 28px;
	--radius-sm: 18px;
	--section: clamp(88px, 12vw, 200px);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-width: 900px) {
	:root {
		--header-h: 72px;
		--radius: 20px;
		--radius-sm: 14px;
	}
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 24px);
}

html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	font-feature-settings: "ss01", "cv11", "calt";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

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

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

address {
	font-style: normal;
}

h1,
h2,
h3,
h4 {
	color: var(--heading);
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

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

img {
	height: auto;
}

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

button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

::selection {
	background: var(--peach-300);
	color: var(--strong);
}

:focus-visible {
	outline: 2px solid var(--peach-600);
	outline-offset: 4px;
	border-radius: 4px;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 2000;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	transform: translateY(-200%);
	transition: transform 0.3s var(--ease);
}

.skip-link:focus {
	transform: none;
}

/* 3. Utility -------------------------------------------------------------- */

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

.container--narrow {
	max-width: 920px;
}

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

.section--paper {
	background: var(--paper);
}

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

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--slate-500);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--peach-500);
	flex: none;
}

.eyebrow--light {
	color: var(--slate-300);
}

.section-head {
	margin-bottom: clamp(40px, 6vw, 96px);
}

.section-head .eyebrow {
	margin-bottom: clamp(20px, 2.4vw, 32px);
}

.section-head__title {
	font-size: clamp(2.25rem, 5.5vw, 5.375rem);
}

.section-head--split {
	display: grid;
	grid-template-columns: 1fr minmax(0, 34ch);
	gap: 40px clamp(40px, 8vw, 140px);
	align-items: end;
}

.section-head__lead {
	padding-bottom: 0.6em;
	font-size: 1.125rem;
	line-height: 1.6;
}

@media (max-width: 900px) {
	.section-head--split {
		grid-template-columns: 1fr;
	}
}

.amp {
	color: var(--peach-500);
	font-weight: 200;
}

.link {
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
	transition: background-size 0.5s var(--ease);
}

.link:hover,
.link:focus-visible {
	background-size: 100% 1px;
}

.icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
}

/* Divisione in righe per le animazioni dei titoli */
.line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.14em;
	margin-bottom: -0.14em;
}

.line__inner {
	display: block;
	will-change: transform;
}

.w {
	display: inline-block;
}

/* Tipografia dei contenuti da editor */
.prose {
	max-width: 68ch;
	font-size: 1.0625rem;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	margin-top: 2em;
	font-size: clamp(1.6rem, 2.6vw, 2.25rem);
	font-weight: 400;
	letter-spacing: -0.025em;
}

.prose h2:first-child,
.prose h3:first-child {
	margin-top: 0;
}

.prose h3 {
	color: var(--strong);
	margin-top: 2.2em;
	padding-top: 1.4em;
	border-top: 1px solid var(--line);
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.prose a {
	color: var(--strong);
	text-decoration: underline;
	text-decoration-color: var(--peach-500);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.prose strong {
	color: var(--strong);
	font-weight: 550;
}

.prose em {
	color: var(--slate-600);
}

.prose ul {
	display: grid;
	gap: 0.7em;
}

.prose ul li {
	position: relative;
	padding-left: 28px;
}

.prose ul li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 4px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--peach-500);
}

.prose details {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.prose details[open] {
	background: var(--slate-50);
	border-color: transparent;
}

.prose summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	color: var(--strong);
	font-size: 0.9375rem;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.prose summary::-webkit-details-marker {
	display: none;
}

.prose summary::after {
	content: "";
	width: 12px;
	height: 12px;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
	transition: transform 0.5s var(--ease);
}

.prose details[open] summary::after {
	transform: rotate(135deg);
}

.prose details > ul {
	padding: 4px 20px 22px;
	font-size: 0.9375rem;
}

/* 4. Pulsanti ------------------------------------------------------------- */

.btn {
	--btn-h: 58px;
	--chip: 42px;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 18px;
	height: var(--btn-h);
	padding: 0 8px 0 28px;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.btn__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--chip);
	height: var(--chip);
	border-radius: 50%;
	overflow: hidden;
	transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}

.btn__icon .icon {
	grid-area: 1 / 1;
	width: 18px;
	height: 18px;
	transition: transform 0.6s var(--ease);
}

.btn__icon .icon:last-child {
	transform: translateX(-220%);
}

.btn:hover .btn__icon .icon:first-child,
.btn:focus-visible .btn__icon .icon:first-child,
a:hover > .btn .btn__icon .icon:first-child {
	transform: translateX(220%);
}

.btn:hover .btn__icon .icon:last-child,
.btn:focus-visible .btn__icon .icon:last-child,
a:hover > .btn .btn__icon .icon:last-child {
	transform: none;
}

.btn--primary {
	background: var(--btn);
	color: var(--white);
}

.btn--primary .btn__icon {
	background: var(--peach-500);
	color: var(--strong);
}

.btn--primary:hover {
	background: var(--btn-hover);
}

.btn--ghost {
	border: 1px solid var(--slate-200);
	color: var(--strong);
}

.btn--ghost .btn__icon {
	background: var(--slate-100);
}

.btn--ghost:hover {
	border-color: var(--btn);
}

.btn--ghost:hover .btn__icon {
	background: var(--btn);
	color: var(--white);
}

.btn--link {
	--chip: 28px;
	gap: 10px;
	height: auto;
	padding: 0;
	color: var(--strong);
	border-radius: 0;
}

.btn--link .btn__label {
	padding-bottom: 3px;
	background:
		linear-gradient(var(--strong), var(--strong)) no-repeat 0 100% / 0 1px,
		linear-gradient(var(--slate-300), var(--slate-300)) no-repeat 0 100% / 100% 1px;
	transition: background-size 0.6s var(--ease);
}

.btn--link:hover .btn__label,
a:hover > .btn--link .btn__label {
	background-size: 100% 1px, 100% 1px;
}

.btn--link .btn__icon {
	color: var(--peach-600);
}

/* Gruppo di pulsanti: griglia a colonne uguali, così due pulsanti hanno la
   stessa larghezza sia affiancati sia impilati (vale quello più largo). */
.btn-group {
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 12px;
	max-width: 100%;
}

.btn-group--stack {
	grid-auto-flow: row;
}

.btn-group .btn {
	justify-content: space-between;
	width: 100%;
}

@media (max-width: 520px) {
	.btn-group {
		grid-auto-flow: row;
	}
}

.btn--sm {
	--btn-h: 46px;
	--chip: 32px;
	gap: 14px;
	padding: 0 7px 0 22px;
	font-size: 0.875rem;
}

.btn--sm .btn__icon .icon {
	width: 15px;
	height: 15px;
}

/* 5. Loader --------------------------------------------------------------- */

.loader {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	pointer-events: none;
}

.js .loader {
	display: block;
	pointer-events: auto;
	/* Rete di sicurezza: se il JS non parte, il velo si toglie da solo. */
	animation: loader-failsafe 0.6s linear 7s forwards;
}

.js .loader.is-done {
	display: none;
	animation: none;
}

.js .loader.is-running {
	animation: none;
}

@keyframes loader-failsafe {
	to {
		opacity: 0;
		visibility: hidden;
	}
}

.loader__panel {
	position: absolute;
	inset: 0;
	height: 100lvh;
	background: var(--white);
	will-change: transform;
}

.loader__stage {
	position: absolute;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 44px;
}

.is-first .loader__stage {
	display: flex;
}

.df-logo--loader {
	width: min(380px, 68vw);
	height: auto;
	overflow: visible;
}

.df-draw {
	fill: none;
	stroke: #fff;
	stroke-width: 26;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.df-logo--loader .df-l,
.df-logo--loader .df-t {
	opacity: 0;
}

.loader__bar {
	width: min(120px, 30vw);
	height: 1px;
	background: var(--slate-100);
	overflow: hidden;
}

.loader__bar span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--slate-500);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* Logo */
.df-logo__tooth,
.df-logo__heart {
	fill: var(--peach-500);
}

.df-logo__heart {
	opacity: 0.5;
}

.df-logo__name path,
.df-logo__tag path {
	fill: var(--logo-text, var(--slate-500));
}

.df-logo--light {
	--logo-text: var(--white);
}

/* 6. Header / Menu -------------------------------------------------------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-h);
	transition: transform 0.7s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(18px);
	backdrop-filter: saturate(1.4) blur(18px);
	border-bottom: 1px solid var(--line);
	opacity: 0;
	transition: opacity 0.5s var(--ease);
}

.site-header.is-scrolled::before {
	opacity: 1;
}

.site-header.is-hidden {
	transform: translateY(-101%);
}

.menu-open .site-header {
	transform: none;
}

.menu-open .site-header::before {
	opacity: 0;
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-header__logo {
	flex: none;
	display: block;
	width: clamp(148px, 13vw, 188px);
}

.site-header__logo .df-logo {
	width: 100%;
	height: auto;
}

.site-nav__list {
	display: flex;
	gap: clamp(20px, 2.6vw, 44px);
}

.site-nav__link {
	position: relative;
	display: block;
	padding: 10px 0;
	color: var(--strong);
	font-size: 0.9375rem;
	font-weight: 450;
	letter-spacing: -0.005em;
}

.site-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform 0.6s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
	transform: none;
	transform-origin: 0 50%;
}

.site-nav__link.is-current::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--peach-500);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.6vw, 28px);
}

.site-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--strong);
	font-size: 0.9375rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.site-header__phone .icon {
	width: 17px;
	height: 17px;
	color: var(--peach-600);
}

.burger {
	display: none;
	align-items: center;
	gap: 12px;
	height: 46px;
	padding: 0 6px 0 18px;
	border: 1px solid var(--slate-200);
	border-radius: 999px;
	color: var(--strong);
	font-size: 0.875rem;
	font-weight: 500;
	transition: border-color 0.4s var(--ease);
}

.burger__lines {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--slate-100);
}

.burger__lines i {
	position: absolute;
	left: 10px;
	right: 10px;
	top: 50%;
	height: 1.5px;
	margin-top: -0.75px;
	background: currentColor;
	transition: transform 0.6s var(--ease);
}

.burger__lines i:first-child {
	transform: translateY(-3px);
}

.burger__lines i:last-child {
	transform: translateY(3px);
}

.menu-open .burger__lines i:first-child {
	transform: rotate(45deg);
}

.menu-open .burger__lines i:last-child {
	transform: rotate(-45deg);
}

@media (max-width: 1240px) {
	.site-header__phone span {
		display: none;
	}

	.site-header__phone {
		width: 46px;
		height: 46px;
		justify-content: center;
		border: 1px solid var(--slate-200);
		border-radius: 50%;
	}
}

@media (max-width: 1040px) {
	.site-nav {
		display: none;
	}

	.burger {
		display: inline-flex;
	}
}

@media (max-width: 640px) {
	.site-header__actions .btn,
	.site-header__phone {
		display: none;
	}
}

.menu {
	position: fixed;
	inset: 0;
	z-index: 90;
	visibility: hidden;
	pointer-events: none;
}

.menu.is-open {
	visibility: visible;
	pointer-events: auto;
}

.menu__bg {
	position: absolute;
	inset: 0;
	background: var(--paper);
	transform: translateY(-101%);
}

.menu__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	height: 100%;
	padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
	overflow-y: auto;
}

.menu__nav li {
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}

.menu__link {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: clamp(12px, 2.4vh, 22px) 0;
	color: var(--heading);
}

.menu__num {
	width: 28px;
	color: var(--slate-400);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.menu__text {
	font-size: clamp(2rem, 9vw, 3.25rem);
	font-weight: 300;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.menu__link.is-current .menu__text {
	color: var(--peach-600);
}

.menu__foot {
	display: grid;
	gap: 10px;
	color: var(--slate-700);
	font-size: 0.9375rem;
}

.menu__foot > * {
	display: flex;
	align-items: center;
	gap: 12px;
}

.menu__foot .icon {
	width: 18px;
	height: 18px;
	color: var(--peach-600);
}

/* 7. Hero ----------------------------------------------------------------- */

.hero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(28px, 6vh, 84px));
}

.hero__top {
	display: grid;
	/* --hero-side è misurata dal JS: la colonna parte in asse con il telefono dell'header. */
	grid-template-columns: minmax(0, 1fr) var(--hero-side, minmax(0, 30ch));
	gap: 32px clamp(32px, 6vw, 120px);
	align-items: end;
}

.hero__h1 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font: inherit;
	letter-spacing: 0;
}

.hero__head .eyebrow {
	margin-bottom: clamp(20px, 3vh, 36px);
}

.hero__title {
	display: block;
	color: var(--heading);
	font-size: clamp(2.8rem, 8.3vw, 8.375rem);
	font-weight: 300;
	letter-spacing: -0.052em;
	line-height: 0.94;
}

.hero__side {
	padding-bottom: clamp(4px, 1vw, 18px);
}

.hero__lead {
	margin-bottom: 28px;
	color: var(--slate-700);
	font-size: 1.125rem;
	line-height: 1.55;
}

/* Nella colonna stretta di destra i due pulsanti stanno uno sull'altro. */
@media (min-width: 1001px) {
	.hero__actions {
		grid-auto-flow: row;
	}
}

.hero__media {
	--pad: var(--gutter);
	margin-top: clamp(36px, 6vh, 76px);
	padding-inline: var(--pad);
}

.hero__frame {
	position: relative;
	height: clamp(340px, 68vh, 780px);
	border-radius: var(--radius);
	background: var(--slate-100);
	overflow: hidden;
	isolation: isolate;
}

.hero__slides,
.hero__slide {
	position: absolute;
	inset: 0;
}

.hero__slides {
	inset: -8% 0;
	will-change: transform;
}

.hero__slide {
	opacity: 0;
	transition: opacity 1.6s var(--ease-io);
}

.hero__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.1);
	transition: transform 9s linear;
}

.hero__slide.is-active img {
	transform: scale(1);
}

.hero__frame::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	height: 40%;
	background: linear-gradient(to top, rgba(28, 45, 53, 0.28), transparent);
	pointer-events: none;
}

.hero__dots {
	position: absolute;
	right: clamp(20px, 2.6vw, 40px);
	bottom: clamp(24px, 2.6vw, 40px);
	z-index: 3;
	display: flex;
	gap: 8px;
}

.hero__dot {
	position: relative;
	width: 44px;
	height: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.4);
	overflow: hidden;
}

.hero__dot i {
	position: absolute;
	inset: 0;
	background: var(--white);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.hero__dot.is-active i {
	animation: dot-fill var(--slide-time, 6s) linear forwards;
}

@keyframes dot-fill {
	to {
		transform: none;
	}
}

.hero__card {
	position: absolute;
	left: clamp(14px, 2.6vw, 40px);
	bottom: clamp(14px, 2.6vw, 40px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 26px 10px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 18px 40px -18px rgba(28, 45, 53, 0.35);
	color: var(--strong);
	transition: transform 0.6s var(--ease), background-color 0.4s var(--ease);
}

.hero__card:hover {
	transform: translateY(-3px);
	background: var(--white);
}

.hero__card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--peach-500);
}

.hero__card-icon .icon {
	width: 19px;
	height: 19px;
}

.hero__card-text {
	display: grid;
	line-height: 1.25;
}

.hero__card-text small {
	color: var(--slate-600);
	font-size: 0.75rem;
}

.hero__card-text strong {
	font-size: 1.0625rem;
	font-weight: 550;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

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

	.hero__lead {
		max-width: 46ch;
	}

	.hero__frame {
		height: clamp(300px, 54vh, 560px);
	}

	.hero__dots {
		display: none;
	}
}

/* 8. Home ----------------------------------------------------------------- */

/* Approccio */
.approach .eyebrow {
	margin-bottom: clamp(28px, 4vw, 56px);
}

.approach__statement {
	max-width: 21ch;
	color: var(--heading);
	font-size: clamp(1.85rem, 4.5vw, 4.5rem);
	font-weight: 300;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.approach__statement .w {
	opacity: 1;
}

.approach__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 48px clamp(40px, 7vw, 120px);
	margin-top: clamp(56px, 9vw, 140px);
}

.approach__text p {
	max-width: 36ch;
	margin-bottom: 28px;
	font-size: 1.125rem;
	line-height: 1.6;
}

.pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px clamp(20px, 2.4vw, 40px);
}

.pillar {
	position: relative;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.pillar__num {
	position: absolute;
	top: 28px;
	right: 0;
	color: var(--slate-400);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.pillar__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: clamp(28px, 4vw, 64px);
	border-radius: 50%;
	background: var(--peach-100);
	color: var(--peach-600);
}

.pillar__icon .icon {
	width: 24px;
	height: 24px;
}

.pillar__title {
	color: var(--strong);
	margin-bottom: 10px;
	font-size: 1.375rem;
	font-weight: 450;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.pillar__text {
	font-size: 0.9688rem;
	line-height: 1.55;
}

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

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

	.pillar {
		display: grid;
		grid-template-columns: 56px 1fr;
		gap: 4px 20px;
		padding-top: 24px;
	}

	.pillar__num {
		top: 24px;
	}

	.pillar__icon {
		grid-row: span 2;
		margin-bottom: 0;
	}

	.pillar__title {
		align-self: end;
		margin: 0;
		padding-right: 32px;
	}
}

/* Dottori */
.doctors__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 40px);
}

.doctor {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	background: var(--white);
	overflow: hidden;
}

.doctor__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--slate-100);
	overflow: hidden;
}

.doctor:nth-child(even) .doctor__media {
	background: var(--peach-200);
}

.doctor__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
	mix-blend-mode: multiply;
	transform-origin: 50% 100%;
	transition: transform 1.4s var(--ease);
}

.doctor:hover .doctor__media img {
	transform: scale(1.035);
}

.doctor__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: clamp(24px, 3vw, 48px);
}

.doctor__name {
	margin-bottom: 8px;
	font-size: clamp(1.6rem, 2.6vw, 2.375rem);
	font-weight: 350;
}

.doctor__body p {
	max-width: 52ch;
	font-size: 0.9688rem;
	line-height: 1.6;
}

.doctor__focus {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	color: var(--strong);
	width: 100%;
}

.doctor__focus span {
	display: block;
	margin-bottom: 4px;
	color: var(--slate-500);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.doctor .btn {
	margin-top: auto;
	padding-top: 16px;
}

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

/* Discipline (home): elenco con anteprima */
.disc {
	--py: 0px;
	position: relative;
}

.disc__list {
	border-bottom: 1px solid var(--line);
}

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

.disc__row {
	display: grid;
	grid-template-columns: 64px 1fr 44px;
	align-items: center;
	padding: clamp(16px, 1.7vw, 26px) 0;
	color: var(--slate-300);
	transition: color 0.5s var(--ease), padding 0.6s var(--ease);
}

.disc__num {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.disc__name {
	font-size: clamp(1.4rem, 2.7vw, 2.625rem);
	font-weight: 300;
	letter-spacing: -0.035em;
	line-height: 1.1;
	transition: transform 0.7s var(--ease);
}

.disc__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--peach-500);
	color: var(--strong);
	opacity: 0;
	transform: scale(0.6) rotate(-45deg);
	transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}

.disc__arrow .icon {
	width: 18px;
	height: 18px;
}

.disc__item.is-active .disc__row {
	color: var(--heading);
}

.disc__item.is-active .disc__arrow {
	opacity: 1;
	transform: none;
}

.disc__figure {
	position: relative;
	aspect-ratio: 16 / 10;
	margin-bottom: 24px;
	border-radius: var(--radius-sm);
	background: var(--slate-100);
	overflow: hidden;
}

.disc__figure img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.disc__excerpt {
	margin-bottom: 20px;
	font-size: 1rem;
	line-height: 1.6;
}

@media (min-width: 1001px) {
	.disc__list {
		width: 52%;
	}

	.disc__item.is-active .disc__name {
		transform: translateX(14px);
	}

	.disc__panel {
		position: absolute;
		top: 0;
		right: 0;
		width: 40%;
		opacity: 0;
		visibility: hidden;
		transform: translateY(var(--py));
		transition: opacity 0.5s var(--ease), visibility 0s 0.5s, transform 0.9s var(--ease);
	}

	.disc__item.is-active .disc__panel {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.7s var(--ease) 0.1s, visibility 0s, transform 0.9s var(--ease);
	}

	.disc__figure img {
		transform: scale(1.12);
		transition: transform 1.4s var(--ease);
	}

	.disc__item.is-active .disc__figure img {
		transform: none;
	}
}

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

	.disc__panel {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.7s var(--ease);
	}

	.disc__panel-inner {
		min-height: 0;
		overflow: hidden;
	}

	.disc__item.is-active .disc__panel {
		grid-template-rows: 1fr;
	}

	.disc__panel-inner > :last-child {
		margin-bottom: 28px;
	}
}

/* Nastro gallery */
.strip {
	position: relative;
	background: var(--paper);
	overflow: hidden;
}

.strip__pin {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(28px, 4.4vh, 56px);
	min-height: 100vh;
	min-height: 100svh;
	padding-block: clamp(72px, 9vh, 120px) clamp(40px, 6vh, 72px);
}

.strip__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}

.strip__head .eyebrow {
	margin-bottom: clamp(16px, 2vw, 28px);
}

.strip__head .section-head__title {
	font-size: clamp(2.05rem, 4.3vw, 4.125rem);
}

.strip__meta {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-bottom: 0.5em;
}

.strip__count {
	color: var(--slate-400);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}

.strip__count b {
	color: var(--strong);
	font-weight: 500;
}

.strip__track {
	display: flex;
	gap: clamp(14px, 1.6vw, 28px);
	width: max-content;
	padding-inline: var(--gutter);
	will-change: transform;
}

.strip__item {
	position: relative;
	flex: none;
	height: clamp(260px, 52vh, 600px);
	aspect-ratio: 3 / 2;
}

.strip__item--2 {
	aspect-ratio: 4 / 5;
}

.strip__item--3 {
	aspect-ratio: 1 / 1;
}

.strip__item figure {
	width: 100%;
	height: 100%;
	border-radius: var(--radius-sm);
	background: var(--slate-100);
	overflow: hidden;
}

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

.strip__num {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--strong);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
}

.strip__progress {
	height: 1px;
	background: var(--line);
}

.strip__progress span {
	display: block;
	height: 100%;
	background: var(--btn);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* Su touch e schermi piccoli: scorrimento nativo */
.strip.is-native .strip__pin {
	min-height: 0;
	padding-block: var(--section);
}

.strip.is-native .strip__viewport {
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.strip.is-native .strip__viewport::-webkit-scrollbar {
	display: none;
}

.strip.is-native .strip__item {
	height: clamp(240px, 62vw, 420px);
	scroll-snap-align: center;
}

@media (max-width: 700px) {
	.strip__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.strip__meta {
		width: 100%;
		justify-content: space-between;
	}
}

/* Staff (home) */
.team-band {
	padding-bottom: 0;
	overflow: hidden;
}

.team-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px clamp(32px, 5vw, 96px);
	align-items: end;
}

/* Il testo sta sopra la foto: lo scatto è ingrandito e i suoi margini bianchi
   sconfinano nella colonna di sinistra, coprendo pill e pulsante. */
.team-band__text {
	position: relative;
	z-index: 1;
	padding-bottom: clamp(64px, 9vw, 150px);
}

.team-band__media {
	position: relative;
	z-index: 0;
}

.team-band__roles li {
	background: var(--white);
}

.team-band .eyebrow {
	margin-bottom: clamp(20px, 2.4vw, 32px);
}

.team-band .section-head__title {
	font-size: clamp(2.25rem, 4.6vw, 4.5rem);
}

.team-band__roles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: clamp(28px, 3vw, 44px) 0;
}

.team-band__roles li,
.chip {
	padding: 9px 16px;
	border: 1px solid var(--slate-200);
	border-radius: 999px;
	color: var(--slate-700);
	font-size: 0.8125rem;
	font-weight: 450;
	line-height: 1.2;
}

/* La foto di gruppo "poggia" sul bordo del footer: ingrandita dal basso,
   i margini bianchi dello scatto escono dalla cornice. */
.team-band__media img {
	width: 100%;
	transform: scale(1.34);
	transform-origin: 50% 100%;
}

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

	.team-band__text {
		padding-bottom: 0;
	}

	.team-band__media {
		margin-inline: calc(var(--gutter) * -1);
	}
}

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

.page-hero {
	padding-top: calc(var(--header-h) + clamp(40px, 9vh, 120px));
	padding-bottom: clamp(48px, 7vw, 110px);
}

.page-hero--media {
	padding-bottom: 0;
}

.page-hero--center {
	display: grid;
	min-height: 86vh;
	align-content: center;
}

.crumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: clamp(24px, 3vw, 44px);
	color: var(--slate-400);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.crumbs a {
	transition: color 0.3s;
}

.crumbs a:hover {
	color: var(--strong);
}

.crumbs [aria-current] {
	color: var(--slate-600);
}

.page-hero__title {
	font-size: clamp(2.9rem, 9.4vw, 9.5rem);
	letter-spacing: -0.055em;
	line-height: 0.94;
}

.page-hero__title--long,
.single .page-hero__title,
.search .page-hero__title,
.error404 .page-hero__title {
	font-size: clamp(2.2rem, 5.2vw, 4.75rem);
	letter-spacing: -0.04em;
	line-height: 1.02;
}

.page-hero__lead {
	max-width: 44ch;
	margin-top: clamp(24px, 3vw, 44px);
	color: var(--slate-700);
	font-size: clamp(1.125rem, 1.5vw, 1.4rem);
	line-height: 1.5;
}

.error404 .page-hero__lead {
	margin-bottom: 36px;
}

.page-hero__media {
	--pad: var(--gutter);
	margin-top: clamp(40px, 6vw, 88px);
	padding-inline: var(--pad);
}

.page-hero__frame {
	position: relative;
	height: clamp(280px, 60vh, 680px);
	border-radius: var(--radius);
	background: var(--slate-100);
	overflow: hidden;
}

.page-hero__frame img {
	position: absolute;
	inset: -10% 0;
	width: 100%;
	height: 120%;
	object-fit: cover;
}

.page-hero__frame--cutout {
	background: var(--slate-50);
}

.page-hero__frame--cutout img {
	inset: 0;
	height: 100%;
	object-fit: contain;
	object-position: 50% 100%;
	mix-blend-mode: multiply;
}

@media (max-width: 900px) {
	.page-hero__frame--cutout {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.page-hero__frame--cutout img {
		object-fit: cover;
		object-position: 50% 100%;
		transform: scale(1.2);
		transform-origin: 50% 100%;
	}
}

/* Lo Studio: blocchi "Media e testo" */
.prose-blocks {
	display: grid;
	gap: clamp(72px, 11vw, 180px);
}

.wp-block-media-text {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px clamp(40px, 7vw, 130px);
	align-items: center;
}

.wp-block-media-text.has-media-on-the-right {
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
	order: 2;
}

.wp-block-media-text__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	background: var(--slate-100);
	overflow: hidden;
}

.wp-block-media-text > .wp-block-media-text__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-media-text__content h2 {
	margin-bottom: clamp(20px, 2.4vw, 36px);
	font-size: clamp(1.85rem, 3.6vw, 3.4rem);
}

.wp-block-media-text__content p {
	max-width: 44ch;
	font-size: 1.125rem;
	line-height: 1.6;
}

.wp-block-media-text__content p + p {
	margin-top: 1em;
}

@media (max-width: 900px) {
	.wp-block-media-text,
	.wp-block-media-text.has-media-on-the-right {
		grid-template-columns: 1fr;
	}

	.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
		order: 0;
	}
}

/* Lo Studio: il primo appuntamento */
.steps__list {
	--progress: 0;
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 40px clamp(16px, 2vw, 32px);
	counter-reset: step;
}

.steps__list::before,
.steps__list::after {
	content: "";
	position: absolute;
	top: 21px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--slate-200);
}

.steps__list::after {
	background: var(--peach-500);
	transform: scaleX(var(--progress));
	transform-origin: 0 50%;
}

.step {
	position: relative;
	z-index: 1;
}

.step__num {
	display: grid;
	place-items: center;
	width: 43px;
	height: 43px;
	margin-bottom: clamp(24px, 3vw, 44px);
	border: 1px solid var(--slate-200);
	border-radius: 50%;
	background: var(--paper);
	color: var(--slate-600);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
}

.step--final .step__num {
	border-color: transparent;
	background: var(--peach-200);
}

.step--final .df-mark {
	width: 22px;
	height: auto;
}

.step__title {
	color: var(--strong);
	margin-bottom: 8px;
	font-size: 1.1875rem;
	font-weight: 450;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.step__text {
	font-size: 0.9063rem;
	line-height: 1.55;
}

@media (max-width: 1100px) {
	.steps__list {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.steps__list::before,
	.steps__list::after {
		top: 0;
		bottom: 0;
		left: 21px;
		right: auto;
		width: 1px;
		height: auto;
	}

	.steps__list::after {
		transform: scaleY(var(--progress));
		transform-origin: 50% 0;
	}

	.step {
		display: grid;
		grid-template-columns: 43px 1fr;
		gap: 2px 24px;
		padding-bottom: 36px;
	}

	.step:last-child {
		padding-bottom: 0;
	}

	.step__num {
		grid-row: span 2;
		margin: 0;
	}

	.step__title {
		margin: 0;
		padding-top: 9px;
	}
}

/* Staff */
.chips {
	padding-block: clamp(28px, 3.4vw, 52px);
}

.chips__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.chip:hover {
	border-color: var(--btn);
	background: var(--btn);
	color: var(--white);
}

.staff__group {
	padding-block: clamp(56px, 8vw, 130px);
	border-top: 1px solid var(--line);
}

.staff__inner {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: 40px clamp(40px, 7vw, 130px);
	align-items: start;
}

.staff__group--flip .staff__media {
	order: 2;
}

.staff__media {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.staff__figure {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius);
	background: var(--slate-100);
	overflow: hidden;
}

.staff__group:nth-child(3n + 2) .staff__figure {
	background: var(--peach-200);
}

.staff__group:nth-child(3n) .staff__figure {
	background: var(--aqua);
}

.staff__figure img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
	mix-blend-mode: multiply;
}

.staff__figure figcaption {
	position: absolute;
	top: 18px;
	left: 20px;
	color: var(--slate-600);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.staff__body .eyebrow {
	margin-bottom: clamp(16px, 2vw, 28px);
}

.staff__title {
	margin-bottom: clamp(28px, 3.4vw, 52px);
	font-size: clamp(1.85rem, 3.4vw, 3.25rem);
}

.staff__prefix {
	display: block;
	margin-bottom: 0.5em;
	color: var(--slate-400);
	font-size: 0.42em;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.staff__content {
	max-width: 58ch;
}

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

	.staff__media {
		position: static;
	}

	.staff__group--flip .staff__media {
		order: 0;
	}
}

/* Discipline (pagina) */
.treatments__inner {
	display: grid;
	grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr);
	gap: 48px clamp(40px, 6vw, 120px);
	align-items: start;
}

.treatments__aside {
	position: sticky;
	top: calc(var(--header-h) + 32px);
}

.toc .eyebrow {
	margin-bottom: 24px;
}

.toc__link {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 7px 0;
	color: var(--slate-400);
	font-size: 0.9375rem;
	line-height: 1.3;
	transition: color 0.4s var(--ease), transform 0.6s var(--ease);
}

.toc__link span {
	width: 20px;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.toc__link::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -18px;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--peach-500);
	transform: scale(0);
	transition: transform 0.5s var(--ease);
}

.toc__link:hover {
	color: var(--strong);
}

.toc__link.is-active {
	color: var(--strong);
	transform: translateX(18px);
}

.toc__link.is-active::before {
	transform: none;
}

.treatment {
	padding-bottom: clamp(64px, 9vw, 140px);
	margin-bottom: clamp(64px, 9vw, 140px);
	border-bottom: 1px solid var(--line);
}

.treatment:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.treatment__head {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 clamp(16px, 2vw, 32px);
	align-items: start;
	margin-bottom: clamp(28px, 3.6vw, 56px);
}

.treatment__num {
	padding-top: 0.9em;
	color: var(--peach-600);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.treatment__title {
	font-size: clamp(2rem, 4.8vw, 4.75rem);
}

.treatment__media {
	position: relative;
	aspect-ratio: 866 / 339;
	margin-bottom: clamp(28px, 3.6vw, 56px);
	border-radius: var(--radius);
	background: var(--slate-100);
	overflow: hidden;
}

.treatment__media img {
	position: absolute;
	top: -8%;
	left: 0;
	width: 100%;
	height: 116%;
	object-fit: cover;
}

.treatment__body {
	font-size: 1.125rem;
}

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

	.treatments__aside {
		position: static;
	}

	.toc ol {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.toc__link {
		padding: 9px 16px;
		border: 1px solid var(--slate-200);
		border-radius: 999px;
		color: var(--slate-700);
		font-size: 0.8125rem;
		transform: none !important;
	}

	.toc__link::before,
	.toc__link span {
		display: none;
	}

	.treatment__media {
		aspect-ratio: 16 / 9;
	}
}

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: clamp(200px, 31vw, 520px);
	gap: clamp(10px, 1.4vw, 24px);
}

.gallery__item {
	grid-column: span 4;
	border-radius: var(--radius-sm);
	background: var(--slate-100);
	overflow: hidden;
}

.gallery__item--1,
.gallery__item--7 {
	grid-column: span 7;
}

.gallery__item--2,
.gallery__item--6 {
	grid-column: span 5;
}

.gallery__item a {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}

.gallery__item a:hover img {
	transform: scale(1.045);
}

.gallery__zoom {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--strong);
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}

.gallery__zoom .icon {
	width: 18px;
	height: 18px;
}

.gallery__item a:hover .gallery__zoom,
.gallery__item a:focus-visible .gallery__zoom {
	opacity: 1;
	transform: none;
}

.gallery__credit {
	margin-top: 28px;
	color: var(--slate-400);
	font-size: 0.8125rem;
}

@media (max-width: 800px) {
	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: clamp(150px, 44vw, 320px);
	}

	.gallery__item {
		grid-column: span 1;
	}

	.gallery__item--1,
	.gallery__item--4,
	.gallery__item--7 {
		grid-column: span 2;
		grid-row: span 1;
	}

	.gallery__item--2,
	.gallery__item--6 {
		grid-column: span 1;
	}
}

/* Contatti */
.contact__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px clamp(40px, 6vw, 110px);
	align-items: start;
}

.contact__list {
	display: grid;
	border-bottom: 1px solid var(--line);
}

.contact__list > li {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 20px;
	padding: 28px 0;
	border-top: 1px solid var(--line);
}

.contact__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--peach-100);
	color: var(--peach-600);
}

.contact__icon .icon {
	width: 21px;
	height: 21px;
}

.contact__label {
	margin-bottom: 6px;
	color: var(--slate-500);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.contact__list address,
.contact__big {
	color: var(--heading);
	font-size: clamp(1.25rem, 1.8vw, 1.625rem);
	font-weight: 350;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.contact__list .btn {
	margin-top: 14px;
}

.contact__figure {
	position: relative;
	aspect-ratio: 16 / 10;
	margin-top: 40px;
	border-radius: var(--radius);
	background: var(--aqua);
	overflow: hidden;
}

.contact__figure img {
	position: absolute;
	top: -8%;
	left: 0;
	width: 100%;
	height: 116%;
	object-fit: cover;
}

.contact__form {
	padding: clamp(24px, 4vw, 64px);
	border-radius: var(--radius);
	background: var(--paper);
}

.contact__form-title {
	margin-bottom: clamp(28px, 3vw, 44px);
	font-size: clamp(1.6rem, 2.6vw, 2.375rem);
	font-weight: 350;
}

.contact__note {
	margin-top: 28px;
	font-size: 0.875rem;
}

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

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

.field {
	position: relative;
}

.field--full {
	grid-column: 1 / -1;
}

.field__input {
	display: block;
	width: 100%;
	padding: 30px 0 12px;
	border: 0;
	border-bottom: 1px solid var(--slate-300);
	border-radius: 0;
	background: transparent;
	color: var(--strong);
	font: inherit;
	font-size: 1.0625rem;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.4s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.field__input--area {
	min-height: 140px;
	resize: vertical;
}

.field__label {
	position: absolute;
	top: 30px;
	left: 0;
	color: var(--slate-500);
	font-size: 1.0625rem;
	line-height: 1.4;
	pointer-events: none;
	transform-origin: 0 0;
	transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}

.field::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: var(--peach-600);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.7s var(--ease);
}

.field:focus-within::after {
	transform: none;
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
	transform: translateY(-22px) scale(0.72);
	color: var(--slate-600);
}

.field.has-error .field__input {
	border-color: #c9412f;
}

.field.has-error {
	margin-bottom: 22px;
}

.field__error {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	color: #b3311f;
	font-size: 0.8125rem;
	line-height: 1.2;
}

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

.check {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 14px;
	margin-top: 32px;
	font-size: 0.875rem;
	line-height: 1.5;
	cursor: pointer;
}

.check input {
	position: absolute;
	opacity: 0;
}

.check__box {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 1px solid var(--slate-400);
	border-radius: 6px;
	color: var(--white);
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.check__box .icon {
	width: 14px;
	height: 14px;
	stroke-width: 2.4;
	transform: scale(0);
	transition: transform 0.4s var(--ease);
}

.check input:checked + .check__box {
	border-color: var(--btn);
	background: var(--btn);
}

.check input:checked + .check__box .icon {
	transform: none;
}

.check input:focus-visible + .check__box {
	outline: 2px solid var(--peach-600);
	outline-offset: 3px;
}

.check.has-error .check__box {
	border-color: #c9412f;
}

.check__text a {
	color: var(--strong);
	text-decoration: underline;
	text-decoration-color: var(--peach-500);
	text-underline-offset: 3px;
}

.form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 36px;
}

.form__status {
	flex: 1;
	min-width: 220px;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.form__status.is-success {
	color: #23705a;
}

.form__status.is-error {
	color: #b3311f;
}

.form.is-sending {
	pointer-events: none;
}

.form.is-sending .btn {
	opacity: 0.6;
}

/* News */
.news {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 64px) clamp(20px, 2.6vw, 40px);
}

.news__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.news__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 8px;
	border-radius: var(--radius-sm);
	background: var(--slate-100);
	overflow: hidden;
}

.news__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}

.news__link:hover .news__media img {
	transform: scale(1.04);
}

.news__date {
	color: var(--slate-500);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.news__title {
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 350;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

.news__excerpt {
	font-size: 0.9688rem;
	line-height: 1.55;
}

.news__link .btn {
	margin-top: auto;
	padding-top: 12px;
}

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

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

.pager {
	margin-top: clamp(48px, 6vw, 96px);
}

.pager .nav-links {
	display: flex;
	gap: 8px;
}

.pager .page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid var(--slate-200);
	border-radius: 999px;
	color: var(--strong);
	font-size: 0.875rem;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.pager .page-numbers.current,
.pager a.page-numbers:hover {
	border-color: var(--btn);
	background: var(--btn);
	color: var(--white);
}

.pager .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.empty {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding: clamp(48px, 8vw, 120px) 24px;
	border-radius: var(--radius);
	background: var(--paper);
	text-align: center;
}

.empty__mark .df-mark {
	width: 64px;
	height: auto;
	margin-bottom: 12px;
}

.empty__title {
	font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.empty .btn {
	margin-top: 16px;
}

.post-foot {
	margin-top: clamp(40px, 5vw, 72px);
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.prose img,
.prose .wp-block-image img {
	border-radius: var(--radius-sm);
}

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

.site-footer {
	position: relative;
	border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.72);
	overflow: hidden;
}

.cta {
	position: relative;
	padding-block: clamp(88px, 12vw, 190px) clamp(72px, 9vw, 150px);
	border-bottom: 1px solid var(--line-light);
}

.cta__inner {
	position: relative;
	z-index: 1;
}

.cta .eyebrow {
	margin-bottom: clamp(24px, 3vw, 44px);
}

.cta__title {
	max-width: 19ch;
	color: var(--white);
	font-size: clamp(1.95rem, 4.6vw, 4.5rem);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px clamp(28px, 4vw, 56px);
	margin-top: clamp(36px, 5vw, 72px);
}

.cta .btn--primary {
	--btn-h: 66px;
	--chip: 50px;
	padding-left: 34px;
	background: var(--peach-500);
	color: var(--strong);
	font-size: 1rem;
}

.cta .btn--primary .btn__icon {
	background: var(--ink);
	color: var(--white);
}

.cta .btn--primary:hover {
	background: var(--peach-300);
}

.cta__phone {
	display: grid;
	line-height: 1.25;
}

.cta__phone span {
	color: var(--slate-300);
	font-size: 0.8125rem;
}

.cta__phone strong {
	color: var(--white);
	font-size: clamp(1.4rem, 2.2vw, 2rem);
	font-weight: 300;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.cta__mark {
	position: absolute;
	top: 50%;
	right: calc(var(--gutter) * -0.4);
	width: min(46vw, 720px);
	margin-top: calc(min(46vw, 720px) * -0.43);
	opacity: 0.09;
	pointer-events: none;
}

.cta__mark .df-mark {
	width: 100%;
	height: auto;
}

.cta__mark .df-logo__tooth,
.cta__mark .df-logo__heart {
	fill: var(--peach-300);
}

.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
	gap: 48px clamp(24px, 4vw, 72px);
	padding-block: clamp(56px, 7vw, 110px);
}

.site-footer__brand .df-logo {
	width: clamp(170px, 16vw, 230px);
	height: auto;
	margin-bottom: 24px;
}

.site-footer__brand p {
	max-width: 28ch;
	font-size: 0.9375rem;
}

.site-footer__title {
	margin-bottom: 18px;
	color: var(--slate-400);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.site-footer__col {
	font-size: 0.9688rem;
	line-height: 1.6;
}

.site-footer__col ul {
	display: grid;
	gap: 6px;
	justify-items: start;
}

.site-footer__col a {
	color: var(--white);
}

.site-footer__hours {
	margin-top: 14px;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 26px max(26px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--line-light);
	color: var(--slate-400);
	font-size: 0.8125rem;
}

.site-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}

.site-footer__legal a,
.site-footer__legal button {
	color: var(--slate-300);
}

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

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.cta__mark {
		width: 86vw;
		margin-top: -30vw;
		right: -30vw;
	}
}

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

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	visibility: hidden;
	opacity: 0;
}

.lightbox.is-open {
	visibility: visible;
}

.lightbox__bg {
	position: absolute;
	inset: 0;
	background: rgba(20, 33, 39, 0.96);
}

.lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 76px clamp(16px, 7vw, 120px);
}

.lightbox__img {
	max-width: calc(100vw - 2 * clamp(16px, 7vw, 120px));
	max-height: calc(100vh - 152px);
	max-height: calc(100svh - 152px);
	width: auto;
	height: auto;
	border-radius: var(--radius-sm);
	object-fit: contain;
}

.lightbox__btn {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--line-light);
	border-radius: 50%;
	color: var(--white);
	transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.lightbox__btn:hover {
	border-color: var(--white);
	background: var(--white);
	color: var(--strong);
}

.lightbox__btn .icon {
	width: 20px;
	height: 20px;
}

.lightbox__close {
	top: 18px;
	right: clamp(16px, 2.4vw, 32px);
}

.lightbox__prev,
.lightbox__next {
	top: 50%;
	margin-top: -26px;
}

.lightbox__prev {
	left: clamp(12px, 2.4vw, 32px);
}

.lightbox__prev .icon {
	transform: rotate(180deg);
}

.lightbox__next {
	right: clamp(12px, 2.4vw, 32px);
}

.lightbox__count {
	position: absolute;
	top: 34px;
	left: clamp(16px, 2.4vw, 32px);
	color: var(--slate-300);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 18px;
		margin: 0;
	}
}

/* Banner del consenso (Google Analytics) */
.consent {
	position: fixed;
	left: clamp(12px, 2vw, 28px);
	bottom: clamp(12px, 2vw, 28px);
	z-index: 300;
	display: grid;
	gap: 18px;
	width: min(420px, calc(100vw - 24px));
	padding: 24px;
	border-radius: var(--radius-sm);
	background: var(--white);
	box-shadow: 0 24px 60px -24px rgba(28, 45, 53, 0.35), 0 0 0 1px var(--line);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.consent[hidden] {
	display: none;
}

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

.consent__text {
	font-size: 0.875rem;
	line-height: 1.55;
}

.consent__text a {
	color: var(--strong);
	text-decoration: underline;
	text-decoration-color: var(--peach-500);
	text-underline-offset: 3px;
	white-space: nowrap;
}

.consent__actions {
	display: grid;
	grid-auto-flow: column;
}

.consent .btn {
	justify-content: center;
	padding-inline: 22px;
}

/* 12. Motion -------------------------------------------------------------- */

/* Con JS attivo gli elementi animati partono nascosti; il velo iniziale
   copre la pagina finché gli stati non sono impostati. */
.js:not(.reduced-motion) [data-hero-fade],
.js:not(.reduced-motion) [data-hero-title],
.js:not(.reduced-motion) [data-hero-frame] {
	visibility: hidden;
}

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

@media print {
	.site-header,
	.loader,
	.menu,
	.cta,
	.strip {
		display: none !important;
	}
}
