/* ============================================================
   CISAC Protezione Catodica srl — foglio di stile unico
   Palette originale: navy #122F88 · giallo #FFD600 · testo #605E5E
   ============================================================ */

/* --- 1. VARIABILI ------------------------------------------ */
:root {
	--navy:        #122f88;
	--navy-dark:   #0c1f5e;
	--navy-soft:   #eef1fa;
	--yellow:      #ffd600;
	--yellow-dark: #e7c200;
	--text:        #605e5e;
	--text-soft:   #8a8888;
	--white:       #ffffff;
	--gray:        #f7f8fa;
	--line:        #e6e8ee;

	/* raggi — scala morbida */
	--radius-sm:   10px;
	--radius:      16px;
	--radius-lg:   22px;

	/* ombre a due livelli: contatto ravvicinato + diffusione ampia */
	--shadow-sm:   0 1px 2px rgba(12, 31, 94, .05), 0 2px 8px rgba(12, 31, 94, .04);
	--shadow:      0 2px 4px rgba(12, 31, 94, .05), 0 10px 28px rgba(12, 31, 94, .07);
	--shadow-lg:   0 4px 10px rgba(12, 31, 94, .06), 0 20px 48px rgba(12, 31, 94, .13);

	--ease:        cubic-bezier(.22, .61, .36, 1);
	--wrap:        1200px;
}

/* --- 2. RESET ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 140px; }

body {
	margin: 0;
	font-family: 'Barlow', 'Trebuchet MS', Arial, sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* anello di focus visibile solo da tastiera */
:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 3px;
	border-radius: 4px;
}

/* height:auto: gli attributi width/height nell’HTML servono solo a riservare lo spazio
   (proporzioni) mentre l’immagine carica; le dimensioni a schermo le decide il CSS */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .18s; }
a:hover { color: var(--yellow-dark); }

h1, h2, h3, h4 {
	font-family: 'Raleway', Arial, sans-serif;
	color: var(--navy);
	line-height: 1.16;
	letter-spacing: -.02em;
	margin: 0 0 .6em;
	font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }

strong { font-weight: 600; color: #4a4949; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

/* --- 3. HEADER (fascia navy) -------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(18, 47, 136, .88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	color: var(--white);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .09), 0 6px 24px rgba(12, 31, 94, .18);
}
/* fallback: senza backdrop-filter serve il navy pieno o il testo diventa illeggibile */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.site-header { background: var(--navy); }
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 12px;
}

.brand { display: flex; align-items: baseline; gap: 9px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-name {
	font-family: 'Raleway', sans-serif;
	font-weight: 500;
	font-size: clamp(1.15rem, 2.2vw, 1.6rem);
	letter-spacing: .01em;
	white-space: nowrap;
}
.brand-name b { font-weight: 700; }
.brand-name span { font-size: .8em; font-weight: 300; }

/* pill di contatto */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 2px solid var(--yellow);
	border-radius: 40px;
	padding: 6px 18px;
	color: var(--white);
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .84rem;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.pill:hover { background: var(--yellow); color: var(--navy); }
.pill svg { width: 13px; height: 13px; fill: currentColor; flex: none; }

.header-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 0;
}
.header-contacts { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }

/* Desktop: header su griglia 2×2. Colonna sinistra brand + menu, colonna destra le tre
   pillole come un unico blocco: sede sopra, telefono ed email sotto, stessi bordi.
   Prima stavano in due righe flex indipendenti e i bordi sinistri risultavano sfalsati
   (sede 341px, telefono+email 290px) e quasi attaccati in verticale. */
@media (min-width: 1151px) {
	.site-header > .wrap {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 32px;
		row-gap: 6px;
		padding-top: 12px;
	}
	.header-top, .header-bottom { display: contents; }
	.header-top .brand { grid-column: 1; grid-row: 1; align-self: center; }
	.header-top > .pill { grid-column: 2; grid-row: 1; justify-self: stretch; justify-content: center; }
	.main-nav { grid-column: 1; grid-row: 2; align-self: end; }
	.header-contacts { grid-column: 2; grid-row: 2; align-self: center; padding-bottom: 0; gap: 10px; }
	.header-contacts .pill { flex: 1; justify-content: center; }
}


