/* ============================================
   Impresa Edile Fusini — style.css
   ============================================ */

/* Manrope variabile (400–800), auto-ospitato */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/manrope-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--blue: #1668b4;
	--blue-dark: #0d4a85;
	--blue-deep: #0a3055;
	--ink: #1c2430;
	--ink-soft: #4a5563;
	--paper: #ffffff;
	--paper-alt: #f2f5f9;
	--line: #dde4ec;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(13, 45, 80, .12);
	--maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	/* Impedisce lo scorrimento orizzontale causato dal menu mobile fuori schermo.
	   clip (non hidden) per non trasformare la pagina in un contenitore di scroll,
	   che romperebbe l'header sticky. */
	overflow-x: clip;
}

body {
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
picture { display: contents; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }

.center { text-align: center; }

/* L'header sticky è alto 72px: senza questo margine, i link ancora
   (freccia dell'hero e voci del menu) atterrano con la sezione coperta. */
main [id] { scroll-margin-top: 72px; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: linear-gradient(160deg, var(--blue-deep), var(--blue-dark)); color: #fff; }

.section-kicker {
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: .78rem;
	font-weight: 700;
	color: var(--blue);
	margin-bottom: .6rem;
}
.section-kicker.light { color: #9ec9f0; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(13, 45, 80, .1); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.brand-logo { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
	text-decoration: none;
	color: var(--ink);
	font-weight: 600;
	font-size: .95rem;
	transition: color .2s;
}
.main-nav a:hover { color: var(--blue); }

.nav-cta {
	background: var(--blue);
	color: #fff !important;
	padding: 9px 18px;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(22, 104, 180, .35);
}
.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span {
	width: 24px; height: 2.5px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: min(88vh, 780px);
	display: flex;
	align-items: center;
	overflow: hidden;
}
/* Hero sdoppiato: la foto di oggi copre tutto l'hero, quella d'epoca sta a
   destra e sfuma dentro l'altra invece di avere uno stacco netto. */
.hero-split { position: absolute; inset: 0; }
.hero-half-oggi {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center 42%;
	/* la seconda dichiarazione vince dove image-set è supportato,
	   altrimenti resta il JPEG della prima */
	background-image: url('../img/hero.jpg');
	background-image: image-set(url('../img/hero.webp') type('image/webp'), url('../img/hero.jpg') type('image/jpeg'));
}
.hero-half-storia {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 44%;
	background-size: cover;
	background-position: 22% center;
	background-image: url('../img/hero-storico.jpg');
	background-image: image-set(url('../img/hero-storico.webp') type('image/webp'), url('../img/hero-storico.jpg') type('image/jpeg'));
	filter: grayscale(1) contrast(1.06);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
}
.hero-year {
	position: absolute;
	bottom: 24px;
	z-index: 3;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(8, 24, 44, .5);
	border: 1px solid rgba(255, 255, 255, .3);
	backdrop-filter: blur(4px);
	padding: 5px 13px;
	border-radius: 999px;
}
.hero-year-oggi { left: 24px; }
.hero-year-storia { right: 24px; }
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(6, 22, 40, .9) 0%, rgba(7, 28, 50, .72) 40%, rgba(9, 38, 68, .3) 62%, rgba(9, 38, 68, .18) 100%);
}
.hero-content { position: relative; width: 100%; color: #fff; padding-top: 40px; padding-bottom: 60px; }
.hero-kicker {
	text-transform: uppercase;
	letter-spacing: .2em;
	font-size: .8rem;
	font-weight: 700;
	color: #a8d1f5;
	margin-bottom: 1rem;
}
/* Il testo resta nella metà sinistra: non deve invadere il pannello d'epoca. */
.hero h1 {
	font-size: clamp(2rem, 4vw, 3.1rem);
	margin-bottom: 1.2rem;
	max-width: 56%;
}
.hero-sub {
	font-size: clamp(1rem, 1.7vw, 1.15rem);
	color: #dce9f6;
	max-width: min(520px, 56%);
	margin-bottom: 2rem;
}
.hero-actions { max-width: 56%; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
	display: inline-block;
	text-decoration: none;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: 999px;
	transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
	background: var(--blue);
	color: #fff;
	box-shadow: 0 8px 24px rgba(22, 104, 180, .45);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost {
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

.hero-scroll {
	position: absolute;
	bottom: 26px; left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .35);
	backdrop-filter: blur(4px);
	text-decoration: none;
	animation: bob 2s infinite;
	transition: background .2s;
}
.hero-scroll:hover { background: rgba(255, 255, 255, .25); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Numeri ---------- */
.numbers { background: var(--blue-deep); color: #fff; padding: 42px 0; }
.numbers-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: center;
}
.number-big {
	display: block;
	font-size: clamp(1.9rem, 3.5vw, 2.6rem);
	font-weight: 800;
	color: #8ec4ef;
}
.number-label { font-size: .88rem; color: #cfe2f3; }

/* ---------- Chi siamo ---------- */
.split {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(32px, 5vw, 70px);
	align-items: center;
}
.split-text p { margin-bottom: 1rem; color: var(--ink-soft); }
.split-text h2 { color: var(--ink); }
.split-text .btn { margin-top: .8rem; }

.split-media { display: grid; gap: 20px; }
.photo-card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.photo-card img { width: 100%; height: 400px; object-fit: cover; }
.photo-card-natural img { object-position: center top; }
.photo-card figcaption {
	font-size: .82rem;
	color: var(--ink-soft);
	padding: 10px 16px;
}

/* ---------- Servizi ---------- */
.services-grid {
	margin-top: 46px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.service-card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(13, 45, 80, .08);
	transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-img { height: 170px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-img img { transform: scale(1.06); }
/* Icona e titolo affiancati: dicono la stessa cosa, quindi si leggono
   come un'unica unità e la card resta più compatta. */
.service-body {
	padding: 20px 22px 24px;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 13px;
	align-items: center;
}
.service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 10px;
	background: rgba(22, 104, 180, .1);
	color: var(--blue);
}
.service-body h3 { margin-bottom: 0; color: var(--blue-dark); }
.service-body p {
	grid-column: 1 / -1;
	margin-top: 12px;
	font-size: .92rem;
	color: var(--ink-soft);
}

/* ---------- Come lavoriamo ---------- */
.steps-grid {
	margin-top: 46px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}
.step {
	position: relative;
	background: var(--paper-alt);
	border-radius: var(--radius);
	padding: 30px 24px 26px;
}
.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem;
	margin-bottom: 14px;
	box-shadow: 0 6px 16px rgba(22, 104, 180, .35);
}
.step h3 { color: var(--blue-dark); margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Storia ---------- */
.storia-grid {
	margin-top: 46px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.storia-item {
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 16px rgba(13, 45, 80, .08);
	cursor: pointer;
	transition: transform .25s;
}
.storia-item:hover { transform: translateY(-4px); }
.storia-item img {
	width: 100%; height: 230px;
	object-fit: cover;
	filter: sepia(.18) contrast(1.02);
}
.storia-item figcaption {
	font-size: .82rem;
	color: var(--ink-soft);
	padding: 10px 16px;
}

.capomastro-wrap {
	margin: 64px auto 0;
	max-width: 820px;
}
.capomastro {
	background: var(--paper-alt);
	border-left: 5px solid var(--blue);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 34px 38px;
	margin: 0;
}
.capomastro-title {
	text-transform: uppercase;
	letter-spacing: .18em;
	font-weight: 800;
	color: var(--blue);
	font-size: .8rem;
	margin-bottom: .8rem;
}
.capomastro-intro {
	font-size: .95rem;
	color: var(--ink-soft);
	margin-bottom: 1.2rem;
}
.capomastro > p {
	font-size: 1.08rem;
	font-style: italic;
	color: var(--ink);
}
.capomastro details { margin-top: 1.2rem; }
.capomastro summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--blue);
}
.capomastro-full { margin-top: 1rem; }
.capomastro-full p { margin-bottom: .9rem; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Prima e dopo ---------- */
.pd-lead { color: var(--ink-soft); max-width: 640px; margin: 0 auto 46px; }
.pd-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 26px 22px;
	margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(13, 45, 80, .06);
}
.pd-card:last-child { margin-bottom: 0; }
.pd-card h3 { color: var(--blue-dark); margin-bottom: 18px; }
.pd-grid { display: grid; gap: 16px; }
.pd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pd-item { margin: 0; }
.pd-item img {
	width: 100%;
	/* height:auto è indispensabile: senza, l'attributo height dell'HTML
	   fissa l'altezza e il browser ignora l'aspect-ratio qui sotto. */
	height: auto;
	object-fit: cover;
	border-radius: 10px;
	cursor: pointer;
	transition: filter .25s;
}
.pd-portrait .pd-item img { aspect-ratio: 3 / 4; }
.pd-landscape .pd-item img { aspect-ratio: 16 / 10; }
.pd-item img:hover { filter: brightness(1.06); }
.pd-item figcaption {
	font-size: .86rem;
	color: var(--ink-soft);
	padding-top: 11px;
	line-height: 1.45;
}
.pd-tag {
	display: inline-block;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	border: 1.5px solid var(--line);
	padding: 3px 10px;
	border-radius: 999px;
	margin-right: 9px;
	vertical-align: 1px;
}
.pd-tag-durante { color: var(--blue); border-color: rgba(22, 104, 180, .45); }
.pd-tag-dopo { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ---------- Galleria ---------- */
.gallery-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 30px 0 36px;
}
.filter-btn {
	border: 1.5px solid var(--line);
	background: #fff;
	color: var(--ink-soft);
	font-family: inherit;
	font-weight: 700;
	font-size: .9rem;
	padding: 9px 20px;
	border-radius: 999px;
	cursor: pointer;
	transition: all .2s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Griglia a incastro: le colonne CSS rispettano le proporzioni originali,
   così le foto verticali non vengono più tagliate. */
.gallery-grid {
	columns: 4;
	column-gap: 14px;
}
.gallery-item {
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: var(--line);
	break-inside: avoid;
	margin-bottom: 14px;
	box-shadow: 0 2px 10px rgba(13, 45, 80, .08);
	transition: box-shadow .25s;
}
.gallery-item:hover { box-shadow: 0 8px 24px rgba(13, 45, 80, .2); }
.gallery-item img {
	width: 100%;
	height: auto;
	transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item.hidden { display: none; }

/* ---------- Certificazioni ---------- */
.certs-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(26px, 4vw, 54px);
	align-items: center;
	justify-content: center;
	max-width: 860px;
	margin: 0 auto;
}
.certs-inner .certs-badges { order: -1; }
.certs-text p { color: var(--ink-soft); }
.certs-badges {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
}
.certs-badges img {
	max-height: 132px;
	width: auto;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(13, 45, 80, .12);
}

/* ---------- Contatti ---------- */
.section-dark h2 { color: #fff; }
.contact-lead { color: #cfe2f3; margin-bottom: 2.4rem; }

.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}
.contact-card {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--radius);
	padding: 28px 22px;
	text-align: center;
	text-decoration: none;
	color: #fff;
	transition: background .25s, transform .25s;
}
.contact-card:hover { background: rgba(255, 255, 255, .15); transform: translateY(-4px); }
.contact-icon { display: block; font-size: 1.8rem; margin-bottom: .6rem; }
.contact-label {
	display: block;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .72rem;
	font-weight: 700;
	color: #9ec9f0;
	margin-bottom: .4rem;
}
.contact-value { font-weight: 700; font-size: 1.02rem; }

.contact-bottom {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 24px;
	align-items: stretch;
}

.quote-form {
	background: #fff;
	border-radius: var(--radius);
	padding: 30px 28px;
	color: var(--ink);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}
.quote-form h3 { color: var(--blue-dark); margin-bottom: 1.1rem; }
.form-row { margin-bottom: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label {
	display: block;
	font-size: .82rem;
	font-weight: 700;
	color: var(--ink-soft);
	margin-bottom: 5px;
}
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form select,
.quote-form textarea {
	width: 100%;
	font-family: inherit;
	font-size: .95rem;
	color: var(--ink);
	background: var(--paper-alt);
	border: 1.5px solid var(--line);
	border-radius: 9px;
	padding: 11px 13px;
	transition: border-color .2s;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
	outline: none;
	border-color: var(--blue);
}
.quote-form textarea { resize: vertical; }
.form-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .8rem !important;
	font-weight: 500 !important;
	color: var(--ink-soft);
	margin: 16px 0 18px;
	cursor: pointer;
}
.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--blue); }
.form-submit {
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	width: 100%;
}
.hp-field { display: none; }

.map-wrap {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
	background: #0b1826;
	color: #9fb2c5;
	padding: 44px 0 34px;
	text-align: center;
	font-size: .9rem;
}
.footer-logo {
	height: 64px; width: auto;
	margin: 0 auto 18px;
	filter: brightness(0) invert(1) opacity(.85);
}
.site-footer a { color: #8ec4ef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-fine { margin-top: 12px; font-size: .8rem; color: #64788c; }

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed; inset: 0;
	width: 100%;
	background: rgba(5, 12, 20, .94);
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	overflow: hidden;
}
.lightbox.open { display: flex; }
.lb-pic { display: contents; }
.lightbox img {
	max-width: 92%;
	max-height: 80vh;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
	opacity: 0;
	transition: opacity .18s ease;
}
.lightbox img.loaded { opacity: 1; }
.lb-caption {
	color: #cfe2f3;
	margin-top: 14px;
	font-size: .9rem;
	max-width: 92%;
	text-align: center;
}
.lightbox button {
	position: absolute;
	background: rgba(255, 255, 255, .1);
	border: 0;
	color: #fff;
	font-size: 1.9rem;
	width: 52px; height: 52px;
	border-radius: 50%;
	cursor: pointer;
	transition: background .2s;
	line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.steps-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-bottom { grid-template-columns: 1fr; }
	.gallery-grid { columns: 3; }
	.pd-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.certs-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.storia-grid { grid-template-columns: repeat(2, 1fr); }
	.split, .certs-inner { grid-template-columns: 1fr; }
	.certs-badges { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 720px) {
	.main-nav {
		position: fixed;
		top: 72px; right: 0;
		background: #fff;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: min(320px, 82vw);
		height: calc(100vh - 72px);
		padding: 24px;
		box-shadow: -10px 0 40px rgba(13, 45, 80, .18);
		/* Il pannello resta dentro il viewport anche da chiuso: parcheggiarlo
		   fuori a destra creava scorrimento orizzontale su tutta la pagina. */
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .25s ease, transform .25s ease, visibility .25s;
	}
	.main-nav.open { opacity: 1; visibility: visible; transform: none; }
	.main-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
	.main-nav .nav-cta { margin-top: 18px; text-align: center; border-bottom: 0; }
	.nav-toggle { display: flex; }

	.numbers-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; }
	.services-grid { grid-template-columns: 1fr; }
	.steps-grid { grid-template-columns: 1fr; }
	.form-row-2 { grid-template-columns: 1fr; }
	.gallery-grid { columns: 2; }
	.pd-grid-3 { grid-template-columns: 1fr; }
	.pd-card { padding: 18px 16px 16px; }
	.pd-grid { gap: 12px; }
	.pd-item figcaption { font-size: .78rem; }
	.storia-grid { grid-template-columns: 1fr; }
	.capomastro { padding: 26px 22px; }

	/* Su mobile la foto d'epoca resta a destra ma più stretta, e il velo
	   è più coprente perché il testo occupa tutta la larghezza. */
	.hero h1, .hero-sub, .hero-actions { max-width: 100%; }
	.hero-half-storia { width: 52%; }
	.hero-overlay { background: linear-gradient(160deg, rgba(6, 22, 40, .9) 0%, rgba(7, 28, 50, .82) 55%, rgba(9, 38, 68, .66) 100%); }
	.hero-year { font-size: .6rem; padding: 4px 10px; bottom: 18px; }
	.hero-year-oggi { left: 16px; }
	.hero-year-storia { right: 16px; }

	.lightbox img { max-height: 68vh; }
	.lightbox button { width: 44px; height: 44px; font-size: 1.5rem; }
	.lb-close { top: 12px; right: 12px; }
	.lb-prev { left: 6px; }
	.lb-next { right: 6px; }
}
