/* =========================================================
   Lonetto Edilizia – stili
   Colori: mattone (variabile, da Impostazioni impresa), antracite, calce, cemento
   ========================================================= */

:root {
	--brick: #A0402A;
	--brick-dark: #7D3221;
	--brick-light: #D9A397;
	--ink: #2B2D2F;
	--ink-2: #36393B;
	--text: #45484B;
	--muted: #5E6164;
	--line: #E6E0D8;
	--line-2: #CFC7BC;
	--calce: #F4EFE8;
	--ph: #D8D1C7;
	--on-dark: #D6D1CA;
	--accent-on-dark: #E58A6F;
	--white: #FFFFFF;
	--radius: 4px;
	--wrap: 1200px;
	--font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--shadow: 0 10px 30px rgba(43, 45, 47, .14);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; border-radius: var(--radius); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--white); padding: 10px 16px; box-shadow: var(--shadow);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.bg-calce { background: var(--calce); }
.bg-dark { background: var(--ink); color: var(--white); }
.bg-brick { background: var(--brick); color: var(--white); }

/* ---------- Tipografia ---------- */
.kicker {
	display: block; font-size: 14px; font-weight: 700; letter-spacing: .16em;
	text-transform: uppercase; color: var(--brick);
}
.bg-dark .kicker { color: var(--accent-on-dark); }
.h-display, .h-section, .h-card, .h-page {
	font-family: var(--font-head); font-weight: 700; line-height: 1.05; color: inherit;
}
.h-display { font-size: clamp(42px, 6vw, 66px); line-height: 1.02; }
.h-page { font-size: clamp(40px, 5.4vw, 60px); line-height: 1.02; }
.h-section { font-size: clamp(34px, 4vw, 48px); }
.h-card { font-size: 26px; line-height: 1.12; }
.lead { font-size: 19px; color: var(--text); }
.bg-dark .lead, .bg-dark p { color: var(--on-dark); }
.muted { color: var(--muted); }

.prose { color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; margin-top: 1.4em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { text-decoration: underline; }

.section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	gap: 16px 32px; margin-bottom: 40px;
}
.section-head__text { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border-radius: var(--radius); font-weight: 700; line-height: 1.2;
	border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
	text-align: center;
}
.btn--primary { background: var(--brick); color: var(--white); }
.btn--primary:hover { background: var(--brick-dark); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--brick); }
.btn--white:hover { background: var(--calce); color: var(--brick-dark); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn .icon { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Segnaposto foto ---------- */
.ph {
	position: relative; width: 100%; height: 100%; min-height: 160px;
	background-color: var(--ph);
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 14px, transparent 14px 28px);
	border-radius: var(--radius);
}
.ph-label {
	position: absolute; left: 16px; bottom: 16px; background: rgba(43,45,47,.8); color: var(--white);
	font-size: 12px; letter-spacing: .04em; padding: 5px 9px; border-radius: var(--radius);
}

.media { border-radius: var(--radius); overflow: hidden; position: relative; }
.media img, .media .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }

