/* ==========================================================================
   Consorzio Stabile Energos — stili del sito (frontend ed editor)
   Valori ricavati dal template statico (stili inline convertiti in classi).
   ========================================================================== */

:root {
	--ink: #0e1a26;
	--ink-deep: #0a131c;
	--ink-hover: #22364a;
	--accent: #9ec7e7;
	--white: #ffffff;
	--mist: #f2f4f6;
	--line: #d9dde2;
	--line-soft: #e1e5ea;
	--muted: #4a5563;
	--subtle: #5b6572;
	--on-dark: #e4e9ee;
	--on-dark-muted: #c3ccd6;
	--on-dark-subtle: #a9b4c2;
	--input-border: #c5ccd4;
	--input-hover: #8c96a1;
	--error: #c4291c;
	--success: #1d6a42;
	--font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;
	--gutter: clamp(20px, 4vw, 48px);
	/* Altezza della testata sovrapposta all'hero (barra recapiti + header); main.js la aggiorna. */
	--site-top-h: 141px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	interpolate-size: allow-keywords;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

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

img,
svg {
	max-width: 100%;
}

a {
	color: inherit;
}

strong,
b {
	font-weight: 700;
}

.icon {
	display: inline-block;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: butt;
	vertical-align: middle;
}

.icon--external {
	stroke-width: 2.2;
}

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

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--accent);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* Segnaposto a righe (immagini non impostate) */
.ph {
	background-color: #1b2a3a;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 16px);
}

/* --------------------------------------------------------------------------
   Tipografia ricorrente
   ----------------------------------------------------------------------- */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--accent);
}

.h2 {
	margin: 0;
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.05;
	font-weight: 700;
	font-stretch: 108%;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.h3 {
	margin: 0;
	font-size: 22px;
	line-height: 1.15;
	font-weight: 700;
	font-stretch: 106%;
}

.text-lead {
	margin: 28px 0 0;
	max-width: 480px;
	color: var(--muted);
	font-size: 18px;
}

.tag {
	display: inline-block;
	align-self: flex-start;
	padding: 6px 10px;
	background: var(--accent);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Link e pulsanti
   ----------------------------------------------------------------------- */
.tlink {
	text-decoration: none;
}

.tlink:hover {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 22px;
	border: 0;
	background: var(--accent);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter .2s;
}

.btn:hover {
	color: var(--ink);
	filter: brightness(1.08);
}

.btn .icon {
	transition: transform .2s;
}

.btn:hover .icon--arrow-right {
	transform: translateX(3px);
}

.btn--md {
	gap: 14px;
	height: 56px;
	padding: 0 28px;
}

.btn--lg {
	gap: 14px;
	height: 60px;
	padding: 0 32px;
	font-size: 17px;
}

.btn--ghost {
	border: 1px solid rgba(255, 255, 255, .5);
	background: transparent;
	color: var(--white);
}

.btn--ghost:hover {
	color: var(--white);
	background: rgba(255, 255, 255, .08);
	filter: none;
}

.btn--outline {
	border: 1px solid var(--ink);
	background: transparent;
}

.btn--outline:hover {
	background: var(--ink);
	color: var(--white);
	filter: none;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.alink {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--accent);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s;
}

.alink:hover {
	border-bottom-color: var(--ink);
}

.alink .icon {
	transition: transform .2s;
}

.alink:hover .icon {
	transform: translateX(4px);
}

.alink--spaced {
	margin-top: 36px;
}

.doclink {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--accent);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s;
}

.doclink:hover {
	border-bottom-color: var(--ink);
}

.doclink .icon {
	transition: transform .2s;
}

.doclink:hover .icon--external {
	transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Testata: barra recapiti e header
   ----------------------------------------------------------------------- */
.site-top {
	position: relative;
	z-index: 50;
	background: var(--ink);
	color: var(--white);
}

/* Sopra l'hero la testata è trasparente e si sovrappone alla sezione scura. */
.has-hero .site-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
}

.admin-bar.has-hero .site-top {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.ubar {
	position: relative;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	color: var(--on-dark-muted);
	font-family: var(--font-mono);
	font-size: 13px;
}

.ubar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 32px;
	min-height: 44px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.ubar__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 28px;
}

.ubar__group--end {
	gap: 6px 24px;
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switch a {
	display: block;
	padding: 2px 8px;
	color: var(--on-dark-muted);
	text-decoration: none;
}

.lang-switch a:hover {
	color: var(--white);
}

.lang-switch a[aria-current="true"] {
	background: var(--white);
	color: var(--ink);
	font-weight: 500;
}

.lang-switch--footer {
	align-self: flex-start;
	font-size: 14px;
}

.hdr {
	position: relative;
}

.hdr__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	min-height: 96px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.brand {
	display: flex;
	align-items: center;
	padding: 4px 0;
}

.hdr .brand img {
	display: block;
	width: auto;
	height: 46px;
}

/* Header fisso: main.js aggiunge .is-stuck quando la barra recapiti esce dallo schermo. */
.hdr.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--ink);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}