/* --- 4. NAVIGAZIONE ----------------------------------------- */
.main-nav ul {
	list-style: none;
	display: flex;
	align-items: flex-end;
	gap: 0;
	margin: 0;
	padding: 0;
}
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	padding: 12px 22px;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	font-size: 1rem;
	color: var(--white);
	transition: background .22s var(--ease), color .22s var(--ease);
}
.main-nav a:hover { background: rgba(255, 214, 0, .22); color: var(--white); }

.main-nav a.current { background: var(--yellow); color: var(--navy); font-weight: 500; }
/* freccetta sotto la voce attiva */
.main-nav a.current::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -11px;
	transform: translateX(-50%);
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 11px solid var(--yellow);
}

.hamburger {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
	width: 46px;
	height: 46px;
}
.hamburger span {
	display: block;
	height: 2px;
	width: 26px;
	margin: 6px auto;
	background: var(--yellow);
	transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--navy);
	z-index: 99;
	padding: 120px 26px 60px;
	overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
	display: block;
	padding: 15px 4px;
	border-bottom: 1px solid rgba(255,255,255,.16);
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	font-size: 1.1rem;
	color: var(--white);
}
.mobile-nav a.current { color: var(--yellow); }
.mobile-nav .mobile-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* --- 5. BOTTONI --------------------------------------------- */
.btn {
	display: inline-block;
	padding: 14px 34px;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .86rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	border-radius: 100px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .24s var(--ease), color .24s var(--ease),
	            border-color .24s var(--ease), transform .24s var(--ease),
	            box-shadow .24s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--navy); border-color: var(--yellow); box-shadow: 0 4px 14px rgba(255, 214, 0, .38); }
.btn-yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--navy); box-shadow: 0 8px 22px rgba(255, 214, 0, .5); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 4px 14px rgba(18, 47, 136, .28); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); box-shadow: 0 8px 22px rgba(18, 47, 136, .38); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-yellow { border-color: var(--yellow); color: var(--navy); background: transparent; }
.btn-outline-yellow:hover { background: var(--yellow); color: var(--navy); }

