/*
Theme Name: Co.Me.Car.
Theme URI: https://comecarsrl.it/
Author: Co.Me.Car. S.r.l.
Description: Tema su misura per Co.Me.Car. S.r.l. con archivio lavori, documenti e certificazioni gestibili dallo staff.
Version: 1.8.5
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comecar
*/

/* ---------- Font locali (nessuna chiamata a Google) ---------- */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo.woff") format("woff");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("assets/fonts/ibm-plex-sans.woff") format("woff");
	font-weight: 100 700;
	font-stretch: 85% 100%;
	font-display: swap;
}

/* ---------- Colori aziendali ---------- */
:root {
	--c-navy: #0E2350;
	--c-navy-2: #12306A;
	--c-navy-3: #081A3D;
	--c-blue: #2A80FF;
	--c-blue-light: #8DB9FF;
	--c-red: #D40000;
	--c-red-dark: #B00000;
	--c-ink: #0E2350;
	--c-muted: #475569;
	--c-ground: #F3F6FA;
	--c-blue-text: #1F6FE5;
	--c-red-text: #C40000;
	--c-white: #FFFFFF;
	--c-line: #DCE3EC;
	--c-line-dark: #2A4B80;
	--c-on-dark: #C5D3E8;
	--c-on-dark-muted: #A8BBD8;
	--f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 24px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--c-ink); text-underline-offset: 3px; }
a:hover { color: var(--c-red); }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto;
	left: 12px; top: 12px; z-index: 1000;
	background: var(--c-white); color: var(--c-ink); padding: 12px 16px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow {
	margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .14em;
	text-transform: uppercase; color: var(--c-red-text);
}
.on-dark .eyebrow { color: var(--c-blue-light); }

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px;
	font: 600 16px/1.2 var(--f-body); text-decoration: none; text-align: center;
	border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--c-red); color: var(--c-white); }
