/* ==========================================================================
   Ottica Allegri — bianco, nero, linee sottili.
   ========================================================================== */

:root {
	--white: #fbfbfd;
	--paper: #f5f5f7;
	--ink: #0a0a0a;
	--mute: #55555a;
	--line: rgb(10 10 10 / 0.14);
	--line-strong: rgb(10 10 10 / 0.5);
	--hair: 1px;
	--pad: clamp(20px, 4.2vw, 64px);
	--head: 76px;
	--ease: cubic-bezier(0.22, 0.8, 0.2, 1);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-resolution: 2dppx) {
	:root { --hair: 0.5px; }
}

@view-transition { navigation: auto; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head); }
/* Grandezza del testo scelta dal visitatore: tutte le misure sono in rem e seguono. */
html[data-text="2"] { font-size: 112.5%; }
html[data-text="3"] { font-size: 125%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; font-style: normal; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 200; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
b, strong { font-weight: 500; }
[hidden] { display: none !important; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.screen-reader-text, .skip:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: var(--white); }

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

/* ---------- Elementi ricorrenti ---------- */

.eyebrow {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mute);
}
.eyebrow a:hover { color: var(--ink); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 26px;
	border: var(--hair) solid var(--ink); border-radius: 999px;
	background: var(--ink); color: var(--white);
	font-size: 0.875rem; font-weight: 400; letter-spacing: 0.01em; white-space: nowrap;
	transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover .icon { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--invert { border-color: var(--white); background: var(--white); color: var(--ink); }
.btn--invert:hover { background: transparent; color: var(--white); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.link {
	display: inline-flex; align-items: center; gap: 8px;
	padding-bottom: 3px;
	font-size: 0.875rem; font-weight: 400;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% var(--hair) no-repeat;
	transition: background-size 0.35s var(--ease);
}
.link:hover { background-size: 0 var(--hair); background-position: 100% 100%; }

.chip {
	min-height: 36px; padding: 0 18px;
	border: var(--hair) solid var(--line-strong); border-radius: 999px;
	font-size: 0.8125rem; font-weight: 400;
	transition: background 0.25s, color 0.25s;
}
.chip[aria-selected="true"], .chip:hover { background: var(--ink); color: var(--white); }

.round {
	display: grid; place-items: center;
	width: 52px; height: 52px;
	border: var(--hair) solid var(--line-strong); border-radius: 50%;
	transition: background 0.25s, color 0.25s, opacity 0.25s;
}
.round:hover { background: var(--ink); color: var(--white); }
.round[disabled] { opacity: 0.25; pointer-events: none; }

/* Foto rifilata sull'occhiale; lo sfondo bianco scompare con multiply. */
.trim {
	display: block; overflow: hidden;
	aspect-ratio: var(--ar, 1.6);
	width: min(100cqw, 100cqh * var(--ar, 1.6));
	mix-blend-mode: multiply;
}
.trim img { display: block; max-width: none; height: auto; }
.trim.is-alpha { mix-blend-mode: normal; }

/* ---------- Testata ---------- */

.header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	height: var(--head);
	border-bottom: var(--hair) solid transparent;
	transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s, transform 0.5s var(--ease);
}
.header.is-away { transform: translateY(-101%); }
.header:focus-within { transform: none; }

/* Ingresso della testata: logo, voci e strumenti arrivano uno dopo l'altro. */
@media (prefers-reduced-motion: no-preference) {
	.logo, .nav__list > li, .header__tools > * { animation: head-in 0.8s var(--ease) both; }
	.nav__list > li:nth-child(1) { animation-delay: 0.08s; }
	.nav__list > li:nth-child(2) { animation-delay: 0.14s; }
	.nav__list > li:nth-child(3) { animation-delay: 0.2s; }
	.nav__list > li:nth-child(4) { animation-delay: 0.26s; }
	.nav__list > li:nth-child(5) { animation-delay: 0.32s; }
	.nav__list > li:nth-child(n + 6) { animation-delay: 0.38s; }
	.header__tools > * { animation-delay: 0.42s; }
}
@keyframes head-in { from { opacity: 0; translate: 0 -14px; } }
.header.is-solid, body:not(.has-stage) .header {
	background: rgb(251 251 253 / 0.78);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-color: var(--line);
}
.header__in {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	height: 100%; padding: 0 var(--pad);
}

.logo__text { display: inline-block; font-size: 1.125rem; font-weight: 200; letter-spacing: 0.32em; text-transform: uppercase; white-space: nowrap; transition: letter-spacing 0.6s var(--ease); }
.logo:hover .logo__text { letter-spacing: 0.4em; }
.logo__text b { font-weight: 500; }
.logo__img { width: auto; height: 42px; mix-blend-mode: multiply; }

.nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__list > li { position: relative; }
.nav__list a { display: block; padding: 10px 0; font-size: 1rem; font-weight: 400; letter-spacing: 0.01em; }
.nav__list > li > a { background: linear-gradient(currentColor, currentColor) 100% calc(100% - 5px) / 0 1px no-repeat; transition: background-size 0.45s var(--ease), letter-spacing 0.45s var(--ease); }
.nav__list > li > a:hover, .nav__list > li:focus-within > a, .nav__list > .current-menu-item > a, .nav__list > .current-menu-ancestor > a { background-size: 100% 1px; background-position: 0 calc(100% - 5px); }
.nav__list > li > a:hover { letter-spacing: 0.04em; }
.nav__list .sub-menu li { opacity: 0; translate: 0 6px; transition: opacity 0.35s var(--ease), translate 0.35s var(--ease); }
.nav__list li:hover > .sub-menu li, .nav__list li:focus-within > .sub-menu li { opacity: 1; translate: 0 0; }
.nav__list .sub-menu li:nth-child(2) { transition-delay: 0.06s; }
.nav__list .sub-menu li:nth-child(3) { transition-delay: 0.12s; }
.nav__list .sub-menu li:nth-child(n + 4) { transition-delay: 0.18s; }
.nav__list .sub-menu {
	position: absolute; top: 100%; left: -18px; min-width: 220px; padding: 10px 18px;
	background: var(--white); border: var(--hair) solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { color: var(--mute); font-size: 0.9375rem; transition: color 0.25s, padding 0.35s var(--ease); }
.nav__list .sub-menu a:hover { padding-left: 6px; }
.nav__list .sub-menu a:hover { color: var(--ink); }

.header__tools { display: flex; align-items: center; gap: 6px; }
.tool { position: relative; display: grid; place-items: center; min-width: 44px; height: 44px; transition: transform 0.35s var(--ease); }
.tool:not(.tool--cta):hover { transform: scale(1.12); }
.tool .icon { width: 1.5em; height: 1.5em; }
.tool__count {
	position: absolute; top: 6px; right: 2px;
	min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
	background: var(--ink); color: var(--white);
	font-size: 0.625rem; font-weight: 500; line-height: 16px; text-align: center;
}
.tool--cta {
	height: 42px; padding: 0 24px; margin-left: 8px; overflow: hidden;
	border: var(--hair) solid var(--ink); border-radius: 999px;
	font-size: 0.9375rem; font-weight: 400;
	background: linear-gradient(var(--ink), var(--ink)) 50% 100% / 100% 0 no-repeat;
	transition: background-size 0.45s var(--ease), color 0.35s;
}
.tool--cta:hover { background-size: 100% 100%; color: var(--white); }
.tool--menu { display: none; }

@media (max-width: 899px) {
	.tool--menu { display: grid; }
	.tool--cta { display: none; }
	/* Assoluto, non fisso: la testata ha backdrop-filter e diventerebbe il suo riquadro di riferimento. */
	.nav {
		position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--head));
		padding: 24px var(--pad) 48px; overflow-y: auto;
		background: var(--white);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open .header { background: var(--white); border-color: var(--line); }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list > li { border-bottom: var(--hair) solid var(--line); }
	.nav__list > li > a { padding: 18px 0; font-size: 1.75rem; font-weight: 200; letter-spacing: -0.02em; background: none; }
	.nav__list .sub-menu { position: static; padding: 0 0 16px; border: 0; opacity: 1; visibility: visible; transform: none; display: flex; gap: 20px; flex-wrap: wrap; }
	.nav__list .sub-menu li { opacity: 1; translate: none; }
	.nav__list > li { animation: none; opacity: 0; translate: 0 14px; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease); }
	.nav-open .nav__list > li { opacity: 1; translate: 0 0; }
	.nav-open .nav__list > li:nth-child(2) { transition-delay: 0.06s; }
	.nav-open .nav__list > li:nth-child(3) { transition-delay: 0.12s; }
	.nav-open .nav__list > li:nth-child(4) { transition-delay: 0.18s; }
	.nav-open .nav__list > li:nth-child(n + 5) { transition-delay: 0.24s; }
	.logo__text { font-size: 0.9375rem; }
}

.main { min-height: 60svh; }
body:not(.has-stage) .main { padding-top: var(--head); }

/* ==========================================================================
   Palco degli ultimi modelli
   ========================================================================== */

.stage { position: relative; border-bottom: var(--hair) solid var(--line); }

.stage__pin {
	position: relative; isolation: isolate;
	display: flex; flex-direction: column;
	min-height: 100svh; padding: calc(var(--head) + 24px) 0 32px;
	background: var(--white);
	overflow: hidden;
}

.stage__head { position: relative; z-index: 3; padding: 0 var(--pad); max-width: 30rem; }
.stage__title { margin-top: 10px; font-size: clamp(1.75rem, 3.4vw, 3rem); }
.stage__types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stage__types a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px;
	border: var(--hair) solid var(--line-strong); border-radius: 999px;
	font-size: 0.9375rem; font-weight: 400; background: rgb(251 251 253 / 0.7);
	transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.stage__types a:hover { background: var(--ink); color: var(--white); }
.stage__types .icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.stage__types a:hover .icon { transform: translateX(4px); }
.stage img { -webkit-user-drag: none; user-select: none; }
.stage.is-enhanced .stage__pin { cursor: pointer; }
.stage.is-enhanced .stage__head, .stage.is-enhanced .marquee { cursor: auto; }

/* Senza JavaScript: fila scorrevole. */
.stage__items { display: flex; gap: 0; margin: auto 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stage__item { flex: 0 0 82vw; scroll-snap-align: center; padding: 24px var(--pad); }
.stage__link { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.stage__img { width: min(70vw, 46svh * var(--ar, 1.6), 1000px); }
.stage__ghost, .stage__count, .stage__controls, .stage__progress, .stage__grid, .stage__faces { display: none; }
.stage__quiz {
	display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px;
	border: var(--hair) solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white);
	font-size: 0.9375rem; font-weight: 400; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.stage__quiz:hover { background: transparent; color: var(--ink); }
.stage__quiz .icon { width: 1.1em; height: 1.1em; }

.stage__caption { display: grid; gap: 4px; justify-items: center; text-align: center; }
.stage__brand { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.stage__name { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 200; letter-spacing: -0.02em; line-height: 1.1; }
.stage__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.8125rem; font-weight: 400; }

/* Con JavaScript: una schermata sola; lo scorrimento della pagina resta libero. */
.stage { --strip: 92px; }
.stage.is-enhanced .stage__pin { height: 100svh; min-height: 520px; padding-bottom: 0; touch-action: pan-y; }
.stage.is-enhanced .stage__pin.is-dragging { cursor: grabbing; }

.stage.is-enhanced .stage__grid {
	display: flex; justify-content: space-evenly;
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.stage__grid i { width: var(--hair); height: 100%; background: var(--line); opacity: 0.6; }
.stage.is-enhanced .stage__grid::after {
	content: ""; position: absolute; inset: calc(50% - var(--strip) / 2 + 12px) 0 auto; height: var(--hair); background: var(--line); opacity: 0.6;
}

/* Niente z-index, transform o opacity su items / item / link: creerebbero un contesto di
   impilamento e il multiply delle foto non raggiungerebbe più lo sfondo del palco. */
.stage.is-enhanced .stage__items { position: absolute; inset: 0; display: block; margin: 0; overflow: visible; }
.stage.is-enhanced .stage__item { position: absolute; inset: 0; padding: 0; pointer-events: none; }
.stage.is-enhanced .stage__item.is-far { visibility: hidden; }
.stage.is-enhanced .stage__link { position: absolute; inset: 0; display: block; }
.stage.is-enhanced .stage__item.is-active .stage__link { pointer-events: auto; }

.stage.is-enhanced .stage__ghost {
	display: block;
	position: absolute; top: calc(50% - var(--strip) / 2 + 12px); left: 50%;
	font-size: clamp(5rem, 23vw, 26rem); font-weight: 100; line-height: 0.8; letter-spacing: -0.045em; white-space: nowrap;
	color: transparent; -webkit-text-stroke: var(--hair) rgb(10 10 10 / 0.34);
	opacity: max(0, calc(1 - var(--a) * 1.6));
	transform: translate3d(calc(-50% + var(--d) * -46vw), -50%, 0);
	will-change: transform, opacity;
	user-select: none;
}

.stage.is-enhanced .stage__img {
	position: absolute; top: calc(50% - var(--strip) / 2 + 12px); left: 50%;
	width: min(62vw, 42svh * var(--ar, 1.6), 1000px);
	opacity: max(0, calc(1 - var(--a) * 0.82));
	transform:
		translate3d(calc(-50% + var(--d) * 80vw), calc(-50% + var(--a) * 7svh), 0)
		scale(calc(1 - var(--a) * 0.42))
		rotate(calc(var(--d) * -5deg));
	will-change: transform, opacity;
}
.stage__img.is-alpha { filter: drop-shadow(0 30px 30px rgb(0 0 0 / 0.12)); }

.stage.is-enhanced .stage__caption {
	position: absolute; left: var(--pad); bottom: calc(var(--strip) + clamp(24px, 5svh, 48px));
	justify-items: start; text-align: left;
	opacity: 0; transform: translateY(14px);
	transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.stage.is-enhanced .stage__item.is-active .stage__caption { opacity: 1; transform: none; transition-delay: 0.12s; }
.stage__link:hover .stage__more .icon { transform: translateX(4px); }
.stage__more .icon { transition: transform 0.3s var(--ease); }

.stage.is-enhanced .stage__count {
	display: flex; align-items: baseline; gap: 8px;
	position: absolute; z-index: 3; top: calc(var(--head) + 24px); right: var(--pad);
	font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; color: var(--mute);
	font-variant-numeric: tabular-nums;
}
.stage__count b { font-size: 2.25rem; font-weight: 200; letter-spacing: -0.02em; color: var(--ink); }

.stage.is-enhanced .stage__controls {
	display: flex; gap: 10px;
	position: absolute; z-index: 3; right: var(--pad); bottom: calc(var(--strip) + clamp(24px, 5svh, 48px));
}

.stage.is-enhanced .stage__progress {
	display: block;
	position: absolute; z-index: 4; left: 0; right: 0; bottom: var(--strip);
	height: var(--hair); background: var(--line);
}
.stage__progress i { display: block; height: 2px; margin-top: -1px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.9s var(--ease); }

/* ---- Prima schermata con ritratto: a destra il modello che indossa l'occhiale in primo piano ---- */
.stage.has-faces { --face: 44%; --stone: #dedad5; }
.stage.is-enhanced.has-faces .stage__faces {
	display: block; position: absolute; top: 0; right: 0; bottom: var(--strip); width: var(--face);
	background: var(--stone); overflow: hidden;
}
.stage__worn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transition: opacity 0.9s cubic-bezier(0.45, 0, 0.25, 1); }
.stage__worn.is-on { opacity: 1; }
.stage__wearing {
	position: absolute; left: 24px; bottom: 22px; z-index: 2;
	padding: 9px 16px; border-radius: 999px; background: rgb(251 251 253 / 0.9);
	font-size: 0.875rem;
}
.stage__wearing span { margin-right: 6px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.stage__wearing b { font-weight: 500; }

.stage.is-enhanced.has-faces .stage__grid { right: var(--face); }
.stage.is-enhanced.has-faces .stage__grid::after { inset: 68% 0 auto; }
.stage.is-enhanced.has-faces .stage__head { max-width: calc(100% - var(--face)); }
.stage.is-enhanced.has-faces .stage__title { max-width: 9.5em; font-size: clamp(2.25rem, min(4.8vw, 7.6svh), 5.25rem); font-weight: 100; }
.stage.is-enhanced.has-faces .stage__items { inset: 0 var(--face) var(--strip) 0; overflow: hidden; }
.stage.is-enhanced.has-faces .stage__ghost { top: 70%; font-size: clamp(4rem, 15vw, 17rem); transform: translate3d(calc(-50% + var(--d) * -30vw), -50%, 0); }
.stage.is-enhanced.has-faces .stage__img {
	top: 68%; width: min(38vw, 24svh * var(--ar, 1.6), 720px);
	transform:
		translate3d(calc(-50% + var(--d) * 58vw), calc(-50% + var(--a) * 5svh), 0)
		scale(calc(1 - var(--a) * 0.42))
		rotate(calc(var(--d) * -5deg));
}
.stage.is-enhanced.has-faces .stage__caption { bottom: clamp(20px, 4svh, 40px); }
.stage.is-enhanced.has-faces .stage__controls { right: calc(var(--face) + var(--pad)); bottom: calc(var(--strip) + clamp(20px, 4svh, 40px)); }
.stage.is-enhanced.has-faces .stage__count { top: auto; right: calc(var(--face) + var(--pad) + 132px); bottom: calc(var(--strip) + clamp(20px, 4svh, 40px) + 8px); }

@media (max-width: 899px) {
	/* Telefono: ritratto in alto sotto la testata, poi titolo, occhiale e comandi. */
	.stage.has-faces { --face: 0%; --shot: 42svh; }
	body.has-stage .header { background: var(--white); border-color: var(--line); }
	.stage.is-enhanced.has-faces .stage__faces { top: var(--head); left: 0; width: 100%; bottom: auto; height: var(--shot); }
	.stage__wearing { display: none; }
	.stage.is-enhanced.has-faces .stage__head { position: absolute; top: calc(var(--head) + var(--shot) + 12px); left: 0; right: 0; max-width: none; }
	.stage.is-enhanced.has-faces .stage__title { max-width: none; font-size: 1.375rem; font-weight: 200; }
	.stage.is-enhanced.has-faces .stage__types { margin-top: 10px; }
	.stage.is-enhanced.has-faces .stage__types a { display: none; }
	.stage.is-enhanced.has-faces .stage__quiz { min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
	.stage.is-enhanced.has-faces .stage__count { display: none; }
	.stage.is-enhanced.has-faces .stage__items { top: calc(var(--head) + var(--shot) + 108px); }
	.stage.is-enhanced.has-faces .stage__grid { top: calc(var(--head) + var(--shot)); }
	.stage.is-enhanced.has-faces .stage__grid::after { display: none; }
	.stage.is-enhanced.has-faces .stage__img { top: 30%; width: min(58vw, 11svh * var(--ar, 1.6)); }
	.stage.is-enhanced.has-faces .stage__ghost { top: 30%; font-size: 30vw; }
	.stage.is-enhanced.has-faces .stage__caption { bottom: 12px; max-width: calc(100% - var(--pad) * 2 - 112px); }
	.stage.is-enhanced.has-faces .stage__name { font-size: 1.25rem; }
	.stage.is-enhanced.has-faces .stage__more { margin-top: 4px; }
	.stage.is-enhanced.has-faces .stage__controls { right: var(--pad); bottom: calc(var(--strip) + 12px); }
}
@media (max-width: 899px) { :root { --head: 64px; } }

/* Il nastro dei marchi chiude la prima schermata. */
.stage .marquee { position: relative; z-index: 3; margin-top: auto; background: var(--white); }
.stage.is-enhanced .marquee { position: absolute; left: 0; right: 0; bottom: 0; height: var(--strip); padding: 0; border-bottom: 0; display: flex; align-items: center; }


@media (max-width: 699px) {
	.stage { --strip: 72px; }
	.stage__head { max-width: calc(100% - 120px); }
	.stage__title { font-size: 1.5rem; }
	.stage.is-enhanced .stage__img { width: min(86vw, 36svh * var(--ar, 1.6)); top: 44%; }
	.stage.is-enhanced .stage__ghost { top: 44%; font-size: 34vw; }
	.stage.is-enhanced .stage__grid::after { inset: 44% 0 auto; }
	.stage.is-enhanced .stage__caption { max-width: calc(100% - var(--pad) * 2 - 120px); }
	.round { width: 46px; height: 46px; }
}

/* ---------- Nastro dei marchi ---------- */

.marquee { overflow: hidden; border-bottom: var(--hair) solid var(--line); padding: 26px 0; }
.marquee__track { display: flex; align-items: center; width: max-content; height: 100%; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; height: 100%; }
.marquee li {
	display: flex; align-items: center;
	padding: 0 clamp(26px, 3.6vw, 56px);
	font-size: clamp(1.125rem, 1.9vw, 1.625rem); font-weight: 200; letter-spacing: -0.01em; white-space: nowrap;
	border-right: var(--hair) solid var(--line);
}
.marquee li a { display: flex; align-items: center; }
.marquee__logo { display: block; height: auto; max-height: 2.1em; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); opacity: 0.82; transition: opacity 0.3s; }
.marquee li:hover .marquee__logo { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tipologie ---------- */

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border-bottom: var(--hair) solid var(--line); }
.type { position: relative; border-right: var(--hair) solid var(--line); }
.type:last-child { border-right: 0; }
.type__main {
	display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 16px;
	padding: clamp(40px, 7vw, 96px) var(--pad) 28px;
}
.type__count { grid-column: 1 / -1; font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.type__name { font-size: clamp(3.5rem, 9vw, 8.5rem); font-weight: 100; line-height: 0.9; letter-spacing: -0.04em; text-transform: capitalize; }
.type__main .icon { width: 44px; height: 44px; stroke-width: 0.5; transition: transform 0.45s var(--ease); }
.type__main:hover .icon { transform: translateX(10px); }
.type__sub { display: flex; gap: 24px; padding: 0 var(--pad) 32px; }
.type__sub a { font-size: 0.875rem; font-weight: 400; color: var(--mute); border-bottom: var(--hair) solid var(--line); padding-bottom: 2px; }
.type__sub a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Sezioni ---------- */

.section { padding: clamp(56px, 8vw, 120px) var(--pad); }
.section + .section { border-top: var(--hair) solid var(--line); }
.section__head { margin-bottom: clamp(28px, 4vw, 56px); }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { margin-top: 12px; font-size: clamp(2.25rem, 5vw, 4.25rem); }

/* ---------- Griglia modelli ---------- */

.grid {
	display: grid; grid-template-columns: repeat(2, 1fr);
	border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line);
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); background: var(--white); }
.card__media {
	container-type: size;
	display: grid; place-items: center;
	aspect-ratio: 4 / 3; padding: 14% 12% 8%;
	background: var(--white);
}
.card__media .trim { transition: transform 0.7s var(--ease); }
.card:hover .card__media .trim { transform: scale(1.07) rotate(-2deg); }
.card__body { padding: 4px 20px 22px; }
.card__brand { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.card__title { margin-top: 4px; font-size: 1.1875rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__price { margin-top: 4px; font-size: 0.875rem; color: var(--mute); }
.card__tag {
	position: absolute; top: 16px; left: 20px;
	font-size: 0.625rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
	padding: 3px 9px; border: var(--hair) solid var(--ink); border-radius: 999px;
}

.fav { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: transform 0.3s var(--ease); }
.fav:hover { transform: scale(1.12); }
.fav[aria-pressed="true"] .icon { fill: var(--ink); }
.card .fav { position: absolute; top: 6px; right: 8px; }

/* ---------- Provali sul viso ---------- */

.tryon__in { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .tryon__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }

.tryon__view { position: relative; }
@media (min-width: 900px) { .tryon__view { position: sticky; top: calc(var(--head) + 24px); } }
.tryon__faces { display: flex; gap: 8px; margin-bottom: 16px; }
.tryon__canvas { border: var(--hair) solid var(--line); background: var(--white); overflow: hidden; }
.tryon__face { position: relative; isolation: isolate; background: var(--white); }
.tryon__face > img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tryon__worn { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 0.7s cubic-bezier(0.45, 0, 0.25, 1); }
.tryon__worn.is-on { opacity: 1; }
.tryon__glasses {
	position: absolute; left: var(--x, 50%); top: var(--y, 44%); width: var(--w, 46%);
	mix-blend-mode: multiply;
	transform: translate(-50%, -50%) rotate(var(--r, 0deg));
	transition: opacity 0.5s var(--ease);
}
.tryon__glasses.is-hidden { opacity: 0; }
.tryon__glasses.is-instant { transition: none; }
/* L'occhiale in volo dall'elenco al viso. */
.tryon__flyer { position: fixed; z-index: 40; top: 0; left: 0; pointer-events: none; mix-blend-mode: multiply; transform-origin: 0 0; will-change: transform, opacity; }
.tryon__flyer .trim { width: 100%; mix-blend-mode: normal; }
.tryon__glasses .trim { width: 100%; mix-blend-mode: normal; }
.tryon__label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 1.125rem; }
.tryon__note { margin-top: 8px; font-size: 0.75rem; color: var(--mute); }

.tryon__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); }
.tryon__list li { border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); }
.tryon__pick { display: grid; width: 100%; height: 100%; text-align: left; background: var(--white); transition: background 0.25s; }
.tryon__pick > .trim { width: 76%; margin: 22px auto 10px; }
.tryon__pick-name { padding: 6px 14px 14px; font-size: 0.75rem; color: var(--mute); line-height: 1.35; }
.tryon__pick-name b { display: block; font-size: 0.875rem; font-weight: 400; color: var(--ink); }
.tryon__pick:hover { background: var(--paper); }
.tryon__pick[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Negozi ---------- */

.stores__grid { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .stores__grid { grid-template-columns: repeat(3, 1fr); } }

.store__media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper); }
.store__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.6s, transform 1.2s var(--ease); }
.store:hover .store__media img { filter: none; transform: scale(1.03); }
.store__body { padding-top: 22px; }
.store__open { display: flex; align-items: center; gap: 8px; min-height: 1.4em; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.04em; color: var(--mute); }
.store__open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.store__open.is-open { color: var(--ink); }
.store__open.is-open::before { background: var(--ink); }
.store__open:empty { visibility: hidden; }
.store__name { margin-top: 8px; font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.store__address { margin-top: 10px; color: var(--mute); }
.store__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }

.hours { margin-top: 20px; border-top: var(--hair) solid var(--line); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: var(--hair) solid var(--line); }
.hours dt { font-weight: 400; }
.hours dd { color: var(--mute); text-align: right; }

/* ---------- Pagina del negozio ---------- */

.shop__head { padding-bottom: clamp(20px, 3vw, 36px); }
.shop__open { margin-top: 18px; font-size: 0.9375rem; }
.shop__top { display: grid; gap: clamp(28px, 4vw, 64px); margin: 0 var(--pad); padding-top: clamp(24px, 3vw, 40px); border-top: var(--hair) solid var(--ink); }
@media (min-width: 900px) { .shop__top { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; } }
/* La foto resta in colonna (al massimo ~700 px): a tutta pagina perderebbe nitidezza. */
.shop__photo { overflow: hidden; max-width: 720px; aspect-ratio: 3 / 2; background: var(--paper); }
.shop__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.shop__fact { display: grid; align-content: start; gap: 14px; padding: 24px 0 28px; border-bottom: var(--hair) solid var(--line); }
.shop__fact:first-child { padding-top: 0; }
.shop__fact:last-child { border-bottom: 0; }
.shop__big { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; }
.shop__big a { border-bottom: var(--hair) solid var(--line-strong); }
.shop__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shop__fact .hours { margin-top: 0; font-size: 1rem; }
.shop__fact .hours dd { color: var(--ink); }

.shop__about { display: grid; gap: 16px; margin: clamp(36px, 5vw, 72px) var(--pad) 0; padding-top: clamp(28px, 4vw, 48px); border-top: var(--hair) solid var(--line); }
@media (min-width: 900px) { .shop__about { grid-template-columns: 1fr 2fr; } }
.shop__text { max-width: 38rem; font-size: 1.1875rem; line-height: 1.7; }
.shop__text p + p { margin-top: 1em; }

/* Recensioni */
.reviews { margin: clamp(48px, 7vw, 104px) 0 0; padding: clamp(48px, 7vw, 104px) var(--pad); background: var(--paper); }
.reviews__head { margin-bottom: clamp(24px, 4vw, 48px); }
.reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-top: var(--hair) solid var(--ink); border-left: var(--hair) solid var(--line); }
.review { display: grid; align-content: start; gap: 18px; padding: clamp(22px, 3vw, 36px); border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); background: var(--white); }
.stars { display: inline-flex; gap: 3px; }
.review__text { margin: 0; font-size: 1.1875rem; font-weight: 300; line-height: 1.55; }
.review__text p + p { margin-top: 0.8em; }
.review__by { display: grid; gap: 2px; margin-top: auto; font-size: 0.9375rem; }
.review__by b { font-weight: 500; }
.review__by span { color: var(--mute); }

