/*
 * SB Architettura — stili del tema.
 *
 * 1. Token        6. Home e livelli     11. Contatti
 * 2. Base         7. Competenze         12. Analisi e archivi
 * 3. Componenti   8. Progetti           13. Articolo e contenuti
 * 4. Intestazione 9. Certificazioni     14. Piè di pagina
 * 5. Sezioni     10. Chi sono           15. Movimento
 *                                       16. Corellix
 */

/* 1. Token ---------------------------------------------------------------- */

:root {
	--prugna: #623448;
	--prugna-dark: #4A2636;
	--lampone: #973961;
	--notte: #2B1722;
	--notte-2: #21121A;
	--ink: #1E1519;
	--ink-2: #3B3036;
	--grey: #5F5459;
	--grey-2: #7A6C73;
	--line: #E5DDE1;
	--line-2: #D4C8CE;
	--bg: #F7F3F5;
	--surface: #FFFFFF;
	--soft: #EEE7EA;
	--soft-2: #F1EBEE;
	--tint: #F6EDF1;
	--tint-line: #EAD5DF;
	--on-dark: #EFE8EB;
	--on-dark-2: #D4C8CE;
	--on-dark-3: #A8969F;
	--dark-line: #37272F;
	--dark-line-2: #4A3340;
	--pink: #E6AECA;
	--pink-2: #C9A6B8;
	--code-btn: #2D1E26;
	--warn: #9A4A0B;
	--warn-bg: #FCEFE3;
	--error: #8A2414;
	--error-line: #C0442E;
	--error-bg: #FCEFEC;
	--error-line-2: #E8B4A8;

	--font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--wrap: 1280px;
	--gutter: clamp(16px, 3vw, 40px);
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 14px 34px rgba(43, 23, 34, .08);
}

/* 2. Base ----------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

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

[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute; top: 8px; left: 8px; z-index: 200;
	padding: 10px 16px;
	background: var(--notte); color: #fff; font-weight: 600;
	transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.muted { color: var(--grey); }
.note { margin: 12px 0 0; font-size: 14px; color: var(--grey); }
.icon { flex: 0 0 auto; display: block; }

/* 3. Componenti ----------------------------------------------------------- */

.eyebrow {
	margin: 0 0 16px;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lampone);
}
.eyebrow--sm { margin-bottom: 8px; font-size: 12px; }
.eyebrow--lg { margin-bottom: 28px; font-size: 14px; }
.eyebrow--on-dark { color: var(--pink); }

.label {
	margin: 0 0 12px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--grey);
}
.label--on-dark { color: var(--on-dark-3); }

.h-display {
	margin: 0 0 28px;
	font-weight: 600;
	font-size: clamp(40px, 5.6vw, 78px);
	line-height: 1.02;
	letter-spacing: -.035em;
}
.h-display--project { max-width: 1000px; margin-bottom: 22px; font-size: clamp(40px, 5.6vw, 76px); }
.h-display--name { margin-bottom: 10px; font-size: clamp(42px, 5.6vw, 76px); line-height: 1; }
.h-display--contact { max-width: 900px; margin-bottom: 18px; font-size: clamp(40px, 5.6vw, 76px); }

.h-page {
	margin: 0;
	font-weight: 600;
	font-size: clamp(40px, 5.4vw, 72px);
	line-height: 1.02;
	letter-spacing: -.035em;
}
.h-section {
	margin: 0;
	font-weight: 600;
	font-size: clamp(32px, 3.4vw, 44px);
	line-height: 1.1;
	letter-spacing: -.025em;
}
.h-section--sm { font-size: clamp(28px, 3vw, 38px); }
.h-sub {
	margin: 0 0 14px;
	font-weight: 600;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.15;
	letter-spacing: -.02em;
}

.lead {
	margin: 0;
	max-width: 520px;
	font-size: clamp(18px, 1.6vw, 20px);
	color: var(--ink-2);
}
.lead--wide { max-width: 720px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--prugna); color: #fff; }
.btn--primary:hover { background: var(--prugna-dark); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--tint); }
.btn--dark { background: var(--notte); color: #fff; }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--quiet { border-color: var(--line-2); }
.btn--quiet:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.btn.is-done { background: var(--ink); color: #fff; border-color: var(--ink); }

.link-strong { font-weight: 600; }
.uline {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	padding-bottom: 2px;
	transition: background-size .3s var(--ease);
}
.uline:hover { background-size: 100% 1px; text-decoration: none; }

.lift { transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }

.icon-btn {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--ink);
}
.icon-btn:hover { text-decoration: none; border-color: var(--ink); }
.icon-btn--dark { background: var(--notte); border-color: var(--notte); color: #fff; }
.icon-btn--dark:hover { border-color: var(--notte); background: var(--ink); }
.icon-btn--dark .icon--close { display: none; }
.icon-btn--dark[aria-expanded="true"] .icon--menu { display: none; }
.icon-btn--dark[aria-expanded="true"] .icon--close { display: block; }
.icon-btn--soft { border: 0; background: var(--bg); }

.copy-btn {
	min-height: 38px;
	padding: 0 14px;
	background: var(--bg);
	border: 1px solid var(--line-2);
	font-family: var(--font-mono);
	font-size: 12px;
}
.copy-btn:hover { border-color: var(--ink); }

.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 10px; border: 1px solid var(--line-2); font-size: 15px; color: var(--ink); }
.tag--sm { padding: 3px 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
a.tag:hover { border-color: var(--ink); text-decoration: none; }

.chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 8px; background: var(--tint); color: var(--lampone); font-family: var(--font-mono); font-size: 12px; }

.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.bullets li { display: flex; gap: 10px; }
.bullets li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 8px; background: var(--prugna); }