.admin-bar .hdr.is-stuck {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.mnav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 36px;
	color: var(--on-dark);
	font-size: 16px;
	font-weight: 500;
}

.nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list > li {
	position: relative;
	display: flex;
	align-items: center;
}

.navlink {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.navlink:hover {
	color: var(--white);
	text-decoration: underline;
	text-underline-offset: 6px;
}

.navlink[aria-current="page"],
.has-submenu.is-current > .navlink {
	color: var(--white);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

.navlink__chevron {
	transform: rotate(90deg);
	transition: transform .2s;
}

[aria-expanded="true"] > .navlink__chevron {
	transform: rotate(-90deg);
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: 2px;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.submenu {
	position: absolute;
	top: 100%;
	left: -20px;
	z-index: 20;
	min-width: 240px;
	margin: 12px 0 0;
	padding: 10px 0;
	list-style: none;
	background: var(--ink);
	border: 1px solid rgba(255, 255, 255, .14);
}

.submenu[hidden] {
	display: none;
}

.submenu__link {
	display: block;
	padding: 10px 20px;
	color: var(--on-dark);
	text-decoration: none;
}

.submenu__link:hover,
.submenu__link[aria-current="page"] {
	color: var(--white);
	background: rgba(255, 255, 255, .06);
}

.mtoggle {
	display: none;
}

.mtoggle__close {
	display: none;
}

.mtoggle[aria-expanded="true"] .mtoggle__open {
	display: none;
}

.mtoggle[aria-expanded="true"] .mtoggle__close {
	display: inline-block;
}

/* --------------------------------------------------------------------------
   Sezioni
   ----------------------------------------------------------------------- */
.section {
	padding: clamp(80px, 9vw, 136px) 0;
	background: var(--white);
}

.section--mist {
	background: var(--mist);
}

.section--dark {
	background: var(--ink);
	color: var(--white);
}

.section--dark .eyebrow {
	color: var(--white);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 64px;
	margin-bottom: 56px;
}

.section-head__main {
	flex: 1 1 520px;
	max-width: 720px;
	min-width: 0;
}

.section-head__main .text-lead {
	margin-top: 24px;
	max-width: 520px;
}

.section-head__aside {
	flex: 1 1 360px;
	max-width: 460px;
	margin: 0;
	color: var(--muted);
	font-size: 18px;
}

.section--dark .section-head__aside {
	flex-basis: 320px;
	max-width: 420px;
	color: var(--on-dark-muted);
}

/* Griglia decorativa delle sezioni scure */
.hero-grid {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	pointer-events: none;
}

.hero-grid span {
	border-left: 1px solid rgba(255, 255, 255, .07);
}

.hero-grid span:last-child {
	border-right: 1px solid rgba(255, 255, 255, .07);
}

/* Entrata sfalsata dei testi degli hero (solo CSS) */
@keyframes heroUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.hero-in > * {
	animation: heroUp 1.8s var(--ease) both;
}

.hero-in > :nth-child(2) {
	animation-delay: .3s;
}

.hero-in > :nth-child(3) {
	animation-delay: .6s;
}

/* --------------------------------------------------------------------------
   Hero home
   ----------------------------------------------------------------------- */
.hero-home {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 860px;
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}

.hero-home__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% 40%;
}

.hero-home__overlay {
	position: absolute;
	inset: 0;
	background: rgba(14, 26, 38, .5);
}

.hero-home__body {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	padding-top: calc(var(--site-top-h) + 56px);
	padding-bottom: 72px;
}

.hero-home__content {
	max-width: 880px;
}

.hero-home__title {
	margin: 0;
	font-size: clamp(46px, 7vw, 104px);
	line-height: .95;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.hero-home__lead {
	max-width: 560px;
	margin: 32px 0 0;
	color: var(--on-dark);
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.45;
	font-weight: 500;
}

.hero-home__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 44px;
}

/* --------------------------------------------------------------------------
   Intestazione delle pagine interne
   ----------------------------------------------------------------------- */
.page-hero {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}

.page-hero__inner {
	position: relative;
	padding-top: clamp(40px, 5vw, 72px);
	padding-bottom: clamp(80px, 8vw, 120px);
}

.has-hero .page-hero__inner {
	padding-top: calc(var(--site-top-h) + clamp(40px, 5vw, 72px));
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 40px;
	color: var(--on-dark-muted);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.breadcrumb [aria-current="page"] {
	color: var(--white);
}

.page-hero__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	row-gap: 40px;
}

.page-hero__title {
	grid-column: 1 / -1;
	margin: 0;
	font-size: clamp(40px, 7.4vw, 112px);
	line-height: .95;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: -.005em;
	overflow-wrap: break-word;
}

.page-hero__sub {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	grid-column: 1 / span 2;
	max-width: 600px;
	margin: 0;
	color: var(--on-dark);
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.45;
	font-weight: 500;
}

.page-hero__sub::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	margin-top: 8px;
	background: var(--accent);
}

/* --------------------------------------------------------------------------
   Numeri
   ----------------------------------------------------------------------- */
.stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
	gap: 56px 96px;
	align-items: start;
}