/* --- 6. HERO (bianco) --------------------------------------- */
.hero {
	padding: 92px 0 84px;
	background:
		radial-gradient(900px 420px at 78% 28%, rgba(255, 214, 0, .13), transparent 62%),
		radial-gradient(760px 460px at 8% 88%, rgba(18, 47, 136, .07), transparent 60%),
		var(--white);
}
.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
.hero .eyebrow {
	display: inline-block;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .76rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--navy);
	background: var(--yellow);
	padding: 7px 18px;
	border-radius: 100px;
	box-shadow: 0 3px 12px rgba(255, 214, 0, .42);
	margin-bottom: 22px;
}
.hero h1 { margin-bottom: .4em; }
.hero p { font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-logo {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 34px;
	box-shadow: var(--shadow-lg);
}
.hero-logo img { max-height: 300px; width: auto; margin: 0 auto; }

/* hero pagine interne */
.page-hero { background: var(--white); padding: 56px 0 10px; }
/* la prima sezione dopo l’intro non riparte con i 96px pieni: sommati al titolo
   lasciavano un vuoto di 110-170px fra introduzione e contenuto */
.page-hero + section { padding-top: 48px; }
/* pagine a colonna di lettura (politica, protezione catodica): l’intestazione si allinea
   alla colonna di testo da 860px invece che al bordo della pagina */
.page-hero.narrow .wrap { max-width: calc(860px + 52px); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero h1::after {
	content: "";
	display: block;
	width: 84px;
	height: 6px;
	border-radius: 100px;
	background: var(--yellow);
	margin-top: 18px;
}
.page-hero p { max-width: 70ch; margin: 20px 0 0; }

/* --- 7. SEZIONI --------------------------------------------- */
section { padding: 96px 0; }
.sec-gray { background: var(--gray); }
.sec-navy { background: var(--navy); color: rgba(255,255,255,.9); }
.sec-navy h2, .sec-navy h3 { color: var(--white); }

.sec-head { max-width: 800px; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .kicker {
	display: inline-block;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .74rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--navy);
	border-bottom: 4px solid var(--yellow);
	padding-bottom: 5px;
	margin-bottom: 16px;
}
.sec-head p { margin-bottom: 0; }

/* --- 8. INTRO / FATTI --------------------------------------- */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.intro-grid .lead { font-size: 1.16rem; color: #4a4949; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact {
	position: relative;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px 18px;
	text-align: center;
	overflow: hidden;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
/* la barra gialla resta, ma diventa un accento interno arrotondato */
.fact::after {
	content: "";
	position: absolute;
	left: 50%; bottom: 0;
	transform: translateX(-50%);
	width: 52px; height: 5px;
	border-radius: 100px 100px 0 0;
	background: var(--yellow);
}
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fact .num {
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 2.1rem;
	color: var(--navy);
	display: block;
	line-height: 1;
}
.fact .lbl {
	font-size: .76rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-soft);
	display: block;
	margin-top: 8px;
}

.info-box {
	margin-top: 26px;
	background: var(--gray);
	border-left: 6px solid var(--yellow);
	border-radius: var(--radius-sm);
	padding: 26px 28px;
}
.info-box p:last-child { margin-bottom: 0; }

/* --- 9. CARD SERVIZI ---------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 36px 32px;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ico {
	width: 56px; height: 56px;
	border-radius: var(--radius-sm);
	background: var(--yellow);
	box-shadow: 0 4px 14px rgba(255, 214, 0, .4);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 22px;
	transition: transform .28s var(--ease);
}
.card:hover .ico { transform: scale(1.07) rotate(-3deg); }
.card .ico svg { width: 25px; height: 25px; fill: var(--navy); }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; font-size: .98rem; }
/* link alla pagina del servizio, in fondo alla card */
.card { display: flex; flex-direction: column; }
.card-link {
	margin-top: auto; padding-top: 16px;
	font-family: 'Raleway', sans-serif; font-weight: 700; font-size: .76rem;
	letter-spacing: .12em; text-transform: uppercase;
}
.card-link::after { content: " \2192"; }

/* --- 10. MISSION / VISION ----------------------------------- */
/* align-items: start: la vision è molto più corta della mission e, stirata, restava
   con ~560px di bianco vuoto */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.mv {
	position: relative;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 44px 40px;
	overflow: hidden;
}
/* la fascia superiore resta, ora segue il raggio della card */
.mv::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: var(--navy);
}
.mv.vision::before { background: var(--yellow); }
.mv h2 { font-size: 1.4rem; letter-spacing: .04em; text-transform: uppercase; }
.mv p { font-size: 1rem; }
.mv p:last-child { margin-bottom: 0; }

.values { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 22px; padding: 0; list-style: none; }
.values li {
	background: var(--yellow);
	color: var(--navy);
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .7rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 100px;
}

/* pulsante "approfondisci" centrato sotto una griglia (home, servizi) */
.sec-more { text-align: center; margin: 40px 0 0; }

/* --- 10c. PROTEZIONE CATODICA (protezione-catodica.html) --- */
/* paragrafo-risposta in apertura: la definizione completa nelle prime righe è quella che
   motori di ricerca e assistenti AI estraggono e citano */
.page-hero .lead-answer { font-size: 1.12rem; max-width: 72ch; color: #4a4949; }
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { margin-top: 2.1em; scroll-margin-top: 130px; }
.prose h3 { margin-top: 1.5em; color: var(--navy); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--yellow-dark); }
.toc {
	background: var(--gray);
	border-left: 6px solid var(--yellow);
	border-radius: var(--radius-sm);
	padding: 22px 28px;
}
.toc-title {
	font-family: 'Raleway', sans-serif; font-weight: 700; font-size: .74rem;
	letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
}
.toc ol { margin: 10px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 4px; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 22px 0 8px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--navy); color: var(--white); font-family: 'Raleway', sans-serif; font-weight: 600; }
.prose tbody th { color: var(--navy); font-weight: 600; white-space: nowrap; }
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* FAQ: <details> nativi, si aprono senza JavaScript e il testo resta nell’HTML anche da
   chiusi (è quello che leggono i crawler) */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
	background: var(--white);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	transition: box-shadow .25s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 56px 18px 24px;
	position: relative;
	font-family: 'Raleway', sans-serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	position: absolute; right: 22px; top: 50%;
	transform: translateY(-50%);
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--yellow); color: var(--navy);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 24px 18px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- 10b. POLITICA AZIENDALE (politica.html) --------------- */
/* stesse card .mv della home, ma in colonna unica e larghezza di lettura */
.policy { max-width: 860px; margin: 0 auto; display: grid; gap: 34px; }
.policy .team-note { margin-bottom: 0; }
.policy-core {
	color: var(--navy);
	font-weight: 500;
	border-left: 4px solid var(--yellow);
	padding: 2px 0 2px 16px;
}
.policy-firma {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 6px;
}
.policy-luogo, .policy-chi {
	font-family: 'Raleway', sans-serif;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .82rem;
	color: var(--navy);
}
.policy-luogo { display: block; }
.policy-rev { display: block; font-size: .8rem; color: var(--text-soft); margin-top: 4px; }
.policy-chi { border-top: 2px solid var(--navy); padding-top: 8px; min-width: 200px; text-align: center; }
.policy-pdf { margin: 0; font-size: .92rem; }