.btn--primary:hover { background: var(--c-red-dark); color: var(--c-white); }
.btn--ghost { border-color: #6F8CC0; color: var(--c-white); }
.btn--ghost:hover { border-color: var(--c-white); color: var(--c-white); }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn--outline:hover { background: var(--c-ink); color: var(--c-white); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-block; padding: 10px 0; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Barra contatti ---------- */
.topbar { background: var(--c-navy-3); color: var(--c-on-dark); font-size: 14px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar a { color: var(--c-white); text-decoration: none; }
.topbar a:hover { color: var(--c-white); text-decoration: underline; }
@media (max-width: 700px) {
	.topbar__claim, .topbar__pec { display: none; }
	.topbar__contacts { justify-content: space-between; width: 100%; }
}

/* ---------- Header ---------- */
.site-header { background: var(--c-white); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.site-logo { display: block; flex-shrink: 0; line-height: 0; }
.site-logo__svg { display: block; height: 46px; width: auto; }
.site-logo img { display: block; height: 46px; width: auto; }

.nav-toggle {
	display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
	background: transparent; border: 1px solid var(--c-line); color: var(--c-ink);
	font: 600 15px var(--f-body); cursor: pointer;
}
.nav-toggle__bars { width: 20px; height: 14px; position: relative; display: inline-block; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
	content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 6px; }
.nav-toggle__bars::after { bottom: 0; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 30px; }
.main-nav a { display: block; padding: 10px 0; text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 2px solid transparent; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-page-ancestor > a { border-bottom-color: var(--c-red); }
.main-nav .menu-item--cta > a { background: var(--c-red); color: var(--c-white); padding: 12px 20px; border: 0; font-weight: 600; }
.main-nav .menu-item--cta > a:hover { background: var(--c-red-dark); color: var(--c-white); }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-white); border-bottom: 1px solid var(--c-line); box-shadow: 0 12px 24px rgba(14,35,80,.08); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
	.main-nav a { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 17px; }
	.main-nav .menu-item--cta > a { margin-top: 12px; text-align: center; }
	.site-logo__svg, .site-logo img { height: 38px; }
}
@media (max-width: 380px) { .site-logo__svg, .site-logo img { height: 32px; } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 9vw, 96px) 0; }
.section--ground { background: var(--c-ground); }
.section--dark { background: var(--c-navy); color: var(--c-white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head > div { max-width: 680px; }
.h-section { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.12; margin: 0; }
.h-section--sm { font-size: clamp(26px, 3vw, 36px); }
.on-dark { color: var(--c-white); }
.on-dark a { color: var(--c-white); }
.eyebrow { letter-spacing: .14em; }

/* Hero */
.hero { position: relative; background: var(--c-navy); color: var(--c-white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; }
.hero__inner { position: relative; min-height: clamp(460px, 48vw, 620px); display: flex; align-items: center; }
.hero__panel {
	background: rgba(14, 35, 80, .92); border-top: 4px solid var(--c-red);
	padding: clamp(28px, 4vw, 48px); max-width: 640px; margin: 64px 0;
}
.hero .eyebrow { color: var(--c-blue-light); }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; font-stretch: 105%; letter-spacing: -.01em; line-height: 1.05; margin: 0 0 22px; }
.hero__lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--c-on-dark); margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost { border-color: var(--c-blue-light); }
@media (max-width: 640px) {
	.hero__bg { position: static; display: block; height: 240px; object-position: 45% 65%; }
	.hero__inner { padding-left: 0; padding-right: 0; min-height: 0; }
	.hero__panel { margin: 0; max-width: none; background: var(--c-navy); }
}

/* Numeri */
.stats { background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { padding: 32px 24px; border-right: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 4px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: var(--c-blue-text); }
.stat__label { color: var(--c-muted); font-size: 15px; }
@media (max-width: 960px) {
	.stat { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 22px 0; }
	.stat:last-child { border-bottom: 0; }
}

/* Azienda */
.split { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.split__col { flex: 1 1 420px; min-width: 0; }
.lead-text { color: #334155; margin: 0 0 20px; }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--c-red); }

/* Settori */
.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.sector { background: var(--c-white); padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-height: 220px; color: var(--c-ink); }
.sector:hover { background: #F8FAFD; color: var(--c-ink); }
.sector:hover .sector__name { color: var(--c-red); }
.sector-icon { color: var(--c-blue); width: 40px; height: 40px; }
.sector__name { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.sector__text { font-size: 15px; color: var(--c-muted); }
.sector__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--c-red-text); }
.sector--cta { background: var(--c-navy); color: var(--c-white); }
.sector--cta:hover { background: var(--c-navy-2); color: var(--c-white); }
.sector--cta:hover .sector__name { color: var(--c-white); }
.sector--cta .sector__text { color: var(--c-on-dark); }
.sector--cta .sector__more { color: var(--c-blue-light); }

/* Lavori in evidenza */
.featured { display: flex; flex-wrap: wrap; gap: 24px; }
.featured > .fcard--big { flex: 3 1 520px; }
.featured__side { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.fcard { min-width: 0; text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink); flex: 1 1 auto; }
.fcard:hover { color: var(--c-ink); border-color: #AEB9C8; }
.fcard:hover .fcard__title { color: var(--c-red); }
.fcard__img { width: 100%; height: 170px; object-fit: cover; display: block; }
.fcard__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.fcard__kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-red-text); }
.fcard__title { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.fcard__text { font-size: 15px; color: var(--c-muted); }
.fcard__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--c-muted); }
.fcard__foot strong { color: var(--c-ink); }
.fcard--big { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.fcard--big:hover { color: var(--c-white); border-color: var(--c-navy); }
.fcard--big:hover .fcard__title { color: var(--c-white); text-decoration: underline; }
.fcard--big .fcard__img { height: 360px; }
.fcard--big .fcard__body { padding: 28px 32px; gap: 10px; }
.fcard--big .fcard__kicker { color: var(--c-blue-light); }
.fcard--big .fcard__title { font-size: 26px; }
.fcard--big .fcard__text { color: var(--c-on-dark); font-size: 16px; }
.fcard--big .fcard__foot { border-top-color: var(--c-line-dark); color: var(--c-on-dark-muted); }
.fcard--big .fcard__foot strong { color: var(--c-white); }
@media (max-width: 640px) { .fcard--big .fcard__img { height: 220px; } }
/* Scheda grande senza foto: il testo si appoggia in basso, come un manifesto. */
.fcard--big:not(:has(.fcard__img)) .fcard__body { justify-content: flex-end; min-height: 320px; background: linear-gradient(var(--c-navy), var(--c-navy)) padding-box; }
.fcard--big:not(:has(.fcard__img)) .fcard__foot { margin-top: 12px; }
.fcard--big:not(:has(.fcard__img)) .fcard__title { font-size: clamp(26px, 2.6vw, 32px); }

/* Striscia foto */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.photo-strip img { width: 100%; height: 260px; object-fit: cover; display: block; }

/* Certificazioni (home) */
.docs { display: flex; flex-wrap: wrap; gap: 48px; }
.docs__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.docs__intro .h-section { margin: 0; }
.docs__intro p { margin: 0; }
.docs__logos { display: flex; flex-wrap: wrap; gap: 16px; }
.docs__logos { align-items: center; gap: 16px 28px; margin: 8px 0 4px; }
.docs__logos .cert-logo-link { display: flex; align-items: center; height: 52px; }
.docs__logos .cert-logo { height: 40px; width: auto; max-width: 132px; object-fit: contain; display: block; }
.docs .doc-list { flex: 2 1 540px; align-content: start; }
.doc-item { border-left: 4px solid var(--c-blue); }
.doc-item:last-child { border-left-color: var(--c-red); }

/* Fascia contatti */
.contact-band { background: var(--c-navy); }
.contact-band__inner { padding-top: clamp(64px, 8vw, 88px); padding-bottom: clamp(64px, 8vw, 88px); display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; justify-content: space-between; }
.contact-band__text { flex: 1 1 480px; min-width: 0; }
.contact-band__text p:last-child { color: var(--c-on-dark); max-width: 560px; margin: 14px 0 0; }
.contact-band__grid { flex: 1 1 400px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.contact-band__grid > div { display: flex; flex-direction: column; gap: 4px; }
.contact-band__grid a { text-decoration: none; }
.contact-band__grid a:hover { text-decoration: underline; }
.contact-band__big { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.contact-band__pec { color: var(--c-on-dark); font-size: 15px; overflow-wrap: anywhere; }
.contact-band__btn { grid-column: 1 / -1; }
.contact-band__inner { align-items: flex-start; }
.contact-band__text { display: flex; flex-direction: column; gap: 32px; }
.contact-band__form { flex: 1 1 520px; min-width: 0; background: var(--c-white); color: var(--c-ink); padding: clamp(24px, 4vw, 36px); border-top: 4px solid var(--c-red); }
.contact-band__form h3 { font-size: 24px; margin: 0 0 18px; }

/* ---------- Modulo contatti ---------- */
.cform { display: flex; flex-direction: column; gap: 16px; color: var(--c-ink); }
.cform a { color: var(--c-ink); }
.cform__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.cform__field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cform__field label { font-size: 14px; font-weight: 600; }
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform select, .cform textarea {
	width: 100%; min-height: 46px; padding: 11px 12px; font: 400 16px var(--f-body); color: var(--c-ink);
	background: var(--c-white); border: 1px solid #AEB9C8; border-radius: 0;
}
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid rgba(42,128,255,.35); border-color: var(--c-blue); }
.cform__label { font-size: 14px; font-weight: 600; }
.cform__file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.cform__file-btn {
	align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
	border: 1px dashed #8A99AE; background: var(--c-ground); color: var(--c-ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.cform__file-btn:hover { border-color: var(--c-ink); }
.cform__file-input:focus-visible + .cform__filelist + .cform__file-error + .cform__file-btn { outline: 3px solid var(--c-blue); outline-offset: 2px; }
.cform__file-btn[hidden] { display: none; }
.cform__filelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cform__filelist:empty { display: none; }
.cform__file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--c-ground); border: 1px solid var(--c-line); font-size: 14px; }
.cform__file.is-error { background: #FDECEC; border-color: #F2B8B8; color: #7A0000; }
.cform__file-name { min-width: 0; overflow-wrap: anywhere; }
.cform__file-remove { flex-shrink: 0; min-height: 36px; padding: 4px 12px; background: var(--c-white); border: 1px solid #AEB9C8; color: var(--c-ink); font: 600 14px var(--f-body); cursor: pointer; }
.cform__file-remove:hover { border-color: var(--c-red); color: var(--c-red-text); }
.cform__file-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--c-red-text); }
.cform__file-error:empty { display: none; }
.cform__req { color: var(--c-red-text); }
.cform__hint { font-size: 13px; font-weight: 400; color: var(--c-muted); }
.cform__check { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-muted); }
.cform__check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--c-red); }
.cform__actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cform__submit:disabled { opacity: .7; cursor: wait; }
.cform__notice { padding: 14px 16px; font-size: 15px; border-left: 4px solid; }
.cform__notice--ok { background: #ECF8EF; border-color: #1E8E3E; color: #134E25; }
.cform__notice--err { background: #FDECEC; border-color: var(--c-red); color: #7A0000; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.on-dark .contact-band__btn, .on-dark .btn--primary { color: var(--c-white); }

/* Segnaposto immagine */
.placeholder { display: flex; align-items: flex-end; padding: 16px; min-height: 200px; background: repeating-linear-gradient(135deg, #E3EAF4 0 12px, #EDF2F8 12px 24px); color: var(--c-muted); font-size: 14px; }

/* Card */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.card { background: var(--c-white); border: 1px solid var(--c-line); display: flex; flex-direction: column; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card__kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-red); }
.card__kicker a { color: inherit; text-decoration: none; }
.card__title { font-size: 20px; font-weight: 700; margin: 0; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--c-red); }
.card__text { color: var(--c-muted); font-size: 15px; margin: 0; }
.card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 15px; }
.card__foot strong { font-weight: 600; }
.card__media img, .card__media .placeholder { display: block; width: 100%; height: 200px; object-fit: cover; min-height: 0; }

.sector-card { padding: 28px; gap: 12px; }
.sector-card__num { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--c-red); }
.sector-card h3 { font-size: 22px; margin: 0; }
.sector-card h3 a { text-decoration: none; }
.sector-card p { margin: 0; color: var(--c-muted); font-size: 16px; }
.sector-card__count { margin-top: auto !important; font-size: 14px !important; font-weight: 600; color: var(--c-ink) !important; }

/* Documenti */
.docs-box { background: var(--c-white); border: 1px solid var(--c-line); padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 40px; }
.docs-box__intro { flex: 1 1 300px; min-width: 0; }
.docs-box__intro h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.doc-list { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.doc-list--page { flex: none; width: 100%; }
.doc-item { border: 1px solid var(--c-line); background: var(--c-white); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc-item__name { display: flex; flex-direction: column; min-width: 0; }
.doc-item__name strong { font-family: var(--f-display); font-size: 17px; }
.doc-item__name span { font-size: 14px; color: var(--c-muted); }

/* Contatti */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__info h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin: 0; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.contact__label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-on-dark-muted); margin-bottom: 4px; }
.contact__grid a { text-decoration: none; }
.contact__grid a:hover { text-decoration: underline; }
.contact__form { flex: 1 1 420px; min-width: 0; background: var(--c-white); color: var(--c-ink); padding: clamp(24px, 4vw, 32px); }
.contact__form h3 { font-size: 22px; }
.contact__form a { color: var(--c-ink); }
.contact__form a.btn--primary, .contact__form a.btn--primary:hover { color: var(--c-white); }
.map-frame { width: 100%; height: 260px; border: 1px solid var(--c-line-dark); display: block; background: var(--c-navy-2); }
.section--white .map-frame, .page-body .map-frame { border-color: var(--c-line); }

/* Moduli (anche Contact Form 7) */
.contact__form label, .page-body .wpcf7 label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.contact__form input[type=text], .contact__form input[type=email], .contact__form input[type=tel], .contact__form textarea, .contact__form select,
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select {
	display: block; width: 100%; margin-top: 6px; padding: 12px; min-height: 46px;
	font: 400 16px var(--f-body); color: var(--c-ink); background: var(--c-white); border: 1px solid #AEB9C8;
}
.wpcf7 input[type=submit] { background: var(--c-red); color: var(--c-white); border: 0; min-height: 48px; padding: 12px 24px; font: 600 16px var(--f-body); cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--c-red-dark); }
.wpcf7 input[type=checkbox] { width: 20px; height: 20px; vertical-align: middle; }

/* ---------- Pagine interne ---------- */
.page-hero { background: var(--c-navy); color: var(--c-white); }
.page-hero__inner { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; margin: 0 0 12px; max-width: 900px; }
.page-hero p { color: var(--c-on-dark); font-size: 18px; max-width: 680px; margin: 0; }
.breadcrumbs { font-size: 14px; color: var(--c-on-dark-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--c-on-dark); }

.page-body { padding: 56px 0 88px; background: var(--c-ground); }
.prose { max-width: 820px; background: var(--c-white); border: 1px solid var(--c-line); padding: clamp(24px, 5vw, 48px); }
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin-top: 1.2em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--c-ink); font-weight: 500; }
.prose a:hover { color: var(--c-red); }
.prose--wide { max-width: none; }
.prose img { height: auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--c-line); padding: 8px 10px; }