.stats__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stat {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 28px 0 32px;
	border-top: 1px solid var(--line);
}

.stat:last-child {
	border-bottom: 1px solid var(--line);
}

.stat__value {
	font-size: clamp(56px, 5vw, 78px);
	line-height: .9;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: -.03em;
}

.stat__label {
	font-size: 18px;
	font-weight: 600;
	text-align: right;
}

/* --------------------------------------------------------------------------
   Settori
   ----------------------------------------------------------------------- */
.sectors__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: 20px;
}

.card-sector {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.card-sector__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	transition: background-color .2s;
}

.card-sector:hover .card-sector__media {
	background-color: var(--ink-hover);
}

.card-sector__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.card-sector:hover .card-sector__media img {
	transform: scale(1.04);
}

.card-sector__text {
	margin: -8px 0 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Progetto in evidenza
   ----------------------------------------------------------------------- */
.featured {
	padding-bottom: clamp(64px, 7vw, 96px);
}

.featured__card {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.featured__media {
	position: relative;
	flex: 1.5 1 520px;
	min-height: 520px;
	overflow: hidden;
}

.featured__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured__body {
	display: flex;
	flex: 1 1 380px;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: clamp(32px, 4vw, 56px);
	background: var(--ink);
	color: var(--white);
}

.featured__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
}

.featured__title {
	margin: 0;
	font-size: clamp(28px, 2.6vw, 38px);
	line-height: 1.08;
	font-weight: 700;
	font-stretch: 106%;
	letter-spacing: -.01em;
}

.featured__text {
	margin: 20px 0 0;
	color: var(--on-dark-muted);
	font-size: 18px;
}

.featured__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.featured__meta > div {
	padding: 16px 16px 0 0;
}

.featured__meta > div + div {
	padding: 16px 0 0 16px;
	border-left: 1px solid rgba(255, 255, 255, .14);
}

.featured__meta dt {
	color: var(--on-dark-subtle);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.featured__meta dd {
	margin: 6px 0 0;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Citazione
   ----------------------------------------------------------------------- */
.quote {
	padding: clamp(88px, 10vw, 144px) 0;
}

.quote__figure {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 1080px;
	margin: 0;
}

.quote__mark {
	display: block;
	width: 56px;
	height: 56px;
	background: var(--accent);
}

.quote__text {
	margin: 0;
}

.quote__text p {
	margin: 0;
	font-size: clamp(36px, 5vw, 72px);
	line-height: 1.04;
	font-weight: 700;
	font-stretch: 108%;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.quote__caption {
	color: var(--on-dark-subtle);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Riquadro certificazioni (home)
   ----------------------------------------------------------------------- */
.cert-grid__layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	gap: 56px 80px;
	align-items: start;
}

.cert-grid__intro .text-lead {
	margin-top: 24px;
	max-width: 420px;
}

.cert-grid__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.cert-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 20px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.cert-tile__name {
	font-size: 24px;
	line-height: 1.1;
	font-weight: 700;
	font-stretch: 110%;
}

.cert-tile__text {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.35;
}

.cert-tile--featured {
	background: var(--ink);
	color: var(--white);
}

.cert-tile--featured .cert-tile__text {
	color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   Fascia contatti
   ----------------------------------------------------------------------- */
.cta-band {
	background: var(--mist);
	color: var(--ink);
	border-top: 1px solid var(--line-soft);
}

.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 64px;
	padding-top: clamp(72px, 8vw, 120px);
	padding-bottom: clamp(72px, 8vw, 120px);
}

.cta-band__text {
	flex: 1 1 560px;
	max-width: 760px;
	min-width: 0;
}

.cta-band__title {
	margin: 0;
	font-size: clamp(34px, 4.6vw, 64px);
	line-height: 1;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.cta-band .text-lead {
	margin-top: 24px;
	max-width: 560px;
}

/* --------------------------------------------------------------------------
   Chi siamo
   ----------------------------------------------------------------------- */
.about {
	padding: clamp(80px, 9vw, 128px) 0;
}

.about__layout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px 80px;
}

.about__text {
	flex: 1 1 520px;
	min-width: 0;
}

.about__text .h2 {
	margin-bottom: 28px;
}

.about__text .text-lead {
	max-width: 600px;
}

.about__text .h2 + .text-lead {
	margin-top: 0;
	line-height: 1.55;
	text-wrap: pretty;
}

.about__media {
	position: relative;
	flex: 1 1 400px;
	min-width: 0;
	aspect-ratio: 2529 / 1659;
	overflow: hidden;
}

.about__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

/* --------------------------------------------------------------------------
   Metodo
   ----------------------------------------------------------------------- */
.steps .section-head {
	margin-bottom: 64px;
}

.steps__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.step {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px 32px 8px 0;
}

.step__marker {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--on-dark-subtle);
	font-family: var(--font-mono);
	font-size: 14px;
}

.step__marker::before {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--accent);
}

.step__text {
	margin: 0;
	color: var(--on-dark-muted);
	font-size: 16px;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Punti di forza
   ----------------------------------------------------------------------- */
.strengths__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.strength {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 24px 32px;
	border: 1px solid var(--line);
	transition: border-color .2s;
}

.strength:hover {
	border-color: var(--ink);
}

.strength__icon {
	display: block;
	align-self: flex-start;
	width: auto;
	height: 52px;
}

.strength .h3 {
	margin-top: 10px;
}

.strength__text {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Elenco progetti
   ----------------------------------------------------------------------- */
.projects {
	padding: clamp(80px, 9vw, 120px) 0 clamp(80px, 9vw, 128px);
}

.projects .section-head,
.documents .section-head {
	gap: 16px 64px;
	margin-bottom: 48px;
}

.projects .eyebrow,
.documents .eyebrow {
	margin-bottom: 20px;
}

.projects__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.proj {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 26px;
	border: 1px solid var(--line);
	transition: border-color .2s;
}

.proj:hover {
	border-color: var(--ink);
}

.proj__title {
	margin: 2px 0 0;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	font-stretch: 106%;
}

.proj__text {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.55;
}

.proj-details {
	display: flex;
	flex-direction: column;
}

.accbtn {
	margin-top: 6px;
	list-style: none;
	cursor: pointer;
}

.accbtn::-webkit-details-marker {
	display: none;
}

.accbtn__close {
	display: none;
}

details[open] > .accbtn .accbtn__open {
	display: none;
}

details[open] > .accbtn .accbtn__close {
	display: inline;
}

.accbtn .icon {
	transition: transform .2s;
}

details[open] > .accbtn .icon {
	transform: rotate(90deg);
}

.proj__details {
	margin-top: 14px;
}

details.proj-details::details-content {
	overflow: hidden;
	opacity: 0;
	block-size: 0;
	transition: opacity .35s ease, block-size .35s ease, content-visibility .35s ease allow-discrete;
}

details.proj-details[open]::details-content {
	opacity: 1;
	block-size: auto;
}

/* --------------------------------------------------------------------------
   Documenti (certificazioni e politiche)
   ----------------------------------------------------------------------- */
.documents {
	padding: clamp(80px, 9vw, 120px) 0 clamp(64px, 7vw, 96px);
}

.documents--continued {
	padding: 0 0 clamp(80px, 9vw, 128px);
}

.documents--continued .section-head {
	padding-top: clamp(56px, 6vw, 80px);
	border-top: 1px solid var(--line);
}

.documents__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cert {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 20px 22px;
	border: 1px solid var(--line);
	transition: border-color .2s;
}

.cert:hover {
	border-color: var(--ink);
}

.cert__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cert__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.15;
	font-weight: 700;
	font-stretch: 106%;
}

.cert__desc {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Contatti
   ----------------------------------------------------------------------- */
.contact {
	padding: clamp(72px, 8vw, 112px) 0 clamp(88px, 10vw, 136px);
}

.contact__layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 56px clamp(40px, 6vw, 88px);
}

.contact__main {
	display: flex;
	flex: 1.6 1 560px;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}

.contact__head .text-lead {
	margin-top: 20px;
	max-width: 560px;
}

.contact__fallback {
	margin: 0;
	padding: 20px;
	background: var(--mist);
	font-size: 16px;
}

.contact__aside {
	display: flex;
	flex: 1 1 340px;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.contact-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px 28px 30px;
	background: var(--mist);
}

.contact-card__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.contact-card__title::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--accent);
}

.contact-card__intro {
	margin: -6px 0 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.55;
}

.contact-card__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.contact-card__list dt {
	color: var(--subtle);
	font-size: 13px;
}

.contact-card__list dd {
	margin: 2px 0 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.contact-card__address {
	line-height: 1.45;
}

.contact-card__hours {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.contact-card__hours > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.contact-card__hours > div:last-child {
	border-bottom: 0;
}

.contact-card__hours dt {
	color: var(--muted);
}

.contact-card__hours dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

/* Modulo (markup del template generato in Contact Form 7) */
.form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.form__note {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 24px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.field__label {
	font-size: 15px;
	font-weight: 600;
}

.req {
	color: var(--error);
	font-weight: 700;
}

.opt {
	color: var(--subtle);
	font-weight: 400;
}

.inp {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--input-border);
	border-radius: 0;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	transition: border-color .2s;
}

.inp:hover {
	border-color: var(--input-hover);
}

.inp:focus {
	outline: 2px solid var(--ink);
	outline-offset: -1px;
	border-color: var(--ink);
}

textarea.inp {
	height: auto;
	min-height: 168px;
	padding: 14px 16px;
	line-height: 1.5;
	resize: vertical;
}

.field__hint {
	margin: 0;
	color: var(--subtle);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .04em;
}

.field--file {
	gap: 10px;
	padding: 20px;
	border: 1px dashed var(--input-border);
	background: var(--mist);
}

.file {
	width: 100%;
	color: var(--muted);
	font: inherit;
	font-size: 15px;
}

.file::file-selector-button {
	height: 48px;
	margin-right: 16px;
	padding: 0 20px;
	border: 1px solid var(--ink);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.file::file-selector-button:hover {
	background: var(--ink);
	color: var(--white);
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: 15px;
	line-height: 1.5;
}

.check label {
	cursor: pointer;
}

.check a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.chk,
.check input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--ink);
	cursor: pointer;
}

.form__submit .btn,
.form .wpcf7-submit {
	height: 60px;
	padding: 0 36px;
	font-size: 17px;
}

/* Contact Form 7: contenitori, errori ed esito */
.wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

.check {
	flex-wrap: wrap;
}

.check .wpcf7-form-control-wrap,
.check .wpcf7-form-control,
.check .wpcf7-list-item {
	display: block;
	margin: 0;
}

.check .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.wpcf7-not-valid-tip,
.field__error {
	display: block;
	margin-top: 6px;
	color: var(--error);
	font-size: 14px;
	font-weight: 600;
}

.wpcf7-not-valid,
.inp[aria-invalid="true"] {
	border-color: var(--error);
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-left: 4px solid var(--accent);
	background: var(--mist);
	font-size: 16px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-left-color: var(--error);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-left-color: var(--success);
}

.wpcf7-spinner {
	margin: 0 0 0 16px;
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Testo libero (pagine legali, articoli)
   ----------------------------------------------------------------------- */
.prose {
	max-width: 760px;
	font-size: 18px;
	line-height: 1.65;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2,
.prose h3 {
	margin: 1.8em 0 .5em;
	line-height: 1.15;
	font-weight: 700;
	font-stretch: 106%;
}

.prose h2 {
	font-size: clamp(26px, 2.6vw, 34px);
}

.prose h3 {
	font-size: 22px;
}

.prose a {
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

/* --------------------------------------------------------------------------
   Piè di pagina
   ----------------------------------------------------------------------- */
.site-footer {
	background: var(--ink-deep);
	color: var(--on-dark-muted);
	font-size: 15px;
}

.site-footer__main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 48px 40px;
	padding-top: 88px;
	padding-bottom: 64px;
}

.site-footer__brand,
.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.site-footer__brand {
	gap: 20px;
}

.site-footer__brand .brand {
	align-self: flex-start;
	padding: 0;
}

.site-footer__brand .brand img {
	display: block;
	width: auto;
	height: 42px;
}

.site-footer__note {
	margin: 0;
	max-width: 280px;
}

.site-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.site-footer__social {
	color: var(--white);
}

.site-footer__title {
	margin: 0;
	color: var(--white);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.site-footer__office {
	margin: 0;
	color: var(--white);
	font-weight: 600;
}

.site-footer__address {
	margin: 4px 0 0;
}

.site-footer__contacts,
.footer-menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu ul {
	margin: 8px 0 0;
	padding: 0 0 0 14px;
	list-style: none;
}

.site-footer a:hover {
	color: var(--white);
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 32px;
	padding-top: 24px;
	padding-bottom: 24px;
	color: var(--on-dark-subtle);
	font-size: 13px;
}

.site-footer__legal p {
	margin: 0;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* --------------------------------------------------------------------------
   Comparsa allo scroll (main.js aggiunge .is-visible)
   ----------------------------------------------------------------------- */
@keyframes rvUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.js [data-reveal] {
	opacity: 0;
}

.js [data-reveal].is-visible {
	animation: rvUp .9s var(--ease) both;
}

.js [data-reveal-delay="1"].is-visible { animation-delay: .08s; }
.js [data-reveal-delay="2"].is-visible { animation-delay: .16s; }
.js [data-reveal-delay="3"].is-visible { animation-delay: .24s; }
.js [data-reveal-delay="4"].is-visible { animation-delay: .32s; }
.js [data-reveal-delay="5"].is-visible { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
	.hero-in > *,
	.js [data-reveal].is-visible {
		animation: none;
	}

	.js [data-reveal] {
		opacity: 1;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Tablet
   ----------------------------------------------------------------------- */
@media (max-width: 900px) {
	.page-hero__sub {
		grid-column: 1 / -1;
	}
}

/* --------------------------------------------------------------------------
   Mobile (dal template: max-width 760px)
   ----------------------------------------------------------------------- */
@media (max-width: 760px) {
	:root {
		--site-top-h: 113px;
	}

	.section,
	.about,
	.projects {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.featured,
	.documents {
		padding-bottom: 64px;
	}

	.documents--continued {
		padding-top: 0;
	}

	.cta-band__inner {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.ubar .ubar__social {
		display: none;
	}

	.ubar__inner {
		min-height: 40px;
	}

	.hdr__inner {
		min-height: 72px;
		gap: 0;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.hdr .brand img {
		height: 38px;
	}

	.mtoggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		margin-right: -12px;
		border: 0;
		background: none;
		color: var(--white);
		cursor: pointer;
	}

	.mnav {
		display: none;
	}

	.mnav.is-open {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 0;
		padding: 8px 0 20px;
	}

	/* Menu aperto sopra l'hero: fondo pieno per la leggibilità. */
	.site-top.nav-open .hdr {
		background: var(--ink);
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-list > li {
		flex-wrap: wrap;
		border-top: 1px solid rgba(255, 255, 255, .14);
	}

	.mnav.is-open .navlink {
		flex: 1 1 auto;
		padding: 16px 0;
		font-size: 18px;
	}

	.submenu {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		margin: 0 0 12px;
		padding: 0;
		border: 0;
	}

	.submenu__link {
		padding: 10px 0 10px 16px;
	}

	.mnav__cta {
		height: 56px;
		margin-top: 16px;
		justify-content: center;
	}

	.hero-home {
		min-height: 0;
	}

	.hero-home__body {
		padding-top: calc(var(--site-top-h) + 40px);
		padding-bottom: 56px;
	}

	.hero-home__actions {
		margin-top: 32px;
	}

	.hero-home__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.hero-home__title {
		font-size: min(11vw, 44px);
		line-height: 1;
	}

	.page-hero__title {
		font-size: min(8.2vw, 36px);
	}

	.page-hero__grid {
		row-gap: 24px;
	}

	.has-hero .page-hero__inner {
		padding-top: calc(var(--site-top-h) + 28px);
	}

	.page-hero__inner {
		padding-bottom: 64px;
	}

	.breadcrumb {
		margin-bottom: 28px;
	}

	.stat {
		flex-wrap: nowrap;
		column-gap: 16px;
	}

	.stat__value {
		flex: none;
		font-size: 44px;
	}

	.stat__label {
		min-width: 0;
		font-size: 16px;
		letter-spacing: .02em;
	}

	.card-sector__media {
		aspect-ratio: 4 / 3;
	}

	.featured__media {
		min-height: 260px;
	}

	.section-head {
		margin-bottom: 36px;
	}

	.section .btn,
	.cta-band .btn {
		width: 100%;
		justify-content: center;
	}

	.contact-card {
		padding: 24px 20px;
	}

	.site-footer__main {
		gap: 40px;
		padding-top: 56px;
		padding-bottom: 40px;
	}

	.site-footer__main a.tlink {
		display: inline-block;
		padding: 6px 0;
	}
}