/* --- 11. CERTIFICAZIONI ------------------------------------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px 26px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert .badge {
	flex: none;
	width: 52px; height: 52px;
	border-radius: var(--radius-sm);
	background: var(--navy);
	color: var(--white);
	display: flex; align-items: center; justify-content: center;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .68rem;
	letter-spacing: .03em;
	text-align: center;
	line-height: 1.15;
}
.cert h3 { font-size: 1rem; margin-bottom: .3em; }
.cert p { margin: 0; font-size: .93rem; }

/* --- 12. REFERENZE ------------------------------------------ */
/* flex e non grid: con 25 loghi l’ultima riga incompleta (3 colonne → 1 logo, 2 → 1)
   resta centrata invece che appesa a sinistra. Colonne: 5 / 3 / 2. */
.logo-grid { --cols: 5; --gap: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.logo-grid > .logo-cell { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
/* anteprima in home: 8 loghi → 4 per riga (2 su telefono), righe sempre piene */
.logo-grid.preview { --cols: 4; }
@media (max-width: 900px) { .logo-grid { --cols: 3; } .logo-grid.preview { --cols: 4; } }
@media (max-width: 620px) { .logo-grid, .logo-grid.preview { --cols: 2; --gap: 12px; } }
.logo-cell {
	background: var(--white);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	height: 132px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.logo-cell:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.logo-cell img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: .68;
	transition: filter .25s, opacity .25s;
}
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }

/* --- 13. SQUADRA -------------------------------------------- */
.team-note {
	background: var(--gray);
	border-left: 6px solid var(--yellow);
	border-radius: var(--radius-sm);
	padding: 26px 30px;
	margin-bottom: 48px;
	font-size: 1rem;
}
.team-note p:last-child { margin-bottom: 0; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.member {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px 26px;
	text-align: center;
	display: flex;
	flex-direction: column;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member .avatar {
	width: 92px; height: 92px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--navy-soft);
	display: flex; align-items: center; justify-content: center;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 1.55rem;
	color: var(--navy);
	box-shadow: 0 6px 18px rgba(18, 47, 136, .16);
	transition: transform .28s var(--ease);
}
.member:hover .avatar { transform: scale(1.06); }
.member.lead .avatar { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 20px rgba(255, 214, 0, .5); }
.member h3 { font-size: 1.1rem; margin-bottom: .1em; }
.member .role {
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--text-soft);
	margin-bottom: 16px;
}
.member .certs { list-style: none; margin: 0 0 16px; padding: 0; font-size: .87rem; flex: 1; }
.member .certs li { padding: 3px 0; }
/* min-height = due righe (telefono + email): con una riga sola la linea divisoria
   finiva più in basso che nelle schede vicine */
.member .contacts { border-top: 1px solid var(--line); padding-top: 14px; font-size: .87rem; min-height: calc(15px + 3.3em); }
.member .contacts a { display: block; word-break: break-word; }

/* --- 14. CONTATTI ------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.contact-list { display: grid; gap: 16px; }
.contact-item {
	display: flex;
	gap: 16px;
	background: var(--white);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	padding: 20px 24px;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-item .ico {
	flex: none;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--yellow);
	box-shadow: 0 3px 12px rgba(255, 214, 0, .42);
	display: flex; align-items: center; justify-content: center;
}
.contact-item .ico svg { width: 18px; height: 18px; fill: var(--navy); }
.contact-item .lbl {
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .68rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--text-soft);
	display: block;
}
.contact-item .val { font-size: 1.02rem; color: var(--navy); }

.map-embed { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; line-height: 0; }
.map-embed iframe { width: 100%; height: 430px; border: 0; }

.contact-form { display: grid; gap: 16px; }
.field label {
	display: block;
	font-family: 'Raleway', sans-serif;
	font-weight: 600;
	font-size: .76rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-soft);
	margin-bottom: 6px;
}
.field input, .field textarea {
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 1rem;
	color: #3d3d3d;
	background: var(--gray);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:hover, .field textarea:hover { background: #f1f3f7; }
.field input:focus, .field textarea:focus {
	outline: none;
	background: var(--white);
	border-color: var(--yellow);
	box-shadow: 0 0 0 4px rgba(255, 214, 0, .28);
}
.field textarea { resize: vertical; min-height: 150px; }
.form-note { font-size: .86rem; color: var(--text-soft); margin: 0; }

/* trappola antispam: fuori dal flusso e invisibile, ma raggiungibile dai bot */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* consenso privacy */
.field-consent { display: flex; align-items: flex-start; gap: 12px; }
.field-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--navy);
	cursor: pointer;
}
.field-consent label {
	font-size: .92rem;
	line-height: 1.55;
	color: var(--text-soft);
	cursor: pointer;
}
.field-consent a { color: var(--navy); font-weight: 600; }