.shop__map { margin: clamp(48px, 7vw, 104px) var(--pad) 0; border: var(--hair) solid var(--line); }
.reviews + .shop__map { margin-top: 0; border-top: 0; margin-inline: 0; border-inline: 0; }
.shop__map iframe { display: block; width: 100%; height: clamp(300px, 46vw, 480px); border: 0; filter: grayscale(1) contrast(1.05); }

.shop__others { padding: clamp(40px, 6vw, 88px) var(--pad); }
.shop__others ul { margin-top: 18px; border-top: var(--hair) solid var(--ink); }
.shop__others a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: 22px 0; border-bottom: var(--hair) solid var(--line); transition: padding 0.4s var(--ease); }
.shop__others a:hover { padding-left: 12px; }
.shop__other-name { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 200; letter-spacing: -0.02em; }
.shop__other-address { grid-column: 1; color: var(--mute); }
.shop__others .icon { grid-row: 1 / 3; grid-column: 2; width: 32px; height: 32px; }

/* ---------- Grandezza del testo ---------- */

.textsize { display: inline-flex; align-items: baseline; gap: 2px; margin-right: 4px; }
.textsize button { display: grid; place-items: end center; width: 34px; height: 40px; padding-bottom: 9px; font-weight: 400; line-height: 1; color: var(--mute); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.textsize button:nth-child(1) { font-size: 14px; }
.textsize button:nth-child(2) { font-size: 18px; }
.textsize button:nth-child(3) { font-size: 23px; }
.textsize button:hover { color: var(--ink); }
.textsize button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.footer .textsize button { color: rgb(255 255 255 / 0.6); }
.footer .textsize button:hover, .footer .textsize button[aria-pressed="true"] { color: var(--white); border-color: var(--white); }
.footer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px var(--pad) 28px; font-size: 0.8125rem; color: rgb(255 255 255 / 0.6); }
.footer__tools .link { margin-left: auto; color: var(--white); }
@media (max-width: 520px) { .header .textsize button:nth-child(2) { display: none; } .header .textsize button { width: 30px; } }