/* ---------- Topbar e header ---------- */
.topbar { background: var(--ink); color: #E9E5DF; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #E9E5DF; }
.topbar a:hover { color: var(--white); }
.topbar__right { display: flex; flex-wrap: wrap; gap: 6px 24px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark {
	width: 48px; height: 48px; border-radius: var(--radius); background: var(--brick); color: var(--white);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-weight: 700; font-size: 30px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: .04em; }
.brand__payoff { font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.brand__logo img { max-height: 56px; width: auto; }

.main-nav .menu { list-style: none; display: flex; gap: 26px; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--brick); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--brick); border-bottom-color: var(--brick); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line-2);
	background: var(--white); align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon-chiudi { display: none; }
.nav-open .nav-toggle .icon-chiudi { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

.main-nav__cta { display: none !important; }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.header-actions .btn { display: none; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
		border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
	}
	.nav-open .main-nav { display: block; }
	.main-nav .menu { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
	.main-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.main-nav .current-menu-item > a { border-bottom-color: var(--line); }
	.main-nav__cta { display: block !important; margin: 0 24px 24px; }
}

/* ---------- Hero home ---------- */
.hero { background: var(--calce); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero__text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 22px; }
.hero__text .lead { max-width: 560px; }
.hero__media { flex: 1 1 480px; position: relative; }
.hero__media .media { aspect-ratio: 7 / 6; }
.badge-award {
	position: absolute; left: -24px; top: 32px; background: var(--white); border-radius: var(--radius);
	padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 280px;
	color: var(--ink);
}
.badge-award .icon { color: var(--brick); flex-shrink: 0; }
.badge-award small { display: block; font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.badge-award strong { display: block; font-size: 16px; line-height: 1.25; }
@media (max-width: 600px) { .badge-award { left: 12px; top: 12px; } }

/* ---------- Numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stat { display: flex; flex-direction: column; }
.stat__value { font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--accent-on-dark); }
.stat__label { color: var(--on-dark); }

/* ---------- Griglie ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid--list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }

/* ---------- Valori ---------- */
.value { display: flex; flex-direction: column; gap: 12px; }
.value .icon { color: var(--brick); width: 36px; height: 36px; }
.value p { color: var(--text); }

/* ---------- Card servizi ---------- */
.card {
	background: var(--white); border-radius: var(--radius); overflow: hidden; color: var(--ink);
	display: flex; flex-direction: column; height: 100%;
}
.card:hover { color: var(--ink); }
.card__media { overflow: hidden; aspect-ratio: 4 / 3; }
.card__media img, .card__media .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .45s ease; }
.card:hover .card__media img, .card:hover .card__media .ph { transform: scale(1.04); }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body p { font-size: 15px; color: var(--text); }
.card__more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--brick); font-size: 15px; }
.bg-white .card, .section:not(.bg-calce) .card--bordered { border: 1px solid var(--line); }

.list-link {
	background: var(--white); border-radius: var(--radius); padding: 18px 22px;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	color: var(--ink); font-weight: 600; transition: box-shadow .2s, color .2s;
}
.list-link span:last-child { color: var(--brick); transition: transform .2s; }
.list-link:hover { color: var(--brick); box-shadow: 0 4px 16px rgba(43,45,47,.08); }
.list-link:hover span:last-child { transform: translateX(3px); }
.list-links-wrap { margin-top: 24px; }

/* ---------- Split (testo + foto) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 440px; }
.split__media .media { aspect-ratio: 5 / 4; }
.split__text { display: flex; flex-direction: column; gap: 18px; }
.split--reverse { flex-direction: row-reverse; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--brick); width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; stroke-width: 2.4; }
.checklist--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px 28px; }

/* ---------- Fascia premio ---------- */
.award-band .wrap { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between; padding-top: 52px; padding-bottom: 52px; }
.award-band__main { display: flex; gap: 22px; align-items: center; flex: 1 1 520px; }
.award-band__main .icon { width: 60px; height: 60px; flex-shrink: 0; stroke-width: 1.5; }
.award-band__main img { max-width: 90px; max-height: 90px; width: auto; border-radius: var(--radius); background: var(--white); padding: 6px; }
.award-band small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; display: block; }
.award-band h2 { font-family: var(--font-head); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; }
.award-band p { color: #F6E3DC; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); padding: 8px 14px;
	font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
}
.chip img { max-height: 24px; width: auto; }
.chip--light { border-color: var(--line-2); color: var(--ink); background: var(--white); }

/* ---------- Card lavori ---------- */
.work { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.work:hover { color: var(--ink); }
.work__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.work__media img, .work__media .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .45s ease; }
.work:hover .work__media img, .work:hover .work__media .ph { transform: scale(1.04); }
.work__tag {
	position: absolute; left: 12px; top: 12px; background: var(--white); color: var(--ink);
	font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 5px 9px; border-radius: var(--radius);
	text-transform: uppercase;
}
.work__tag--progress { background: var(--brick); color: var(--white); }
.work__cat { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--brick); text-transform: uppercase; }
.work__meta { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- Enti (scuro) ---------- */
.dark-card { background: var(--ink-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.dark-card h3 { font-family: var(--font-head); font-size: 28px; line-height: 1.1; color: var(--white); }
.dark-card p { color: var(--on-dark); font-size: 16px; }

/* ---------- Passi ---------- */
.step { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--brick); padding-top: 18px; }
.step__num { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--brick); line-height: 1; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--text); font-size: 16px; }