.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-weight: 500; }
.link-list a span { color: var(--lampone); }
.link-list--ruled { border-top: 1px solid var(--ink); }
.link-list--ruled li { border-top: 0; border-bottom: 1px solid var(--line); }
.link-list--ruled a { padding: 16px 0; font-weight: 600; font-size: 18px; }

.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plain-list strong { display: block; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.pill {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line-2);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill__count { font-family: var(--font-mono); font-size: 12px; font-weight: 400; opacity: .85; }
.pill--check { font-weight: 500; color: var(--grey); }
.pill--check.is-active { background: #fff; color: var(--ink); }
.pill__box { width: 12px; height: 12px; border: 1px solid currentColor; }
.pill--check.is-active .pill__box { background: currentColor; }

.segmented { display: inline-flex; border: 1px solid var(--ink); }
.segmented__btn {
	min-height: 40px;
	padding: 0 14px;
	background: #fff;
	color: var(--ink);
	border: 0;
	font-size: 14px;
	font-weight: 600;
	transition: background .2s, color .2s;
}
.segmented__btn.is-active { background: var(--ink); color: #fff; }
.segmented--icons { border-color: var(--line-2); }
.segmented--icons .segmented__btn { width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

.count { margin: 0 0 20px; font-family: var(--font-mono); font-size: 13px; color: var(--grey); }

.empty {
	padding: 48px 24px;
	text-align: center;
	background: #fff;
	border: 1px dashed var(--line-2);
}
.empty p { margin: 0 0 16px; font-size: 18px; }
.empty .muted { font-size: 15px; }
.empty__title { font-weight: 600; font-size: 20px !important; margin-bottom: 8px !important; }

.panel { background: #fff; border: 1px solid var(--line); padding: 22px; }
.panel--sm { padding: 16px; font-size: 15px; }
.panel--sm p { margin: 0 0 6px; }
.panel--dark { background: var(--notte); border-color: var(--notte); color: #fff; padding: 24px; }
.panel__title { margin: 0 0 8px; font-weight: 600; font-size: 19px; line-height: 1.3; }
.panel__title--ink { margin-bottom: 12px; font-size: 18px; color: var(--ink); }
.panel__text { margin: 0 0 18px; font-size: 15px; color: var(--on-dark-2); }

.grid { display: grid; gap: 24px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.grid--340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid--360 { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }

.card {
	display: flex; flex-direction: column; gap: 14px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--line);
	text-decoration: none;
}
.card:hover { text-decoration: none; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--grey); }
.card__media { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--soft-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font-weight: 600; font-size: 24px; line-height: 1.2; }
.card__title--sm { font-size: 20px; line-height: 1.3; }
.card__text { color: var(--ink-2); }
.card--project { min-height: 260px; }
.card--project-compact { gap: 8px; padding: 22px; }
.card--project-compact .card__title { font-size: 19px; }
.card--related { gap: 10px; padding: 24px; }

.cells {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	margin: 0;
}
.cells--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cells--stats { margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.cells--results { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.cells__item { background: #fff; padding: 24px; }
.cells--stats .cells__item { padding: 22px; }
.cells__title { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.3; }
.cells__value { margin: 4px 0 0; font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.cells--results .cells__value { margin: 0 0 6px; }
.cells__value--warn { color: var(--warn); }
.cells dt { font-size: 14px; }
.cells--results dt { font-size: 15px; }

.status {
	align-self: flex-start;
	padding: 3px 9px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: var(--tint);
	color: var(--prugna);
}
.status--expiring { background: var(--warn-bg); color: var(--warn); }
.status--expired { background: var(--soft-2); color: var(--grey); }

/* 4. Intestazione --------------------------------------------------------- */

.service-bar { background: var(--notte); color: var(--on-dark-2); font-size: 13px; line-height: 1.4; }
.service-bar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.service-bar__claim { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-2); }
.service-bar__links { display: flex; align-items: center; gap: 20px; }
.service-bar__links > a { color: var(--on-dark); }

.lang-switch { display: inline-flex; border: 1px solid var(--dark-line-2); }
.lang-switch a { padding: 3px 9px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-2); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--on-dark); color: var(--ink); }
.lang-switch--light { border-color: var(--line-2); }
.lang-switch--light a { padding: 8px 14px; font-size: 13px; color: var(--ink); }
.lang-switch--light a[aria-current="true"] { background: var(--notte); color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--line);
	font-size: 16px;
	line-height: 1.4;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__bar { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { display: block; width: auto; height: clamp(36px, 10vw, 44px); }

.nav-desk { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; }
.nav-mob { display: none; align-items: center; gap: 8px; }
@media (max-width: 900px) {
	.nav-desk, .service-bar { display: none; }
	.nav-mob { display: flex; }
}

.nav-link {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	background: transparent;
	border: 0;
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	box-shadow: inset 0 -2px 0 transparent;
	transition: box-shadow .2s, color .2s;
}
.nav-link:hover { text-decoration: none; box-shadow: inset 0 -2px 0 var(--line-2); }
.nav-link.is-current { color: var(--lampone); box-shadow: inset 0 -2px 0 var(--lampone); }
.nav-link--mega .icon { transition: transform .25s; }
.nav-link--mega[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-desk__sep { width: 1px; height: 24px; margin: 0 10px; background: var(--line); }

.search-trigger {
	display: inline-flex; align-items: center; gap: 10px;
	min-width: 150px; min-height: 42px;
	padding: 0 12px;
	background: var(--bg);
	border: 1px solid var(--line);
	color: var(--grey);
	font-size: 14px;
	text-decoration: none;
}
.search-trigger:hover { text-decoration: none; border-color: var(--ink); color: var(--ink); }
.nav-cta { margin-left: 10px; }

.mega { border-top: 1px solid var(--line); background: #fff; box-shadow: 0 24px 40px rgba(43, 23, 34, .08); }
.mega__inner { padding-block: 28px 32px; display: flex; gap: 40px; }
.mega__intro { flex: 0 0 260px; }
.mega__title { margin: 0 0 18px; font-weight: 600; font-size: 22px; line-height: 1.25; }
.mega__grid { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
.mega__item { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--soft-2); text-decoration: none; }
.mega__id { flex: 0 0 26px; font-family: var(--font-mono); font-size: 12px; color: var(--lampone); }
.mega__name { display: block; font-weight: 600; }
.mega__short { display: block; font-size: 13px; color: var(--grey); }
@media (max-width: 900px) { .mega { display: none !important; } }
@media (min-width: 901px) { .mobile-panel { display: none !important; } }

.mobile-panel { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-panel .wrap { padding-block: 4px 24px; display: flex; flex-direction: column; }
.mobile-panel__link {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 58px;
	border-bottom: 1px solid var(--line);
	font-size: 21px;
	font-weight: 600;
	text-decoration: none;
}
.mobile-panel__link span { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--grey); }
.mobile-panel__link.is-current { color: var(--lampone); }
.mobile-panel .btn--block { margin-top: 20px; min-height: 54px; }
.mobile-panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 15px; }
.mobile-panel__social { display: flex; gap: 16px; }

.progress {
	position: absolute; left: 0; bottom: -1px;
	width: 100%; height: 3px;
	background: var(--lampone);
	transform: scaleX(var(--progress, 0));
	transform-origin: 0 50%;
}

.search-dialog {
	position: fixed; inset: 0; z-index: 100;
	display: flex; justify-content: center; align-items: flex-start;
	padding: clamp(16px, 10vh, 112px) 16px 16px;
	background: rgba(33, 18, 26, .72);
	font-size: 16px;
	line-height: 1.45;
}
.search-dialog__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: default; }
.search-dialog__box { position: relative; width: 100%; max-width: 720px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.search-dialog__form { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.search-dialog__form input { flex: 1 1 auto; min-width: 0; height: 64px; border: 0; background: transparent; font-size: 20px; color: var(--ink); outline: none; }
.search-dialog__form input::-webkit-search-cancel-button { display: none; }
.search-dialog__close { flex: 0 0 auto; min-height: 36px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--grey); }
.search-dialog__body { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px 0; }
.search-dialog__suggest { padding: 12px 20px 16px; }
.search-dialog__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.search-dialog__chips .pill { min-height: 36px; padding: 0 12px; font-weight: 500; }
.search-dialog__results { margin: 0; padding: 0; list-style: none; }
.search-dialog__results a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; text-decoration: none; }
.search-dialog__results a:hover, .search-dialog__results a:focus-visible { background: var(--bg); outline-offset: -2px; }
.search-dialog__results .r-title { display: block; font-weight: 600; }
.search-dialog__results .r-meta { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--grey); }
.search-dialog__results .r-arrow { color: var(--lampone); }
.search-dialog__results .r-empty { padding: 20px; color: var(--grey); }
.search-dialog__foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--grey); }
.search-dialog__foot a { color: var(--ink); }
body.has-dialog { overflow: hidden; }

/* 5. Sezioni -------------------------------------------------------------- */

.page-head { padding-block: clamp(40px, 6vw, 80px) 40px; }
.page-head--split .page-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 56px; }
.page-head .h-page + .lead, .page-head__row .lead { margin-top: 18px; }
.page-head--split .page-head__row .lead { margin-top: 0; }

.crumbs { margin-bottom: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--grey); }
.crumbs a { color: var(--grey); }

.section { padding-block: 96px; }
.section--tight-top { padding-top: 0; }
.band { background: #fff; border-block: 1px solid var(--line); }
.band--pad { padding-block: 96px; }

.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 32px; }
.sec-head__note { margin: 0; max-width: 460px; color: var(--grey); }

.cta-band { background: var(--notte); color: #fff; }
.cta-band__inner { padding-block: 96px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 72px; }
.cta-band__text { flex: 1 1 520px; min-width: 0; }
.cta-band__title { margin: 0; font-weight: 600; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.03em; }
.cta-band .btn { min-height: 54px; padding: 0 26px; }

/* 6. Home e livelli ------------------------------------------------------- */

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__text .lead { max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__stack { flex: 1 1 420px; min-width: 0; }

.stack { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.stack__indent { margin-left: 28px; }
.stack__item {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
	width: 100%;
	min-height: 52px;
	padding: 10px 16px;
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
	text-align: left;
	text-decoration: none;
	transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.stack__item:hover { text-decoration: none; border-color: var(--line-2); }
.stack__name { display: flex; align-items: baseline; gap: 12px; font-weight: 600; }
.stack__id { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--lampone); }
.stack__short { font-size: 13px; color: var(--grey); }
.stack__item.is-active { background: var(--prugna); border-color: var(--prugna); color: #fff; }
.stack__item.is-active .stack__id { color: #EDC6D7; }
.stack__item.is-active .stack__short { color: #F3DFE8; }
.stack--mini { gap: 4px; }
.stack--mini .stack__indent { margin-left: 20px; }
.stack__item--mini { gap: 10px; justify-content: flex-start; min-height: 40px; padding: 6px 12px; font-size: 14px; font-weight: 500; }
.stack__item--mini .stack__id { font-size: 11px; }
.stack__item--project { flex-wrap: nowrap; min-height: 46px; padding: 8px 14px; font-size: 15px; }
.stack__item--project .stack__id { font-size: 11px; }
.stack__tag { font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.stack__item:disabled { background: var(--bg); color: var(--grey-2); border-color: var(--soft); }
.stack__item:disabled .stack__id { color: var(--grey-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-block: 0; }
.stats--compact { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.stats__item { padding: 28px 24px 28px 0; }
.stats dt { font-size: 14px; color: var(--grey); }
.stats dd { margin: 6px 0 0; font-size: 14px; color: var(--grey); }
.stats dd.stats__value { margin-top: 4px; font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.stats--compact dd.stats__value { font-size: 48px; }
@media (max-width: 600px) {
	.stats, .stats--compact { grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.stats__item { padding: 22px 0; }
	.stats dd.stats__value, .stats--compact dd.stats__value { font-size: 38px; }
}

.map { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.map__layers { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.map__panels { flex: 2 1 520px; min-width: 0; }

.layer-btn {
	display: flex; align-items: center; gap: 14px;
	width: 100%;
	min-height: 56px;
	padding: 10px 16px;
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
	text-align: left;
	font-size: 16px;
	font-weight: 600;
	transition: background .25s, color .25s, border-color .25s;
}
.layer-btn:hover { border-color: var(--line-2); }
.layer-btn__id { flex: 0 0 32px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--lampone); }
.layer-btn.is-active { background: var(--prugna); border-color: var(--prugna); color: #fff; }
.layer-btn.is-active .layer-btn__id { color: #EDC6D7; }

.layer-panel--home { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.layer-panel--home + .layer-panel--home { margin-top: 16px; }
.js [data-layer-panel]:not(.is-active) { display: none; }
.js .layer-panel--home + .layer-panel--home { margin-top: 0; }
.layer-panel.is-active { animation: fade .35s ease both; }
.layer-panel--home .eyebrow { margin-bottom: 10px; font-size: 12px; }
.layer-panel__title { margin: 0 0 14px; font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.layer-panel__desc { margin: 0; max-width: 620px; color: var(--ink-2); }
.layer-panel__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.layer-panel__fact .label { margin-bottom: 12px; }
.layer-panel__fact .muted { margin: 0; font-size: 15px; }
.layer-panel__label { margin: 28px 0 10px; }
.layer-panel__empty { margin: 0; }
.layer-panel--home .btn { margin-top: 24px; }
.layer-panel--home .bullets li .muted { margin-left: 4px; }

/* 7. Competenze ----------------------------------------------------------- */

.tabs-bar { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .tabs-bar { top: calc(var(--header-h) + 32px); }
.tabs { padding-block: 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
@media (min-width: 901px) { .tabs { flex-wrap: wrap; overflow-x: visible; } }
.tab {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 44px;
	padding: 0 16px;
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
	white-space: nowrap;
	font-size: 15px;
	font-weight: 600;
	transition: background .25s, color .25s;
}
.tab__id { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--lampone); }
.tab.is-active { background: var(--prugna); border-color: var(--prugna); color: #fff; }
.tab.is-active .tab__id { color: #EDC6D7; }

.expertise { padding-block: 56px 96px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.expertise__main { flex: 999 1 560px; min-width: 0; }
.expertise__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.layer-panel--expertise .eyebrow { margin-bottom: 12px; }
.layer-panel--expertise .layer-panel__title { margin-bottom: 20px; font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -.03em; }
.layer-panel--expertise .layer-panel__desc { margin-bottom: 40px; max-width: 680px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; }
.layer-panel--expertise .layer-panel__facts { gap: 1px; margin-top: 0; padding-top: 0; border: 1px solid var(--line); background: var(--line); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.layer-panel--expertise .layer-panel__fact { background: #fff; padding: 28px; }
.layer-panel--expertise .tag { padding: 6px 12px; }
.layer-panel--expertise .bullets { gap: 10px; }
.layer-panel--expertise .link-strong { display: inline-block; margin-top: 16px; font-size: 15px; }
.layer-panel__subhead { margin: 48px 0 14px; font-weight: 600; font-size: 24px; }
.layer-panel--expertise .layer-panel__empty { padding: 16px 0; border-top: 1px solid var(--ink); }
.layer-panel--expertise + .layer-panel--expertise { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.js .layer-panel--expertise + .layer-panel--expertise { margin-top: 0; padding-top: 0; border-top: 0; }

.adjacent { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.no-js .adjacent, html:not(.js) .expertise .adjacent { display: none; }
.adjacent__btn, .adjacent__link {
	display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
	min-height: 56px;
	padding: 10px 16px;
	background: transparent;
	border: 1px solid var(--line-2);
	color: var(--ink);
	text-align: left;
	text-decoration: none;
}
.adjacent__btn:hover, .adjacent__link:hover { border-color: var(--ink); text-decoration: none; }
.adjacent__btn .label, .adjacent__link .label { margin: 0; }
.adjacent__btn--next, .adjacent__link--next { align-items: flex-end; text-align: right; }
.adjacent__name { font-weight: 600; }
.adjacent--posts { margin-top: 48px; }
.adjacent--posts .adjacent__link { max-width: 520px; padding: 0; border: 0; font-size: 18px; }

@media (min-width: 1000px) {
	.sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }
	.admin-bar .sticky-aside { top: calc(var(--header-h) + 56px); }
	.expertise .sticky-aside { top: calc(var(--header-h) + 92px); }
}

/* 8. Progetti ------------------------------------------------------------- */

.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 16px 0; margin-bottom: 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.filter-bar .count { margin: 0; }

.project-media { padding-bottom: 64px; }
.project-media figure { margin: 0; aspect-ratio: 21 / 9; min-height: 220px; overflow: hidden; background: var(--soft); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }

.with-aside { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.with-aside__main { flex: 999 1 560px; min-width: 0; }
.with-aside__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 999px) { .sticky-aside--first-mobile { order: -1; } }

.project-body { display: flex; flex-direction: column; gap: 56px; }
.project-section .muted { margin: 0 0 20px; max-width: 680px; }
.project-layers { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.stack--project { flex: 1 1 260px; min-width: 0; gap: 4px; }
.project-layers__panels { flex: 2 1 320px; min-width: 0; }
.layer-note { padding: 24px; }
.layer-note p { margin: 0 0 12px; color: var(--ink-2); }
.layer-note p:last-child { margin-bottom: 0; }
.layer-note + .layer-note { margin-top: 12px; }
.js .layer-note + .layer-note { margin-top: 0; }

.facts { margin: 0; padding: 8px 22px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { margin: 0; }
.facts dd { margin: 0; text-align: right; }

.pager__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.pager__link { display: flex; flex-direction: column; gap: 4px; padding: 32px 0; text-decoration: none; }
.pager__link:hover { text-decoration: none; }
.pager__link .label { margin: 0; }
.pager__link--next { align-items: flex-end; text-align: right; }
.pager__title { font-weight: 600; font-size: 22px; }

/* 9. Certificazioni ------------------------------------------------------- */

.filter-sticky { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); border-block: 1px solid var(--line); }
.admin-bar .filter-sticky { top: calc(var(--header-h) + 32px); }
.filter-sticky__inner { padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.filter-sticky .segmented--icons { margin-left: auto; }
.filter-sticky .pill { padding: 0 12px; }
@media (max-width: 900px) { .filter-sticky { position: static; } }

.section--certs { padding-top: 28px; }
.certs { margin: 0; padding: 0; list-style: none; }
.certs--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.cert { animation: pop .4s var(--ease) both; }
.certs--grid .cert {
	display: grid;
	grid-template-columns: 56px 1fr;
	grid-template-areas: "badge status" "body body" "dates dates" "verify verify";
	align-items: center;
	gap: 14px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--line);
	transition: transform .3s var(--ease), box-shadow .3s;
}
.certs--grid .cert:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert__badge { grid-area: badge; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.cert__badge img { width: 56px; height: 56px; object-fit: contain; }
.cert__mono { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--grey); color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.cert--nutanix .cert__mono { background: var(--prugna); }
.cert--citrix .cert__mono { background: #3A3F8F; }
.cert--parallels .cert__mono { background: #8A6A2F; }
.certs--grid .status { grid-area: status; justify-self: end; align-self: center; }
.cert__body { grid-area: body; display: flex; flex-direction: column; gap: 6px; }
.cert__name { font-weight: 600; font-size: 18px; line-height: 1.3; }
.cert__issuer { font-size: 14px; color: var(--grey); }
.cert__dates { grid-area: dates; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.cert__verify { grid-area: verify; font-size: 14px; font-weight: 600; color: var(--lampone); }

.certs--list { border-top: 1px solid var(--ink); }
.certs--list .cert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.certs--list .cert__badge, .certs--list .cert__badge img { width: 40px; height: 40px; }
.certs--list .cert__mono { width: 36px; height: 36px; font-size: 12px; }
.certs--list .cert__body { flex: 1 1 340px; min-width: 0; gap: 2px; }
.certs--list .cert__name { font-size: 17px; }
.certs--list .cert__dates { flex: 0 1 300px; }
.certs--list .cert__verify { display: none; }

/* 10. Chi sono ------------------------------------------------------------ */

.about-hero { padding-block: clamp(40px, 6vw, 80px) 72px; display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.about-hero__portrait { flex: 1 1 320px; max-width: 440px; margin: 0; }
.about-hero__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.about-hero__placeholder { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: var(--soft); }
.about-hero__icon { width: 40%; height: auto; }
.about-hero__portrait figcaption { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; }
.about-hero__text { flex: 2 1 520px; min-width: 0; }
.about-hero__text .crumbs { margin-bottom: 20px; }

.bio { background: #fff; border: 1px solid var(--line); }
.bio__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.bio__bar .label { margin: 0; }
.bio__bar .segmented__btn { min-height: 38px; }
.bio__text { padding: 22px 20px 24px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); }
.bio__text > :first-child { margin-top: 0; }
.bio__text > :last-child { margin-bottom: 0; }
.bio__text p { margin: 0 0 16px; }
.bio__text.prose { font-size: 17px; line-height: 1.65; }
.bio-list { margin: 20px 0 0; border-bottom: 1px solid var(--line); }
.bio-list div { display: grid; grid-template-columns: minmax(150px, 32%) 1fr; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.bio-list dt { padding-top: 3px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; color: var(--lampone); }
.bio-list dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 600px) { .bio-list div { grid-template-columns: 1fr; } }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.split { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.split__head { flex: 1 1 280px; }
.split__head .h-section { margin-bottom: 12px; }
.split__head .muted { margin: 0; max-width: 320px; }
.split__body { flex: 2 1 560px; min-width: 0; }

.admin-note { margin: 0 0 20px; padding: 16px 18px; background: var(--warn-bg); border: 1px solid #E9C9A5; font-size: 15px; color: var(--ink-2); }
.admin-note p { margin: 0 0 8px; }

/* Percorso e formazione da LinkedIn (SB Profile Sync). */
.timeline { margin: 0; padding: 0 0 0 32px; list-style: none; position: relative; display: flex; flex-direction: column; gap: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--prugna); transform-origin: 50% 0; }
/* Riquadro rettangolare: i loghi quadrati restano centrati, quelli orizzontali usano la larghezza. */
.timeline__item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 20px; align-items: start; }
.timeline__item > .timeline__body:only-child { grid-column: 1 / -1; }
.timeline__logo { width: 88px; height: 52px; padding: 6px 8px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.timeline__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.timeline__mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--lampone); }
.timeline--compact .timeline__item { grid-template-columns: 72px minmax(0, 1fr); gap: 0 16px; }
.timeline--compact .timeline__logo { width: 72px; height: 44px; padding: 5px 6px; }
@media (max-width: 600px) {
	.timeline__item { grid-template-columns: 72px minmax(0, 1fr); gap: 0 14px; }
	.timeline__logo { width: 72px; height: 44px; padding: 5px 6px; }
}
.timeline__item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; background: var(--bg); border: 2px solid var(--prugna); }
.band .timeline__item::before { background: #fff; }
.timeline__item.is-current::before { background: var(--prugna); }
.timeline__dates { margin: 0 0 4px; font-family: var(--font-mono); font-size: 13px; color: var(--lampone); }
.timeline__title { margin: 0 0 4px; font-weight: 600; font-size: 24px; line-height: 1.25; }
.timeline__sub { margin: 0; color: var(--grey); }
.timeline__desc { margin-top: 10px; max-width: 640px; font-size: 16px; color: var(--ink-2); }
.timeline__desc p { margin: 0 0 10px; }
.timeline__more { margin-top: 10px; }
.timeline__more summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--lampone); }
/* Ruoli interni alla stessa azienda. */
.roles { position: relative; margin: 18px 0 0; padding: 0 0 0 22px; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.roles::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.role { position: relative; }
.role::before { content: ""; position: absolute; left: -22px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--grey-2); }
.role.is-current::before { background: var(--lampone); border-color: var(--lampone); }
.role__title { margin: 0 0 2px; font-weight: 600; font-size: 19px; line-height: 1.3; }
.role .timeline__dates { margin: 0; color: var(--grey); }
.role .timeline__desc { margin-top: 8px; }
.timeline--compact { gap: 24px; }
.timeline--compact .timeline__title { font-size: 19px; }

.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px 56px; }
.lang-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.lang-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lang-list .muted { font-size: 15px; }

.tags--skills { gap: 8px; }
.tags--skills .tag { padding: 6px 12px; background: #fff; }
.more-skills { margin-top: 16px; }
.more-skills summary { margin-bottom: 12px; cursor: pointer; font-weight: 600; color: var(--lampone); }

/* 11. Contatti ------------------------------------------------------------ */

.with-aside--contact { gap: 32px 56px; }
.form-card { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 3vw, 40px); }
.form-card > :first-child { margin-top: 0; }

.wpcf7 form { display: flex; flex-direction: column; gap: 24px; }
.wpcf7 form > p, .wpcf7 .sba-field { margin: 0; }
/* CF7 avvolge in <p> i campi dei contenitori: il paragrafo non deve rompere griglie e righe. */
.wpcf7 .sba-grid > p, .wpcf7 .sba-field > p, .wpcf7 .sba-submit > p { display: contents; }
.wpcf7 label br, .wpcf7 .sba-field > br { display: none; }
.wpcf7 label { display: block; font-weight: 600; font-size: 15px; }
.wpcf7 label .wpcf7-form-control-wrap { margin-top: 6px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { height: auto; min-height: 160px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--prugna); box-shadow: 0 0 0 3px rgba(98, 52, 72, .18); }
.wpcf7 ::placeholder { color: var(--grey-2); }
.wpcf7 .sba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.wpcf7 .sba-legend { display: block; margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.wpcf7 .sba-optional { font-weight: 400; color: var(--grey); }
.wpcf7 .sba-required { color: var(--error); }
.wpcf7 .sba-hint { margin: 10px 0 0; font-size: 14px; font-weight: 400; color: var(--grey); }

.wpcf7-radio, .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.wpcf7-list-item { margin: 0; }
.wpcf7-radio .wpcf7-list-item label, .wpcf7-checkbox .wpcf7-list-item label {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 48px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid var(--line-2);
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	transition: background .2s, color .2s, border-color .2s;
}
.wpcf7-checkbox .wpcf7-list-item label { min-height: 40px; padding: 0 12px; font-size: 14px; font-weight: 500; }
.wpcf7-list-item label:has(input:checked) { background: var(--tint); border-color: var(--prugna); color: var(--prugna); }
.wpcf7-radio.sba-topics .wpcf7-list-item label:has(input:checked) { background: var(--prugna); color: #fff; }
.wpcf7 input[type="radio"], .wpcf7 input[type="checkbox"] { margin: 0; width: 18px; height: 18px; accent-color: var(--prugna); }

.wpcf7-acceptance .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 15px; cursor: pointer; }
.wpcf7-acceptance input[type="checkbox"] { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 auto; }
.wpcf7-acceptance a { text-decoration: underline; }

.wpcf7-submit {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 54px;
	padding: 0 26px;
	background: var(--prugna);
	color: #fff;
	border: 0;
	border-radius: 0;
	font-size: 16px;
	font-weight: 600;
	transition: background .2s;
}
.wpcf7-submit:hover { background: var(--prugna-dark); }
.wpcf7-submit:disabled { opacity: .6; }
.wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 .sba-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.wpcf7 .sba-submit .sba-hint { margin: 0; }

.wpcf7-not-valid { border-color: var(--error-line) !important; }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--error); }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 14px 16px; border: 1px solid var(--line-2); font-size: 15px; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output { background: var(--error-bg); border-color: var(--error-line-2); color: var(--error); animation: shake .35s ease; }
.wpcf7 form.sent .wpcf7-response-output { background: var(--tint); border-color: var(--tint-line); color: var(--prugna); }
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { background: var(--warn-bg); border-color: #E9C9A5; color: var(--warn); }

.channel-list { margin: 0; padding: 0; list-style: none; }
.channel-list li { border-top: 1px solid var(--dark-line-2); }
.channel-list li:last-child { border-bottom: 1px solid var(--dark-line-2); }
.channel-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 14px 0; color: #fff; text-decoration: none; }
.channel-list a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.channel-list__value { margin-left: auto; color: var(--on-dark-2); font-size: 15px; overflow-wrap: anywhere; text-align: right; }

.hint-list { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.hint-list dt { margin: 0; }
.hint-list dd { margin: 2px 0 0; color: var(--ink-2); }

/* 12. Analisi e archivi --------------------------------------------------- */

.finder { display: flex; flex-direction: column; gap: 16px; padding: 20px; margin-bottom: 24px; background: #fff; border: 1px solid var(--line); }
.finder__search { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.finder__search input { flex: 1 1 auto; min-width: 0; height: 52px; border: 0; background: transparent; font-size: clamp(18px, 2vw, 24px); color: var(--ink); outline: none; }
.finder__search input::placeholder { color: var(--grey-2); }
.finder__search input::-webkit-search-cancel-button { display: none; }

.featured {
	display: flex; flex-wrap: wrap; gap: 24px 40px;
	padding: clamp(24px, 3vw, 40px);
	margin-bottom: 40px;
	background: var(--notte);
	color: #fff;
	text-decoration: none;
}
.featured:hover { text-decoration: none; }
.featured__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.featured__text .eyebrow { margin: 0; font-size: 12px; }
.featured__title { font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.featured:hover .featured__title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.featured__excerpt { color: var(--on-dark-2); }
.featured__aside { flex: 1 1 280px; min-width: 0; align-self: stretch; padding: 18px; background: var(--notte-2); border: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--on-dark-3); overflow: hidden; }
.featured__code-label { display: block; color: var(--pink); text-transform: uppercase; letter-spacing: .06em; }
.featured__code { display: block; white-space: pre; overflow: hidden; text-overflow: ellipsis; }

.year-group { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-top: 20px; border-top: 1px solid var(--ink); margin-bottom: 32px; animation: fade .35s ease both; }
.year-group__year { flex: 0 0 120px; margin: 0; font-family: var(--font-mono); font-weight: 400; font-size: 15px; color: var(--grey); }
.year-group .rows { flex: 1 1 560px; min-width: 0; border-top: 0; }

.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { border-bottom: 1px solid var(--line); }
.rows--home { border-top: 1px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 10px; margin: 0 -10px; text-decoration: none; transition: background .2s; }
.row:hover { background: #fff; text-decoration: none; }
.row:hover .row__title { text-decoration: underline; text-underline-offset: 4px; }
.row__date { flex: 0 0 96px; font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.row__title { flex: 1 1 320px; min-width: 0; font-weight: 600; font-size: 19px; line-height: 1.35; }
.row__area { font-family: var(--font-mono); font-size: 12px; color: var(--lampone); }
.rows--home .row { padding: 20px 0; margin: 0; gap: 4px 24px; }
.rows--home .row:hover { background: transparent; }
.rows--home .row__date { flex-basis: 110px; }
.rows--home .row__title { flex-basis: 400px; font-size: 20px; line-height: 1.3; }
.rows--home .row__area { font-size: 13px; }

.more { display: flex; justify-content: center; margin-top: 16px; }
.more .btn { min-height: 52px; padding: 0 26px; background: #fff; }
.more .btn:hover { background: var(--ink); }

.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-2); font-weight: 600; }
.nav-links .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-links a.page-numbers:hover { border-color: var(--ink); text-decoration: none; }

.search-form { display: flex; align-items: center; gap: 12px; max-width: 720px; margin-top: 24px; padding: 6px 6px 6px 16px; background: #fff; border: 1px solid var(--line); }
.search-form input[type="search"] { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; font-size: 18px; outline: none; }

/* 13. Articolo e contenuti ------------------------------------------------ */

.article__head { padding-block: clamp(40px, 6vw, 80px) 40px; }
.h-article { margin: 0 0 28px; max-width: 980px; font-weight: 600; font-size: clamp(36px, 5vw, 66px); line-height: 1.05; letter-spacing: -.03em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; line-height: 1.4; }
.byline__author { display: flex; align-items: center; gap: 12px; }
.byline__author strong, .byline__author .muted { display: block; }
.byline__photo, .byline__mono { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline__mono { display: flex; align-items: center; justify-content: center; background: var(--notte); color: #fff; font-weight: 600; font-size: 14px; }
.byline__meta { font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.byline__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.article__media { padding-bottom: 48px; }
.article__media figure { margin: 0; overflow: hidden; background: var(--soft); }
.article__media img { width: 100%; max-height: 640px; object-fit: cover; }

.article__layout { padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.article__aside { flex: 0 1 260px; min-width: 0; }
.article__body { flex: 1 1 600px; min-width: 0; max-width: 760px; }
@media (max-width: 999px) {
	.article__aside { display: none; }
	.article__body { flex-basis: 100%; }
}
@media (min-width: 1000px) {
	.toc-desk { position: sticky; top: calc(var(--header-h) + 32px); }
	.admin-bar .toc-desk { top: calc(var(--header-h) + 64px); }
	.toc-mob { display: none; }
}

.toc { font-size: 15px; line-height: 1.45; }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); text-decoration: none; border-color: var(--line-2); }
.toc a.is-current { color: var(--lampone); border-color: var(--lampone); }
.context-box { margin-top: 24px; }
.context-box a { color: var(--lampone); }

.toc-mob { margin-bottom: 28px; background: #fff; border: 1px solid var(--line); }
.toc-mob summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; cursor: pointer; font-weight: 600; list-style: none; }
.toc-mob summary::-webkit-details-marker { display: none; }
.toc-mob summary span::before { content: "+"; font-family: var(--font-mono); }
.toc-mob[open] summary span::before { content: "−"; }
.toc-mob ol { margin: 0; padding: 0 16px 12px; list-style: none; }
.toc-mob li { border-top: 1px solid var(--line); }
.toc-mob a { display: block; padding: 12px 0; }

.prose { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; }
.prose--article > p:first-child { font-size: clamp(20px, 2vw, 23px); line-height: 1.55; color: var(--ink-2); margin-bottom: 28px; }
.prose h2 { margin: 48px 0 14px; font-weight: 600; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:target { color: var(--lampone); }
.prose h3 { margin: 32px 0 10px; font-weight: 600; font-size: 22px; line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3:target { color: var(--lampone); }
.prose h4 { margin: 28px 0 8px; font-weight: 600; font-size: 19px; }
.prose a { color: var(--lampone); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--prugna); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--lampone); }
.prose strong { font-weight: 600; }
.prose blockquote, .prose .wp-block-quote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--prugna); font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 13px; font-style: normal; color: var(--grey); }
.prose hr, .prose .wp-block-separator { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.prose code, .prose kbd { font-family: var(--font-mono); font-size: .86em; padding: 1px 6px; background: var(--soft); }
.prose pre { margin: 0 0 24px; padding: 18px 16px; overflow-x: auto; background: var(--notte-2); color: var(--on-dark); border: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: 14px; line-height: 1.7; tab-size: 4; }
.prose pre code { padding: 0; background: none; font-size: inherit; color: inherit; }
.prose img { height: auto; }
.prose figure { margin: 0 0 28px; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.prose .wp-block-image img { border: 1px solid var(--line); }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .aligncenter img { margin-inline: auto; }
.prose .alignleft { float: left; margin: 6px 24px 16px 0; }
.prose .alignright { float: right; margin: 6px 0 16px 24px; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; margin: 0 0 20px; } }
.prose .wp-block-embed { margin: 0 0 28px; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose iframe { max-width: 100%; }
.prose .wp-block-gallery { gap: 12px; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--prugna); color: #fff; border-radius: 0; font-weight: 600; text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--prugna-dark); color: #fff; }
.prose .wp-block-group { margin-bottom: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); border-bottom-color: var(--ink); }
.table-scroll { margin: 0 0 24px; overflow-x: auto; }
.prose--page { max-width: 760px; padding-bottom: 96px; }
.prose--intro { max-width: 760px; padding-bottom: 24px; }

/* Blocchi di codice con pulsante "Copia" (aggiunti da main.js). */
.code-block { margin: 0 0 24px; background: var(--notte-2); border: 1px solid var(--dark-line); }
.code-block__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-3); }
.code-block__copy { min-height: 36px; padding: 0 12px; background: var(--code-btn); color: var(--on-dark); border: 1px solid var(--dark-line-2); font-family: var(--font-mono); font-size: 12px; }
.code-block__copy:hover { border-color: var(--pink-2); }
.code-block pre { margin: 0; border: 0; }

.share { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.share .label { margin: 0; }
.share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.author-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 32px; padding: 24px; background: #fff; border: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.author-box__photo { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; }
.author-box > div { flex: 1 1 300px; min-width: 0; }
.author-box__name { margin: 0 0 4px; font-weight: 600; font-size: 18px; }
.author-box__bio { margin: 0 0 10px; color: var(--ink-2); }

.page-links { margin: 24px 0; display: flex; gap: 8px; font-weight: 600; }

.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 16px; }
.comments__title, .comment-reply-title { margin: 0 0 20px; font-weight: 600; font-size: 24px; }
.comments__list { margin: 0 0 32px; padding: 0; list-style: none; }
.comments__list .children { margin: 0; padding-left: 24px; list-style: none; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-family: var(--font-mono); font-size: 12px; color: var(--grey); }
.comment-metadata a { color: var(--grey); }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--prugna); box-shadow: 0 0 0 3px rgba(98, 52, 72, .18); }
.comment-form p { margin: 0 0 16px; }

.page-body { padding-bottom: 0; }

/* 14. Piè di pagina ------------------------------------------------------- */

.site-footer { background: var(--notte-2); color: var(--on-dark-2); }
.site-footer__inner { padding-block: 64px 28px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px 40px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
.site-footer__brand p { margin: 16px 0 0; font-size: 15px; }
.site-footer__logo { display: inline-block; }
.site-footer__svg { display: block; width: auto; height: 40px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer nav .label { margin: 0; }
.site-footer a { color: var(--on-dark); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; font-size: 14px; color: var(--on-dark-3); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__legal a { color: var(--on-dark-3); }

/* 15. Movimento ----------------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes shade { to { box-shadow: 0 8px 28px rgba(43, 23, 34, .08); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: no-preference) {
	.in { animation: rise .9s var(--ease) both; }
	.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
	.d5 { animation-delay: .4s; } .d6 { animation-delay: .48s; } .d7 { animation-delay: .56s; }

	@supports (animation-timeline: view()) {
		.reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
		.site-header { animation: shade linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
		.progress { animation: grow linear both; animation-timeline: scroll(root); }
		.unveil { animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
		.timeline::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.lift:hover, .certs--grid .cert:hover { transform: none; }
}

/* Stampa: solo il contenuto. */
@media print {
	.service-bar, .site-header, .site-footer, .cta-band, .share, .article__aside, .toc-mob, .band:has(.adjacent), .search-dialog { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.prose a { color: inherit; }
}

/* 16. Corellix ------------------------------------------------------------ */

.corellix-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
	align-items: start;
	gap: 40px 72px;
}
.corellix-intro__text > :first-child { margin-top: 0; }
.corellix-facts { position: sticky; top: calc(var(--header-h) + 24px); }
.corellix-facts__list { display: grid; gap: 14px; margin: 0; }
.corellix-facts__list div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.corellix-facts__list div:last-child { padding-bottom: 0; border-bottom: 0; }
.corellix-facts__list dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.corellix-facts__list dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) {
	.corellix-intro { grid-template-columns: 1fr; }
	.corellix-facts { position: static; }
}