/* ---------- Ricerca dei modelli ---------- */

.sheet.find { width: 100vw; max-width: none; height: auto; max-height: 100svh; margin: 0; border-width: 0 0 var(--hair); }
.sheet.find[open] { animation-name: find-in; }
@keyframes find-in { from { opacity: 0; transform: translateY(-24px); } }
.find__in { padding: 0 var(--pad) clamp(24px, 4vw, 48px); }
.find__form { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; min-height: var(--head); padding-right: 52px; background: var(--white); border-bottom: var(--hair) solid var(--ink); }
.find__form > .icon { width: 28px; height: 28px; }
.find__form input { flex: 1; min-width: 0; height: 64px; border: 0; outline: 0; background: none; font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 200; letter-spacing: -0.01em; }
.find__form input::placeholder { color: var(--mute); opacity: 0.8; }
.find__form input::-webkit-search-cancel-button { display: none; }
.find .sheet__close { top: 50%; right: 0; translate: 0 -50%; }
.find__hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.find__hints .eyebrow { margin-right: 10px; }
.find__status { min-height: 1.6em; margin-top: 20px; color: var(--mute); }
.find__status:empty { display: none; }
.find__grid { margin-top: 16px; }
.find__grid:empty { display: none; }
.find__all { margin-top: 24px; text-align: center; }