/* esito dell’invio */
.form-status {
	margin: 0;
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	font-size: .95rem;
	border-left: 5px solid transparent;
}
.form-status.pending { background: var(--gray); border-left-color: var(--line); color: var(--text-soft); }
.form-status.ok { background: #eef7ee; border-left-color: #3f8f45; color: #27632c; }
.form-status.error { background: #fdf3e7; border-left-color: var(--yellow-dark); color: #8a5b00; }

.contact-form button[disabled] { opacity: .65; cursor: progress; transform: none; }

/* --- 15. BANNER CTA ----------------------------------------- */
.cta-banner {
	text-align: center;
	background:
		radial-gradient(700px 320px at 50% 0%, rgba(255, 214, 0, .16), transparent 65%),
		var(--gray);
}
.cta-banner p { max-width: 62ch; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- 16. BANDA GIALLA + FOOTER ------------------------------ */
.footer-strip {
	background: var(--yellow);
	color: var(--navy);
	text-align: center;
	padding: 14px 20px;
	font-family: 'Raleway', sans-serif;
	font-weight: 500;
	font-size: 1.15rem;
	letter-spacing: .3em;
	text-transform: uppercase;
}

.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 54px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr 1fr 1.2fr; gap: 42px; }
.site-footer h4 {
	color: var(--yellow);
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-logo { background: var(--white); border-radius: var(--radius-sm); padding: 16px; max-width: 250px; margin-bottom: 20px; }
.footer-bottom {
	margin-top: 42px;
	border-top: 1px solid rgba(255,255,255,.16);
	padding: 20px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	justify-content: space-between;
	font-size: .85rem;
}

/* --- 17. REVEAL --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* --- 18. RESPONSIVE ----------------------------------------- */
@media (max-width: 1150px) {
	.main-nav, .header-contacts .pill { display: none; }
	.header-top .pill { display: none; }
	.hamburger { display: block; }
	.header-top { padding: 14px 0; }
	.header-bottom { display: none; }
	.header-top { justify-content: space-between; }
	.hero-grid, .intro-grid, .mv-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.cards, .cert-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	section { padding: 76px 0; }
}
@media (max-width: 760px) {
	body { font-size: 17px; }
	section { padding: 60px 0; }
	.hero { padding: 52px 0 46px; }
	.hero-logo { padding: 22px; border-radius: var(--radius); }
	.card, .mv, .member { padding: 28px 24px; }
	.cards, .cert-grid, .footer-grid { grid-template-columns: 1fr; }
	.footer-strip { letter-spacing: .16em; font-size: .82rem; }
	.mobile-nav { padding-top: 100px; }
	/* etichetta della hero su una riga sola (con .22em andava a capo dentro la pillola) */
	.hero .eyebrow { letter-spacing: .1em; font-size: .7rem; padding: 7px 14px; }
	/* pulsanti impilati: stessa larghezza invece di due lunghezze diverse */
	.hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; text-align: center; }
	.cta-actions { max-width: 360px; margin: 0 auto; }
	/* i tre numeri restano affiancati: impilati occupavano tre righe quasi vuote */
	.facts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.fact { padding: 20px 6px; }
	.fact .num { font-size: 1.55rem; }
	.fact .lbl { font-size: .62rem; letter-spacing: .06em; }
	.page-hero + section { padding-top: 36px; }
	.toc ol { columns: 1; }
	/* tabella di confronto: deve stare nello schermo senza scorrere di lato */
	.prose table { font-size: .8rem; }
	.prose th, .prose td { padding: 9px 7px; }
	.prose tbody th { white-space: normal; }
	.faq summary { padding-left: 18px; font-size: 1rem; }
	.faq details > div { padding: 0 18px 16px; }
}