/* ---------- Contatti + form ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.contact__form { flex: 1 1 520px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-list small { display: block; font-size: 13px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.contact-list .big { font-weight: 700; font-size: 20px; color: var(--ink); }
.contact-list .big:hover { color: var(--brick); }
.contact-list .big svg { vertical-align: -4px; margin-right: 8px; }

.form { background: var(--calce); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
	padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); font-weight: 400; width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brick); outline-offset: 0; border-color: var(--brick); }
.form input[type=file] { font-size: 15px; font-weight: 400; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--text); }
.form .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brick); }
.form .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.notice { border-radius: var(--radius); padding: 16px 20px; font-weight: 600; margin-bottom: 18px; }
.notice--ok { background: #E6F2E8; color: #1F5130; }
.notice--err { background: #FBE7E3; color: #7D2414; }

.map-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--ph); position: relative; }
.map-embed__gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; background: var(--calce); }
.map-embed__gate p { max-width: 560px; color: var(--text); font-size: 15px; }
.map-embed__gate .btn-row { justify-content: center; }
.map-embed__gate .btn-row .btn { flex: 0 1 auto; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ---------- Modulo Fluent Forms (stesso aspetto del modulo integrato) ---------- */
.form--ff { display: block; }
.form--ff .fluentform { display: block; }
.form--ff .frm-fluent-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.form--ff .ff-el-group { margin: 0 !important; }
.form--ff .ff-el-group.full, .form--ff .ff_submit_btn_wrapper, .form--ff .ff-el-group.ff-custom_html, .form--ff .ff-el-group.ff_gdpr_field, .form--ff .ff-el-group:has(textarea), .form--ff .ff-el-group:has(select), .form--ff .ff-el-group:has(input[type=file]), .form--ff .ff-el-group:has(.ff_gdpr_field) { grid-column: 1 / -1; }
.form--ff .ff-el-input--label { margin-bottom: 6px; }
.form--ff .ff-el-input--label label { font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.4; margin: 0; }
.form--ff .ff-el-is-required.asterisk-right label:after { color: var(--brick); }
.form--ff .fluentform .ff-el-form-control, .form--ff .fluentform .ff-btn-submit, .form--ff .fluentform .ff_upload_btn { font-family: var(--font-body); }
.form--ff .ff-el-form-control { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); font: inherit; font-weight: 400; font-size: 17px; color: var(--ink); width: 100%; height: auto; line-height: 1.4; box-shadow: none; }
.form--ff .ff-el-form-control:focus { outline: 2px solid var(--brick); outline-offset: 0; border-color: var(--brick); box-shadow: none; }
.form--ff textarea.ff-el-form-control { resize: vertical; min-height: 120px; }
.form--ff select.ff-el-form-control { appearance: auto; -webkit-appearance: auto; }
.form--ff .ff-el-help-message { font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 6px; }
.form--ff .ff-el-form-check { margin: 0; }
.form--ff .ff-el-form-check-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--text); padding-left: 0; }
.form--ff .ff-el-form-check-label a { text-decoration: underline; }
.form--ff .ff-el-form-check-input, .form--ff input[type=checkbox] { position: static; margin: 4px 0 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brick); }
.form--ff .ff-el-tc { margin: 0; }
.form--ff .ff_file_upload_holder, .form--ff .ff_upload_btn { font: inherit; }
.form--ff .ff_upload_btn.ff-btn { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 18px; font-weight: 600; font-size: 15px; box-shadow: none; }
.form--ff .ff_upload_btn.ff-btn:hover { border-color: var(--brick); color: var(--brick); background: var(--white); }
.form--ff .ff-btn-submit, .form--ff .ff_submit_btn_wrapper button { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 14px 24px; border-radius: var(--radius); font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2; border: 2px solid transparent; background: var(--brick) !important; color: var(--white) !important; cursor: pointer; transition: background .2s; box-shadow: none; }
.form--ff .ff-btn-submit:hover, .form--ff .ff_submit_btn_wrapper button:hover { background: var(--brick-dark) !important; }
.form--ff .ff-btn-submit:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.form--ff .ff-el-is-error .ff-el-form-control { border-color: #B3261E; }
.form--ff .error, .form--ff .ff-errors-in-stack, .form--ff .text-danger { color: #7D2414; font-size: 14px; font-weight: 600; }
.form--ff .ff-message-success { background: #E6F2E8; color: #1F5130; border: 0; border-radius: var(--radius); padding: 16px 20px; font-weight: 600; box-shadow: none; margin: 0; }
.form--ff .ff-errors-in-stack.ff-form-errors { background: #FBE7E3; color: #7D2414; border-radius: var(--radius); padding: 12px 16px; grid-column: 1 / -1; }
.form--ff .ff-loading-overlay { border-radius: var(--radius); }

/* ---------- CTA ---------- */
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; }
.cta-band p { color: #F6E3DC; margin-top: 6px; max-width: 640px; }

/* ---------- Intestazione pagine interne ---------- */
.page-hero { background: var(--calce); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 52px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.page-hero__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; }
.page-hero__text .lead { max-width: 700px; }
.page-hero__media { flex: 1 1 380px; }
.page-hero__media .media { aspect-ratio: 4 / 3; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brick); }

/* ---------- Filtri ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; min-width: 110px; }
.pill {
	padding: 9px 16px; border-radius: var(--radius); border: 2px solid var(--line-2); background: var(--white);
	color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.pill:hover { border-color: var(--brick); color: var(--brick); }
.pill[aria-pressed=true] { background: var(--brick); border-color: var(--brick); color: var(--white); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 36px 24px; }
.works-grid [hidden] { display: none; }
.empty { padding: 40px; text-align: center; background: var(--calce); border-radius: var(--radius); color: var(--muted); }

/* ---------- Singolo servizio / lavoro ---------- */
.detail { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.detail__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.detail__side { flex: 1 1 320px; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .detail__side { position: static; } }

.box { background: var(--calce); border-radius: var(--radius); padding: 28px; }
.box h2, .box h3 { font-family: var(--font-head); font-size: 28px; line-height: 1.1; margin-bottom: 16px; }
.box--dark { background: var(--ink); color: var(--white); }
.box--dark p { color: var(--on-dark); }

.facts { display: flex; flex-direction: column; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brick-light); }

.side-links { list-style: none; }
.side-links a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a span:last-child { color: var(--brick); }
.side-links a:hover { color: var(--brick); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* Prima / dopo */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--ph); --pos: 50%; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--white); transform: translateX(-50%); pointer-events: none; }
.ba__line::after {
	content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--brick);
	display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: var(--shadow);
}
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__tag { position: absolute; top: 12px; background: rgba(43,45,47,.8); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 5px 9px; border-radius: var(--radius); pointer-events: none; }
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brick); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 22px 20px; color: var(--text); }