/* ---------- Test: trova il modello ---------- */

.quizcta { display: grid; gap: clamp(28px, 5vw, 72px); padding: clamp(56px, 8vw, 120px) var(--pad); border-top: var(--hair) solid var(--line); background: var(--paper); }
@media (min-width: 900px) { .quizcta { grid-template-columns: 7fr 4fr; align-items: end; } }
.quizcta__lead { max-width: 36rem; margin: 20px 0 30px; font-size: 1.125rem; }
.quizcta__list { border-top: var(--hair) solid var(--ink); }
.quizcta__list li { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: var(--hair) solid var(--line); font-size: 1.125rem; font-weight: 300; }
.quizcta__list span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--mute); font-variant-numeric: tabular-nums; }

.sheet.quiz { width: min(1240px, 100vw); height: min(100svh, 940px); max-height: none; }
@media (max-width: 1240px) { .sheet.quiz { height: 100svh; border: 0; } }
.quiz__in { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.quiz__top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 24px; min-height: 68px; padding: 0 68px 0 clamp(20px, 4vw, 56px); background: var(--white); border-bottom: var(--hair) solid var(--line); }
.quiz .sheet__close { top: 12px; right: 12px; }
.quiz__segments { display: flex; flex: 1; gap: 5px; max-width: 420px; margin-left: auto; }
.quiz__segments i { flex: 1; height: 3px; background: var(--line); transition: background 0.4s var(--ease), transform 0.4s var(--ease); }
.quiz__segments i.is-done { background: var(--ink); }
.quiz__segments i.is-now { background: var(--ink); transform: scaleY(2.4); }
@media (max-width: 640px) { .quiz__top .eyebrow { display: none; } .quiz__segments { margin-left: 0; max-width: none; } }

