:root {
	--rosso: #e1251b;
	--rosso-dark: #b91c13;
	--nero: #0a0a0a;
	--nero-soft: #1a1a1a;
	--grigio-900: #2d2d2d;
	--grigio-700: #4a4a4a;
	--grigio-500: #6b6b6b;
	--grigio-300: #b0b0b0;
	--grigio-100: #f0f0f0;
	--perla: #f8f7f5;
	--bianco: #ffffff;
	--oro: #c9a96e;
	--shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
	--shadow-md: 0 8px 30px rgba(0,0,0,0.08);
	--shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
	--shadow-red: 0 10px 40px rgba(225,37,27,0.25);
	--radius: 16px;
	--radius-sm: 8px;
	--transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	background: var(--bianco);
	color: var(--nero);
	line-height: 1.6;
	overflow-x: hidden;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--grigio-100); }
::-webkit-scrollbar-thumb { background: var(--grigio-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--grigio-500); }

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(225,37,27,0.4); }
	50% { box-shadow: 0 0 0 15px rgba(225,37,27,0); }
}
@keyframes scrollTrack {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
	opacity: 1;
	transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* HEADER */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 16px 5%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: var(--transition);
}
.header.scrolled {
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(20px);
	box-shadow: var(--shadow-sm);
	padding: 12px 5%;
}
.header.scrolled .logo-text,
.header.scrolled .nav-link { color: var(--nero); }
.header.scrolled .nav-cta {
	background: var(--rosso);
	color: var(--bianco);
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}
.header-logo {
	display: block;
	width: clamp(210px, 18vw, 280px);
	height: auto;
	max-height: 44px;
	object-fit: contain;
	filter: drop-shadow(0 3px 10px rgba(0,0,0,0.18));
	transition: var(--transition);
}
.header.scrolled .header-logo {
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
}
.logo-icon {
	width: 44px;
	height: 44px;
	background: var(--rosso);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bianco);
	font-weight: 800;
	font-size: 18px;
	box-shadow: var(--shadow-red);
}
.logo-text {
	color: var(--bianco);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.5px;
	transition: var(--transition);
}
.logo-text span {
	display: block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0.7;
	margin-top: -2px;
}

.nav {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nav-link {
	color: var(--bianco);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	position: relative;
}
.nav-link::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 16px;
	right: 16px;
	height: 2px;
	background: var(--rosso);
	transform: scaleX(0);
	transition: var(--transition);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { opacity: 0.8; }

.nav-cta {
	background: var(--bianco);
	color: var(--rosso);
	padding: 10px 24px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: var(--transition);
	margin-left: 8px;
}
.nav-cta:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.mobile-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 8px;
}
.mobile-toggle span {
	width: 24px;
	height: 2px;
	background: var(--bianco);
	transition: var(--transition);
	border-radius: 2px;
}
.header.scrolled .mobile-toggle span { background: var(--nero); }

/* HERO */
.hero {
	min-height: 100vh;
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--nero);
	isolation: isolate;
}

/* Onda rossa leggera anche nella sezione iniziale */
@keyframes heroRedWave {
	0% {
		transform: translate3d(-125%, -6%, 0) rotate(-10deg) scaleX(0.92);
		opacity: 0;
	}
	14% { opacity: 0.34; }
	50% { opacity: 0.66; }
	86% { opacity: 0.28; }
	100% {
		transform: translate3d(175%, 7%, 0) rotate(-10deg) scaleX(1.08);
		opacity: 0;
	}
}

.hero::after {
	content: '';
	position: absolute;
	z-index: 1;
	top: -32%;
	left: -50%;
	width: 62%;
	height: 180%;
	pointer-events: none;
	border-radius: 50%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(225, 37, 27, 0.01) 16%,
		rgba(225, 37, 27, 0.045) 38%,
		rgba(225, 37, 27, 0.12) 50%,
		rgba(225, 37, 27, 0.06) 62%,
		rgba(225, 37, 27, 0.012) 84%,
		transparent 100%
	);
	filter: blur(54px);
	will-change: transform, opacity;
	animation: heroRedWave 12.5s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}

/* Testi e contenuti hero restano sopra l'onda */
.hero-content {
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.hero::after {
		animation: none;
		transform: translate3d(72%, 0, 0) rotate(-10deg);
		opacity: 0.22;
	}
}
.hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--nero) 0%, var(--nero-soft) 50%, var(--grigio-900) 100%);
}
.hero-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.5;
}
.hero-grid {
	position: absolute;
	inset: 0;
	background-image: 
		linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
	background-size: 80px 80px;
}
.hero-visual {
	position: absolute;
	right: -5%;
	top: 50%;
	transform: translateY(-50%);
	width: 55%;
	height: 80%;
	opacity: 0.15;
	background: radial-gradient(ellipse at center, var(--rosso) 0%, transparent 70%);
	filter: blur(80px);
}
.hero-content {
	position: relative;
	z-index: 2;
	max-width: 1400px;
	margin: 0 auto;
	padding: 140px 5% 100px;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 80px;
	align-items: center;
}

.hero h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(40px, 5.5vw, 72px);
	font-weight: 700;
	color: var(--bianco);
	line-height: 1.1;
	margin-bottom: 24px;
	animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 em {
	color: var(--rosso);
	font-style: italic;
}
.hero-subtitle {
	font-size: clamp(16px, 1.8vw, 20px);
	color: var(--grigio-300);
	max-width: 520px;
	margin-bottom: 40px;
	line-height: 1.7;
	animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-cta-group {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	animation: fadeInUp 0.8s ease 0.3s both;
}
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--rosso);
	color: var(--bianco);
	padding: 16px 36px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: var(--shadow-red);
}
.btn-primary:hover {
	background: var(--rosso-dark);
	transform: translateY(-3px);
	box-shadow: 0 15px 50px rgba(225,37,27,0.35);
}
.btn-primary svg {
	width: 18px;
	height: 18px;
	transition: var(--transition);
}
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	color: var(--bianco);
	padding: 16px 36px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 1.5px solid rgba(255,255,255,0.2);
	cursor: pointer;
	transition: var(--transition);
}
.btn-secondary:hover {
	border-color: var(--bianco);
	background: rgba(255,255,255,0.05);
}
.hero-stats {
	display: flex;
	gap: 40px;
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid rgba(255,255,255,0.08);
	animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-stat {
	display: flex;
	flex-direction: column;
}
.hero-stat-number {
	font-size: 36px;
	font-weight: 800;
	color: var(--bianco);
	line-height: 1;
}
.hero-stat-number span { color: var(--rosso); }
.hero-stat-label {
	font-size: 13px;
	color: var(--grigio-500);
	margin-top: 6px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.hero-right {
	position: relative;
	animation: fadeIn 1s ease 0.5s both;
}
.hero-image-frame {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.hero-image-frame img {
	width: 100%;
	height: 500px;
	object-fit: cover;
	display: block;
}
.hero-image-frame::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, transparent 50%);
}
.hero-floating-card {
	position: absolute;
	background: var(--bianco);
	padding: 20px 24px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	animation: float 4s ease-in-out infinite;
}
.hero-floating-card.card-1 {
	bottom: 60px;
	left: -40px;
	animation-delay: 0s;
}
.hero-floating-card.card-2 {
	top: 40px;
	right: -30px;
	animation-delay: 2s;
}
.hero-floating-card .card-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--grigio-500);
	margin-bottom: 4px;
}
.hero-floating-card .card-value {
	font-size: 22px;
	font-weight: 800;
	color: var(--rosso);
}

/* SECTIONS COMMON */
.section {
	padding: 120px 5%;
	max-width: 1400px;
	margin: 0 auto;
}
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 80px;
}
.section-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: var(--rosso);
	margin-bottom: 16px;
}
.section-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	color: var(--nero);
	line-height: 1.2;
	margin-bottom: 20px;
}
.section-title em {
	color: var(--rosso);
	font-style: italic;
}
.section-desc {
	font-size: 18px;
	color: var(--grigio-500);
	line-height: 1.7;
}

/* CHI SIAMO */
.about-section {
	background: var(--perla);
	position: relative;
	overflow: hidden;
}
.about-section::before {
	content: '';
	position: absolute;
	top: -100px;
	right: -100px;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(225,37,27,0.05) 0%, transparent 70%);
	border-radius: 50%;
}
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}
.about-images {
	position: relative;
}
.about-img-main {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.about-img-main img {
	width: 100%;
	height: 500px;
	object-fit: cover;
	display: block;
}
.about-img-accent {
	position: absolute;
	bottom: -30px;
	right: -30px;
	width: 200px;
	height: 200px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 4px solid var(--perla);
}
.about-img-accent img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.about-badge {
	position: absolute;
	top: 30px;
	left: -20px;
	background: var(--rosso);
	color: var(--bianco);
	padding: 16px 20px;
	border-radius: var(--radius-sm);
	font-weight: 800;
	font-size: 18px;
	box-shadow: var(--shadow-red);
	animation: float 5s ease-in-out infinite;
}
.about-badge span {
	display: block;
	font-size: 20px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.9;
	font-style: bold;
}
.about-content h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 32px;
	margin-bottom: 24px;
	color: var(--nero);
}
.about-content p {
	font-size: 17px;
	color: var(--grigio-700);
	line-height: 1.8;
	margin-bottom: 20px;
}
.about-highlight {
	background: linear-gradient(135deg, var(--rosso) 0%, var(--rosso-dark) 100%);
	color: var(--bianco);
	padding: 24px 28px;
	border-radius: var(--radius-sm);
	margin-top: 32px;
	position: relative;
}
.about-highlight::before {
	content: '"';
	font-family: Georgia, "Times New Roman", serif;
	font-size: 60px;
	line-height: 1;
	color: rgba(255,255,255,0.2);
	position: absolute;
	top: 8px;
	left: 20px;
}
.about-highlight p {
	color: var(--bianco);
	margin: 0;
	padding-left: 30px;
	font-size: 16px;
	font-style: italic;
}
.about-highlight strong {
	display: block;
	margin-top: 12px;
	font-size: 14px;
	font-style: normal;
	opacity: 0.8;
}

/* SERVIZI */
.services-section { background: var(--bianco); }
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.service-card {
	background: var(--bianco);
	border: 1px solid var(--grigio-100);
	border-radius: var(--radius);
	padding: 40px 32px;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	cursor: pointer;
}
.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--rosso), var(--oro));
	transform: scaleX(0);
	transition: var(--transition);
}
.service-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
	border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, var(--rosso) 0%, var(--rosso-dark) 100%);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	box-shadow: var(--shadow-red);
}
.service-icon svg {
	width: 28px;
	height: 28px;
	color: var(--bianco);
}
.service-card h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--nero);
}
.service-card p {
	font-size: 15px;
	color: var(--grigio-500);
	line-height: 1.7;
}
.service-card .service-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	color: var(--rosso);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	opacity: 0;
	transform: translateY(10px);
	transition: var(--transition);
}
.service-card:hover .service-link {
	opacity: 1;
	transform: translateY(0);
}

/* IMPIANTI */
@keyframes impiantiRedWave {
	0% {
		transform: translate3d(-125%, -5%, 0) rotate(-10deg) scaleX(0.92);
		opacity: 0;
	}
	14% { opacity: 0.24; }
	50% { opacity: 0.48; }
	86% { opacity: 0.20; }
	100% {
		transform: translate3d(175%, 6%, 0) rotate(-10deg) scaleX(1.08);
		opacity: 0;
	}
}

.impianti-section {
	background: var(--nero);
	color: var(--bianco);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* Stesso pattern della hero: piccoli segni + griglia sottile */
.impianti-section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
	background-size: 60px 60px, 80px 80px, 80px 80px;
	opacity: 0.58;
}

/* Fascio rosso leggero, più discreto di quello della hero */
.impianti-section::after {
	content: '';
	position: absolute;
	z-index: 0;
	top: -32%;
	left: -50%;
	width: 62%;
	height: 180%;
	pointer-events: none;
	border-radius: 50%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(225, 37, 27, 0.008) 16%,
		rgba(225, 37, 27, 0.035) 38%,
		rgba(225, 37, 27, 0.085) 50%,
		rgba(225, 37, 27, 0.045) 62%,
		rgba(225, 37, 27, 0.010) 84%,
		transparent 100%
	);
	filter: blur(56px);
	will-change: transform, opacity;
	animation: impiantiRedWave 14s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}

/* Titoli, mappe e card restano sopra pattern e fascio */
.impianti-section > .section {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.impianti-section::after {
		animation: none;
		transform: translate3d(72%, 0, 0) rotate(-10deg);
		opacity: 0.18;
	}
}

.impianti-section .section-title,
.impianti-section .section-desc { color: var(--bianco); }
.impianti-section .section-desc { opacity: 0.7; }
.impianti-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 40px;
}

.impianto-card {
	grid-column: span 2;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16 / 11;
	min-height: 280px;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0,0,0,0.22);
	transition: var(--transition);
}
/* Seconda riga sfalsata e centrata tra i tre impianti superiori */
.impianto-card:nth-child(4) {
	grid-column: 2 / span 2;
}
.impianto-card:nth-child(5) {
	grid-column: 4 / span 2;
}
.impianto-card:hover {
	transform: translateY(-4px);
}
.impianto-map {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
	filter: grayscale(30%) contrast(1.1);
	transition: var(--transition);
}
.impianto-card:hover .impianto-map {
	filter: grayscale(0%) contrast(1);
	transform: scale(1.02);
}
.impianto-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(10,10,10,0.94) 0%,
		rgba(10,10,10,0.68) 48%,
		rgba(10,10,10,0.12) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 22px;
	z-index: 2;
	isolation: isolate;
}

/*
   Livello rosso separato: animiamo solo l'opacita.
   I gradienti CSS non vengono interpolati in modo fluido in tutti i browser,
   quindi questa soluzione rende il passaggio realmente graduale.
*/
.impianto-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		to top,
		rgba(225,37,27,0.94) 0%,
		rgba(10,10,10,0.68) 62%,
		rgba(10,10,10,0.16) 100%
	);
	opacity: 0;
	transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.impianto-card:hover .impianto-overlay::before {
	opacity: 1;
}
.impianto-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--rosso);
	color: var(--bianco);
	padding: 5px 11px;
	border-radius: 50px;
	font-size: 10px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 8px;
	width: fit-content;
}
.impianto-tag.available { background: #22c55e; }
.impianto-card h3 {
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	margin-bottom: 7px;
}
.impianto-card p {
	font-size: 13px;
	opacity: 0.86;
	line-height: 1.45;
}
.impianto-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 12px;
	font-size: 11px;
	line-height: 1.25;
	opacity: 0.78;
}
.impianto-meta span {
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}
.impianto-meta svg {
	flex: 0 0 auto;
}
/* Link trasparente sopra l'intera card: rende cliccabile tutto il riquadro */
.impianto-click-target {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	text-decoration: none;
}
.impianto-click-target:focus-visible {
	outline: 3px solid var(--bianco);
	outline-offset: -5px;
	box-shadow: inset 0 0 0 6px var(--rosso);
}

/* PORTFOLIO */
@keyframes portfolioRedWave {
	0% {
		transform: translate3d(-115%, -2%, 0) rotate(-8deg) scaleX(0.9);
		opacity: 0;
	}
	12% { opacity: 0.55; }
	48% { opacity: 0.95; }
	88% { opacity: 0.45; }
	100% {
		transform: translate3d(170%, 5%, 0) rotate(-8deg) scaleX(1.08);
		opacity: 0;
	}
}

.portfolio-section {
	background: var(--perla);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* Onda rossa molto leggera che attraversa lo sfondo */
.portfolio-section::before {
	content: '';
	position: absolute;
	z-index: 0;
	top: -30%;
	left: -45%;
	width: 58%;
	height: 175%;
	pointer-events: none;
	border-radius: 50%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(225, 37, 27, 0.015) 18%,
		rgba(225, 37, 27, 0.055) 42%,
		rgba(225, 37, 27, 0.095) 50%,
		rgba(225, 37, 27, 0.05) 60%,
		rgba(225, 37, 27, 0.012) 82%,
		transparent 100%
	);
	filter: blur(42px);
	will-change: transform, opacity;
	animation: portfolioRedWave 12s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}

/* Mantiene filtri, mosaico e testi sopra l'animazione */
.portfolio-section > .section {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.portfolio-section::before {
		animation: none;
		transform: translate3d(70%, 0, 0) rotate(-8deg);
		opacity: 0.3;
	}
}
.portfolio-filter {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}
.filter-btn {
	padding: 10px 24px;
	border-radius: 50px;
	border: 1.5px solid var(--grigio-100);
	background: var(--bianco);
	color: var(--grigio-700);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
	background: var(--rosso);
	color: var(--bianco);
	border-color: var(--rosso);
	box-shadow: var(--shadow-red);
}