.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border-radius: var(--radius); padding: 6px 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.meta-chip .icon { width: 18px; height: 18px; color: var(--brick); }

.cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.cover img, .cover .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* Persone */
.person { display: flex; flex-direction: column; gap: 12px; }
.person .media { aspect-ratio: 4 / 5; }
.person h3 { font-family: var(--font-head); font-size: 26px; line-height: 1.1; }
.person small { color: var(--brick); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.person p { color: var(--text); font-size: 16px; }

/* Target enti */
.target { scroll-margin-top: 110px; }
.target + .target { border-top: 1px solid var(--line); padding-top: 72px; margin-top: 72px; }
.target__sub { color: var(--muted); font-weight: 600; }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed; inset: 0; background: rgba(20,21,22,.94); z-index: 200; display: none;
	align-items: center; justify-content: center; padding: 60px 16px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }
.lightbox button {
	position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; border-radius: var(--radius);
	width: 48px; height: 48px; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { font-size: 15px; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: var(--on-dark); }
.footer-col a:hover { color: var(--white); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--white); letter-spacing: .04em; }
.footer-brand img { max-height: 54px; width: auto; }
.footer-bottom { border-top: 1px solid #45484B; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--on-dark); }
.social { display: flex; gap: 12px; margin-top: 6px; }

/* ---------- Comparsa leggera (una volta sola) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.card__media img, .work__media img, .gallery img, .card__media .ph, .work__media .ph { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
	body { font-size: 16px; }
	.section { padding: 64px 0; }
	.hero .wrap { padding-top: 44px; padding-bottom: 52px; gap: 36px; }
	.lead { font-size: 17px; }
	.form { padding: 22px; }
	.btn-row .btn { flex: 1 1 100%; }
	.topbar__addr { display: none; }
}

/* ---------- Pagine generiche ---------- */
.content-narrow { max-width: 820px; }
.wp-block-image img { border-radius: var(--radius); }
.alignwide { max-width: 1100px; }
