/* ==========================================================================
   Pixel Faces – landing (child theme di Twenty Twenty-Two)
   ========================================================================== */

@font-face {
	font-family: "Silkscreen";
	src: url("../fonts/silkscreen-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Silkscreen";
	src: url("../fonts/silkscreen-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "Space Grotesk";
	src: url("../fonts/space-grotesk.woff2") format("woff2");
	font-weight: 300 700;
	font-display: swap;
}

:root {
	--pf-ink: #0f0d0b;
	--pf-ink-2: #1c1916;
	--pf-paper: #f3eee5;
	--pf-white: #fff;
	--pf-blue: #2fb3d6;
	--pf-pearl: #8db1cb;
	--pf-ochre: #b5843f;
	--pf-red: #e2452f;
	--pf-tt-cyan: #25f4ee;
	--pf-tt-red: #fe2c55;
	--pf-pixel: "Silkscreen", ui-monospace, monospace;
	--pf-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pf-gutter: clamp(16px, 4vw, 40px);
	--pf-step: steps(5, end);
}

body.pf-landing {
	background: var(--pf-ink);
	color: var(--pf-paper);
}

/* Le sezioni si toccano: niente block gap di Twenty Twenty-Two tra una e l'altra. */
.pf-main,
.pf-main > .wp-block-post-content > .pf-section,
.pf-section {
	margin-block: 0 !important;
}

.pf-section {
	position: relative;
	overflow: hidden;
	padding-block: clamp(72px, 10vw, 140px);
	font-family: var(--pf-sans);
	font-size: clamp(17px, 1.2vw, 19px);
	line-height: 1.55;
}

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

.pf-section [hidden] {
	display: none !important;
}

.pf-dark {
	background: var(--pf-ink);
	color: var(--pf-paper);
}

.pf-light {
	background: var(--pf-paper);
	color: var(--pf-ink);
}

.pf-section a {
	color: inherit;
}

.pf-wrap {
	width: min(1200px, 100% - 2 * var(--pf-gutter));
	margin-inline: auto !important;
}

/* Spaziature verticali dentro i gruppi (sostituiscono il block gap del tema). */
.pf-section :where(.wp-block-group) > * {
	margin-block: 0;
}

.pf-section :where(.wp-block-group) > * + * {
	margin-block-start: 1.25rem;
}

.pf-section > * + * {
	margin-block-start: clamp(32px, 5vw, 56px);
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

.pf-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--pf-pixel);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

.pf-kicker::before {
	content: "";
	width: 10px;
	height: 10px;
	background: currentColor;
	box-shadow: 14px 0 0 var(--pf-blue);
	margin-right: 14px;
}

.pf-section .pf-display,
.pf-section .pf-title {
	font-family: var(--pf-pixel);
	font-weight: 400;
	letter-spacing: -0.01em;
	text-wrap: balance;
	color: inherit;
}

.pf-section .pf-display {
	font-size: clamp(36px, 5.6vw, 80px);
	line-height: 1.02;
}

.pf-section .pf-title {
	font-size: clamp(30px, 4.4vw, 58px);
	line-height: 1.05;
}

.pf-lead {
	font-size: clamp(18px, 1.5vw, 22px);
	max-width: 36em;
	opacity: 0.92;
}

.pf-prose p {
	max-width: 38em;
}

.pf-tip {
	display: inline-block;
	padding: 12px 16px;
	border: 3px dashed currentColor;
	font-family: var(--pf-pixel);
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Bottoni con ombra "pixel"
   -------------------------------------------------------------------------- */

.pf-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 22px;
}

.pf-section .pf-btn .wp-block-button__link {
	--pf-shadow: var(--pf-blue);
	display: inline-block;
	padding: 16px 24px;
	border: 3px solid currentColor;
	border-radius: 0;
	font-family: var(--pf-pixel);
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 6px 6px 0 var(--pf-shadow);
	transition: transform 0.18s steps(3), box-shadow 0.18s steps(3);
}

.pf-section .pf-btn .wp-block-button__link:hover,
.pf-section .pf-btn .wp-block-button__link:focus-visible {
	transform: translate(-3px, -3px);
	box-shadow: 9px 9px 0 var(--pf-shadow);
}

.pf-section .pf-btn .wp-block-button__link:active {
	transform: translate(4px, 4px);
	box-shadow: 2px 2px 0 var(--pf-shadow);
}

.pf-section .pf-btn--light .wp-block-button__link {
	background: var(--pf-paper);
	color: var(--pf-ink);
	border-color: var(--pf-paper);
}

.pf-section .pf-btn--ghost .wp-block-button__link {
	--pf-shadow: transparent;
	background: transparent;
	color: inherit;
}

.pf-section .pf-btn--ghost .wp-block-button__link:hover {
	--pf-shadow: var(--pf-ochre);
}

.pf-section .pf-btn--dark .wp-block-button__link {
	--pf-shadow: var(--pf-red);
	background: var(--pf-ink);
	color: var(--pf-paper);
	border-color: var(--pf-ink);
}

.pf-section .pf-btn--meta .wp-block-button__link {
	--pf-shadow: #7a5cff;
	background: var(--pf-paper);
	color: var(--pf-ink);
	border-color: var(--pf-paper);
}

.pf-section .pf-btn--tiktok .wp-block-button__link {
	background: #000;
	color: #fff;
	border-color: #000;
	box-shadow: -4px -4px 0 var(--pf-tt-cyan), 4px 4px 0 var(--pf-tt-red);
}

.pf-section .pf-btn--tiktok .wp-block-button__link:hover,
.pf-section .pf-btn--tiktok .wp-block-button__link:focus-visible {
	box-shadow: -7px -7px 0 var(--pf-tt-cyan), 7px 7px 0 var(--pf-tt-red);
}

.pf-chip {
	appearance: none;
	padding: 10px 14px;
	border: 3px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: var(--pf-pixel);
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s steps(2), color 0.15s steps(2);
}

.pf-chip:hover,
.pf-chip[aria-pressed="true"] {
	color: var(--pf-ink);
	background: var(--pf-paper);
}

.pf-light .pf-chip:hover,
.pf-light .pf-chip[aria-pressed="true"] {
	color: var(--pf-paper);
	background: var(--pf-ink);
}

/* --------------------------------------------------------------------------
   Navigazione
   -------------------------------------------------------------------------- */

.pf-nav {
	position: absolute;
	z-index: 50;
	inset: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px var(--pf-gutter);
	transition: background 0.2s steps(3);
}

body.pf-landing .pf-nav {
	position: fixed;
}

body.admin-bar .pf-nav {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.pf-nav.is-solid {
	background: rgb(15 13 11 / 0.92);
	backdrop-filter: blur(6px);
}

.pf-nav__logo {
	display: inline-flex;
	flex-direction: column;
	padding: 6px 9px 5px;
	background: var(--pf-white);
	color: var(--pf-ink) !important;
	font-family: var(--pf-pixel);
	font-weight: 700;
	font-size: 15px;
	line-height: 0.95;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.pf-nav__links {
	display: flex;
	gap: clamp(12px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pf-nav__links a {
	color: var(--pf-paper);
	font-family: var(--pf-pixel);
	font-size: 13px;
	text-decoration: none;
	text-transform: uppercase;
}

.pf-nav__links a:hover,
.pf-nav__links a:focus-visible {
	color: var(--pf-ink);
	background: var(--pf-paper);
	outline: 4px solid var(--pf-paper);
}

@media (max-width: 760px) {
	.pf-nav__links {
		gap: 14px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.pf-nav__links li:nth-child(-n+3) {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.pf-hero {
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding-block: clamp(110px, 12vw, 150px) clamp(80px, 8vw, 110px);
	background: var(--pf-ink);
	color: var(--pf-paper);
}

.pf-hero > * + * {
	margin-block-start: 0;
}

.pf-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.55;
	image-rendering: pixelated;
	pointer-events: none;
}

.pf-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: clamp(32px, 6vw, 96px);
}

.pf-hero__inner > * + * {
	margin-block-start: 0;
}

.pf-hero__art {
	position: relative;
	justify-self: center;
	width: min(100%, 440px);
	margin: 0;
}

.pf-hero__art img,
.pf-hero__art canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	box-shadow: 18px 18px 0 rgb(255 255 255 / 0.07);
}

.pf-hero__art canvas {
	position: absolute;
	top: 0;
	left: 0;
	image-rendering: pixelated;
}

.pf-hero__res {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
	font-family: var(--pf-pixel);
	font-size: 13px;
}

.pf-replay {
	padding: 6px 10px;
	border: 2px solid currentColor;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.pf-replay:hover {
	background: var(--pf-paper);
	color: var(--pf-ink);
}

.pf-scroll {
	position: absolute;
	left: 50%;
	bottom: 26px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 3px solid var(--pf-paper);
}

.pf-scroll span {
	position: absolute;
	left: 50%;
	top: 6px;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	background: var(--pf-paper);
	animation: pf-scroll 1.6s steps(4) infinite;
}

@keyframes pf-scroll {
	to {
		transform: translateY(18px);
		opacity: 0;
	}
}

@media (max-width: 860px) {
	.pf-hero__inner {
		grid-template-columns: 1fr;
	}

	.pf-hero__art {
		width: min(78%, 340px);
		order: -1;
	}

	.pf-scroll {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Il progetto
   -------------------------------------------------------------------------- */

.pf-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: clamp(32px, 6vw, 96px);
}

.pf-split > * + * {
	margin-block-start: 0;
}

@media (max-width: 860px) {
	.pf-split {
		grid-template-columns: 1fr;
	}

	.pf-split--flip > :first-child {
		order: 2;
	}
}

.pf-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	padding: 0;
	list-style: none;
}

.pf-stats li {
	padding-top: 16px;
	border-top: 6px solid var(--pf-ink);
}

.pf-stats li:nth-child(2) { border-color: var(--pf-blue); }
.pf-stats li:nth-child(3) { border-color: var(--pf-ochre); }
.pf-stats li:nth-child(4) { border-color: var(--pf-tt-red); }

.pf-stats strong {
	display: block;
	font-family: var(--pf-pixel);
	font-size: clamp(44px, 6vw, 76px);
	font-weight: 400;
	line-height: 1;
}

.pf-stats span {
	display: block;
	margin-top: 8px;
	font-size: 16px;
}

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

/* --------------------------------------------------------------------------
   Gioco "Chi è?"
   -------------------------------------------------------------------------- */

.pf-head {
	max-width: 1200px;
}

.pf-game__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.pf-score {
	margin: 0 0 0 auto;
	font-family: var(--pf-pixel);
	font-size: 15px;
}

.pf-score b {
	display: inline-block;
	min-width: 1.4em;
	color: var(--pf-blue);
	font-weight: 400;
	text-align: right;
}

.pf-section > .pf-game__bar {
	margin-block-start: clamp(24px, 3vw, 40px);
}

.pf-section > .pf-guess-grid {
	margin-block-start: 22px;
}

.pf-guess-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(44%, 190px), 1fr));
	gap: clamp(12px, 2vw, 22px);
}

.pf-section .pf-guess-grid > * {
	margin: 0;
}

.pf-guess {
	position: relative;
	overflow: hidden;
	aspect-ratio: 300 / 470;
	background: var(--pf-ink-2);
	cursor: pointer;
	outline: 3px solid transparent;
	outline-offset: 4px;
	transition: outline-color 0.15s steps(2), transform 0.2s steps(3);
}

.pf-guess:hover,
.pf-guess:focus-visible {
	outline-color: var(--pf-paper);
	transform: translateY(-4px);
}

.pf-section .pf-guess img,
.pf-section .pf-guess canvas {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pf-section .pf-guess canvas {
	position: absolute;
	inset: 0;
	image-rendering: pixelated;
	transition: filter 0.3s steps(4);
}

.pf-js .pf-guess figcaption {
	transform: translateY(105%);
}

.pf-section .pf-guess figcaption {
	position: absolute;
	z-index: 2;
	inset: auto 0 0;
	margin: 0;
	padding: 10px 12px;
	background: var(--pf-paper);
	color: var(--pf-ink);
	font-family: var(--pf-pixel);
	font-size: 12px;
	line-height: 1.25;
	text-align: left;
	transition: transform 0.35s steps(5);
}

.pf-guess.is-revealed figcaption {
	transform: none;
}

.pf-guess__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	gap: 3px;
	padding: 6px;
	background: var(--pf-ink);
}

.pf-guess__badge i {
	width: 8px;
	height: 8px;
	background: rgb(255 255 255 / 0.25);
}

.pf-guess__badge i.on {
	background: var(--pf-blue);
}

.pf-guess.is-revealed .pf-guess__badge i {
	background: var(--pf-tt-cyan);
}

.pf-game.is-squint .pf-guess canvas,
.pf-game.is-squint .pf-guess img {
	filter: blur(7px) saturate(1.2);
}

/* --------------------------------------------------------------------------
   La mostra: marquee
   -------------------------------------------------------------------------- */

.pf-marquee {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
}

.pf-section .pf-marquee > * {
	flex: 0 0 auto;
	width: clamp(220px, 26vw, 340px);
	margin: 0;
}

.pf-section .pf-marquee img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.pf-js .pf-marquee {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
	animation: pf-marquee var(--pf-marquee-time, 50s) linear infinite;
}

.pf-js .pf-marquee:hover {
	animation-play-state: paused;
}

.pf-section .pf-marquee__item:nth-child(odd) {
	transform: translateY(18px);
}

@keyframes pf-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Video: copertina locale, il player YouTube arriva solo al clic. */
.pf-section .pf-video {
	max-width: 980px;
	margin-top: clamp(48px, 8vw, 96px);
}

.pf-video__frame {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--pf-ink);
	border: 3px solid var(--pf-ink);
	box-shadow: 10px 10px 0 var(--pf-blue);
	overflow: hidden;
	color: var(--pf-paper);
	text-decoration: none;
}

.pf-video__frame img,
.pf-video__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.pf-video__frame img {
	transition: transform 0.4s var(--pf-step), filter 0.4s var(--pf-step);
}

.pf-video__frame:hover img,
.pf-video__frame:focus-visible img {
	transform: scale(1.04);
	filter: brightness(0.8);
}

.pf-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 22px;
	background: var(--pf-ink);
	color: var(--pf-paper);
	box-shadow: 6px 6px 0 var(--pf-red);
	font-family: var(--pf-pixel);
	font-size: clamp(0.85rem, 1.6vw, 1.05rem);
	text-transform: uppercase;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	transition: box-shadow 0.2s var(--pf-step), transform 0.2s var(--pf-step);
}

.pf-video__frame:hover .pf-video__play,
.pf-video__frame:focus-visible .pf-video__play {
	box-shadow: 9px 9px 0 var(--pf-red);
	transform: translate(calc(-50% - 3px), calc(-50% - 3px));
}

/* Triangolo "play" disegnato a pixel. */
.pf-video__icon {
	width: 4px;
	height: 4px;
	margin-right: 12px;
	background: currentColor;
	box-shadow:
		4px 0, 8px 0, 12px 0,
		0 -4px, 4px -4px, 8px -4px, 0 -8px, 4px -8px, 0 -12px,
		0 4px, 4px 4px, 8px 4px, 0 8px, 4px 8px, 0 12px;
}

.pf-section .pf-video__caption {
	margin-top: 22px;
	font-size: 0.95rem;
	opacity: 0.75;
}

.pf-video.is-playing .pf-video__frame {
	cursor: default;
}

/* --------------------------------------------------------------------------
   Metaverso: stanza isometrica in CSS 3D
   -------------------------------------------------------------------------- */

.pf-meta {
	background:
		radial-gradient(60% 60% at 75% 50%, rgb(122 92 255 / 0.22), transparent 70%),
		var(--pf-ink);
}

.pf-room {
	--s: min(62vw, 330px);
	--rz: -40deg;
	display: grid;
	place-items: center;
	min-height: calc(var(--s) * 1.55);
	perspective: 1400px;
}

.pf-room__scene {
	position: relative;
	width: var(--s);
	height: var(--s);
	transform-style: preserve-3d;
	transform: translateY(14%) rotateX(58deg) rotateZ(var(--rz));
	transition: transform 0.4s ease-out;
	background:
		conic-gradient(#3b342c 25%, #2d2822 0 50%, #3b342c 0 75%, #2d2822 0) 0 0 / calc(var(--s) / 5) calc(var(--s) / 5);
	box-shadow: 0 0 0 4px #4a4137;
}

.pf-room__wall {
	position: absolute;
	transform-style: preserve-3d;
	background: #24201c;
}

.pf-room__wall img {
	display: block;
	object-fit: cover;
	border: 3px solid var(--pf-paper);
}

.pf-room__wall--back {
	bottom: 100%;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	width: 100%;
	height: 64%;
	background: linear-gradient(#2b2621, #211d19);
	transform-origin: bottom;
	transform: rotateX(-90deg);
}

.pf-room__wall--back img {
	width: 22%;
	aspect-ratio: 300 / 470;
}

.pf-room__wall--side {
	top: 0;
	left: 100%;
	width: 64%;
	height: 100%;
	background: linear-gradient(270deg, #1a1714, #221e1a);
	transform-origin: left;
	transform: rotateY(-90deg);
}

.pf-room__wall--side img {
	position: absolute;
	left: 50%;
	width: calc(var(--s) * 0.22);
	aspect-ratio: 300 / 470;
	transform: translate(-50%, -50%) rotate(90deg);
}

.pf-room__wall--side img:nth-child(1) { top: 30%; }
.pf-room__wall--side img:nth-child(2) { top: 72%; }

.pf-room__walker {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	transform-style: preserve-3d;
	animation: pf-walk 14s steps(56) infinite;
}

.pf-room__walker--b {
	animation-duration: 19s;
	animation-direction: reverse;
	animation-delay: -6s;
}

@keyframes pf-walk {
	0%, 100% { transform: translate(calc(var(--s) * 0.3), calc(var(--s) * 0.55)); }
	25% { transform: translate(calc(var(--s) * 0.75), calc(var(--s) * 0.55)); }
	50% { transform: translate(calc(var(--s) * 0.75), calc(var(--s) * 0.25)); }
	75% { transform: translate(calc(var(--s) * 0.3), calc(var(--s) * 0.25)); }
}

.pf-room__avatar {
	position: absolute;
	left: -9px;
	bottom: 0;
	display: grid;
	justify-items: center;
	width: 18px;
	transform-origin: bottom center;
	transform: rotateZ(calc(-1 * var(--rz))) rotateX(-90deg);
	animation: pf-bob 0.5s steps(2) infinite;
}

.pf-room__avatar i {
	display: block;
}

.pf-room__avatar i:nth-child(1) { width: 12px; height: 12px; background: #e8b98f; box-shadow: inset 0 4px 0 #3a2a1c; }
.pf-room__avatar i:nth-child(2) { width: 18px; height: 16px; background: var(--pf-blue); }
.pf-room__avatar i:nth-child(3) { width: 14px; height: 12px; background: linear-gradient(90deg, #26313d 40%, transparent 0 60%, #26313d 0); }

.pf-room__walker--b .pf-room__avatar i:nth-child(1) { background: #8a5a3b; box-shadow: inset 0 4px 0 #111; }
.pf-room__walker--b .pf-room__avatar i:nth-child(2) { background: var(--pf-tt-red); }

@keyframes pf-bob {
	50% { translate: 0 -2px; }
}

/* --------------------------------------------------------------------------
   Filtro: telefono TikTok
   -------------------------------------------------------------------------- */

.pf-phone-wrap {
	display: grid;
	justify-items: center;
	gap: 18px;
	text-align: center;
}

.pf-phone {
	width: min(300px, 76vw);
	aspect-ratio: 9 / 19;
	padding: 10px;
	border-radius: 46px;
	background: #0b0b0b;
	filter: drop-shadow(-8px -8px 0 var(--pf-tt-cyan)) drop-shadow(8px 8px 0 var(--pf-tt-red));
	animation: pf-float 4s steps(8) infinite alternate;
}

@keyframes pf-float {
	to {
		transform: translateY(-14px);
	}
}

.pf-phone__screen {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
	border-radius: 36px;
	background: #111;
}

.pf-phone__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	image-rendering: pixelated;
}

.pf-phone__video {
	display: none;
}

.pf-phone__ui {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 26px 16px 22px;
	color: #fff;
	font-family: var(--pf-pixel);
	font-size: 12px;
}

.pf-phone__pill {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.45);
}

.pf-phone__range {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	margin-bottom: 14px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.45);
}

.pf-phone__range input {
	width: 110px;
	accent-color: var(--pf-tt-red);
}

.pf-phone__rec {
	width: 62px;
	height: 62px;
	border: 5px solid rgb(255 255 255 / 0.9);
	border-radius: 50%;
	background: var(--pf-tt-red);
	box-shadow: inset 0 0 0 4px #111;
	animation: pf-rec 1.4s steps(2) infinite;
}

@keyframes pf-rec {
	50% {
		box-shadow: inset 0 0 0 9px #111;
	}
}

.pf-cam__note {
	max-width: 30em;
	margin: 0;
	font-size: 14px;
	opacity: 0.7;
}

.pf-note {
	max-width: 36em;
	padding: 16px 18px;
	border-left: 8px solid var(--pf-tt-red);
	background: var(--pf-white);
	font-size: 16px;
}

/* --------------------------------------------------------------------------
   Shop
   -------------------------------------------------------------------------- */

.pf-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 24px);
}

.pf-section .pf-cards > * {
	margin: 0;
}

.pf-card {
	padding-bottom: 18px;
	background: var(--pf-ink-2);
	transition: transform 0.2s steps(3), box-shadow 0.2s steps(3);
}

.pf-card:hover {
	transform: translate(-4px, -4px);
	box-shadow: 8px 8px 0 var(--pf-blue);
}

.pf-card:nth-child(2):hover { box-shadow: 8px 8px 0 var(--pf-ochre); }
.pf-card:nth-child(3):hover { box-shadow: 8px 8px 0 var(--pf-tt-red); }
.pf-card:nth-child(4):hover { box-shadow: 8px 8px 0 var(--pf-pearl); }

.pf-section .pf-card > * {
	margin-inline: 16px;
}

.pf-section .pf-card > .pf-card__img {
	margin: 0;
}

.pf-section .pf-card__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.pf-section .pf-card__title {
	margin-top: 16px;
	font-family: var(--pf-pixel);
	font-size: 18px;
	font-weight: 400;
}

.pf-card__title a {
	text-decoration: none;
}

.pf-card__title a::after {
	content: " →";
}

.pf-section .pf-card__meta {
	margin-top: 6px;
	font-size: 15px;
	opacity: 0.75;
}

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

/* --------------------------------------------------------------------------
   Contatti
   -------------------------------------------------------------------------- */

.pf-contact {
	padding-top: 0;
}

.pf-ticker {
	overflow: hidden;
	padding: 18px 0;
	background: var(--pf-ink);
	color: var(--pf-paper);
	font-family: var(--pf-pixel);
	font-size: clamp(34px, 6vw, 84px);
	line-height: 1;
	white-space: nowrap;
}

.pf-ticker__track {
	display: inline-flex;
	animation: pf-marquee 22s linear infinite;
}

.pf-ticker span {
	padding-right: 0.4em;
}

.pf-contact__inner {
	text-align: center;
}

.pf-contact__inner .pf-lead {
	margin-inline: auto;
}

.pf-section .pf-mail {
	font-family: var(--pf-pixel);
	font-size: clamp(22px, 3.6vw, 46px);
	overflow-wrap: anywhere;
}

.pf-mail a {
	text-decoration: none;
	background: linear-gradient(var(--pf-blue), var(--pf-blue)) 0 100% / 100% 6px no-repeat;
	transition: background-size 0.25s steps(4);
}

.pf-mail a:hover {
	background-size: 100% 100%;
}

.pf-links a {
	font-weight: 500;
}

.pf-section .pf-legal {
	padding-top: 22px;
	border-top: 2px solid rgb(15 13 11 / 0.15);
	font-size: 13px;
	opacity: 0.7;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Animazioni di comparsa (attive solo con JS sul frontend)
   -------------------------------------------------------------------------- */

.pf-js .pf-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s var(--pf-step), transform 0.6s var(--pf-step);
}

.pf-js .pf-reveal.is-in {
	opacity: 1;
	transform: none;
}

.pf-w {
	display: inline-block;
	white-space: nowrap;
}

.pf-ch {
	display: inline-block;
}

.pf-js .pf-pixel-title:not(.is-typed) .pf-ch {
	opacity: 0;
}

.pf-pixel-title.is-typed .pf-ch {
	animation: pf-ch 0.36s steps(1) both;
	animation-delay: var(--d, 0s);
}

@keyframes pf-ch {
	0% { opacity: 0; }
	1% { opacity: 1; color: transparent; background: var(--pf-ochre); }
	45% { color: transparent; background: var(--pf-blue); }
	100% { opacity: 1; color: inherit; background: transparent; }
}

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

	.pf-js .pf-reveal,
	.pf-js .pf-pixel-title .pf-ch {
		opacity: 1;
		transform: none;
	}

	.pf-js .pf-marquee {
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}
}