.portfolio-subfilter {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	width: fit-content;
	max-width: 100%;
	margin: -26px auto 38px;
	padding: 5px 14px;
	border: 1px dashed rgba(225,37,27,0.28);
	border-radius: 12px;
	background: rgba(255,255,255,0.72);
	box-shadow: var(--shadow-sm);
}
.portfolio-subfilter[hidden] { display: none; }
.portfolio-subfilter-label {
	margin-right: 4px;
	color: var(--grigio-500);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.subfilter-btn {
	padding: 7px 16px;
	border: 1px solid var(--grigio-100);
	border-radius: 999px;
	background: var(--bianco);
	color: var(--grigio-700);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.subfilter-btn:hover,
.subfilter-btn.active {
	border-color: var(--rosso);
	background: var(--rosso);
	color: var(--bianco);
	transform: translateY(-1px);
}

/* Portfolio a mosaico: forme diverse, riempimento denso e nessun vuoto casuale */
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: clamp(92px, 7.2vw, 112px);
	grid-auto-flow: dense;
	gap: 18px;
}
.portfolio-item {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	cursor: pointer;
	background: var(--nero-soft);
	box-shadow: var(--shadow-sm);
	min-width: 0;
	min-height: 0;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
				box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
				opacity 0.3s ease;
}

/* Le tre cartellonistiche dominano la prima parte del mosaico */
.portfolio-item.portfolio-featured {
	grid-column: span 3;
	grid-row: span 4;
}
.portfolio-item.portfolio-wide {
	grid-column: span 3;
	grid-row: span 2;
}

/* Le tre stampe sono più compatte e stanno affiancate */
.portfolio-item.portfolio-compact {
	grid-column: span 2;
	grid-row: span 2;
}

/* I tre lavori social sono larghi, due per fascia */
.portfolio-item.portfolio-medium {
	grid-column: span 3;
	grid-row: span 2;
}

/* Il decimo riquadro completa l'ultima fascia senza lasciare spazio vuoto */
.portfolio-gallery-trigger {
	grid-column: span 3;
	grid-row: span 2;
}

/* Nei filtri: 8 lavori + nono riquadro per la galleria della selezione */
.portfolio-grid.portfolio-grid--filtered {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: auto;
}
.portfolio-grid.portfolio-grid--filtered .portfolio-item {
	grid-column: span 1 !important;
	grid-row: auto !important;
	aspect-ratio: 4 / 3;
}
.portfolio-grid.portfolio-grid--filtered .portfolio-gallery-trigger {
	grid-column: span 1 !important;
	grid-row: auto !important;
	aspect-ratio: 4 / 3;
}
.portfolio-filter-card {
	opacity: 1;
}
.portfolio-item:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}
.portfolio-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
				filter 0.45s ease;
}
.portfolio-item:hover img {
	transform: scale(1.07);
	filter: brightness(0.78);
}
.portfolio-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.18) 58%, transparent 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}
.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-visible .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
	color: #ff5148;
	font-size: 13px;
	margin-top: 0;
	font-weight: 600;
}

/* Decimo riquadro: apertura galleria */
.portfolio-gallery-trigger {
	border: 0;
	font: inherit;
	color: var(--bianco);
	text-align: left;
	isolation: isolate;
}
.portfolio-gallery-trigger::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(225,37,27,0.96), rgba(125,13,8,0.92)),
		url('../images/galleria/GALLERIA/stampa/gal1.webp') center/cover;
	z-index: -2;
	transition: transform 0.6s ease;
}
.portfolio-gallery-trigger::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
	background-size: 34px 34px;
	z-index: -1;
	opacity: 0.45;
}
.portfolio-gallery-trigger:hover::before { transform: scale(1.06); }
.gallery-trigger-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 28px;
}
.gallery-trigger-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,0.16);
	border: 1px solid rgba(255,255,255,0.35);
	backdrop-filter: blur(8px);
	display: grid;
	place-items: center;
	margin-bottom: 18px;
	transition: transform 0.4s ease, background 0.4s ease;
}
.portfolio-gallery-trigger:hover .gallery-trigger-icon {
	transform: scale(1.08) rotate(-3deg);
	background: rgba(255,255,255,0.24);
}
.gallery-trigger-icon svg { width: 28px; height: 28px; }
.gallery-trigger-content strong {
	font-size: 21px;
	line-height: 1.2;
}
.gallery-trigger-content span {
	margin-top: 8px;
	font-size: 13px;
	opacity: 0.86;
}

/* LIGHTBOX / GALLERIA A SCHERMO INTERO */
.gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 5000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 90px 72px;
	background: rgba(4,4,4,0.94);
	backdrop-filter: blur(12px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.gallery-lightbox-stage {
	position: relative;
	width: min(1180px, 100%);
	height: min(78vh, 820px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.gallery-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.55);
	user-select: none;
	-webkit-user-drag: none;
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.2s ease, transform 0.25s ease;
}
.gallery-lightbox-image.changing {
	opacity: 0;
	transform: scale(0.985);
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
	position: absolute;
	border: 1px solid rgba(255,255,255,0.22);
	background: rgba(255,255,255,0.10);
	color: var(--bianco);
	backdrop-filter: blur(10px);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
	background: var(--rosso);
	border-color: var(--rosso);
}
.gallery-lightbox-close {
	top: 22px;
	right: 22px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	z-index: 2;
}
.gallery-lightbox-close:hover { transform: rotate(90deg); }
.gallery-lightbox-close svg { width: 22px; height: 22px; }
.gallery-lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	z-index: 2;
}
.gallery-lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }
.gallery-lightbox-nav svg { width: 26px; height: 26px; }
.gallery-lightbox-caption {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	width: min(760px, calc(100% - 160px));
	color: var(--bianco);
	text-align: center;
}
.gallery-lightbox-caption span {
	display: inline-block;
	margin-top: 0;
	font-size: 13px;
	color: var(--grigio-300);
}
.gallery-lightbox-counter {
	position: absolute;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--grigio-300);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
}
body.gallery-open { overflow: hidden; }

/* STATS */
.stats-section {
	background: linear-gradient(135deg, var(--rosso) 0%, var(--rosso-dark) 100%);
	color: var(--bianco);
	padding: 80px 5%;
	position: relative;
	overflow: hidden;
}
.stats-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.stat-item {
	text-align: center;
	padding: 20px;
}
.stat-number {
	font-size: clamp(36px, 4vw, 56px);
	font-weight: 900;
	line-height: 1;
	margin-bottom: 8px;
}
.stat-label {
	font-size: 14px;
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* TESTIMONIALS */
.testimonials-section { background: var(--bianco); }
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.testimonial-card {
	background: var(--perla);
	border-radius: var(--radius);
	padding: 40px 32px;
	position: relative;
	transition: var(--transition);
}
.testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.testimonial-card::before {
	content: '"';
	font-family: Georgia, "Times New Roman", serif;
	font-size: 80px;
	line-height: 1;
	color: var(--rosso);
	opacity: 0.15;
	position: absolute;
	top: 20px;
	right: 24px;
}
.testimonial-stars {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
}
.testimonial-stars svg {
	width: 18px;
	height: 18px;
	color: var(--oro);
	fill: var(--oro);
}
.testimonial-text {
	font-size: 16px;
	color: var(--grigio-700);
	line-height: 1.7;
	margin-bottom: 24px;
	font-style: italic;
}
.testimonial-author {
	display: flex;
	align-items: center;
	gap: 14px;
}
.testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--rosso), var(--oro));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bianco);
	font-weight: 700;
	font-size: 18px;
}
.testimonial-author-info h4 {
	font-size: 15px;
	font-weight: 700;
	color: var(--nero);
}
.testimonial-author-info span {
	font-size: 13px;
	color: var(--grigio-500);
}

/* PARTNERS */
.partners-section {
	background: var(--grigio-100);
	padding: 42px 0;
	overflow: hidden;
}

.partners-track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: scrollTrack 48s linear infinite;
}

.partner-logo {
	width: 155px;
	height: 90px;
	flex: 0 0 155px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	overflow: hidden;
}

/* Mantiene uniformi loghi con proporzioni molto diverse */
.partner-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 135px;
	max-height: 74px;
	object-fit: contain;
	object-position: center;
	transition: transform 0.4s ease;
}

.partner-logo:hover img {
	transform: scale(1.08);
}

.partner-logo span {
	font-size: 20px;
	font-weight: 700;
	color: var(--grigio-300);
	transition: var(--transition);
	white-space: nowrap;
}
.partner-logo:hover span {
	color: var(--grigio-700);
	transform: scale(1.1);
}

/* MAPPA */
.map-section { background: var(--perla); }
.map-container {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	position: relative;
}
.map-container iframe {
	width: 100%;
	height: 500px;
	border: none;
	display: block;
}

.map-exact-click {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: block;
	cursor: pointer;
	border-radius: inherit;
}
.map-info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 48px;
}
.map-info-card {
	background: var(--bianco);
	padding: 32px;
	border-radius: var(--radius-sm);
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}
.map-info-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.map-info-card svg {
	width: 32px;
	height: 32px;
	color: var(--rosso);
	margin-bottom: 16px;
}
.map-info-card h4 {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--nero);
}
.map-info-card p {
	font-size: 14px;
	color: var(--grigio-500);
	line-height: 1.6;
}
.map-info-card a {
	color: var(--rosso);
	text-decoration: none;
	font-weight: 600;
}

/* CTA BANNER */
.cta-banner {
	background: linear-gradient(135deg, var(--nero) 0%, var(--nero-soft) 100%);
	padding: 100px 5%;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.cta-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle at 30% 50%, rgba(225,37,27,0.1) 0%, transparent 50%);
}
.cta-banner h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 4vw, 48px);
	color: var(--bianco);
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
}
.cta-banner p {
	font-size: 18px;
	color: var(--grigio-300);
	max-width: 600px;
	margin: 0 auto 40px;
	position: relative;
	z-index: 1;
}
.cta-banner .btn-primary {
	position: relative;
	z-index: 1;
	font-size: 16px;
	padding: 18px 44px;
}

/* CONTACT */
.contact-section { background: var(--bianco); }
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
}
.contact-form {
	background: var(--perla);
	padding: 48px;
	border-radius: var(--radius);
}
.form-group {
	margin-bottom: 24px;
}
.form-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--nero);
	margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 14px 18px;
	border: 1.5px solid var(--grigio-100);
	border-radius: var(--radius-sm);
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 15px;
	color: var(--nero);
	background: var(--bianco);
	transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--rosso);
	box-shadow: 0 0 0 4px rgba(225,37,27,0.1);
}
.form-group textarea {
	min-height: 120px;
	resize: vertical;
}
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.contact-info h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	margin-bottom: 24px;
}
.contact-info p {
	font-size: 16px;
	color: var(--grigio-500);
	line-height: 1.7;
	margin-bottom: 32px;
}
.contact-detail {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}
.contact-detail svg {
	width: 24px;
	height: 24px;
	color: var(--rosso);
	flex-shrink: 0;
	margin-top: 2px;
}
.contact-detail div h4 {
	font-size: 15px;
	font-weight: 700;
	color: var(--nero);
	margin-bottom: 4px;
}
.contact-detail div p,
.contact-detail div a {
	font-size: 15px;
	color: var(--grigio-500);
	text-decoration: none;
	transition: var(--transition);
}
.contact-detail div a:hover { color: var(--rosso); }
.contact-social {
	display: flex;
	gap: 12px;
	margin-top: 32px;
}
.contact-social a {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--grigio-100);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--grigio-700);
	transition: var(--transition);
}
.contact-social a:hover {
	background: var(--rosso);
	color: var(--bianco);
	transform: translateY(-3px);
}

/* FOOTER */
.footer {
	background: var(--nero);
	color: var(--bianco);
	padding: 80px 5% 40px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 60px;
	max-width: 1400px;
	margin: 0 auto 60px;
}
.footer-logo-link {
	display: inline-block;
	margin-bottom: 22px;
	text-decoration: none;
}
.footer-logo {
	display: block;
	width: min(320px, 100%);
	height: auto;
	filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35));
	transition: var(--transition);
}
.footer-logo-link:hover .footer-logo {
	transform: translateY(-2px);
}
.footer-brand p {
	font-size: 15px;
	color: var(--grigio-500);
	line-height: 1.7;
	max-width: 300px;
}
.footer-col h4 {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 24px;
	color: var(--bianco);
}
.footer-col a {
	display: block;
	color: var(--grigio-500);
	text-decoration: none;
	font-size: 15px;
	margin-bottom: 12px;
	transition: var(--transition);
}
.footer-col a:hover { color: var(--rosso); }
.footer-bottom {
	border-top: 1px solid var(--grigio-900);
	padding-top: 32px;
	text-align: center;
	font-size: 14px;
	color: var(--grigio-700);
	max-width: 1400px;
	margin: 0 auto;
}

/* STICKY CTA */
.sticky-cta {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.sticky-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-lg);
	transition: var(--transition);
	cursor: pointer;
	border: none;
	text-decoration: none;
}
.sticky-btn:hover { transform: scale(1.1); }
.sticky-btn.phone {
	background: var(--rosso);
	color: var(--bianco);
	animation: pulse 2s infinite;
}
.sticky-btn.whatsapp {
	background: #25d366;
	color: var(--bianco);
}
.sticky-btn svg { width: 24px; height: 24px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
	.hero-content { grid-template-columns: 1fr; gap: 60px; text-align: center; }
	.hero-subtitle { margin: 0 auto 40px; }
	.hero-cta-group { justify-content: center; }
	.hero-stats { justify-content: center; }
	.hero-right { max-width: 500px; margin: 0 auto; }
	.hero-floating-card { display: none; }
	.about-grid { grid-template-columns: 1fr; gap: 60px; }
	.about-images { max-width: 500px; margin: 0 auto; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.impianti-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px;
	}
	.impianto-card,
	.impianto-card:nth-child(4),
	.impianto-card:nth-child(5) {
		grid-column: auto;
	}
	.portfolio-grid { grid-template-columns: repeat(2, 1fr); }
	.testimonials-grid { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.header-logo {
		width: 190px;
		max-height: 34px;
	}
	/* Menu mobile: il colore segue lo stato dell'header */
	.nav {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 18px 5% 22px;
		background: rgba(10, 10, 10, 0.98);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);

		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-10px);
		transition:
			opacity 0.3s ease,
			transform 0.3s ease,
			visibility 0.3s ease,
			background 0.4s ease;
	}

	.nav.mobile-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	/* In cima alla pagina: menu scuro, scritte bianche */
	.nav .nav-link {
		color: var(--bianco);
		width: 100%;
		padding: 12px 16px;
		text-align: center;
	}

	.nav .nav-cta {
		margin: 8px 0 0;
		text-align: center;
		background: var(--bianco);
		color: var(--rosso);
	}

	/* Dopo lo scroll: menu bianco, scritte nere */
	.header.scrolled .nav {
		background: rgba(255, 255, 255, 0.98);
	}

	.header.scrolled .nav .nav-link {
		color: var(--nero);
	}

	.header.scrolled .nav .nav-cta {
		background: var(--rosso);
		color: var(--bianco);
	}

	/* Evita lo stacco visivo quando il menu è aperto in alto */
	.header.menu-open:not(.scrolled) {
		background: rgba(10, 10, 10, 0.98);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
	}

	.mobile-toggle { display: flex; }

	/* Piccola animazione hamburger -> X */
	.mobile-toggle.active span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.mobile-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	.mobile-toggle.active span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
	.hero { min-height: auto; padding: 120px 0 80px; }
	.hero-stats { flex-direction: column; gap: 24px; }
	.services-grid { grid-template-columns: 1fr; }
	.impianti-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.impianto-card,
	.impianto-card:nth-child(4),
	.impianto-card:nth-child(5) {
		grid-column: auto;
	}
	.portfolio-grid { grid-template-columns: 1fr; }
	.portfolio-item.tall,
	.portfolio-item.wide { grid-row: auto; grid-column: auto; }
	.stats-grid { grid-template-columns: 1fr; gap: 20px; }
	.map-info { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 40px; }
	.contact-form { padding: 32px 24px; }
	.about-img-accent { display: none; }
	.about-badge { left: 10px; top: 10px; }
}


/* RESPONSIVE PORTFOLIO E GALLERIA */
@media (max-width: 1100px) {
	.portfolio-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: clamp(190px, 25vw, 270px);
		gap: 18px;
	}

	/* Su tablet: grande apertura, poi coppie regolari e trigger finale pieno */
	.portfolio-item.portfolio-featured {
		grid-column: span 2;
		grid-row: span 2;
	}
	.portfolio-item.portfolio-wide,
	.portfolio-item.portfolio-compact,
	.portfolio-item.portfolio-medium {
		grid-column: span 1;
		grid-row: span 1;
	}
	.portfolio-gallery-trigger {
		grid-column: span 2;
		grid-row: span 1;
	}

	.portfolio-grid.portfolio-grid--filtered {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
	}
}

@media (max-width: 768px) {
	.portfolio-grid,
	.portfolio-grid.portfolio-grid--filtered {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		gap: 18px;
	}
	.portfolio-item,
	.portfolio-item.portfolio-featured,
	.portfolio-item.portfolio-wide,
	.portfolio-item.portfolio-compact,
	.portfolio-item.portfolio-medium,
	.portfolio-gallery-trigger,
	.portfolio-grid.portfolio-grid--filtered .portfolio-item {
		grid-column: auto !important;
		grid-row: auto !important;
		aspect-ratio: 4 / 3;
	}
	.portfolio-gallery-trigger { aspect-ratio: 16 / 9; }
	.portfolio-overlay {
		opacity: 1;
		padding: 20px;
		background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.06) 68%, transparent 100%);
	}
	.gallery-lightbox {
		padding: 74px 14px 104px;
	}
	.gallery-lightbox-stage {
		width: 100%;
		height: 68vh;
	}
	.gallery-lightbox-nav {
		width: 48px;
		height: 48px;
		top: auto;
		bottom: 26px;
		transform: none;
	}
	.gallery-lightbox-nav:hover { transform: scale(1.06); }
	.gallery-lightbox-prev { left: calc(50% - 66px); }
	.gallery-lightbox-next { right: calc(50% - 66px); }
	.gallery-lightbox-close {
		top: 14px;
		right: 14px;
		width: 44px;
		height: 44px;
	}
	.gallery-lightbox-counter { top: 28px; }
	.gallery-lightbox-caption {
		bottom: 86px;
		width: calc(100% - 28px);
		padding: 0 12px;
	}
}

@media (max-width: 420px) {
	.header-logo {
		width: 158px;
		max-height: 30px;
	}
	.footer-logo {
		width: min(280px, 100%);
	}
}


/* ============================================================
   NUOVO CONCEPT VISIVO — CARTELLONE + BACHECA + POLAROID
   Tutti gli elementi decorativi sono costruiti in CSS.
   Per completare il passaggio basterà sostituire le fotografie.
   ============================================================ */

/* ---------- HERO: FOTO INSERITA IN UN VERO CARTELLONE ---------- */
.hero-right {
	min-height: 590px;
	display: grid;
	place-items: center;
	perspective: 1200px;
}