/* Archivio lavori */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filter {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
	border: 1px solid #AEB9C8; background: var(--c-white); color: var(--c-ink);
	text-decoration: none; font-size: 15px; font-weight: 500;
}
.filter:hover { border-color: var(--c-ink); color: var(--c-ink); }
.filter.is-active { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.filter__count { margin-left: 8px; font-size: 13px; opacity: .75; }
.archive-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--c-muted); font-size: 15px; }
.archive-tools form { display: flex; align-items: center; gap: 8px; }
.archive-tools select { min-height: 44px; padding: 8px 12px; font: 400 15px var(--f-body); border: 1px solid #AEB9C8; background: var(--c-white); color: var(--c-ink); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-line); background: var(--c-white); text-decoration: none; font-weight: 500; }
.pagination .page-numbers.current { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }

/* Singolo lavoro */
.job { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.job__main { flex: 999 1 560px; min-width: 0; }
.job__aside { flex: 1 1 300px; min-width: 0; background: var(--c-white); border: 1px solid var(--c-line); padding: 24px; }
.job__aside dl { margin: 0; display: grid; gap: 14px; }
.job__aside dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.job__aside dd { margin: 2px 0 0; font-weight: 600; }
.job__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 24px; }
.job__gallery img { width: 100%; height: 180px; object-fit: cover; display: block; }
.job__cover { margin-bottom: 24px; }
.job__cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy-3); color: var(--c-on-dark-muted); font-size: 15px; }
.site-footer a { color: var(--c-on-dark); }
.site-footer a:hover { color: var(--c-white); }
.footer-logos { background: var(--c-ground); border-top: 1px solid var(--c-line); }
.footer-logos__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 48px; padding-top: 24px; padding-bottom: 24px; }
.footer-logos__label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin: 0; }
.footer-logos .cert-logo { display: block; height: 46px; width: auto; max-width: 180px; object-fit: contain; }
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-main__brand .site-logo__svg { height: 36px; }
.footer-main__brand p { margin: 14px 0 0; }
.footer-main h2 { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-white); margin: 0 0 10px; }
.footer-main__h-gap { margin-top: 20px !important; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-main a { text-decoration: none; overflow-wrap: anywhere; }
.footer-main a:hover { text-decoration: underline; }
.footer-main p { margin: 0 0 6px; }
.footer-bottom { border-top: 1px solid #1B3364; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Varie ---------- */
.notice-empty { background: var(--c-white); border: 1px dashed #AEB9C8; padding: 32px; text-align: center; color: var(--c-muted); }
.alignwide { max-width: 100%; }
.wp-caption, .wp-caption-text { max-width: 100%; font-size: 14px; color: var(--c-muted); }

@media print {
	.site-header, .site-footer, .nav-toggle, .filters, .archive-tools, .pagination { display: none !important; }
	body { background: #fff; }
}

.comecar-muted { color: var(--c-muted); }
.on-dark .comecar-muted { color: var(--c-on-dark-muted); }

/* Ancore sotto l'intestazione fissa */
[id] { scroll-margin-top: 96px; }
.contact-band__text .contact-band__grid { flex: none; }

/* Testo giustificato con sillabazione (sui telefoni resta allineato a sinistra per evitare spazi larghi) */
@media (min-width: 640px) {
	.prose p, .prose li, .lead-text, .hero__lead, .contact-band__text p {
		text-align: justify; -webkit-hyphens: auto; hyphens: auto;
	}
}
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.6em 0 .6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--c-red); }

/* Organico (pagina L'azienda) */
.prose .organico { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.prose .organico__item { margin: 0; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--c-ground); border-left: 4px solid var(--c-blue); text-align: left; -webkit-hyphens: manual; hyphens: manual; }
.organico__n { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--c-blue-text); min-width: 1.6em; }
.organico__label { font-size: 15px; line-height: 1.35; }
.organico__date { font-size: 14px; color: var(--c-muted); }

/* Documenti: pulsanti Visualizza / Scarica */
.doc-item { flex-wrap: wrap; }
.doc-item__name { flex: 1 1 150px; }
.doc-item__actions { display: flex; gap: 8px; flex-shrink: 0; }
.doc-item__btn {
	display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
	border: 1px solid #AEB9C8; background: var(--c-white); color: var(--c-ink);
	font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.doc-item__btn:hover { border-color: var(--c-ink); color: var(--c-ink); }
.doc-item__btn--view { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.doc-item__btn--view:hover { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }

/* Finestra di anteprima PDF */
.pdfview { width: min(1100px, 94vw); height: 90vh; max-height: 90vh; padding: 0; border: 0; background: var(--c-white); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(8,26,61,.4); }
.pdfview:not([open]) { display: none; }
.pdfview::backdrop { background: rgba(8, 26, 61, .7); }
.pdfview__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px; background: var(--c-navy); color: var(--c-white); }
.pdfview__title { font-family: var(--f-display); font-size: 18px; }
.pdfview__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pdfview__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--c-blue-light); background: transparent; color: var(--c-white); font: 600 14px var(--f-body); text-decoration: none; cursor: pointer; }
.pdfview__btn:hover { background: var(--c-white); color: var(--c-navy); }
.pdfview__close { background: var(--c-red); border-color: var(--c-red); }
.pdfview__frame { flex: 1 1 auto; width: 100%; border: 0; background: #525659; }
html.pdfview-open { overflow: hidden; }

/* Loghi degli enti: niente riquadri bianchi, lo sfondo bianco delle immagini si fonde con quello della sezione */
.cert-logo { mix-blend-mode: multiply; filter: saturate(.9) contrast(1.02); transition: filter .2s; }
.cert-logo-link:hover .cert-logo { filter: none; }

/* Selettore lingua IT / EN nella barra in alto */
.topbar__lang { display: inline-flex; align-items: center; gap: 2px; padding-left: 16px; border-left: 1px solid #2A4B80; }
.topbar__lang button { min-height: 28px; padding: 2px 9px; background: transparent; border: 0; color: var(--c-on-dark); font: 600 13px var(--f-body); letter-spacing: .06em; cursor: pointer; }
.topbar__lang button:hover { color: var(--c-white); }
.topbar__lang button.is-active { background: var(--c-red); color: var(--c-white); }
.topbar__gt, .topbar__gt[hidden] { display: none !important; }
@media (max-width: 700px) { .topbar__lang { padding-left: 10px; } }
/* Barra di Google Translate: nascosta, il sito non deve spostarsi */
body { top: 0 !important; }
.skiptranslate iframe, iframe.goog-te-banner-frame, #goog-gt-tt { display: none !important; }