.quiz__steps { flex: 1; }
.quiz__step:not([hidden]) { display: grid; min-height: 100%; animation: quiz-in 0.55s var(--ease); }
@media (min-width: 960px) { .quiz__step:not([hidden]) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
@keyframes quiz-in { from { opacity: 0; translate: 32px 0; } }

.quiz__ask { position: relative; padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 56px); overflow: hidden; }
@media (min-width: 960px) { .quiz__step .quiz__ask { border-right: var(--hair) solid var(--line); padding-top: clamp(40px, 7vw, 96px); } }
.quiz__num {
	display: block; margin-bottom: clamp(8px, 2vw, 24px);
	font-size: clamp(5rem, 13vw, 12rem); font-weight: 100; line-height: 0.8; letter-spacing: -0.05em;
	color: transparent; -webkit-text-stroke: var(--hair) rgb(10 10 10 / 0.5); font-variant-numeric: tabular-nums;
}
.quiz__q { font-size: clamp(1.875rem, 3.6vw, 3.25rem); font-weight: 100; outline: 0; }
.quiz__hint { max-width: 40rem; margin-top: 14px; color: var(--mute); }

/* Le tessere riempiono tutta l'altezza disponibile: poche risposte = tessere grandi. */
.quiz__options { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; border-left: var(--hair) solid var(--line); }
@media (min-width: 640px) { .quiz__options { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .quiz__options { border-left: 0; } }
.quiz__options--cosa, .quiz__options--per, .quiz__options--montatura, .quiz__options--misura { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.quiz__opt {
	position: relative; display: grid; grid-template-rows: 1fr auto; text-align: left;
	border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line);
	background: var(--white); transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.quiz__visual { display: grid; place-items: center; min-height: clamp(120px, 20svh, 240px); padding: 10% 14%; overflow: hidden; container-type: size; background: var(--white); transition: background 0.3s var(--ease); }
.quiz__visual .trim { transition: transform 0.6s var(--ease); }
.quiz__opt:hover .quiz__visual .trim { transform: scale(1.08) rotate(-2deg); }
.quiz__visual--face { padding: 0; }
.quiz__visual--face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; filter: grayscale(1); transition: filter 0.5s, transform 0.8s var(--ease); }
.quiz__opt:hover .quiz__visual--face img, .quiz__opt[aria-pressed="true"] .quiz__visual--face img { filter: none; transform: scale(1.04); }
.quiz__visual--icon svg, .quiz__visual--size svg, .quiz__visual--none svg { height: auto; transition: transform 0.5s var(--ease); }
.quiz__opt:hover .quiz__visual--icon svg, .quiz__opt:hover .quiz__visual--size svg { transform: scale(1.1); }
.quiz__visual--logo .marquee__logo { width: 62% !important; max-height: 60%; opacity: 1; }
.quiz__visual--logo .marquee__name { font-size: clamp(1.125rem, 2vw, 1.625rem); font-weight: 200; letter-spacing: -0.01em; text-align: center; }

.quiz__swatch { width: min(46cqw, 62cqh, 150px); aspect-ratio: 1; border-radius: 50%; border: var(--hair) solid var(--line-strong); transition: transform 0.5s var(--ease); }
.quiz__opt:hover .quiz__swatch { transform: scale(1.1); }
.quiz__swatch[data-swatch="colore-nero"] { background: radial-gradient(circle at 32% 28%, #4a4a4a, #0a0a0a 62%); }
.quiz__swatch[data-swatch="colore-havana"] { background: radial-gradient(circle at 28% 30%, #d99a3c 0 14%, transparent 15%), radial-gradient(circle at 68% 62%, #c9822b 0 18%, transparent 19%), radial-gradient(circle at 58% 22%, #a8611c 0 10%, transparent 11%), radial-gradient(circle at 30% 74%, #b8731f 0 12%, transparent 13%), #3a1f0c; }
.quiz__swatch[data-swatch="colore-metallo"] { background: linear-gradient(115deg, #e8d28a 0 48%, #f7efcf 50%, #cfd3d8 52% 100%); }
.quiz__swatch[data-swatch="colore-chiari"] { background: linear-gradient(135deg, rgb(255 255 255 / 0.9), rgb(214 222 230 / 0.6)); }
.quiz__swatch[data-swatch="colore-colorati"] { background: conic-gradient(#b3122e, #c2478f, #6a3fa0, #1f4f9c, #1d6b6b, #b3122e); }
.quiz__swatch[data-swatch="colore-tutti"] { background: conic-gradient(#0a0a0a 0 25%, #8a5a25 0 50%, #e2cf8f 0 75%, #f1f3f5 0); }
.quiz__swatch[data-swatch="lenti-scure"] { background: radial-gradient(circle at 30% 26%, #6b6b6b, #1b1b1b 70%); }
.quiz__swatch[data-swatch="lenti-sfumate"] { background: linear-gradient(#3a2f2a, rgb(190 170 160 / 0.25)); }
.quiz__swatch[data-swatch="lenti-specchiate"] { background: linear-gradient(140deg, #2a4d8f, #9fd0e8 46%, #f3f7fa 52%, #6a8fc0 60%, #23386b); }
.quiz__swatch[data-swatch="lenti-trasparenti"] { background: linear-gradient(140deg, rgb(255 255 255 / 0.2), rgb(228 236 242 / 0.7) 48%, #fff 52%, rgb(228 236 242 / 0.5)); border-color: var(--ink); }
.quiz__swatch[data-swatch="lenti-tutte"] { background: conic-gradient(#1b1b1b 0 33%, #9fd0e8 0 66%, #efe6e0 0); }

.quiz__label { display: block; padding: 14px 18px 18px; border-top: var(--hair) solid var(--line); }
.quiz__label b { display: block; font-size: 1.125rem; font-weight: 400; line-height: 1.25; }
.quiz__label small { display: block; margin-top: 3px; font-size: 0.875rem; color: var(--mute); transition: color 0.3s; }
.quiz__opt:hover { background: var(--paper); }
.quiz__opt:hover .quiz__visual:not(.quiz__visual--face) { background: var(--paper); }
.quiz__opt[aria-pressed="true"] .quiz__label { background: var(--ink); color: var(--white); border-color: var(--ink); }
.quiz__opt[aria-pressed="true"] .quiz__label small { color: rgb(255 255 255 / 0.72); }
.quiz__opt[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ink); pointer-events: none; }

.quiz__result:not([hidden]) { flex: 1; animation: quiz-in 0.55s var(--ease); }
.quiz__result .quiz__ask { padding-bottom: 0; }
.quiz__result .quiz__num { font-size: clamp(3.5rem, 8vw, 7rem); }
.quiz__profile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.quiz__profile span { padding: 6px 14px; border: var(--hair) solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; }
.quiz__grid { margin: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 56px) 0; }
@media (min-width: 700px) {
	.quiz__grid { grid-template-columns: repeat(4, 1fr); }
	.quiz__grid .card:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
	.quiz__grid .card:first-child .card__media { flex: 1; aspect-ratio: auto; min-height: 280px; }
	.quiz__grid .card:first-child .card__title { font-size: 1.75rem; font-weight: 200; }
}
.quiz__best { background: var(--ink); color: var(--white); }
.quiz__form { display: grid; gap: 24px clamp(24px, 5vw, 64px); margin: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 56px) 24px; padding: clamp(24px, 4vw, 44px); background: var(--ink); color: var(--white); }
@media (min-width: 800px) { .quiz__form { grid-template-columns: 1fr 1fr; } }
.quiz__form .eyebrow, .quiz__form .quiz__hint, .quiz__form .field span, .quiz__form .check { color: rgb(255 255 255 / 0.72); }
.quiz__form-title { margin-top: 10px; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 100; letter-spacing: -0.02em; line-height: 1.05; }
.quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; align-content: start; }
.quiz__fields .field--full { grid-column: 1 / -1; }
.quiz__form .field input, .quiz__form .field select { color: var(--white); border-color: rgb(255 255 255 / 0.5); }
.quiz__form .field select option { color: var(--ink); }
.quiz__form .field input:focus, .quiz__form .field select:focus { border-color: var(--white); box-shadow: 0 1px 0 var(--white); }
.quiz__form .check input { accent-color: var(--white); }
.quiz__fields .check { margin-top: 14px; }
.quiz__fields .btn { margin-top: 6px; border-color: var(--white); background: var(--white); color: var(--ink); }
.quiz__fields .btn:hover { background: transparent; color: var(--white); }
.quiz__form .inquiry__status.is-error { color: #ffb4b4; }
.quiz__form.is-sent .field, .quiz__form.is-sent .check, .quiz__form.is-sent .btn { display: none; }
.quiz__nav { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; gap: 16px; padding: 14px clamp(20px, 4vw, 56px) 16px; background: var(--white); border-top: var(--hair) solid var(--line); }
.quiz__nav:not(:has(button:not([hidden]))) { display: none; }

/* ---------- Invito finale ---------- */

.cta { display: grid; justify-items: center; gap: 22px; padding: clamp(72px, 12vw, 180px) var(--pad); background: var(--ink); color: var(--white); text-align: center; }
.cta__title { font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 100; }
.cta__text { max-width: 34rem; color: rgb(255 255 255 / 0.66); }

/* ---------- Testata di pagina ---------- */

.page-head { padding: clamp(40px, 6vw, 88px) var(--pad) clamp(28px, 4vw, 48px); }
.page-head__title { margin-top: 14px; font-size: clamp(2.5rem, 6.5vw, 5.5rem); font-weight: 100; }
.page-head__text { max-width: 44rem; margin-top: 18px; color: var(--mute); }

/* ---------- Filtri ---------- */

.filters {
	position: sticky; top: var(--head); z-index: 20;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
	padding: 0 var(--pad);
	background: rgb(251 251 253 / 0.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line);
}
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; min-height: 54px; }
.filters__row--end { margin-left: auto; }

.filter { position: relative; }
.filter summary {
	display: flex; align-items: center; gap: 8px; height: 54px;
	font-size: 0.8125rem; font-weight: 400; cursor: pointer; list-style: none; white-space: nowrap;
}
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s; }
.filter[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.filter.is-active summary { font-weight: 500; }
.filter ul {
	position: absolute; top: 100%; left: -18px; z-index: 5;
	min-width: 230px; max-height: 60svh; overflow-y: auto; padding: 8px 0;
	background: var(--white); border: var(--hair) solid var(--line-strong);
}
.filter li a { display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: 0.875rem; }
.filter li a::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--line-strong); border-radius: 50%; }
.filter li a[aria-current]::before { background: var(--ink); border-color: var(--ink); }
.filter li a:hover { background: var(--paper); }

.search { display: flex; align-items: center; border-bottom: var(--hair) solid var(--line-strong); }
.search input { width: 150px; height: 34px; border: 0; background: none; font-size: 0.8125rem; outline: 0; }
.search button { display: grid; place-items: center; width: 34px; height: 34px; }

.grid--catalog { border-top: 0; }

.pager { padding: 40px var(--pad) 72px; }
.pager .nav-links { display: flex; justify-content: center; align-items: center; gap: 6px; }
.pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; font-size: 0.875rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.pager .page-numbers.current { border: var(--hair) solid var(--ink); }
.pager a.page-numbers:hover { background: var(--paper); }

.empty { display: grid; justify-items: center; gap: 20px; padding: clamp(64px, 10vw, 140px) var(--pad); text-align: center; }
.empty--page { justify-items: start; text-align: left; }

/* ---------- Scheda modello ---------- */

.model { display: grid; border-bottom: var(--hair) solid var(--line); }
@media (min-width: 900px) { .model { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.model__gallery { border-bottom: var(--hair) solid var(--line); }
@media (min-width: 900px) {
	.model__gallery { position: sticky; top: var(--head); align-self: start; height: calc(100svh - var(--head)); display: flex; flex-direction: column; border-bottom: 0; border-right: var(--hair) solid var(--line); }
}
.model__stage { flex: 1; min-height: min(70vw, 60svh); display: grid; background: var(--white); }
.model__shot { grid-area: 1 / 1; container-type: size; display: grid; place-items: center; padding: 10% 12%; background: var(--white); animation: shot 0.5s var(--ease); }
@keyframes shot { from { opacity: 0; transform: scale(0.97); } }
.model__thumbs { display: flex; overflow-x: auto; border-top: var(--hair) solid var(--line); scrollbar-width: none; }
.model__thumbs li { flex: 0 0 96px; border-right: var(--hair) solid var(--line); }
.model__thumbs button { container-type: size; display: grid; place-items: center; width: 100%; height: 76px; padding: 14px; background: var(--white); opacity: 0.45; transition: opacity 0.25s; }
.model__thumbs button:hover, .model__thumbs button[aria-pressed="true"] { opacity: 1; }
.model__thumbs button[aria-pressed="true"] { box-shadow: inset 0 -1px 0 var(--ink); }

.model__info { padding: clamp(32px, 5vw, 72px) var(--pad) clamp(48px, 6vw, 88px); }
.model__title { margin-top: 18px; font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 100; }
.model__brand { display: block; margin-bottom: 10px; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; }
.model__price { margin-top: 14px; font-size: 1.25rem; }
.model__lead { margin-top: 20px; color: var(--mute); max-width: 34rem; }
.model__lead p + p { margin-top: 0.8em; }
.model__actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.model__actions .fav { border: var(--hair) solid var(--line-strong); width: 48px; height: 48px; }

.model__phones { margin-top: 28px; border-top: var(--hair) solid var(--line); }
.model__phones a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: var(--hair) solid var(--line); font-size: 0.875rem; transition: padding 0.3s var(--ease); }
.model__phones a:hover { padding-left: 8px; }
.model__phones a span:last-child { font-variant-numeric: tabular-nums; color: var(--mute); }

.specs { margin-top: 40px; border-top: var(--hair) solid var(--ink); font-size: 1rem; }
.specs > div { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr; gap: 16px; padding: 12px 0; border-bottom: var(--hair) solid var(--line); }
.specs dt { color: var(--mute); }
.specs dd a { border-bottom: var(--hair) solid var(--line); }
.specs dd a:hover { border-color: var(--ink); }
.model__text { margin-top: 36px; padding: 0; }

/* ---------- Testi liberi ---------- */

.prose { max-width: calc(720px + var(--pad) * 2); }
.prose.section { margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.prose h3 { margin-top: 1.4em; font-size: 1.375rem; font-weight: 300; }
.prose a { border-bottom: var(--hair) solid var(--line-strong); }
.prose ul, .prose ol { padding-left: 1.2em; list-style: revert; }
.prose img { height: auto; }
.prose .alignwide { max-width: 1280px; }

.posts { display: grid; gap: 0; max-width: 900px; }
.post-row { padding: 28px 0; border-bottom: var(--hair) solid var(--line); }
.post-row__title { margin: 8px 0; font-size: 1.75rem; }
.post-row__text { color: var(--mute); }

/* ---------- Piè di pagina ---------- */

.footer { background: var(--ink); color: var(--white); border-top: var(--hair) solid rgb(255 255 255 / 0.2); }
.footer__in { display: grid; gap: 36px; padding: clamp(48px, 6vw, 88px) var(--pad); }
@media (min-width: 800px) { .footer__in { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer__mail { margin-top: 20px; }
.footer__social { display: flex; gap: 20px; margin-top: 10px; font-size: 0.875rem; }
.footer a { border-bottom: var(--hair) solid transparent; transition: border-color 0.25s; }
.footer a:hover { border-color: currentColor; }
.footer__store { font-size: 0.9375rem; color: rgb(255 255 255 / 0.78); display: grid; gap: 8px; align-content: start; }
.footer__store a { color: var(--white); }
.footer__label { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px var(--pad) 8px; border-top: var(--hair) solid rgb(255 255 255 / 0.2); font-size: 0.8125rem; color: rgb(255 255 255 / 0.7); }
.footer__legal p:last-child { display: flex; gap: 18px; }

/* ---------- Finestre ---------- */

.sheet {
	width: min(640px, 100vw - 24px); max-width: none; max-height: min(92svh, 860px);
	padding: 0; border: var(--hair) solid var(--line-strong); background: var(--white); color: var(--ink);
	overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(10 10 10 / 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet 0.4s var(--ease); }
@keyframes sheet { from { opacity: 0; transform: translateY(16px); } }
.sheet--side { margin: 0 0 0 auto; height: 100svh; max-height: none; width: min(440px, 100vw); border-width: 0 0 0 var(--hair); }
.sheet--side[open] { animation-name: side; }
@keyframes side { from { transform: translateX(40px); opacity: 0; } }
.sheet__in { position: relative; padding: clamp(28px, 5vw, 48px); }
.sheet__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; }
.sheet__title { margin: 10px 0 24px; font-size: clamp(1.875rem, 4vw, 2.75rem); }

.inquiry__models { margin-bottom: 20px; padding: 14px 16px; border: var(--hair) solid var(--line); font-size: 0.875rem; }
.inquiry__models li + li { margin-top: 4px; }
.inquiry__grid { display: grid; gap: 4px 20px; }
@media (min-width: 560px) { .inquiry__grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 2px; padding-top: 10px; }
.field--full { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; }
.field span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 42px; padding: 8px 0;
	border: 0; border-bottom: var(--hair) solid var(--line-strong); border-radius: 0; background: none;
	font-size: 1rem; outline: 0; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.check { display: flex; gap: 10px; margin-top: 22px; font-size: 0.8125rem; color: var(--mute); }
.check input { flex: none; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink); }
.check a { border-bottom: var(--hair) solid currentColor; }
.inquiry__status { min-height: 1.5em; margin-top: 14px; font-size: 0.875rem; font-weight: 400; }
.inquiry__status.is-error { color: #b00020; }
.inquiry__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.inquiry__phones { margin-top: 36px; }
.inquiry__phones ul { margin-top: 10px; border-top: var(--hair) solid var(--line); }
.inquiry__phones a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: var(--hair) solid var(--line); font-size: 0.875rem; }
.inquiry__phones a:hover { padding-left: 6px; }
.inquiry.is-sent .inquiry__grid, .inquiry.is-sent .check, .inquiry.is-sent .inquiry__actions, .inquiry.is-sent .inquiry__models { display: none; }

.favs { border-top: var(--hair) solid var(--line); }
.favs:empty { display: none; }
.favs li { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 14px; padding: 10px 0; border-bottom: var(--hair) solid var(--line); }
.favs img { width: 84px; height: 60px; object-fit: contain; mix-blend-mode: multiply; }
.favs a { font-size: 0.9375rem; }
.favs button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--mute); }
.favs button:hover { color: var(--ink); }
.favs__empty { color: var(--mute); }
.favs:not(:empty) ~ .favs__empty { display: none; }
[data-fav-inquiry] { margin-top: 24px; width: 100%; }

/* ---------- Comparsa allo scorrimento (solo browser che la supportano) ---------- */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.section__head, .card, .store, .type, .cta > * {
			animation: rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 55%;
		}
		@keyframes rise { from { opacity: 0; translate: 0 28px; } }
	}
}

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

@media print {
	.header, .footer, .stage__controls, .filters, .cta, dialog { display: none !important; }
}