.hero-billboard {
	position: relative;
	width: min(100%, 610px);
	padding-bottom: 132px;
	transform: rotateY(-3deg) rotateX(1deg);
	transform-style: preserve-3d;
	filter: drop-shadow(0 32px 42px rgba(0,0,0,0.48));
}

.billboard-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	padding: 18px;
	border-radius: 7px;
	background:
		linear-gradient(145deg, #8e9295 0%, #34383b 18%, #777b7e 48%, #242729 76%, #85898c 100%);
	border: 2px solid rgba(255,255,255,0.28);
	box-shadow:
		inset 0 0 0 5px rgba(0,0,0,0.38),
		inset 0 0 0 7px rgba(255,255,255,0.10),
		0 26px 55px rgba(0,0,0,0.38);
}

.billboard-frame::before,
.billboard-frame::after {
	content: '';
	position: absolute;
	z-index: -1;
	left: 4%;
	right: 4%;
	height: 13px;
	border-radius: 5px;
	background: linear-gradient(#777b7e, #292d30 58%, #151719);
	border: 1px solid rgba(255,255,255,0.16);
}
.billboard-frame::before { top: -10px; }
.billboard-frame::after { bottom: -10px; }

.hero-image-frame,
.billboard-screen {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 2px;
	overflow: hidden;
	background: #171717;
	box-shadow:
		inset 0 0 0 2px rgba(0,0,0,0.8),
		inset 0 0 24px rgba(0,0,0,0.6);
}

.hero-image-frame img,
.billboard-screen img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	display: block;
	filter: saturate(0.92) contrast(1.04);
}

.hero-image-frame::after { display: none; }

.billboard-glass {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(118deg, rgba(255,255,255,0.16) 0%, transparent 22%, transparent 68%, rgba(255,255,255,0.06) 100%),
		linear-gradient(to top, rgba(6,6,6,0.22), transparent 45%);
	mix-blend-mode: screen;
}

.billboard-bolt {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #e9ecee 0 16%, #7d8285 35%, #222629 72%);
	box-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.bolt-1 { top: 6px; left: 7px; }
.bolt-2 { top: 6px; right: 7px; }
.bolt-3 { bottom: 6px; left: 7px; }
.bolt-4 { bottom: 6px; right: 7px; }

.billboard-neck {
	position: absolute;
	left: 50%;
	bottom: 109px;
	width: 116px;
	height: 31px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, #282b2e, #72777a 46%, #2b2f32);
	clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
	border: 1px solid rgba(255,255,255,0.16);
}

.billboard-pole {
	position: absolute;
	left: 50%;
	bottom: 9px;
	width: 68px;
	height: 112px;
	transform: translateX(-50%);
	border-radius: 0 0 16px 16px;
	background:
		linear-gradient(90deg, #202326 0%, #777c7f 22%, #414548 48%, #202326 76%, #686d70 100%);
	border: 2px solid rgba(255,255,255,0.12);
	box-shadow: inset 0 0 0 4px rgba(0,0,0,0.22);
}

.billboard-base {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 120px;
	height: 17px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: linear-gradient(#6e7376, #242729);
	box-shadow: 0 10px 16px rgba(0,0,0,0.32);
}

.hero-floating-card {
	padding: 17px 21px;
	border-radius: 5px;
	border: 1px solid rgba(255,255,255,0.72);
	box-shadow: 0 14px 36px rgba(0,0,0,0.32);
	transform: rotate(-2deg);
}
.hero-floating-card::before {
	content: '';
	position: absolute;
	top: -7px;
	left: 50%;
	width: 48px;
	height: 15px;
	transform: translateX(-50%) rotate(-2deg);
	background: rgba(225,37,27,0.83);
	box-shadow: 0 2px 5px rgba(0,0,0,0.16);
}
.hero-floating-card.card-1 {
	left: -22px;
	bottom: 148px;
	animation-name: billboardNoteFloat1;
}
.hero-floating-card.card-2 {
	right: -18px;
	top: 72px;
	animation-name: billboardNoteFloat2;
}
@keyframes billboardNoteFloat1 {
	0%,100% { transform: rotate(-3deg) translateY(0); }
	50% { transform: rotate(-1deg) translateY(-8px); }
}
@keyframes billboardNoteFloat2 {
	0%,100% { transform: rotate(2.5deg) translateY(0); }
	50% { transform: rotate(1deg) translateY(-8px); }
}

/* ---------- CHI SIAMO: BACHECA EDITORIALE ---------- */
.about-section {
	background:
		radial-gradient(circle at 18% 12%, rgba(225,37,27,0.08), transparent 28%),
		#f4f0ea;
	padding: 42px 0;
}

.about-section::before {
	inset: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	background:
		repeating-linear-gradient(0deg, rgba(72,45,24,0.026) 0 1px, transparent 1px 5px),
		repeating-linear-gradient(90deg, rgba(72,45,24,0.018) 0 1px, transparent 1px 7px);
}

.about-section .section.about-grid {
	position: relative;
	max-width: 1320px;
	min-height: 710px;
	padding: clamp(54px, 6vw, 88px);
	gap: clamp(54px, 6vw, 90px);
	border-radius: 28px;
	background:
		radial-gradient(circle at 20% 22%, rgba(255,255,255,0.15) 0 1px, transparent 2px),
		radial-gradient(circle at 72% 62%, rgba(78,43,18,0.13) 0 1px, transparent 2px),
		repeating-linear-gradient(28deg, rgba(104,61,29,0.055) 0 2px, transparent 2px 9px),
		linear-gradient(135deg, #b97b4f, #d19a6d 48%, #b8784d);
	background-size: 21px 21px, 25px 25px, auto, auto;
	border: 12px solid #8c542f;
	outline: 4px solid #d3a47d;
	box-shadow:
		inset 0 0 38px rgba(72,37,12,0.28),
		0 28px 65px rgba(54,32,18,0.18);
	overflow: visible;
}

.about-section .section.about-grid::before,
.about-section .section.about-grid::after {
	content: '';
	position: absolute;
	z-index: 3;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ff6a60 0 18%, #d51f17 38%, #8f0d08 72%);
	box-shadow: 0 4px 7px rgba(61,18,13,0.35);
}
.about-section .section.about-grid::before { top: 24px; left: 27px; }
.about-section .section.about-grid::after { bottom: 24px; right: 27px; }

.about-images {
	min-height: 530px;
	align-self: center;
}

.about-img-main,
.about-img-accent {
	background: #fffdfa;
	padding: 15px 15px 52px;
	border-radius: 3px;
	box-shadow: 0 18px 35px rgba(56,30,12,0.25);
	overflow: visible;
}

.about-img-main {
	position: relative;
	width: 88%;
	transform: rotate(-3deg);
	z-index: 1;
}
.about-img-main::before,
.about-img-accent::before {
	content: '';
	position: absolute;
	z-index: 4;
	top: -11px;
	left: 50%;
	width: 19px;
	height: 19px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 28%, #ff6b63 0 18%, #dc2017 42%, #8f0e09 75%);
	box-shadow: 0 5px 7px rgba(53,13,10,0.28);
}

.about-img-main img {
	height: 390px;
	border-radius: 1px;
}

.about-img-main figcaption,
.about-img-accent figcaption {
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 15px;
	font-family: Georgia, "Times New Roman", serif;
	color: #2d2925;
	text-align: center;
	font-size: 15px;
	line-height: 1.25;
}

.about-img-accent {
	right: -14px;
	bottom: -20px;
	width: 218px;
	height: 245px;
	padding: 11px 11px 43px;
	border: 0;
	transform: rotate(5deg);
	z-index: 2;
}
.about-img-accent img { border-radius: 1px; }
.about-img-accent figcaption {
	left: 10px;
	right: 10px;
	bottom: 12px;
	font-size: 13px;
}

.about-badge {
	top: 66px;
	left: -20px;
	z-index: 5;
	border-radius: 4px;
	transform: rotate(2deg);
	animation: none;
}
.about-badge::after {
	content: '';
	position: absolute;
	top: -8px;
	right: -13px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fafafa 0 15%, #aeb1b3 35%, #505457 72%);
	box-shadow: 0 3px 6px rgba(0,0,0,0.32);
}

.about-content {
	position: relative;
	align-self: center;
	padding: clamp(34px, 4vw, 50px);
	background:
		linear-gradient(rgba(80,91,103,0.045) 1px, transparent 1px),
		#fffdfa;
	background-size: 100% 31px;
	border-radius: 3px;
	box-shadow: 0 20px 38px rgba(56,30,12,0.25);
	transform: rotate(1.1deg);
}

.about-content::before,
.about-content::after,
.about-highlight::after {
	content: '';
	position: absolute;
	height: 24px;
	background: rgba(225,37,27,0.82);
	box-shadow: 0 3px 7px rgba(86,13,9,0.22);
	z-index: 3;
}
.about-content::before {
	width: 106px;
	top: -10px;
	right: 30px;
	transform: rotate(7deg);
}
.about-content::after {
	width: 82px;
	bottom: -9px;
	left: 35px;
	transform: rotate(-5deg);
}

.about-content h3 {
	font-size: clamp(28px, 3vw, 39px);
	line-height: 1.12;
}
.about-content p { color: #49443f; }

.about-highlight {
	margin: 34px -14px -24px 24px;
	padding: 28px 31px;
	border-radius: 3px;
	transform: rotate(-1.5deg);
	box-shadow: 0 14px 25px rgba(113,21,15,0.22);
}
.about-highlight::before { top: 10px; }
.about-highlight::after {
	top: -10px;
	right: 26px;
	width: 76px;
	transform: rotate(5deg);
	background: rgba(255,255,255,0.62);
}

/* ---------- TESTIMONIANZE: CARTONCINI APPUNTATI ---------- */
.testimonials-section {
	position: relative;
	background:
		radial-gradient(circle at 18% 0%, rgba(225,37,27,0.065), transparent 30%),
		#faf8f5;
	overflow: hidden;
}

.testimonials-section::before {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.42;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(75,65,54,0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(75,65,54,0.025) 1px, transparent 1px);
	background-size: 28px 28px;
}

.testimonials-section .section {
	position: relative;
	z-index: 1;
}

.testimonials-grid {
	position: relative;
	gap: 38px;
	padding: clamp(48px, 5vw, 72px);
	border-radius: 24px;
	background:
		radial-gradient(circle at 25% 35%, rgba(255,255,255,0.18) 0 1px, transparent 2px),
		repeating-linear-gradient(30deg, rgba(104,61,29,0.05) 0 2px, transparent 2px 9px),
		linear-gradient(135deg, #bf8255, #d6a276 52%, #b97a4f);
	background-size: 23px 23px, auto, auto;
	border: 9px solid #8d5732;
	outline: 3px solid #d8ae8b;
	box-shadow: inset 0 0 32px rgba(72,37,12,0.24), 0 22px 52px rgba(67,39,20,0.16);
}

.testimonial-card {
	min-height: 355px;
	padding: 49px 34px 35px;
	border-radius: 3px;
	border: 0;
	background:
		linear-gradient(rgba(80,91,103,0.045) 1px, transparent 1px),
		#fffdfa;
	background-size: 100% 29px;
	box-shadow: 0 18px 30px rgba(59,32,14,0.24);
	transform-origin: 50% 0;
}
.testimonial-card:nth-child(3n + 1) { transform: rotate(-2.6deg); }
.testimonial-card:nth-child(3n + 2) { transform: rotate(1.4deg) translateY(-8px); }
.testimonial-card:nth-child(3n) { transform: rotate(2.8deg); }

.testimonial-card::before {
	content: '';
	top: -14px;
	right: auto;
	left: 50%;
	width: 20px;
	height: 20px;
	transform: translateX(-50%);
	border-radius: 50%;
	opacity: 1;
	background: radial-gradient(circle at 35% 28%, #ff6b63 0 18%, #dc2017 42%, #8f0e09 75%);
	box-shadow: 0 5px 8px rgba(53,13,10,0.3);
}
.testimonial-card::after {
	content: '“';
	position: absolute;
	top: 23px;
	right: 25px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 70px;
	line-height: 1;
	color: rgba(225,37,27,0.15);
}

.testimonial-card:hover {
	transform: translateY(-10px) rotate(0deg);
	box-shadow: 0 28px 42px rgba(59,32,14,0.28);
}
.testimonial-stars { position: relative; z-index: 1; }
.testimonial-text {
	position: relative;
	z-index: 1;
	color: #423d38;
}
.testimonial-author { position: relative; z-index: 1; }
.testimonial-avatar {
	border: 4px solid #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,0.14);
}

/* ---------- RESPONSIVE DEL NUOVO CONCEPT ---------- */
@media (max-width: 1180px) {
	.hero-billboard { width: min(92%, 580px); }
	.about-section .section.about-grid { padding: 62px 48px; }
	.testimonials-grid { padding: 58px 38px; gap: 28px; }
}

@media (max-width: 1024px) {
	.hero-right { min-height: 570px; }
	.hero-billboard { transform: none; }
	.about-section .section.about-grid {
		grid-template-columns: 1fr;
		max-width: 820px;
		gap: 76px;
	}
	.about-images { width: min(100%, 610px); min-height: 555px; margin: 0 auto; }
	.about-content { transform: rotate(0.5deg); }
	.testimonials-grid { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
	.testimonial-card { min-height: 0; }
}

@media (max-width: 768px) {
	.hero-right {
		width: 100%;
		min-height: 430px;
		margin-top: 10px;
	}
	.hero-billboard {
		width: min(94%, 540px);
		padding-bottom: 95px;
	}
	.billboard-frame { padding: 10px; }
	.billboard-neck { bottom: 77px; width: 82px; height: 23px; }
	.billboard-pole { height: 82px; width: 48px; bottom: 6px; }
	.billboard-base { width: 88px; height: 13px; }
	.hero-floating-card.card-1 { left: 1%; bottom: 105px; }
	.hero-floating-card.card-2 { right: 0; top: 42px; }

	.about-section { padding: 28px 0; }
	.about-section .section.about-grid {
		width: calc(100% - 28px);
		padding: 54px 24px;
		border-width: 8px;
		border-radius: 20px;
		gap: 62px;
	}
	.about-images { min-height: 430px; }
	.about-img-main { width: 94%; }
	.about-img-main img { height: 300px; }
	.about-img-accent {
		display: block;
		width: 155px;
		height: 183px;
		right: 0;
		bottom: 2px;
		padding: 8px 8px 35px;
	}
	.about-img-accent figcaption { font-size: 11px; }
	.about-badge { top: 42px; left: -8px; }
	.about-content {
		padding: 38px 25px;
		transform: none;
	}
	.about-highlight { margin: 28px -5px -15px 8px; }

	.testimonials-grid {
		width: calc(100% - 16px);
		padding: 48px 20px;
		border-width: 7px;
	}
	.testimonial-card,
	.testimonial-card:nth-child(3n + 1),
	.testimonial-card:nth-child(3n + 2),
	.testimonial-card:nth-child(3n) {
		transform: rotate(-1deg);
		padding: 45px 25px 30px;
	}
	.testimonial-card:nth-child(even) { transform: rotate(1deg); }
}

@media (max-width: 480px) {
	.hero-right { min-height: 350px; }
	.hero-floating-card { padding: 12px 14px; }
	.hero-floating-card .card-label { font-size: 9px; }
	.hero-floating-card .card-value { font-size: 16px; }
	.hero-floating-card.card-1 { bottom: 88px; }
	.hero-floating-card.card-2 { top: 32px; }
	.about-images { min-height: 365px; }
	.about-img-main img { height: 245px; }
	.about-img-main { padding: 10px 10px 44px; }
	.about-img-accent { width: 128px; height: 153px; }
	.about-badge { font-size: 22px; padding: 13px 17px; }
	.about-content::before { width: 80px; right: 18px; }
	.testimonials-grid { padding: 42px 14px; }
}



/* ========================================================================
   SERVIZI + IMPIANTI — CAMPIONARIO DI STAMPA E SCHEDE TECNICHE
   Tutti gli elementi decorativi sono realizzati in HTML/CSS.
   ======================================================================== */

/* ---------- SERVIZI: CAMPIONARIO FISICO DI MATERIALI ---------- */
.services-catalog {
	position: relative;
	overflow: hidden;
	background-color: #f3efe8;
	background-image:
		linear-gradient(rgba(20,20,20,0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(20,20,20,0.025) 1px, transparent 1px),
		radial-gradient(circle at 12% 18%, rgba(225,37,27,0.07), transparent 25%),
		radial-gradient(circle at 86% 78%, rgba(201,169,110,0.10), transparent 28%);
	background-size: 34px 34px, 34px 34px, auto, auto;
}
.services-catalog::before {
	
	position: absolute;
	top: 52px;
	left: max(28px, calc((100vw - 1400px) / 2 + 5%));
	color: rgba(10,10,10,0.12);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 4px;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	pointer-events: none;
}
.services-catalog .section {
	padding-top: 108px;
	padding-bottom: 116px;
}
.services-catalog .section-header {
	margin-bottom: 50px;
}
.services-catalog .section-desc {
	max-width: 690px;
	margin: 0 auto;
}
.services-catalog .services-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}
.services-catalog .service-card {
	--sample-accent: var(--rosso);
	position: relative;
	min-height: 435px;
	padding: 22px 24px 26px;
	border: 1px solid rgba(24,24,24,0.10);
	border-radius: 10px;
	background:
		linear-gradient(145deg, rgba(255,255,255,0.96), rgba(253,250,244,0.97)),
		#fffdf8;
	box-shadow: 0 14px 35px rgba(30,24,17,0.07), inset 0 0 0 1px rgba(255,255,255,0.75);
	overflow: hidden;
	cursor: default;
	isolation: isolate;
	transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.services-catalog .service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 24px;
	width: 92px;
	height: 7px;
	background: var(--sample-accent);
	transform: none;
	box-shadow: 0 2px 12px rgba(225,37,27,0.24);
}
.services-catalog .service-card::after {
	content: '';
	position: absolute;
	inset: 12px;
	z-index: -1;
	pointer-events: none;
	opacity: 0.16;
	background:
		linear-gradient(var(--nero),var(--nero)) left top/18px 1px no-repeat,
		linear-gradient(var(--nero),var(--nero)) left top/1px 18px no-repeat,
		linear-gradient(var(--nero),var(--nero)) right top/18px 1px no-repeat,
		linear-gradient(var(--nero),var(--nero)) right top/1px 18px no-repeat,
		linear-gradient(var(--nero),var(--nero)) left bottom/18px 1px no-repeat,
		linear-gradient(var(--nero),var(--nero)) left bottom/1px 18px no-repeat,
		linear-gradient(var(--nero),var(--nero)) right bottom/18px 1px no-repeat,
		linear-gradient(var(--nero),var(--nero)) right bottom/1px 18px no-repeat;
}
.services-catalog .service-card:hover {
	transform: translateY(-9px) rotate(-0.25deg);
	border-color: rgba(225,37,27,0.26);
	box-shadow: 0 25px 65px rgba(30,24,17,0.14), 0 10px 25px rgba(225,37,27,0.08);
}
.services-catalog .service-card:nth-child(even):hover {
	transform: translateY(-9px) rotate(0.25deg);
}
.service-card-topline {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	min-height: 50px;
}
.service-number {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: rgba(225,37,27,0.18);
	transition: color 0.35s ease, transform 0.35s ease;
}
.service-card:hover .service-number {
	color: rgba(225,37,27,0.42);
	transform: translateX(3px);
}
.service-material {
	max-width: 150px;
	padding-top: 4px;
	color: var(--grigio-500);
	font-size: 9px;
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 1.5px;
	text-align: right;
	text-transform: uppercase;
}
.service-sample {
	position: relative;
	height: 150px;
	margin: 8px 0 24px;
	border: 1px solid rgba(20,20,20,0.08);
	border-radius: 8px;
	overflow: hidden;
	background:
		linear-gradient(rgba(10,10,10,0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(10,10,10,0.035) 1px, transparent 1px),
		#eee9df;
	background-size: 20px 20px, 20px 20px, auto;
	box-shadow: inset 0 2px 12px rgba(20,20,20,0.06);
}
.service-sample::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(135deg, rgba(255,255,255,0.34), transparent 45%);
}
.services-catalog .service-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.25;
}
.services-catalog .service-card p {
	min-height: 74px;
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
}
.services-catalog .service-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 17px;
	color: var(--rosso);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.2px;
	text-decoration: none;
	opacity: 1;
	transform: none;
}
.services-catalog .service-link::after {
	content: '↗';
	display: inline-block;
	transition: transform 0.3s ease;
}
.services-catalog .service-link:hover::after,
.services-catalog .service-card:hover .service-link::after {
	transform: translate(3px,-3px);
}

/* Mini cartellone */
.sample-billboard {
	position: absolute;
	left: 50%;
	top: 19px;
	width: 72%;
	transform: translateX(-50%);
}
.sample-billboard-face {
	position: relative;
	height: 88px;
	padding: 18px 20px;
	border: 7px solid #242424;
	background: linear-gradient(135deg, var(--rosso), #8e120d);
	box-shadow: 0 10px 18px rgba(0,0,0,0.18), inset 0 0 0 2px rgba(255,255,255,0.28);
	color: #fff;
	text-transform: uppercase;
}
.sample-billboard-face span {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 2px;
	opacity: 0.78;
}
.sample-billboard-face b {
	display: block;
	margin-top: 2px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	letter-spacing: -0.5px;
}
.sample-billboard-pole {
	display: block;
	width: 14px;
	height: 38px;
	margin: 0 auto;
	background: linear-gradient(90deg, #555, #a3a3a3, #4a4a4a);
	box-shadow: 2px 3px 7px rgba(0,0,0,0.2);
}
.service-card:hover .sample-billboard-face { transform: perspective(600px) rotateY(-3deg); }

/* Pila di fogli */
.sample-paper-stack { position: absolute; inset: 0; }
.sample-paper-stack .paper {
	position: absolute;
	width: 58%;
	height: 104px;
	left: 50%;
	top: 21px;
	border: 1px solid rgba(0,0,0,0.12);
	background: #fff;
	box-shadow: 0 10px 18px rgba(0,0,0,0.10);
	transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.sample-paper-stack .paper:nth-child(1) { transform: translateX(-55%) rotate(-7deg); background: #e7dfd2; }
.sample-paper-stack .paper:nth-child(2) { transform: translateX(-45%) rotate(5deg); background: #f6efe3; }
.sample-paper-stack .paper:nth-child(3) { transform: translateX(-50%); padding: 18px; }
.sample-paper-stack .paper:nth-child(3)::before {
	content: 'STAMPA DIGITALE';
	display: block;
	color: #171717;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 1px;
}
.sample-paper-stack .paper:nth-child(3)::after {
	content: '';
	display: block;
	width: 72%;
	height: 35px;
	margin-top: 12px;
	background:
		linear-gradient(90deg, #00a7d7 0 25%, #d61d7f 25% 50%, #f1d21e 50% 75%, #161616 75%);
}
.service-card:hover .sample-paper-stack .paper:nth-child(1) { transform: translateX(-63%) rotate(-10deg); }
.service-card:hover .sample-paper-stack .paper:nth-child(2) { transform: translateX(-37%) rotate(8deg); }

/* Biglietti da visita */
.sample-business-cards .business-card {
	position: absolute;
	width: 62%;
	height: 76px;
	left: 50%;
	top: 38px;
	padding: 16px 18px;
	border-radius: 3px;
	box-shadow: 0 12px 24px rgba(0,0,0,0.16);
	transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.sample-business-cards .business-card.back {
	background: #151515;
	color: #fff;
	transform: translateX(-58%) rotate(-8deg);
}
.sample-business-cards .business-card.front {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.12);
	transform: translateX(-42%) rotate(5deg);
}
.business-card .mini-logo {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	background: var(--rosso);
	color: #fff;
	font-size: 10px;
	font-weight: 900;
}
.business-card .mini-lines {
	position: absolute;
	left: 55px;
	right: 14px;
	top: 21px;
	height: 30px;
	background: linear-gradient(#111 0 3px, transparent 3px 10px, #aaa 10px 12px, transparent 12px 20px, #ccc 20px 22px, transparent 22px);
}
.business-card.back .mini-lines { filter: invert(1); opacity: 0.7; }
.service-card:hover .business-card.back { transform: translateX(-64%) rotate(-11deg); }
.service-card:hover .business-card.front { transform: translateX(-36%) rotate(8deg); }

/* Smartphone social */
.sample-phone {
	position: absolute;
	left: 50%;
	top: 14px;
	width: 74px;
	height: 122px;
	padding: 10px 7px;
	border: 5px solid #181818;
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 13px 24px rgba(0,0,0,0.19);
	transform: translateX(-50%) rotate(-3deg);
	transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.sample-phone::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 50%;
	width: 22px;
	height: 3px;
	border-radius: 3px;
	background: #333;
	transform: translateX(-50%);
}
.phone-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 5px; }
.phone-posts span { aspect-ratio: 1; background: linear-gradient(135deg, var(--rosso), #ef8d67); }
.phone-posts span:nth-child(2) { background: linear-gradient(135deg, #171717, #555); }
.phone-posts span:nth-child(3) { background: linear-gradient(135deg, #d8b475, #fff0cc); }
.phone-posts span:nth-child(4) { background: linear-gradient(135deg, #f1f1f1, #bbb); }
.phone-metrics { height: 18px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--rosso) 0 64%, #ddd 64%); }
.service-card:hover .sample-phone { transform: translateX(-50%) rotate(2deg) scale(1.04); }

/* Brand board */
.sample-brand-board {
	position: absolute;
	inset: 22px 14%;
	padding: 15px;
	border: 1px solid rgba(0,0,0,0.12);
	background: #fff;
	box-shadow: 0 12px 24px rgba(0,0,0,0.13);
	transform: rotate(2deg);
	transition: transform 0.4s ease;
}
.brand-mark {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	background: var(--rosso);
	color: white;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
}
.brand-type {
	position: absolute;
	left: 65px;
	top: 18px;
	right: 15px;
	height: 34px;
	background: linear-gradient(#111 0 5px, transparent 5px 14px, #aaa 14px 16px, transparent 16px 25px, #ccc 25px 27px, transparent 27px);
}
.brand-swatches { display: flex; gap: 9px; margin-top: 15px; }
.brand-swatches span { width: 26px; height: 26px; border-radius: 50%; background: var(--rosso); }
.brand-swatches span:nth-child(2) { background: #111; }
.brand-swatches span:nth-child(3) { background: #c9a96e; }
.brand-swatches span:nth-child(4) { background: #e8e4dc; }
.service-card:hover .sample-brand-board { transform: rotate(-1deg) scale(1.02); }

/* Manifesto / affissione */
.sample-poster-wall {
	position: absolute;
	inset: 20px 12%;
	border: 5px solid #333;
	background: #d6d0c4;
	box-shadow: 0 11px 24px rgba(0,0,0,0.16);
}
.sample-poster {
	position: absolute;
	inset: 8px;
	padding: 16px;
	color: white;
	background: linear-gradient(150deg, #111 0 42%, var(--rosso) 42% 100%);
	overflow: hidden;
}
.sample-poster b {
	display: block;
	width: 70%;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	line-height: 1;
}
.sample-poster span {
	display: block;
	margin-top: 8px;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 1.5px;
}
.sample-poster::after {
	content: '';
	position: absolute;
	right: -18px;
	bottom: -30px;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
}
.poster-roller {
	position: absolute;
	right: -4px;
	top: 3px;
	width: 13px;
	height: 106%;
	border-radius: 8px;
	background: linear-gradient(90deg, #999, #eee, #777);
	box-shadow: -4px 3px 8px rgba(0,0,0,0.2);
	transition: transform 0.35s ease;
}
.service-card:hover .poster-roller { transform: translateX(4px) rotate(3deg); }

/* ---------- IMPIANTI: SCHEDARIO TECNICO / MEDIA PLAN ---------- */
.impianti-catalog {
	background: #080a0e;
}
.impianti-catalog::before {
	background-image:
		linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
		linear-gradient(rgba(225,37,27,0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(225,37,27,0.05) 1px, transparent 1px);
	background-size: 48px 48px, 48px 48px, 240px 240px, 240px 240px;
	opacity: 0.7;
}
.impianti-catalog .section {
	padding-top: 108px;
	padding-bottom: 118px;
}
.impianti-catalog .section-header {
	margin-bottom: 48px;
}
.impianti-board-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	padding: 12px 16px;
	border-top: 1px solid rgba(255,255,255,0.12);
	border-bottom: 1px solid rgba(255,255,255,0.12);
	color: rgba(255,255,255,0.58);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.impianti-board-label strong { color: var(--rosso); }
.impianti-catalog .impianti-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 26px;
}
.impianti-catalog .impianto-card {
	grid-column: span 4 !important;
	display: flex;
	flex-direction: column;
	min-height: 420px;
	aspect-ratio: auto;
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 10px;
	overflow: hidden;
	color: var(--bianco);
	background: linear-gradient(160deg, rgba(25,28,35,0.98), rgba(12,14,18,0.98));
	box-shadow: 0 20px 52px rgba(0,0,0,0.34);
	cursor: default;
	isolation: isolate;
	transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s ease, box-shadow 0.45s ease;
}
.impianti-catalog .impianto-card--featured {
	grid-column: span 6 !important;
	min-height: 500px;
}
.impianti-catalog .impianto-card:hover {
	transform: translateY(-7px);
	border-color: rgba(225,37,27,0.58);
	box-shadow: 0 28px 72px rgba(0,0,0,0.48), 0 0 0 1px rgba(225,37,27,0.18);
}
.impianto-card-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 14px 17px;
	border-bottom: 1px solid rgba(255,255,255,0.11);
	background: rgba(255,255,255,0.025);
}
.impianto-index {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: rgba(255,255,255,0.22);
}
.impianto-code {
	display: block;
	color: var(--bianco);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 1.6px;
}
.impianto-kind {
	display: block;
	margin-top: 3px;
	color: rgba(255,255,255,0.42);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
}
.impianto-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 1px solid rgba(38,205,99,0.42);
	border-radius: 3px;
	color: #79ed9e;
	background: rgba(38,205,99,0.08);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	transform: rotate(-1deg);
}
.impianto-status::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
.impianto-visual {
	position: relative;
	height: 218px;
	overflow: hidden;
	background: #20242b;
}
.impianto-card--featured .impianto-visual { height: 268px; }
.impianto-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	object-fit: cover;
	filter: grayscale(34%) contrast(1.08) brightness(0.78);
	transform: scale(1.015);
	transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.impianto-card:hover .impianto-media {
	filter: grayscale(0%) contrast(1.02) brightness(0.92);
	transform: scale(1.045);
}
.impianto-visual::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(to top, rgba(8,10,14,0.92), transparent 58%),
		linear-gradient(90deg, rgba(225,37,27,0.12), transparent 38%);
}
.impianto-visual::after {
	content: '';
	position: absolute;
	z-index: 2;
	inset: 15px;
	pointer-events: none;
	opacity: 0.68;
	background:
		linear-gradient(var(--rosso),var(--rosso)) left top/34px 2px no-repeat,
		linear-gradient(var(--rosso),var(--rosso)) left top/2px 34px no-repeat,
		linear-gradient(var(--rosso),var(--rosso)) right bottom/34px 2px no-repeat,
		linear-gradient(var(--rosso),var(--rosso)) right bottom/2px 34px no-repeat;
}
.impianto-photo-note {
	position: absolute;
	z-index: 3;
	left: 17px;
	top: 17px;
	padding: 7px 9px;
	border: 1px solid rgba(255,255,255,0.18);
	background: rgba(8,10,14,0.72);
	backdrop-filter: blur(8px);
	color: rgba(255,255,255,0.76);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 1.1px;
	text-transform: uppercase;
}

.impianto-details {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 20px 22px;
}
.impianto-details h3 {
	margin: 0 0 9px;
	color: var(--bianco);
	font-size: 20px;
	line-height: 1.25;
}
.impianto-card--featured .impianto-details h3 { font-size: 23px; }
.impianto-details p {
	margin: 0;
	color: rgba(255,255,255,0.62);
	font-size: 13px;
	line-height: 1.58;
}
.impianto-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 17px;
}
.impianto-spec {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 9px;
	border: 1px solid rgba(255,255,255,0.11);
	border-radius: 4px;
	color: rgba(255,255,255,0.74);
	background: rgba(255,255,255,0.035);
	font-size: 10px;
	font-weight: 700;
}
.impianto-spec svg { width: 13px; height: 13px; color: var(--rosso); }
.impianto-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 19px;
}
.impianto-map-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 5px 14px;
	border-radius: 4px;
	background: var(--rosso);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.3px;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(225,37,27,0.22);
	transition: background 0.3s ease, transform 0.3s ease;
}
.impianto-map-link:hover {
	background: var(--rosso-dark);
	transform: translateY(-2px);
}
.impianto-map-link svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}
.impianto-map-link span {
	margin-left: 1px;
	transition: transform 0.3s ease;
}
.impianto-map-link:hover span {
	transform: translate(2px, -2px);
}

/* Inquadrature leggermente diverse finché sono usate le immagini dimostrative. */
.impianto-photo-1 { object-position: 48% 50%; }
.impianto-photo-2 { object-position: 58% 50%; }
.impianto-photo-3 { object-position: 38% 54%; }
.impianto-photo-4 { object-position: 68% 48%; }
.impianto-photo-5 { object-position: 50% 62%; }
.impianto-measure {
	color: rgba(255,255,255,0.35);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.impianti-footnote {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}
.impianti-footnote span {
	padding: 10px 15px;
	border: 1px dashed rgba(255,255,255,0.18);
	color: rgba(255,255,255,0.46);
	font-size: 10px;
	letter-spacing: 0.7px;
	text-align: center;
}

/* Centra automaticamente un solo impianto rimasto nell'ultima riga desktop. */
@media (min-width: 1101px) {
	.impianti-catalog .impianto-card:last-child:nth-child(3n) {
		grid-column: 5 / span 4 !important;
	}
}

/* ---------- RESPONSIVE NUOVE SEZIONI ---------- */
@media (max-width: 1100px) {
	.services-catalog .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.impianti-catalog .impianto-card,
	.impianti-catalog .impianto-card--featured {
		grid-column: span 6 !important;
	}
	.impianti-catalog .impianto-card:last-child:nth-child(odd) { grid-column: 4 / span 6 !important; }
}
@media (max-width: 768px) {
	.services-catalog::before { display: none; }
	.services-catalog .section,
	.impianti-catalog .section { padding-top: 88px; padding-bottom: 90px; }
	.services-catalog .services-grid { grid-template-columns: 1fr; }
	.services-catalog .service-card { min-height: 0; }
	.services-catalog .service-card p { min-height: 0; }
	.impianti-board-label { align-items: flex-start; flex-direction: column; }
	.impianti-catalog .impianti-grid { grid-template-columns: 1fr; gap: 22px; }
	.impianti-catalog .impianto-card,
	.impianti-catalog .impianto-card--featured,
	.impianti-catalog .impianto-card:last-child {
		grid-column: 1 !important;
		min-height: 0;
	}
	.impianto-card--featured .impianto-visual,
	.impianto-visual { height: 235px; }
	.impianto-card-head { grid-template-columns: auto 1fr; }
	.impianto-status { grid-column: 1 / -1; justify-self: start; }
	.impianto-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
	.service-sample { height: 140px; }
	.service-material { max-width: 120px; }
	.impianto-details { padding: 18px 16px 20px; }
	.impianto-card--featured .impianto-details h3,
	.impianto-details h3 { font-size: 19px; }
}



/* ============================================================
   HERO — PANNELLO PUBBLICITARIO RETTANGOLARE
   Versione pulita e uniforme, senza palo o sostegni metallici
   ============================================================ */
.hero-right {
	position: relative;
	min-height: 500px;
	display: grid;
	place-items: center;
	perspective: none;
}

.hero-billboard {
	position: relative;
	width: 100%;
	max-width: none;
	padding: 0;
	transform: none;
	transform-style: flat;
	filter: drop-shadow(0 28px 42px rgba(0,0,0,0.42));
	isolation: isolate;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
				filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-billboard:hover {
	transform: translateY(-5px);
	filter: drop-shadow(0 34px 52px rgba(0,0,0,0.48));
}

.billboard-frame {
	position: relative;
	width: 100%;
	height: 500px;
	aspect-ratio: auto;
	padding: 11px;
	overflow: visible;
	border-radius: 18px;
	background:
		linear-gradient(145deg, #555a5e 0%, #222629 22%, #42474b 52%, #171a1c 100%);
	border: 1px solid rgba(255,255,255,0.22);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.18),
		inset 0 -1px 0 rgba(0,0,0,0.55),
		inset 0 0 0 3px rgba(255,255,255,0.025),
		0 20px 48px rgba(0,0,0,0.34);
}

/* Bordo interno continuo */
.billboard-frame::before {
	content: '';
	position: absolute;
	top: 7px;
	right: 7px;
	bottom: 7px;
	left: 7px;
	width: auto;
	height: auto;
	z-index: 3;
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 12px;
	background: none;
	box-shadow: none;
	pointer-events: none;
}

/* Nessuna striscia decorativa aggiuntiva */
.billboard-frame::after {
	content: none;
	display: none;
}

.hero-image-frame,
.billboard-screen {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: #111;
	box-shadow:
		inset 0 0 0 1px rgba(0,0,0,0.82),
		inset 0 0 26px rgba(0,0,0,0.30);
}

.hero-image-frame img,
.billboard-screen img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center;
	display: block;
	filter: saturate(0.96) contrast(1.035);
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
				filter 0.5s ease;
}

.hero-billboard:hover .billboard-screen img {
	transform: scale(1.018);
	filter: saturate(1) contrast(1.04);
}

.hero-image-frame::after { display: none; }

.billboard-glass {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(120deg,
			rgba(255,255,255,0.13) 0%,
			rgba(255,255,255,0.035) 20%,
			transparent 34%,
			transparent 72%,
			rgba(255,255,255,0.04) 100%),
		linear-gradient(to top, rgba(5,5,5,0.16), transparent 40%);
	mix-blend-mode: screen;
}

/* Le vecchie parti strutturali non vengono più utilizzate */
.billboard-bolt,
.billboard-neck,
.billboard-pole,
.billboard-base,
.billboard-support,
.billboard-pole-assembly,
.billboard-ground-shadow {
	display: none !important;
}

/* Etichette compatte: stessa dimensione precedente, solo spostate verso i lati */
.hero-floating-card {
	position: absolute;
	z-index: 8;
	min-width: 138px;
	padding: 15px 19px;
	border-radius: 9px;
	background: rgba(255,255,255,0.97);
	border: 1px solid rgba(255,255,255,0.75);
	box-shadow: 0 14px 30px rgba(0,0,0,0.28);
	backdrop-filter: blur(8px);
}

.hero-floating-card::before {
	content: '';
	position: absolute;
	top: -7px;
	left: 50%;
	width: 48px;
	height: 14px;
	transform: translateX(-50%);
	border-radius: 3px;
	background: rgba(225,37,27,0.86);
	box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.hero-floating-card.card-1 {
	left: -54px;
	bottom: 58px;
	animation: billboardNoteFloat1 5s ease-in-out infinite;
}

.hero-floating-card.card-2 {
	right: -48px;
	top: 42px;
	animation: billboardNoteFloat2 5s ease-in-out 1.2s infinite;
}

.hero-floating-card .card-label {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: var(--grigio-500);
	margin-bottom: 3px;
}

.hero-floating-card .card-value {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--rosso);
}

@keyframes billboardNoteFloat1 {
	0%,100% { transform: rotate(-3deg) translateY(0); }
	50% { transform: rotate(-1.5deg) translateY(-6px); }
}

@keyframes billboardNoteFloat2 {
	0%,100% { transform: rotate(3deg) translateY(0); }
	50% { transform: rotate(1.5deg) translateY(-6px); }
}

@media (max-width: 1180px) {
	.hero-billboard { width: 100%; }
}

@media (max-width: 1024px) {
	.hero-right {
		min-height: 500px;
		width: 100%;
		max-width: 500px;
		margin: 0 auto;
	}
	.hero-billboard { width: 100%; }
	.billboard-frame { height: 500px; }
}

@media (max-width: 768px) {
	.hero-right {
		width: 100%;
		min-height: clamp(340px, 90vw, 500px);
		margin-top: 10px;
	}
	.hero-billboard { width: min(100%, 500px); }
	.billboard-frame { height: clamp(340px, 90vw, 500px); }
	.billboard-frame {
		padding: 8px;
		border-radius: 14px;
	}
	.billboard-frame::before {
		top: 5px;
		right: 5px;
		bottom: 5px;
		left: 5px;
		border-radius: 10px;
	}
	.billboard-screen { border-radius: 8px; }
	.hero-floating-card { display: none; }
}

@media (max-width: 480px) {
	.hero-right { min-height: 340px; }
	.hero-billboard { width: 100%; }
	.billboard-frame {
		height: 340px;
		padding: 7px;
	}
}



/* ========================================================================
   RECENSIONI — BACHECA PRINCIPALE + BACHECA COMPLETA IN MODALE
   ======================================================================== */
.testimonials-actions {
	display: flex;
	justify-content: center;
	margin-top: 42px;
}

.review-board-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	min-height: 52px;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--rosso);
	color: var(--bianco);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(225,37,27,0.25);
	transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.review-board-trigger:hover {
	transform: translateY(-3px);
	background: var(--rosso-dark);
	box-shadow: 0 17px 36px rgba(225,37,27,0.32);
}

.review-board-trigger:focus-visible {
	outline: 3px solid rgba(225,37,27,0.3);
	outline-offset: 4px;
}

.review-board-trigger svg {
	width: 19px;
	height: 19px;
	transition: transform 0.3s ease;
}

.review-board-trigger:hover svg { transform: translateX(4px); }


.review-source {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 18px;
	max-width: 760px;
	margin: 20px auto 0;
	padding: 14px 18px;
	border: 1px solid rgba(10,10,10,0.08);
	border-radius: 14px;
	background: rgba(255,255,255,0.76);
	box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.review-source-copy {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--grigio-500);
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.review-source-copy svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	color: var(--rosso);
}

.review-google-link,
.review-board-google-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--nero);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.25s ease, transform 0.25s ease;
}

.review-google-link:hover,
.review-board-google-link:hover {
	color: var(--rosso);
	transform: translateY(-1px);
}

.review-google-link svg,
.review-board-google-link svg {
	width: 16px;
	height: 16px;
}

.review-board-google-link {
	width: fit-content;
	margin-top: 11px;
}

.review-board-modal {
	position: fixed;
	inset: 0;
	z-index: 6000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px;
	background: rgba(6,6,6,0.9);
	backdrop-filter: blur(13px);
	-webkit-backdrop-filter: blur(13px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-board-modal.open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.review-board-dialog {
	position: relative;
	width: min(1380px, 100%);
	max-height: calc(100vh - 52px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 24px;
	background: #2b1a10;
	border: 8px solid #7e4b2a;
	outline: 3px solid #c8976d;
	box-shadow: 0 32px 100px rgba(0,0,0,0.55), inset 0 0 30px rgba(0,0,0,0.25);
	transform: translateY(22px) scale(0.98);
	transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.review-board-modal.open .review-board-dialog {
	transform: translateY(0) scale(1);
}

.review-board-header {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 30px 23px;
	background: linear-gradient(180deg, #fffdfa, #f3eee8);
	border-bottom: 1px solid rgba(84,53,31,0.16);
	box-shadow: 0 9px 24px rgba(55,28,10,0.16);
}

.review-board-header::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -9px;
	width: 102px;
	height: 18px;
	transform: translateX(-50%) rotate(-1deg);
	border-radius: 2px;
	background: rgba(225,37,27,0.72);
	box-shadow: 0 3px 7px rgba(80,14,10,0.22);
}

.review-board-heading span {
	display: block;
	margin-bottom: 4px;
	color: var(--rosso);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2.2px;
}

.review-board-heading h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(25px, 3vw, 38px);
	line-height: 1.12;
	color: var(--nero);
}

.review-board-heading p {
	margin: 7px 0 0;
	color: var(--grigio-500);
	font-size: 14px;
}

.review-board-close {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(10,10,10,0.12);
	border-radius: 50%;
	background: var(--bianco);
	color: var(--nero);
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(0,0,0,0.10);
	transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.review-board-close:hover {
	transform: rotate(90deg);
	background: var(--rosso);
	color: var(--bianco);
}

.review-board-close svg { width: 22px; height: 22px; }

.review-board-scroll {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(44px, 5vw, 74px);
	background:
		radial-gradient(circle at 21% 31%, rgba(255,255,255,0.22) 0 1px, transparent 2px),
		radial-gradient(circle at 72% 66%, rgba(78,39,12,0.12) 0 1px, transparent 2px),
		repeating-linear-gradient(31deg, rgba(102,58,25,0.055) 0 2px, transparent 2px 10px),
		linear-gradient(135deg, #bd7f53, #d7a77c 50%, #b9774c);
	background-size: 27px 27px, 35px 35px, auto, auto;
	box-shadow: inset 0 0 48px rgba(68,35,12,0.30);
}

.review-board-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: clamp(34px, 4vw, 58px);
}

.review-board-card {
	position: relative;
	min-height: 300px;
	padding: 46px 30px 30px;
	border-radius: 3px;
	background:
		linear-gradient(rgba(76,88,99,0.045) 1px, transparent 1px),
		#fffdfa;
	background-size: 100% 28px;
	color: #403a35;
	box-shadow: 0 18px 30px rgba(59,32,14,0.25);
	transform-origin: 50% 0;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.review-board-card:nth-child(3n + 1) { transform: rotate(-2.1deg); }
.review-board-card:nth-child(3n + 2) { transform: rotate(1.5deg) translateY(-5px); }
.review-board-card:nth-child(3n) { transform: rotate(2.2deg); }

.review-board-card:hover {
	transform: translateY(-8px) rotate(0deg);
	box-shadow: 0 27px 42px rgba(59,32,14,0.31);
}

.review-board-card::before {
	content: '';
	position: absolute;
	top: -13px;
	left: 50%;
	width: 20px;
	height: 20px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 28%, #ff756d 0 18%, #dc2017 42%, #8f0e09 75%);
	box-shadow: 0 5px 8px rgba(53,13,10,0.32);
}

.review-board-card:nth-child(even)::before {
	width: 76px;
	height: 19px;
	top: -9px;
	border-radius: 2px;
	background: rgba(246,232,199,0.84);
	box-shadow: 0 3px 7px rgba(63,42,17,0.18);
	transform: translateX(-50%) rotate(3deg);
}

.review-board-card::after {
	content: '“';
	position: absolute;
	top: 20px;
	right: 22px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 66px;
	line-height: 1;
	color: rgba(225,37,27,0.14);
}

.review-board-stars {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
}

.review-board-stars svg {
	width: 17px;
	height: 17px;
	color: var(--oro);
	fill: var(--oro);
}

.review-board-text {
	position: relative;
	z-index: 1;
	margin: 0 0 25px;
	font-size: 15px;
	line-height: 1.72;
	font-style: italic;
}

.review-board-author {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 13px;
	padding-top: 18px;
	border-top: 1px dashed rgba(73,60,49,0.20);
}

.review-board-avatar {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	border: 3px solid #fff;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--rosso), var(--oro));
	color: var(--bianco);
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 4px 10px rgba(0,0,0,0.14);
}

.review-board-author strong {
	display: block;
	color: var(--nero);
	font-size: 14px;
	line-height: 1.25;
}

.review-board-author span {
	display: block;
	margin-top: 3px;
	color: var(--grigio-500);
	font-size: 12px;
	line-height: 1.35;
}

body.review-board-open { overflow: hidden; }

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

@media (max-width: 700px) {
	.review-board-modal { padding: 10px; }
	.review-board-dialog {
		max-height: calc(100vh - 20px);
		border-width: 6px;
		border-radius: 18px;
	}
	.review-board-header { padding: 21px 18px 20px; }
	.review-board-heading p { display: none; }
	.review-board-close { width: 43px; height: 43px; }
	.review-board-scroll { padding: 43px 18px 52px; }
	.review-board-grid { grid-template-columns: 1fr; gap: 38px; }
	.review-board-card,
	.review-board-card:nth-child(3n + 1),
	.review-board-card:nth-child(3n + 2),
	.review-board-card:nth-child(3n) {
		min-height: 0;
		padding: 44px 24px 27px;
		transform: rotate(-0.7deg);
	}
	.review-board-card:nth-child(even) { transform: rotate(0.7deg); }
}

@media (max-width: 480px) {
	.testimonials-actions { margin-top: 32px; }
	.review-source { align-items: stretch; padding: 14px; }
	.review-source-copy { justify-content: center; }
	.review-google-link { width: 100%; }
	.review-board-trigger { width: 100%; }
	.review-board-heading h3 { font-size: 24px; }
}



/* ============================================================
   CONSENSO COOKIE E CONTENUTI ESTERNI
   Google Maps viene caricato soltanto dopo una scelta esplicita.
   ============================================================ */
.cookie-banner[hidden],
.cookie-preferences[hidden],
.map-consent-placeholder[hidden],
.map-container iframe[hidden] {
	display: none !important;
}

.cookie-banner {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 7000;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.cookie-banner__inner {
	width: min(1120px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	padding: 24px 26px;
	color: var(--bianco);
	background: rgba(15, 15, 15, 0.97);
	border: 1px solid rgba(255,255,255,0.13);
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0,0,0,0.42);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	pointer-events: auto;
}

.cookie-banner__copy strong {
	display: block;
	margin-bottom: 6px;
	font-size: 18px;
	line-height: 1.25;
}

.cookie-banner__copy p {
	max-width: 720px;
	margin: 0;
	color: var(--grigio-300);
	font-size: 14px;
	line-height: 1.55;
}

.cookie-banner__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.cookie-btn {
	min-height: 44px;
	padding: 11px 18px;
	border: 1px solid rgba(255,255,255,0.24);
	border-radius: 999px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease,
				border-color 0.25s ease, color 0.25s ease;
}

.cookie-btn:hover { transform: translateY(-2px); }
.cookie-btn--primary {
	color: var(--bianco);
	background: var(--rosso);
	border-color: var(--rosso);
}
.cookie-btn--primary:hover { background: var(--rosso-dark); }
.cookie-btn--secondary {
	color: var(--bianco);
	background: transparent;
}
.cookie-btn--secondary:hover { background: rgba(255,255,255,0.09); }
.cookie-btn--ghost {
	color: var(--grigio-300);
	background: transparent;
	border-color: transparent;
}
.cookie-btn--ghost:hover {
	color: var(--bianco);
	background: rgba(255,255,255,0.07);
}

.cookie-preferences {
	position: fixed;
	inset: 0;
	z-index: 7100;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(4,4,4,0.78);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.cookie-preferences__dialog {
	position: relative;
	width: min(620px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	overflow-y: auto;
	padding: 34px;
	background: var(--bianco);
	border-radius: 18px;
	box-shadow: 0 28px 90px rgba(0,0,0,0.48);
}

.cookie-preferences__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: var(--nero);
	background: var(--grigio-100);
	font-size: 24px;
	cursor: pointer;
}

.cookie-preferences__eyebrow {
	display: block;
	margin-bottom: 8px;
	color: var(--rosso);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.cookie-preferences h2 {
	padding-right: 50px;
	margin-bottom: 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 5vw, 38px);
	line-height: 1.15;
}

.cookie-preferences__intro {
	margin-bottom: 26px;
	color: var(--grigio-500);
	font-size: 15px;
	line-height: 1.65;
}

.cookie-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 20px 0;
	border-top: 1px solid var(--grigio-100);
}

.cookie-option:last-of-type {
	border-bottom: 1px solid var(--grigio-100);
}

.cookie-option strong {
	display: block;
	margin-bottom: 5px;
	font-size: 15px;
}

.cookie-option p {
	margin: 0;
	color: var(--grigio-500);
	font-size: 13px;
	line-height: 1.55;
}

.cookie-option__status {
	color: var(--grigio-500);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.cookie-switch {
	position: relative;
	width: 52px;
	height: 30px;
	flex: 0 0 auto;
}

.cookie-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cookie-switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--grigio-300);
	cursor: pointer;
	transition: background 0.25s ease;
}

.cookie-switch span::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bianco);
	box-shadow: 0 2px 7px rgba(0,0,0,0.22);
	transition: transform 0.25s ease;
}

.cookie-switch input:checked + span { background: var(--rosso); }
.cookie-switch input:checked + span::after { transform: translateX(22px); }
.cookie-switch input:focus-visible + span {
	outline: 3px solid rgba(225,37,27,0.24);
	outline-offset: 3px;
}

.cookie-preferences__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 26px;
	flex-wrap: wrap;
}

.cookie-preferences .cookie-btn--secondary {
	color: var(--nero);
	background: var(--bianco);
	border-color: var(--grigio-300);
}
.cookie-preferences .cookie-btn--secondary:hover {
	background: var(--grigio-100);
}

.footer-cookie-settings {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--grigio-500);
	background: transparent;
	font: inherit;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
	transition: var(--transition);
}
.footer-cookie-settings:hover { color: var(--rosso); }

/* Placeholder della mappa prima del consenso */
.map-container {
	min-height: 500px;
	background: #dedbd5;
}

.map-consent-placeholder {
	min-height: 500px;
	display: grid;
	place-items: center;
	padding: 36px;
	text-align: center;
	background:
		linear-gradient(rgba(255,255,255,0.70), rgba(255,255,255,0.78)),
		radial-gradient(circle at 20% 20%, rgba(225,37,27,0.20), transparent 34%),
		linear-gradient(135deg, #e9e5de, #d2cec5);
}

.map-consent-card {
	width: min(540px, 100%);
	padding: 34px;
	border: 1px solid rgba(10,10,10,0.08);
	border-radius: 16px;
	background: rgba(255,255,255,0.93);
	box-shadow: 0 18px 55px rgba(0,0,0,0.13);
}

.map-consent-icon {
	width: 62px;
	height: 62px;
	display: grid;
	place-items: center;
	margin: 0 auto 18px;
	border-radius: 50%;
	color: var(--bianco);
	background: var(--rosso);
	box-shadow: var(--shadow-red);
}
.map-consent-icon svg { width: 28px; height: 28px; }

.map-consent-card h3 {
	margin-bottom: 10px;
	font-size: 23px;
}

.map-consent-card p {
	margin-bottom: 22px;
	color: var(--grigio-500);
	font-size: 14px;
	line-height: 1.65;
}

.map-consent-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.map-consent-load,
.map-consent-open,
.map-open-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease,
				color 0.25s ease, border-color 0.25s ease;
}

.map-consent-load {
	border: 1px solid var(--rosso);
	color: var(--bianco);
	background: var(--rosso);
}
.map-consent-open {
	border: 1px solid var(--grigio-300);
	color: var(--nero);
	background: var(--bianco);
}
.map-consent-load:hover,
.map-consent-open:hover,
.map-open-button:hover { transform: translateY(-2px); }

.map-open-button {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 6;
	border: 1px solid rgba(255,255,255,0.42);
	color: var(--bianco);
	background: rgba(10,10,10,0.82);
	box-shadow: 0 8px 24px rgba(0,0,0,0.26);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

body.cookie-modal-open { overflow: hidden; }

@media (max-width: 760px) {
	.cookie-banner { left: 10px; right: 10px; bottom: 10px; }
	.cookie-banner__inner {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 20px;
	}
	.cookie-banner__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}
	.cookie-btn--ghost { grid-column: 1 / -1; }
	.cookie-preferences { padding: 12px; }
	.cookie-preferences__dialog { padding: 28px 20px 22px; }
	.cookie-option { gap: 14px; }
	.map-consent-placeholder { padding: 18px; }
	.map-consent-card { padding: 28px 20px; }
	.map-open-button {
		right: 12px;
		bottom: 12px;
	}
}


@media (max-width: 520px) {
	.portfolio-subfilter {
		width: 100%;
		margin-top: -24px;
		padding: 10px;
	}
	.portfolio-subfilter-label {
		width: 100%;
		margin: 0 0 2px;
		text-align: center;
	}
	.subfilter-btn { flex: 1 1 0; }
}

/* ============================================================
   HERO - ONDE ROSSE FLUIDE STILE PS3
   Tre forme continue ruotano a velocità differenti.
   ============================================================ */

/* Disattiva il vecchio fascio singolo: viene sostituito dalle onde fluide. */
.hero::after {
	display: none;
}

.hero-bg {
	z-index: 0;
	background:
		radial-gradient(
			circle at 72% 58%,
			rgba(225, 37, 27, 0.09) 0%,
			rgba(225, 37, 27, 0.025) 30%,
			transparent 58%
		),
		linear-gradient(
			135deg,
			var(--nero) 0%,
			var(--nero-soft) 52%,
			var(--grigio-900) 100%
		);
}

.hero-grid,
.hero-visual {
	z-index: 0;
}

.hero-ps3-waves {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
	filter: blur(8px);
}

.hero-ps3-wave {
	position: absolute;
	width: 165vmax;
	height: 165vmax;
	left: 50%;
	top: 62%;
	border-radius: 43%;
	transform-origin: 50% 48%;
	will-change: transform;
	mix-blend-mode: screen;
}

.hero-ps3-wave--one {
	background: linear-gradient(
		to bottom,
		rgba(225, 37, 27, 0.28) 0%,
		rgba(225, 37, 27, 0.13) 13%,
		rgba(143, 16, 11, 0.055) 25%,
		transparent 39%
	);
	animation: heroPs3WaveOne 30s linear infinite;
}

.hero-ps3-wave--two {
	border-radius: 40%;
	background: linear-gradient(
		to bottom,
		rgba(255, 81, 72, 0.19) 0%,
		rgba(225, 37, 27, 0.085) 15%,
		rgba(143, 16, 11, 0.035) 27%,
		transparent 41%
	);
	animation: heroPs3WaveTwo 22s linear infinite;
}

.hero-ps3-wave--three {
	border-radius: 46%;
	background: linear-gradient(
		to bottom,
		rgba(255, 118, 108, 0.12) 0%,
		rgba(225, 37, 27, 0.055) 16%,
		transparent 37%
	);
	animation: heroPs3WaveThree 16s linear infinite;
}

.hero-content {
	position: relative;
	z-index: 3;
}

@keyframes heroPs3WaveOne {
	from {
		transform: translate(-50%, -50%) rotate(0deg) scale(1);
	}

	50% {
		transform: translate(-50%, -50%) rotate(180deg) scale(1.03);
	}

	to {
		transform: translate(-50%, -50%) rotate(360deg) scale(1);
	}
}

@keyframes heroPs3WaveTwo {
	from {
		transform: translate(-50%, -50%) rotate(360deg) scale(1.02);
	}

	50% {
		transform: translate(-50%, -50%) rotate(180deg) scale(0.98);
	}

	to {
		transform: translate(-50%, -50%) rotate(0deg) scale(1.02);
	}
}

@keyframes heroPs3WaveThree {
	from {
		transform: translate(-50%, -50%) rotate(0deg) scale(0.99);
	}

	50% {
		transform: translate(-50%, -50%) rotate(180deg) scale(1.035);
	}

	to {
		transform: translate(-50%, -50%) rotate(360deg) scale(0.99);
	}
}

@media (max-width: 768px) {
	.hero-ps3-waves {
		filter: blur(6px);
	}

	.hero-ps3-wave {
		width: 135vmax;
		height: 135vmax;
		top: 66%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-ps3-wave {
		animation: none;
	}
}

/* ============================================================
   CORREZIONI MOBILE: COOKIE, IMPIANTI, GALLERIA E PRESTAZIONI
   ============================================================ */

/* La didascalia è parte dello stage, quindi resta centrata sotto la foto. */
.gallery-lightbox-stage {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	gap: 13px;
}

.gallery-lightbox-image {
	align-self: center;
	justify-self: center;
	min-width: 0;
	min-height: 0;
}

.gallery-lightbox-caption {
	position: static;
	left: auto;
	bottom: auto;
	transform: none;
	width: 100%;
	min-height: 20px;
	padding: 0 10px;
	text-align: center;
}

.gallery-lightbox-caption span {
	display: block;
	margin: 0 auto;
	line-height: 1.35;
}

body.cookie-banner-visible .sticky-cta {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@media (max-width: 768px) {
	/* In mobile nessuna card deve restare invisibile per l'animazione reveal. */
	.reveal,
	.reveal.active {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	/* Impianti: una colonna reale, immagini stabili e nessun grande spazio vuoto. */
	.impianti-catalog .section {
		padding: 72px 16px 82px;
	}

	.impianti-catalog .section-header {
		margin-bottom: 34px;
	}

	.impianti-board-label {
		gap: 9px;
		margin-bottom: 18px;
		padding: 12px 4px;
		font-size: 9px;
		line-height: 1.6;
		letter-spacing: 1.35px;
	}

	.impianti-catalog .impianti-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		width: 100%;
	}

	.impianti-catalog .impianto-card,
	.impianti-catalog .impianto-card--featured,
	.impianti-catalog .impianto-card:last-child {
		grid-column: 1 / -1 !important;
		width: 100%;
		min-width: 0;
		min-height: 0;
		margin: 0;
	}

	.impianto-card-head {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 10px;
		min-height: 0;
		padding: 15px 16px;
	}

	.impianto-card-head > div {
		display: none;
	}

	.impianto-index {
		font-size: clamp(25px, 8vw, 34px);
		line-height: 1.05;
	}

	.impianto-status {
		grid-column: auto;
		justify-self: end;
		white-space: nowrap;
	}

	.impianto-card--featured .impianto-visual,
	.impianto-visual {
		position: relative;
		flex: 0 0 auto;
		height: auto !important;
		min-height: 190px;
		aspect-ratio: 16 / 10;
	}

	.impianto-media {
		width: 100%;
		height: 100%;
		object-fit: cover;
		filter: grayscale(12%) contrast(1.04) brightness(0.9);
	}

	.impianto-details {
		padding: 18px 16px 20px;
	}

	.impianto-card--featured .impianto-details h3,
	.impianto-details h3 {
		font-size: 19px;
		line-height: 1.3;
	}

	.impianto-details p {
		font-size: 13px;
		line-height: 1.6;
	}

	.impianto-actions {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
	}

	.impianto-map-link {
		min-height: 44px;
	}

	/* Lightbox: immagine e categoria rimangono nello stesso blocco. */
	.gallery-lightbox {
		padding: 68px 12px 88px;
	}

	.gallery-lightbox-stage {
		width: 100%;
		height: calc(100vh - 168px);
		height: calc(100dvh - 168px);
		gap: 10px;
	}

	.gallery-lightbox-image {
		max-width: 100%;
		max-height: 100%;
		border-radius: 8px;
	}

	.gallery-lightbox-caption {
		width: 100%;
		padding: 0 44px;
	}

	.gallery-lightbox-caption span {
		font-size: 13px;
		color: rgba(255,255,255,0.76);
	}

	.gallery-lightbox-nav {
		bottom: 18px;
	}

	/* Banner cookie compatto e interamente contenuto nello schermo. */
	.cookie-banner {
		left: 12px;
		right: 12px;
		bottom: max(12px, env(safe-area-inset-bottom));
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		overflow-y: auto;
		overscroll-behavior: contain;
		border-radius: 22px;
	}

	.cookie-banner__inner {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 20px;
	}

	.cookie-banner__copy strong {
		font-size: 22px;
		line-height: 1.15;
	}

	.cookie-banner__copy p {
		margin-top: 9px;
		font-size: 14px;
		line-height: 1.55;
	}

	.cookie-banner__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		width: 100%;
	}

	.cookie-banner__actions .cookie-btn {
		width: 100%;
		min-height: 48px;
		padding: 11px 14px;
		font-size: 14px;
	}

	.cookie-banner__actions .cookie-btn--secondary {
		order: 1;
	}

	.cookie-banner__actions .cookie-btn--primary {
		order: 2;
	}

	.cookie-banner__actions .cookie-btn--ghost {
		grid-column: 1 / -1;
		order: 3;
		min-height: 42px;
	}
}

@media (max-width: 390px) {
	.cookie-banner {
		left: 8px;
		right: 8px;
		bottom: max(8px, env(safe-area-inset-bottom));
	}

	.cookie-banner__inner {
		padding: 17px;
	}

	.cookie-banner__copy strong {
		font-size: 20px;
	}

	.cookie-banner__copy p {
		font-size: 13px;
	}

	.impianto-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.impianto-map-link {
		justify-content: center;
	}
}

/* ========================================================================
   CORREZIONI MOBILE V2 — BACHECA, IMPIANTI E CARICAMENTO IMMAGINI
   ======================================================================== */
@media (max-width: 768px) {
	/* Bacheca Chi siamo: le polaroid entrano nel flusso e non coprono le didascalie. */
	.about-section .section.about-grid {
		gap: 42px;
		padding-left: 18px;
		padding-right: 18px;
	}

	.about-images {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		gap: 16px;
		width: 100% !important;
		min-height: 0 !important;
		margin: 0 !important;
	}

	.about-img-main,
	.about-img-accent {
		position: relative !important;
		inset: auto !important;
		height: auto !important;
		overflow: visible;
	}

	.about-img-main {
		width: 100% !important;
		padding: 10px 10px 12px !important;
		transform: rotate(-1.2deg);
	}

	.about-img-main img {
		display: block;
		width: 100%;
		height: auto !important;
		aspect-ratio: 4 / 3;
		object-fit: cover;
		object-position: 50% 54%;
	}

	.about-img-main figcaption,
	.about-img-accent figcaption {
		position: static !important;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 48px;
		padding: 11px 7px 2px;
		font-size: 14px;
		line-height: 1.25;
		text-align: center;
	}

	.about-img-accent {
		display: block !important;
		justify-self: end;
		width: min(62%, 190px) !important;
		padding: 8px 8px 10px !important;
		margin: -8px 2px 0 0;
		transform: rotate(2deg);
	}

	.about-img-accent img {
		display: block;
		width: 100%;
		height: auto !important;
		aspect-ratio: 4 / 3;
		object-fit: cover;
		object-position: center;
	}

	.about-img-accent figcaption {
		min-height: 36px;
		padding-top: 8px;
		font-size: 11px;
	}

	.about-badge {
		top: 20px !important;
		left: -5px !important;
	}

	/* Impianti: in mobile si usa flex, evitando le colonne implicite della griglia desktop. */
	.impianti-catalog .impianti-grid {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 20px !important;
		width: 100%;
		min-height: 0 !important;
		padding: 0;
	}

	.impianti-catalog article.impianto-card,
	.impianti-catalog article.impianto-card--featured,
	.impianti-catalog article.impianto-card:last-child {
		display: flex !important;
		flex: 0 0 auto;
		width: 100% !important;
		height: auto !important;
		min-width: 0 !important;
		min-height: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		grid-column: auto !important;
		grid-row: auto !important;
		aspect-ratio: auto !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}

	.impianto-card-head {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center;
		min-height: 66px;
	}

	.impianto-index {
		font-size: clamp(26px, 8vw, 34px);
		color: rgba(255, 255, 255, 0.46);
	}

	.impianto-card--featured .impianto-visual,
	.impianto-visual {
		position: relative !important;
		display: block !important;
		flex: 0 0 auto;
		width: 100%;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 16 / 10;
		overflow: hidden;
	}

	.impianto-media {
		position: absolute !important;
		inset: 0 !important;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 0;
		object-fit: cover;
	}

	.impianto-details {
		display: block !important;
		flex: 0 0 auto !important;
		width: 100%;
	}

	.impianto-actions {
		margin-top: 18px;
		padding-top: 0;
	}
}

@media (max-width: 420px) {
	.about-section .section.about-grid {
		width: calc(100% - 18px);
		padding: 46px 14px;
	}

	.about-img-main figcaption {
		font-size: 13px;
	}

	.impianti-catalog .section {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* ============================================================
   MOBILE - CENTRATURA CAMPIONI GRAFICI DEI SERVIZI
   Mantiene testi, cartelloni, fogli, biglietti, palette e
   manifesti centrati anche con font di sistema ingranditi.
   ============================================================ */

@media (max-width: 768px) {
	.service-sample {
		position: relative;
		height: 158px;
		display: grid;
		place-items: center;
		margin-top: 10px;
		margin-bottom: 24px;
	}

	/* Cartellone: testo sempre centrato dentro la faccia rossa. */
	.sample-billboard {
		left: 50%;
		top: 50%;
		width: min(78%, 300px);
		transform: translate(-50%, -46%);
	}

	.sample-billboard-face {
		height: 94px;
		padding: 12px 14px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.sample-billboard-face span {
		font-size: clamp(8px, 2.4vw, 10px);
		line-height: 1.2;
		letter-spacing: 1.8px;
	}

	.sample-billboard-face b {
		width: 100%;
		margin-top: 6px;
		font-size: clamp(18px, 5.8vw, 24px);
		line-height: 0.98;
		letter-spacing: -0.35px;
		text-align: center;
		white-space: nowrap;
	}

	.sample-billboard-pole {
		height: 30px;
	}

	/* Pila di fogli: ogni foglio usa lo stesso centro geometrico. */
	.sample-paper-stack .paper {
		width: min(62%, 235px);
		height: 108px;
		top: 50%;
	}

	.sample-paper-stack .paper:nth-child(1) {
		transform: translate(-55%, -50%) rotate(-7deg);
	}

	.sample-paper-stack .paper:nth-child(2) {
		transform: translate(-45%, -50%) rotate(5deg);
	}

	.sample-paper-stack .paper:nth-child(3) {
		padding: 14px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		transform: translate(-50%, -50%);
	}

	.sample-paper-stack .paper:nth-child(3)::before {
		line-height: 1.2;
		text-align: center;
	}

	.sample-paper-stack .paper:nth-child(3)::after {
		width: 76%;
		margin: 12px auto 0;
	}

	/* Biglietti da visita centrati come gruppo. */
	.sample-business-cards .business-card {
		width: min(64%, 235px);
		top: 50%;
	}

	.sample-business-cards .business-card.back {
		transform: translate(-58%, -50%) rotate(-8deg);
	}

	.sample-business-cards .business-card.front {
		transform: translate(-42%, -50%) rotate(5deg);
	}

	/* Smartphone social centrato sia in verticale sia in orizzontale. */
	.sample-phone {
		top: 50%;
		transform: translate(-50%, -50%) rotate(-3deg);
	}

	/* Tavola grafica: logo, righe e cerchi hanno una griglia centrata. */
	.sample-brand-board {
		inset: auto;
		left: 50%;
		top: 50%;
		width: min(74%, 270px);
		height: 112px;
		padding: 14px 16px;
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr);
		grid-template-rows: 42px 30px;
		align-content: center;
		align-items: center;
		column-gap: 14px;
		row-gap: 8px;
		transform: translate(-50%, -50%) rotate(2deg);
	}

	.brand-mark {
		grid-column: 1;
		grid-row: 1;
		width: 38px;
		height: 38px;
		justify-self: center;
	}

	.brand-type {
		position: static;
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		height: 34px;
	}

	.brand-swatches {
		grid-column: 1 / -1;
		grid-row: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: clamp(8px, 3vw, 13px);
		margin: 0;
	}

	.brand-swatches span {
		flex: 0 0 auto;
		width: 25px;
		height: 25px;
	}

	/* Manifesto: cornice e contenuto centrati nel campione. */
	.sample-poster-wall {
		inset: auto;
		left: 50%;
		top: 50%;
		width: min(76%, 285px);
		height: 112px;
		transform: translate(-50%, -50%);
	}

	.sample-poster {
		padding: 13px 16px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.sample-poster b {
		width: 72%;
		font-size: clamp(19px, 5.6vw, 23px);
		line-height: 0.98;
	}

	.sample-poster span {
		max-width: 80%;
		line-height: 1.25;
	}

	/* Su touch non applichiamo spostamenti hover che disallineano i campioni. */
	@media (hover: none) {
		.service-card:hover .sample-billboard-face {
			transform: none;
		}

		.service-card:hover .sample-paper-stack .paper:nth-child(1) {
			transform: translate(-55%, -50%) rotate(-7deg);
		}

		.service-card:hover .sample-paper-stack .paper:nth-child(2) {
			transform: translate(-45%, -50%) rotate(5deg);
		}

		.service-card:hover .business-card.back {
			transform: translate(-58%, -50%) rotate(-8deg);
		}

		.service-card:hover .business-card.front {
			transform: translate(-42%, -50%) rotate(5deg);
		}

		.service-card:hover .sample-phone {
			transform: translate(-50%, -50%) rotate(-3deg);
		}

		.service-card:hover .sample-brand-board {
			transform: translate(-50%, -50%) rotate(2deg);
		}

		.service-card:hover .poster-roller {
			transform: none;
		}
	}
}

@media (max-width: 390px) {
	.service-sample {
		height: 150px;
	}

	.sample-billboard {
		width: 82%;
	}

	.sample-billboard-face b {
		font-size: clamp(17px, 5.6vw, 21px);
	}

	.sample-brand-board {
		width: 80%;
	}

	.brand-swatches span {
		width: 23px;
		height: 23px;
	}

	.sample-poster-wall {
		width: 80%;
	}
}

/* ============================================================
   PULSANTI SOCIAL
   Facebook, Instagram e TikTok sono collegamenti esterni reali.
   ============================================================ */

.contact-social a {
	border: 0;
	cursor: pointer;
	text-decoration: none;
}

.contact-social a svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.contact-social a:focus-visible {
	outline: 3px solid rgba(225, 37, 27, 0.35);
	outline-offset: 4px;
}

@media (max-width: 768px) {
	.contact-social {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.contact-social a {
		width: 46px;
		height: 46px;
	}
}

/* ============================================================
   PORTFOLIO - TITOLI VISIBILI SOLO NELLA VISTA "TUTTI"
   Le card generate nelle categorie e sottocategorie mostrano
   soltanto la fotografia. Le card statiche della vista generale
   continuano a mostrare il titolo rosso.
   ============================================================ */

.portfolio-grid--filtered .portfolio-filter-card .portfolio-overlay {
	display: none;
}

/* ============================================================
   MOBILE - BADGE "DAL 1987" PIÙ PICCOLO
   Riduce il cartellino rosso e impedisce che copra il logo
   stampato sulla fotografia principale della sezione Chi siamo.
   ============================================================ */

@media (max-width: 768px) {
	.about-badge {
		top: 54px !important;
		left: 10px !important;
		min-width: 76px;
		padding: 8px 11px !important;
		font-size: 13px !important;
		line-height: 1.05;
		text-align: center;
		letter-spacing: 0;
		transform: rotate(1.5deg);
	}

	.about-badge span {
		margin-top: 5px;
		font-size: 16px !important;
		line-height: 1;
		letter-spacing: 0.4px;
	}

	.about-badge::after {
		top: -6px;
		right: -8px;
		width: 12px;
		height: 12px;
	}
}

@media (max-width: 420px) {
	.about-badge {
		top: 50px !important;
		left: 8px !important;
		min-width: 70px;
		padding: 7px 10px !important;
		font-size: 12px !important;
	}

	.about-badge span {
		font-size: 15px !important;
	}
}

/* ============================================================
   PORTFOLIO - VISTA "TUTTI" CON 4 ANTEPRIME
   Mostra una foto per Stampa Digitale, Social, Cartellonistica
   4×3 e Cartellonistica 6×3, più il riquadro della galleria.
   ============================================================ */

.portfolio-grid.portfolio-grid--overview {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: auto;
	gap: 20px;
}

.portfolio-grid--overview .portfolio-item {
	grid-column: auto !important;
	grid-row: auto !important;
	aspect-ratio: 4 / 3;
}

.portfolio-grid--overview .portfolio-gallery-trigger {
	grid-column: 1 / -1 !important;
	grid-row: auto !important;
	aspect-ratio: 16 / 6;
}

@media (max-width: 768px) {
	.portfolio-grid.portfolio-grid--overview {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.portfolio-grid--overview .portfolio-item,
	.portfolio-grid--overview .portfolio-gallery-trigger {
		grid-column: auto !important;
		grid-row: auto !important;
		aspect-ratio: 4 / 3;
	}

	/*
	 * Nella vista Tutti le etichette rosse restano visibili,
	 * come richiesto. Nelle sottosezioni restano nascoste.
	 */
	.portfolio-grid--overview .portfolio-overlay {
		display: flex;
		opacity: 1;
	}
}

/* ============================================================
   PORTFOLIO - VISTA "TUTTI" CON FORME VARIEGATE
   Le forme sono assegnate tramite classi esplicite e non tramite
   :nth-child, così le card nascoste non alterano il mosaico.
   ============================================================ */

@media (min-width: 1101px) {
	.portfolio-grid.portfolio-grid--overview {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-rows: clamp(92px, 7.2vw, 112px);
		grid-auto-flow: dense;
		gap: 18px;
	}

	/*
	 * Vista "Tutti" desktop:
	 * il riquadro cartellonistica principale (card --4) torna
	 * in alto a sinistra MA conserva la sua grandezza importante.
	 */
	.portfolio-grid--overview .portfolio-overview-card--4 {
		grid-column: 1 / span 3 !important;
		grid-row: 1 / span 4 !important;
		aspect-ratio: auto;
	}

	.portfolio-grid--overview .portfolio-overview-card--1 {
		grid-column: 4 / span 3 !important;
		grid-row: 1 / span 2 !important;
		aspect-ratio: auto;
	}

	.portfolio-grid--overview .portfolio-overview-card--2 {
		grid-column: 4 / span 3 !important;
		grid-row: 3 / span 2 !important;
		aspect-ratio: auto;
	}

	.portfolio-grid--overview .portfolio-overview-card--3 {
		grid-column: 1 / span 3 !important;
		grid-row: 5 / span 2 !important;
		aspect-ratio: auto;
	}

	.portfolio-grid--overview .portfolio-overview-trigger {
		grid-column: 4 / span 3 !important;
		grid-row: 5 / span 2 !important;
		aspect-ratio: auto;
	}
}

@media (min-width: 769px) and (max-width: 1100px) {
	.portfolio-grid.portfolio-grid--overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: clamp(170px, 22vw, 240px);
		gap: 18px;
	}

	.portfolio-grid--overview .portfolio-overview-card--4 {
		grid-column: 1 / -1 !important;
		grid-row: 1 !important;
		aspect-ratio: auto;
	}

	.portfolio-grid--overview .portfolio-overview-card--1 {
		grid-column: 1 !important;
		grid-row: 2 !important;
		aspect-ratio: auto;
	}

	.portfolio-grid--overview .portfolio-overview-card--2 {
		grid-column: 2 !important;
		grid-row: 2 !important;
		aspect-ratio: auto;
	}

	.portfolio-grid--overview .portfolio-overview-card--3 {
		grid-column: 1 / -1 !important;
		grid-row: 3 !important;
		aspect-ratio: auto;
	}

	.portfolio-grid--overview .portfolio-overview-trigger {
		grid-column: 1 / -1 !important;
		grid-row: 4 !important;
		aspect-ratio: 16 / 7;
	}
}

@media (max-width: 768px) {
	.portfolio-grid--overview .portfolio-overview-card,
	.portfolio-grid--overview .portfolio-overview-trigger {
		grid-column: auto !important;
		grid-row: auto !important;
		aspect-ratio: 4 / 3;
	}
}

/* ============================================================
   PORTFOLIO - SOTTOSEZIONI CON 4 FOTO + GALLERIA
   Schema più adatto alle immagini reali:
   - 2 card larghe sopra
   - 2 card medie sotto
   - 1 card galleria sotto
   In questo modo le foto orizzontali risultano meno tagliate.
   ============================================================ */

@media (min-width: 1101px) {
	.portfolio-grid.portfolio-grid--filtered {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-template-rows: repeat(2, clamp(190px, 15vw, 250px));
		grid-template-areas:
			"a a a b b b"
			"c c d d e e";
		gap: 18px;
		align-items: stretch;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape--1 {
		grid-area: a !important;
		aspect-ratio: auto !important;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape--2 {
		grid-area: b !important;
		aspect-ratio: auto !important;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape--3 {
		grid-area: c !important;
		aspect-ratio: auto !important;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape--4 {
		grid-area: d !important;
		aspect-ratio: auto !important;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-gallery-trigger.portfolio-filter-trigger {
		grid-area: e !important;
		aspect-ratio: auto !important;
	}
}

@media (min-width: 769px) and (max-width: 1100px) {
	.portfolio-grid.portfolio-grid--filtered {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(3, clamp(170px, 22vw, 240px));
		grid-template-areas:
			"a b"
			"c d"
			"e e";
		gap: 18px;
		align-items: stretch;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape--1 {
		grid-area: a !important;
		aspect-ratio: auto !important;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape--2 {
		grid-area: b !important;
		aspect-ratio: auto !important;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape--3 {
		grid-area: c !important;
		aspect-ratio: auto !important;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape--4 {
		grid-area: d !important;
		aspect-ratio: auto !important;
	}

	.portfolio-grid.portfolio-grid--filtered
	.portfolio-gallery-trigger.portfolio-filter-trigger {
		grid-area: e !important;
		aspect-ratio: auto !important;
	}
}

@media (max-width: 768px) {
	.portfolio-grid.portfolio-grid--filtered
	.portfolio-item.portfolio-filter-shape,
	.portfolio-grid.portfolio-grid--filtered
	.portfolio-gallery-trigger.portfolio-filter-trigger {
		grid-area: auto !important;
		grid-column: auto !important;
		grid-row: auto !important;
		aspect-ratio: 4 / 3 !important;
	}
}

/* ============================================================
   PORTFOLIO - ANIMAZIONE FOTO E BLOCCO GALLERIA
   Nessuno stato invisibile permanente: se l'animazione viene
   bloccata o disattivata, i riquadri restano comunque visibili.
   ============================================================ */

.portfolio-enter {
	animation:
		portfolioFadeIn
		0.38s
		cubic-bezier(0.22, 1, 0.36, 1)
		backwards;
	animation-delay: calc(var(--portfolio-order, 0) * 55ms);
	will-change: transform, opacity;
}

@keyframes portfolioFadeIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.99);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.portfolio-enter {
		animation: none !important;
	}
}



/* ============================================================
   LOGHI PARTNER - LEGGIBILITÀ MIGLIORATA
   Ingrandisce leggermente i loghi del nastro partner per renderli
   più leggibili, soprattutto quelli più sottili o orizzontali.
   ============================================================ */

.partners-track {
	gap: 6px;
}

.partner-logo {
	width: 188px;
	height: 104px;
	flex: 0 0 188px;
	padding: 5px 14px;
}

.partner-logo img {
	max-width: 168px;
	max-height: 86px;
}

@media (max-width: 1024px) {
	.partner-logo {
		width: 170px;
		height: 96px;
		flex: 0 0 170px;
		padding: 5px 12px;
	}

	.partner-logo img {
		max-width: 152px;
		max-height: 78px;
	}
}

@media (max-width: 768px) {
	.partners-track {
		gap: 4px;
		animation-duration: 56s;
	}

	.partner-logo {
		width: 154px;
		height: 90px;
		flex: 0 0 154px;
		padding: 4px 10px;
	}

	.partner-logo img {
		max-width: 138px;
		max-height: 72px;
	}
}

/* ============================================================
   PORTFOLIO - ORDINE MOBILE DELLA VISTA "TUTTI"
   La card grande Cartellonistica 6×3, quarta nel mosaico desktop,
   viene mostrata per prima su smartphone.
   ============================================================ */

@media (max-width: 768px) {
	.portfolio-grid--overview .portfolio-overview-card--4 {
		order: 1;
	}

	.portfolio-grid--overview .portfolio-overview-card--1 {
		order: 2;
	}

	.portfolio-grid--overview .portfolio-overview-card--2 {
		order: 3;
	}

	.portfolio-grid--overview .portfolio-overview-card--3 {
		order: 4;
	}

	.portfolio-grid--overview .portfolio-overview-trigger {
		order: 5;
	}
}

/* ============================================================
   V27 - LOGHI PARTNER: spazi ridotti tra loghi orizzontali e quadrati
   Invece di usare riquadri tutti della stessa larghezza, ogni logo
   occupa lo spazio che gli serve davvero. Così i loghi orizzontali
   non lasciano troppo vuoto ai lati e quelli più quadrati non risultano
   troppo distanti dagli altri.
   ============================================================ */

.partners-track {
	gap: 2px;
}

.partner-logo {
	width: auto;
	min-width: 92px;
	height: 100px;
	flex: 0 0 auto;
	padding: 4px 6px;
}

.partner-logo img {
	width: auto;
	height: auto;
	max-width: 190px;
	max-height: 78px;
}

@media (max-width: 1024px) {
	.partners-track {
		gap: 2px;
	}

	.partner-logo {
		min-width: 84px;
		height: 92px;
		padding: 4px 6px;
	}

	.partner-logo img {
		max-width: 172px;
		max-height: 70px;
	}
}

@media (max-width: 768px) {
	.partners-track {
		gap: 1px;
		animation-duration: 56s;
	}

	.partner-logo {
		min-width: 76px;
		height: 84px;
		padding: 3px 5px;
	}

	.partner-logo img {
		max-width: 148px;
		max-height: 62px;
	}
}

/* ============================================================
   V28 - LOGHI PARTNER: rifinitura spazi e loghi con troppo vuoto interno
   - ridotto ulteriormente lo spazio tra i loghi
   - aumentata un po' la presenza visiva dei loghi piccoli
   - ripuliti i file di Zampe Felici e BCC Colli Albani da margini
     trasparenti eccessivi
   ============================================================ */

.partners-track {
	gap: 0;
}

.partner-logo {
	min-width: 68px;
	height: 100px;
	padding: 3px 4px;
}

.partner-logo img {
	max-width: 205px;
	max-height: 80px;
}

.partner-logo img[src*="zmp.png"] {
	max-width: 140px;
	max-height: 86px;
}

.partner-logo img[src*="bcan.png"] {
	max-width: 190px;
	max-height: 84px;
}

@media (max-width: 1024px) {
	.partners-track {
		gap: 0;
	}

	.partner-logo {
		min-width: 62px;
		height: 92px;
		padding: 3px 4px;
	}

	.partner-logo img {
		max-width: 186px;
		max-height: 74px;
	}

	.partner-logo img[src*="zmp.png"] {
		max-width: 128px;
		max-height: 80px;
	}

	.partner-logo img[src*="bcan.png"] {
		max-width: 174px;
		max-height: 78px;
	}
}

@media (max-width: 768px) {
	.partners-track {
		gap: 0;
		animation-duration: 56s;
	}

	.partner-logo {
		min-width: 56px;
		height: 84px;
		padding: 2px 4px;
	}

	.partner-logo img {
		max-width: 158px;
		max-height: 64px;
	}

	.partner-logo img[src*="zmp.png"] {
		max-width: 118px;
		max-height: 70px;
	}

	.partner-logo img[src*="bcan.png"] {
		max-width: 150px;
		max-height: 68px;
	}
}

/* ============================================================
   V29 - LOGHI PARTNER: equilibrio tra distanza e leggibilità
   - un po' più di respiro tra i loghi
   - loghi molto orizzontali resi più leggibili aumentando la larghezza
   - alcuni loghi chiari o piccoli vengono enfatizzati leggermente
   ============================================================ */

.partners-track {
	gap: 8px;
}

.partner-logo {
	min-width: 58px;
	height: 100px;
	padding: 2px 3px;
}

.partner-logo img {
	max-width: 205px;
	max-height: 78px;
}

/* Loghi molto orizzontali: più larghi per non sembrare troppo piccoli */
.partner-logo img[src*="bcan.png"],
.partner-logo img[src*="fdml.png"],
.partner-logo img[src*="find.png"],
.partner-logo img[src*="agrp.png"],
.partner-logo img[src*="expr.png"] {
	max-width: 240px;
}

/* Loghi chiari o più delicati: un po' più evidenti */
.partner-logo img[src*="alk.png"] {
	max-width: 235px;
	max-height: 84px;
}

.partner-logo img[src*="cult.jpeg"] {
	max-width: 126px;
	max-height: 84px;
}

.partner-logo img[src*="zmp.png"] {
	max-width: 145px;
	max-height: 88px;
}

@media (max-width: 1024px) {
	.partners-track {
		gap: 7px;
	}

	.partner-logo {
		min-width: 54px;
		height: 92px;
		padding: 2px 3px;
	}

	.partner-logo img {
		max-width: 188px;
		max-height: 72px;
	}

	.partner-logo img[src*="bcan.png"],
	.partner-logo img[src*="fdml.png"],
	.partner-logo img[src*="find.png"],
	.partner-logo img[src*="agrp.png"],
	.partner-logo img[src*="expr.png"] {
		max-width: 220px;
	}

	.partner-logo img[src*="alk.png"] {
		max-width: 215px;
		max-height: 78px;
	}

	.partner-logo img[src*="cult.jpeg"] {
		max-width: 116px;
		max-height: 78px;
	}

	.partner-logo img[src*="zmp.png"] {
		max-width: 134px;
		max-height: 82px;
	}
}

@media (max-width: 768px) {
	.partners-track {
		gap: 6px;
		animation-duration: 56s;
	}

	.partner-logo {
		min-width: 48px;
		height: 84px;
		padding: 2px 3px;
	}

	.partner-logo img {
		max-width: 162px;
		max-height: 64px;
	}

	.partner-logo img[src*="bcan.png"],
	.partner-logo img[src*="fdml.png"],
	.partner-logo img[src*="find.png"],
	.partner-logo img[src*="agrp.png"],
	.partner-logo img[src*="expr.png"] {
		max-width: 188px;
	}

	.partner-logo img[src*="alk.png"] {
		max-width: 182px;
		max-height: 70px;
	}

	.partner-logo img[src*="cult.jpeg"] {
		max-width: 104px;
		max-height: 70px;
	}

	.partner-logo img[src*="zmp.png"] {
		max-width: 122px;
		max-height: 74px;
	}
}

/* ============================================================
   V30 - Ritocco mirato loghi ancora troppo piccoli
   - Agenzia Servizi
   - Castelli Cult
   - Da Zia Patrizia
   ============================================================ */

.partner-logo img[src*="agess.png"] {
	max-width: 170px;
	max-height: 90px;
}

.partner-logo img[src*="cult.jpeg"] {
	max-width: 145px;
	max-height: 92px;
}

.partner-logo img[src*="dzip.jpeg"] {
	max-width: 122px;
	max-height: 92px;
}

@media (max-width: 1024px) {
	.partner-logo img[src*="agess.png"] {
		max-width: 158px;
		max-height: 84px;
	}

	.partner-logo img[src*="cult.jpeg"] {
		max-width: 134px;
		max-height: 86px;
	}

	.partner-logo img[src*="dzip.jpeg"] {
		max-width: 112px;
		max-height: 86px;
	}
}

@media (max-width: 768px) {
	.partner-logo img[src*="agess.png"] {
		max-width: 146px;
		max-height: 76px;
	}

	.partner-logo img[src*="cult.jpeg"] {
		max-width: 122px;
		max-height: 78px;
	}

	.partner-logo img[src*="dzip.jpeg"] {
		max-width: 100px;
		max-height: 78px;
	}
}

/* ============================================================
   V31 - Loghi partner: più respiro e dimensioni bilanciate
   - più spazio tra i loghi
   - padding differenziato tra loghi quadrati e orizzontali
   - ingranditi i loghi ancora percepiti come troppo piccoli
   ============================================================ */

.partners-track {
	gap: 14px;
}

.partner-logo {
	height: 104px;
	padding: 4px 8px;
}

.partner-logo img {
	max-width: 210px;
	max-height: 80px;
}

/* Loghi orizzontali: più respiro ma anche un po' più grandi */
.partner-logo img[src*="eto.png"],
.partner-logo img[src*="travel.png"],
.partner-logo img[src*="logo38.png"],
.partner-logo img[src*="supcer.png"],
.partner-logo img[src*="agess.png"] {
	max-height: 88px;
}

.partner-logo img[src*="eto.png"] {
	max-width: 168px;
}

.partner-logo img[src*="travel.png"] {
	max-width: 148px;
}

.partner-logo img[src*="logo38.png"] {
	max-width: 172px;
}

.partner-logo img[src*="supcer.png"] {
	max-width: 176px;
}

.partner-logo img[src*="agess.png"] {
	max-width: 186px;
}

/* Loghi quadrati / compatti: meno padding percepito, più presenza */
.partner-logo img[src*="cult.jpeg"],
.partner-logo img[src*="dzip.jpeg"],
.partner-logo img[src*="zmp.png"] {
	max-height: 96px;
}

.partner-logo img[src*="cult.jpeg"] {
	max-width: 154px;
}

.partner-logo img[src*="dzip.jpeg"] {
	max-width: 136px;
}

.partner-logo img[src*="zmp.png"] {
	max-width: 156px;
}

@media (max-width: 1024px) {
	.partners-track {
		gap: 12px;
	}

	.partner-logo {
		height: 98px;
		padding: 4px 7px;
	}

	.partner-logo img {
		max-width: 196px;
		max-height: 76px;
	}

	.partner-logo img[src*="eto.png"],
	.partner-logo img[src*="travel.png"],
	.partner-logo img[src*="logo38.png"],
	.partner-logo img[src*="supcer.png"],
	.partner-logo img[src*="agess.png"] {
		max-height: 84px;
	}

	.partner-logo img[src*="eto.png"] {
		max-width: 156px;
	}

	.partner-logo img[src*="travel.png"] {
		max-width: 138px;
	}

	.partner-logo img[src*="logo38.png"] {
		max-width: 160px;
	}

	.partner-logo img[src*="supcer.png"] {
		max-width: 164px;
	}

	.partner-logo img[src*="agess.png"] {
		max-width: 174px;
	}

	.partner-logo img[src*="cult.jpeg"],
	.partner-logo img[src*="dzip.jpeg"],
	.partner-logo img[src*="zmp.png"] {
		max-height: 90px;
	}

	.partner-logo img[src*="cult.jpeg"] {
		max-width: 144px;
	}

	.partner-logo img[src*="dzip.jpeg"] {
		max-width: 126px;
	}

	.partner-logo img[src*="zmp.png"] {
		max-width: 144px;
	}
}

@media (max-width: 768px) {
	.partners-track {
		gap: 10px;
	}

	.partner-logo {
		height: 88px;
		padding: 3px 6px;
	}

	.partner-logo img {
		max-width: 170px;
		max-height: 68px;
	}

	.partner-logo img[src*="eto.png"],
	.partner-logo img[src*="travel.png"],
	.partner-logo img[src*="logo38.png"],
	.partner-logo img[src*="supcer.png"],
	.partner-logo img[src*="agess.png"] {
		max-height: 74px;
	}

	.partner-logo img[src*="eto.png"] {
		max-width: 142px;
	}

	.partner-logo img[src*="travel.png"] {
		max-width: 126px;
	}

	.partner-logo img[src*="logo38.png"] {
		max-width: 146px;
	}

	.partner-logo img[src*="supcer.png"] {
		max-width: 150px;
	}

	.partner-logo img[src*="agess.png"] {
		max-width: 160px;
	}

	.partner-logo img[src*="cult.jpeg"],
	.partner-logo img[src*="dzip.jpeg"],
	.partner-logo img[src*="zmp.png"] {
		max-height: 78px;
	}

	.partner-logo img[src*="cult.jpeg"] {
		max-width: 126px;
	}

	.partner-logo img[src*="dzip.jpeg"] {
		max-width: 112px;
	}

	.partner-logo img[src*="zmp.png"] {
		max-width: 128px;
	}
}

/* ============================================================
   V32 - Loghi partner: riduzione dei loghi ancora troppo grandi
   Bilanciamento più uniforme della fascia partner.
   ============================================================ */

/* Desktop */
.partner-logo img[src*="cdl.jpeg"] {
	max-width: 138px;
	max-height: 72px;
}

.partner-logo img[src*="alk.png"],
.partner-logo img[src*="alk.jpeg"] {
	max-width: 176px;
	max-height: 66px;
}

.partner-logo img[src*="agrp.png"] {
	max-width: 188px;
	max-height: 66px;
}

.partner-logo img[src*="expr.png"] {
	max-width: 168px;
	max-height: 66px;
}

.partner-logo img[src*="bcan.png"],
.partner-logo img[src*="bcan.jpeg"] {
	max-width: 164px;
	max-height: 64px;
}

@media (max-width: 1024px) {
	.partner-logo img[src*="cdl.jpeg"] {
		max-width: 128px;
		max-height: 66px;
	}

	.partner-logo img[src*="alk.png"],
	.partner-logo img[src*="alk.jpeg"] {
		max-width: 164px;
		max-height: 60px;
	}

	.partner-logo img[src*="agrp.png"] {
		max-width: 176px;
		max-height: 60px;
	}

	.partner-logo img[src*="expr.png"] {
		max-width: 158px;
		max-height: 60px;
	}

	.partner-logo img[src*="bcan.png"],
	.partner-logo img[src*="bcan.jpeg"] {
		max-width: 154px;
		max-height: 58px;
	}
}

@media (max-width: 768px) {
	.partner-logo img[src*="cdl.jpeg"] {
		max-width: 114px;
		max-height: 58px;
	}

	.partner-logo img[src*="alk.png"],
	.partner-logo img[src*="alk.jpeg"] {
		max-width: 146px;
		max-height: 54px;
	}

	.partner-logo img[src*="agrp.png"] {
		max-width: 156px;
		max-height: 54px;
	}

	.partner-logo img[src*="expr.png"] {
		max-width: 142px;
		max-height: 54px;
	}

	.partner-logo img[src*="bcan.png"],
	.partner-logo img[src*="bcan.jpeg"] {
		max-width: 140px;
		max-height: 52px;
	}
}


/* ============================================================
   V33 - Loghi partner: riequilibrio dei loghi ancora troppo grandi
   Riduce leggermente i loghi che risultavano visivamente dominanti
   rispetto agli altri nella fascia partner.
   ============================================================ */

/* Desktop */
.partner-logo img[src*="cdl.jpeg"] {
	max-width: 122px;
	max-height: 66px;
}

.partner-logo img[src*="alk.png"],
.partner-logo img[src*="alk.jpeg"] {
	max-width: 162px;
	max-height: 60px;
}

.partner-logo img[src*="agrp.png"] {
	max-width: 176px;
	max-height: 60px;
}

.partner-logo img[src*="expr.png"] {
	max-width: 154px;
	max-height: 60px;
}

.partner-logo img[src*="dzip.jpeg"] {
	max-width: 126px;
	max-height: 86px;
}

@media (max-width: 1024px) {
	.partner-logo img[src*="cdl.jpeg"] {
		max-width: 114px;
		max-height: 60px;
	}

	.partner-logo img[src*="alk.png"],
	.partner-logo img[src*="alk.jpeg"] {
		max-width: 152px;
		max-height: 56px;
	}

	.partner-logo img[src*="agrp.png"] {
		max-width: 166px;
		max-height: 56px;
	}

	.partner-logo img[src*="expr.png"] {
		max-width: 146px;
		max-height: 56px;
	}

	.partner-logo img[src*="dzip.jpeg"] {
		max-width: 118px;
		max-height: 80px;
	}
}

@media (max-width: 768px) {
	.partner-logo img[src*="cdl.jpeg"] {
		max-width: 104px;
		max-height: 54px;
	}

	.partner-logo img[src*="alk.png"],
	.partner-logo img[src*="alk.jpeg"] {
		max-width: 140px;
		max-height: 50px;
	}

	.partner-logo img[src*="agrp.png"] {
		max-width: 152px;
		max-height: 50px;
	}

	.partner-logo img[src*="expr.png"] {
		max-width: 134px;
		max-height: 50px;
	}

	.partner-logo img[src*="dzip.jpeg"] {
		max-width: 108px;
		max-height: 72px;
	}
}


/* ============================================================
   V34 - Ritocchi finali cliente
   1) Ingrandisce leggermente BCC, Energym e Super Ceramiche
   2) Riduce/sposta il badge "Dal 1987" su desktop per non coprire
      il logo stampato sulla foto principale della sezione Chi siamo.
   ============================================================ */

/* --- FASCIA LOGHI: loghi da rendere un po' più presenti --- */
.partner-logo img[src*="bcan.png"],
.partner-logo img[src*="bcan.jpeg"] {
	max-width: 178px;
	max-height: 72px;
}

.partner-logo img[src*="logo38.png"] {
	max-width: 182px;
	max-height: 92px;
}

.partner-logo img[src*="supcer.png"] {
	max-width: 188px;
	max-height: 92px;
}

@media (max-width: 1024px) {
	.partner-logo img[src*="bcan.png"],
	.partner-logo img[src*="bcan.jpeg"] {
		max-width: 166px;
		max-height: 66px;
	}

	.partner-logo img[src*="logo38.png"] {
		max-width: 170px;
		max-height: 86px;
	}

	.partner-logo img[src*="supcer.png"] {
		max-width: 176px;
		max-height: 86px;
	}
}

@media (max-width: 768px) {
	.partner-logo img[src*="bcan.png"],
	.partner-logo img[src*="bcan.jpeg"] {
		max-width: 150px;
		max-height: 58px;
	}

	.partner-logo img[src*="logo38.png"] {
		max-width: 154px;
		max-height: 76px;
	}

	.partner-logo img[src*="supcer.png"] {
		max-width: 160px;
		max-height: 76px;
	}
}

/* --- CHI SIAMO desktop: badge Dal 1987 più piccolo e meno invasivo --- */
@media (min-width: 769px) {
	.about-badge {
		top: 52px;
		left: 8px;
		min-width: 84px;
		padding: 9px 12px;
		font-size: 14px;
		line-height: 1.05;
		letter-spacing: 0;
		text-align: center;
		transform: rotate(1.2deg);
	}

	.about-badge span {
		display: block;
		margin-top: 5px;
		font-size: 18px;
		line-height: 1;
		letter-spacing: 0.3px;
	}

	.about-badge::after {
		top: -6px;
		right: -9px;
		width: 13px;
		height: 13px;
	}
}

@media (min-width: 1025px) {
	.about-badge {
		top: 48px;
		left: 10px;
	}
}

/* ============================================================
   V35 - RIPOSIZIONAMENTO ELEMENTI SOLO DESKTOP
   In base alle indicazioni segnate nelle immagini del cliente:
   - il badge "Dal 1987" viene spostato più in basso e verso sinistra;
   - il cartellino "Impianti a Lanuvio" viene spostato più in alto.
   Le posizioni mobile restano invariate.
   ============================================================ */

@media (min-width: 769px) {
	.about-badge {
		top: 104px !important;
		left: -32px !important;
	}

	.hero-floating-card.card-1 {
		left: -22px;
		bottom: 223px;
	}
}

/* ============================================================
   V36 - INGRANDIMENTO MIRATO DI QUATTRO LOGHI PARTNER
   Agenzia Servizi, Castelli Cult, Da Zia Patrizia e BCC vengono
   trattati con classi dedicate, così possono essere regolati senza
   alterare gli altri loghi della fascia.
   ============================================================ */

.partner-logo--agency,
.partner-logo--cult,
.partner-logo--patrizia,
.partner-logo--bcc {
	padding: 2px 4px;
}

.partner-logo--agency img {
	max-width: 218px;
	max-height: 94px;
}

.partner-logo--cult img {
	max-width: 178px;
	max-height: 96px;
}

.partner-logo--patrizia img {
	max-width: 150px;
	max-height: 96px;
}

.partner-logo--bcc img {
	max-width: 206px;
	max-height: 82px;
}

@media (max-width: 1024px) {
	.partner-logo--agency img {
		max-width: 202px;
		max-height: 88px;
	}

	.partner-logo--cult img {
		max-width: 166px;
		max-height: 90px;
	}

	.partner-logo--patrizia img {
		max-width: 140px;
		max-height: 90px;
	}

	.partner-logo--bcc img {
		max-width: 190px;
		max-height: 76px;
	}
}

@media (max-width: 768px) {
	.partner-logo--agency,
	.partner-logo--cult,
	.partner-logo--patrizia,
	.partner-logo--bcc {
		padding: 2px 3px;
	}

	.partner-logo--agency img {
		max-width: 180px;
		max-height: 78px;
	}

	.partner-logo--cult img {
		max-width: 150px;
		max-height: 80px;
	}

	.partner-logo--patrizia img {
		max-width: 126px;
		max-height: 80px;
	}

	.partner-logo--bcc img {
		max-width: 170px;
		max-height: 66px;
	}
}



/* ============================================================
   PRODUZIONE V14 - Privacy, form contatti e banner cookie
   ============================================================ */
.form-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.form-field-hint {
	margin-top: 8px;
	color: var(--grigio-500);
	font-size: 12px;
	line-height: 1.5;
}
.form-privacy {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 11px;
	margin: 4px 0 20px;
	color: var(--grigio-700);
	font-size: 13px;
	line-height: 1.55;
}
.form-privacy input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--rosso);
}
.form-privacy a,
.cookie-banner__copy a,
.cookie-preferences__intro a {
	color: var(--rosso);
	font-weight: 700;
}
.contact-submit { width: 100%; justify-content: center; }
.contact-submit:disabled {
	cursor: not-allowed;
	opacity: 0.58;
	transform: none;
	box-shadow: none;
}
.form-status {
	min-height: 22px;
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status--success,
.form-status--error,
.form-status--info {
	padding: 12px 14px;
	border-radius: var(--radius-sm);
}
.form-status--success { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.form-status--error { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.form-status--info { color: var(--grigio-700); background: var(--grigio-100); border: 1px solid #dedede; }
.cookie-banner__inner { position: relative; }
.cookie-banner__close {
	position: absolute;
	top: 9px;
	right: 10px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255,255,255,0.30);
	border-radius: 50%;
	color: #fff;
	background: rgba(255,255,255,0.08);
	font: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.cookie-banner__close:hover,
.cookie-banner__close:focus-visible { background: rgba(255,255,255,0.18); }
.cookie-banner__copy { padding-right: 34px; }
.cookie-banner__copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn--secondary { border-color: rgba(255,255,255,0.55); }
@media (max-width: 768px) {
	.cookie-banner__close { top: 8px; right: 8px; }
	.cookie-banner__copy { padding-right: 32px; }
}


/* ============================================================
   V15 - Rifiniture sicurezza e privacy
   ============================================================ */
.hero-year {
	color: rgb(206, 22, 22);
}

.about-highlight-text {
	color: white;
}

.section-label--red {
	color: var(--rosso);
}

.contact-map-iframe {
	border: 0;
}
