/* ==========================================================================
   CT Solution — base.css
   Token, font, reset, layout, componenti condivisi, animazioni, header, footer.
   Gli stili specifici dei blocchi stanno in blocks/<nome>/style.css.

   Riferimento design: mockup desktop 1440px → contenitore 1248px (margini 96px).
   I valori fluidi usano clamp(min, Xvw, max) con max = valore del mockup a 1440px.
   ========================================================================== */

/* ---------- Font (self-hosted) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Token ---------- */
:root {
	/* Colori brand */
	--c-ink: #1D1D1B;          /* testo, sfondi scuri */
	--c-ink-2: #2A2B2E;        /* hero foto */
	--c-ink-3: #2E2F33;        /* superfici su scuro */
	--c-black: #0E0E0E;        /* Fluix */
	--c-white: #FFFFFF;
	--c-text-2: #3C3D40;       /* testo secondario */
	--c-muted: #55565A;
	--c-muted-2: #8A8B8F;
	--c-muted-3: #B5B6BA;
	--c-line: #ECECEC;
	--c-line-2: #E6E6E6;
	--c-surface: #F7F7F5;      /* sezioni alternate */
	--c-surface-2: #F1F1EE;

	--c-green: #7CC242;
	--c-green-dark: #4E9A1E;
	--c-green-light: #9FD86F;
	--c-green-200: #B9E08F;
	--c-green-100: #DDEFD0;
	--c-green-50: #EEF7E6;
	--c-green-25: #F4F8EF;
	--c-green-border: #E6EDE0;

	--c-blue: #2F5FD8;
	--c-blue-2: #1F5FBF;
	--c-blue-50: #EAF0FC;
	--c-blue-light: #7BA0FF;
	--c-navy: #0E1A73;         /* PoliPush */
	--c-navy-2: #1D2F8C;       /* Postel / Poste */
	--c-purple: #6A3FD0;
	--c-purple-50: #F0EBFB;
	--c-teal: #0D5C62;         /* LeadZilla / marketing */
	--c-teal-50: #E3F1F1;
	--c-yellow: #F2CF47;
	--c-yellow-2: #F6DC70;
	--c-yellow-50: #FBF3D2;
	--c-pink: #F04BD6;
	--c-neon: #3DFF3D;         /* Fluix */

	/* Tipografia */
	--f-display: "Montserrat", system-ui, sans-serif;
	--f-body: "DM Sans", system-ui, sans-serif;
	--f-fluix: "Bebas Neue", "Arial Narrow", sans-serif;

	--fs-hero: clamp(2.75rem, 6.1vw, 5.5rem);      /* 88 */
	--fs-h1: clamp(2.5rem, 5.28vw, 4.75rem);       /* 76 */
	--fs-h2-xl: clamp(2.125rem, 3.9vw, 3.5rem);    /* 56 */
	--fs-h2: clamp(2rem, 3.6vw, 3.25rem);          /* 52 */
	--fs-h2-m: clamp(1.875rem, 3.33vw, 3rem);      /* 48 */
	--fs-h2-s: clamp(1.75rem, 3.05vw, 2.75rem);    /* 44 */
	--fs-h3: clamp(1.5rem, 2.78vw, 2.5rem);        /* 40 */
	--fs-h4: clamp(1.25rem, 1.8vw, 1.625rem);      /* 26 */
	--fs-lead: clamp(1.0625rem, 1.32vw, 1.1875rem); /* 19 */
	--fs-body: 1rem;
	--fs-small: .875rem;
	--fs-xs: .8125rem;

	/* Layout */
	--container: 1248px;
	--gutter: clamp(20px, 6.667vw, 96px);
	--gap: clamp(16px, 1.67vw, 24px);
	--section-y: clamp(64px, 7.64vw, 110px);
	--radius-s: 14px;
	--radius: 22px;
	--radius-l: 28px;
	--radius-xl: 32px;
	--header-h: 96px;

	/* Effetti */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow-card: 0 30px 50px -30px rgba(29, 29, 27, .35);
	--shadow-soft: 0 16px 30px -24px rgba(29, 29, 27, .45);

	/* Titoli: colori di accento (sovrascrivibili per sezione) */
	--t-accent: var(--c-green);
	--t-dot: var(--c-blue);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: var(--fs-body);
	line-height: 1.6;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-green-dark); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--c-green); outline-offset: 3px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--c-green); outline-offset: 2px; }
::selection { background: var(--c-green); color: var(--c-ink); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	left: 16px; top: 16px; padding: 12px 20px; border-radius: 999px;
	background: var(--c-green); color: var(--c-ink); font-weight: 700;
}
.site-main:focus { outline: none; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.stack { display: flex; flex-direction: column; gap: var(--stack, 20px); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* Blocchi: radice comune ".b" (ogni blocco è una sezione a tutta larghezza). */
.b { position: relative; }
/* Blocchi core inseriti tra i blocchi CT Solution: in colonna di lettura. */
.page-blocks > :not(.b):not(.alignfull) { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; margin-block: 1.2em; }
.page-blocks > .alignwide { width: min(100% - 2 * var(--gutter), var(--container)); }

/* Temi colore di sezione */
.theme-dark { background: var(--c-ink); color: var(--c-white); }
.theme-dark a:hover { color: var(--c-green); }
.theme-black { background: var(--c-black); color: var(--c-white); }
.theme-blue { background: var(--c-navy-2); color: var(--c-white); }
.theme-teal { background: var(--c-teal); color: var(--c-white); }
.theme-yellow { background: var(--c-yellow); color: var(--c-ink); }
.theme-surface { background: var(--c-surface); }
.theme-green { background: var(--c-neon); color: var(--c-ink); }

/* ---------- Tipografia ---------- */
.h-hero, .h1, .h2, .h2-xl, .h2-m, .h2-s, .h3, .h4 {
	font-family: var(--f-display);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.04;
	text-wrap: balance;
}
.h-hero { font-size: var(--fs-hero); line-height: 1.02; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; }
.h2-xl { font-size: var(--fs-h2-xl); line-height: 1.02; }
.h2 { font-size: var(--fs-h2); }
.h2-m { font-size: var(--fs-h2-m); line-height: 1.08; }
.h2-s { font-size: var(--fs-h2-s); line-height: 1.08; }
.h3 { font-size: var(--fs-h3); line-height: 1.1; }
.h4 { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.01em; }
.t-accent { color: var(--t-accent); }
.t-dot { color: var(--t-dot); }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.text-2 { color: var(--c-text-2); }
.muted { color: var(--c-muted); }
.theme-dark .text-2, .theme-black .text-2, .theme-blue .text-2, .theme-teal .text-2 { color: rgba(255, 255, 255, .88); }
.theme-dark .muted, .theme-black .muted, .theme-blue .muted, .theme-teal .muted { color: rgba(255, 255, 255, .7); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--c-muted);
}
.eyebrow .dot, .dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--dot, var(--c-green)); display: inline-block; }

/* Testo lungo (pagine di testo, casi studio) */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--c-text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); font-weight: 800; color: var(--c-ink); letter-spacing: -.01em; line-height: 1.2; margin-top: 1.8em; }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.prose h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
.prose a { color: var(--c-green-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 4px solid var(--c-green); padding-left: 20px; font-style: italic; color: var(--c-ink); }
.prose img, .prose__cover { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { border-bottom: 1px solid var(--c-line); padding: 10px 8px; text-align: left; }

/* ---------- Pulsanti ---------- */
.btn {
	--btn-h: 52px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: var(--btn-h); padding: 8px 26px;
	border-radius: 999px; border: 2px solid transparent;
	font-family: var(--f-body); font-size: 15px; font-weight: 700; line-height: 1;
	text-align: center; cursor: pointer; text-decoration: none;
	transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn .cts-icon { flex-shrink: 0; }
.btn--sm { --btn-h: 44px; padding: 6px 22px; font-size: 14px; }
@media (min-width: 600px) { .btn { white-space: nowrap; } }
.btn--lg { --btn-h: 56px; padding: 0 30px; font-size: 16px; }
.btn--dark { background: var(--c-ink); color: var(--c-white); }
.btn--dark:hover { background: var(--c-green); color: var(--c-ink); }
.btn--green { background: var(--c-green); color: var(--c-ink); }
.btn--green:hover { background: var(--c-ink); color: var(--c-white); }
.btn--white { background: var(--c-white); color: var(--btn-fg, var(--c-ink)); }
.btn--white:hover { background: var(--c-green); color: var(--c-ink); }
.btn--yellow { background: var(--c-yellow); color: var(--c-ink); }
.btn--yellow:hover { background: var(--c-white); color: var(--c-ink); }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: var(--c-green); border-color: var(--c-green); color: var(--c-ink); }
.btn--outline-green { border-color: var(--c-green); background: transparent; color: inherit; }
.btn--outline-green:hover, .btn--outline-green.is-current { background: var(--c-green); color: var(--c-ink); }
.btn[aria-disabled="true"], .btn:disabled { background: #D9D9D6; color: var(--c-muted-2); border-color: transparent; cursor: not-allowed; }

/* Link testuale con freccia */
.link-arrow { font-weight: 700; color: var(--c-blue); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { color: var(--c-green-dark); }
.link-underline { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Pillole / chip / tag */
.pill {
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 16px; border-radius: 999px;
	border: 2px solid var(--pill, currentColor);
	font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
	transition: background-color .3s, color .3s, border-color .3s;
}
a.pill:hover, button.pill:hover { background: var(--c-green); border-color: var(--c-green); color: var(--c-ink); }
.pill--sm { height: 30px; padding: 0 12px; font-size: 12px; border-width: 1.5px; }
.pill--lg { height: 48px; padding: 0 20px; font-size: 15px; }
.pill--muted { --pill: var(--c-line); }
.tag {
	display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
	border: 1.5px solid currentColor; border-radius: 999px;
	font-size: 13px; font-weight: 700; line-height: 1;
}
.badge {
	display: inline-flex; align-items: center; align-self: flex-start;
	height: 26px; padding: 0 12px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1;
	background: var(--badge, var(--c-ink)); color: var(--badge-fg, var(--c-white));
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* Elenco con spunte */
.checklist { display: grid; gap: 10px; }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.checklist li::before {
	content: ""; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
	background: var(--check-bg, var(--c-green)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 11.5l4 4 8-9' fill='none' stroke='%231D1D1B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist--light li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 11.5l4 4 8-9' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (max-width: 599px) { .checklist--2 { grid-template-columns: 1fr; } }

/* Bollino icona */
.icon-badge {
	width: var(--ib-size, 56px); height: var(--ib-size, 56px); flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--ib-radius, 16px);
	background: var(--ib-bg, var(--c-green-50)); color: var(--ib-fg, var(--c-green-dark));
}
.icon-badge--round { --ib-radius: 50%; }

/* Card */
.card {
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}
.lift { transition: transform .45s var(--ease), box-shadow .45s; }
.lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
@media (prefers-reduced-motion: reduce) { .lift:hover { transform: none; } }

/* Segnaposto immagini (come nel mockup) */
.ph {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; min-height: 120px;
	background: var(--ph-bg, #E9EAE6); color: var(--ph-fg, rgba(29, 29, 27, .45));
	font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-align: center;
}
.ph__label { padding: 12px; }
.theme-dark .ph, .ph--dark { --ph-bg: #3A3C40; --ph-fg: rgba(255, 255, 255, .45); }

/* Briciole */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--c-white); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--c-white); font-weight: 700; }

/* Avviso nell'editor */
.cts-editor-notice { padding: 24px; border: 2px dashed #c3c4c7; border-radius: 12px; color: #50575e; font: 14px/1.5 system-ui, sans-serif; text-align: center; background: #fff; }

/* ---------- Animazioni (dal mockup) ---------- */
@keyframes cts-dash { to { stroke-dashoffset: -2400; } }
@keyframes cts-orbit { to { stroke-dashoffset: -3932; } }
@keyframes cts-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .6; } }
@keyframes cts-halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes cts-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes cts-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cts-marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes cts-bounce { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 16px); } }
@keyframes cts-flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .35; } 96% { opacity: 1; } 98% { opacity: .5; } }
@keyframes cts-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cts-fill { from { width: 0; } to { width: 100%; } }
@keyframes cts-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes cts-travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes cts-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes cts-grow { 0%, 100% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }
@keyframes cts-bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.anim-dash { stroke-dasharray: 180 2220; animation: cts-dash 7s linear infinite; }
.anim-orbit { stroke-dasharray: 340 1626; animation: cts-orbit 9s linear infinite; }
.anim-orbit-rev { stroke-dasharray: 110 1856; stroke-dashoffset: -900; animation: cts-orbit 13s linear infinite reverse; }
.anim-pulse { transform-box: fill-box; transform-origin: center; animation: cts-pulse 2.4s ease-in-out infinite; }
.anim-halo { transform-box: fill-box; transform-origin: center; animation: cts-halo 2.4s ease-out infinite; }
.anim-zoom { animation: cts-zoom 18s ease-in-out infinite alternate; }
.anim-float { animation: cts-float 5s ease-in-out infinite; }
.anim-bounce { animation: cts-bounce 1.8s ease-in-out infinite; }
.anim-flicker { animation: cts-flicker 4s linear infinite; }
.anim-rise { animation: cts-rise .6s var(--ease) both; }
.anim-grow { transform-origin: left center; animation: cts-grow 3s ease-in-out infinite; }
.anim-bar { transform-origin: bottom center; animation: cts-bar 2.6s ease-in-out infinite; }

/* Carosello infinito:
   .marquee > .marquee__track > .marquee__set ×2 (identici, il secondo con aria-hidden="true") */
.marquee { overflow: hidden; width: 100%; }
.marquee__track { display: flex; width: max-content; animation: cts-marquee var(--marquee-dur, 60s) linear infinite; }
.marquee__set { display: flex; flex-shrink: 0; gap: var(--marquee-gap, 16px); padding-right: var(--marquee-gap, 16px); }
.marquee--rev .marquee__track { animation-name: cts-marquee-rev; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Comparsa allo scroll: aggiungi data-reveal (JS aggiunge .is-visible) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.marquee__track { animation: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
	position: absolute; inset: 0 0 auto 0; z-index: 50;
	color: var(--c-white);
	transition: transform .4s var(--ease), background-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__brand { display: flex; flex-shrink: 0; position: relative; z-index: 2; }
.site-header__logo { width: 150px; height: auto; aspect-ratio: 150 / 65; }
/* Hero colorato (blu, petrolio): logo chiaro in cima; logo standard quando l'header diventa fisso (sfondo scuro). */
.site-header__brand.has-light-logo .site-header__logo--standard { display: none; }
.site-header.is-fixed .site-header__brand.has-light-logo .site-header__logo--standard,
body.nav-open .site-header__brand.has-light-logo .site-header__logo--standard { display: block; }
.site-header.is-fixed .site-header__logo--light,
body.nav-open .site-header__logo--light { display: none; }

/* Header fisso dopo lo scroll */
.site-header.is-fixed {
	position: fixed; --header-h: 76px;
	background: rgba(29, 29, 27, .94);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6);
	animation: cts-header-in .4s var(--ease);
}
.site-header.is-fixed .site-header__logo { width: 120px; }
.site-header.is-hidden { transform: translateY(-110%); }
.admin-bar .site-header.is-fixed { top: 32px; }
@keyframes cts-header-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .site-header.is-fixed { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.is-fixed { top: 0; } }

/* Menu desktop */
.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav__list { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.primary-nav__item { position: static; display: flex; align-items: center; gap: 4px; }
.primary-nav__link {
	color: var(--c-white); opacity: .85; padding: 6px 0 4px;
	border-bottom: 3px solid transparent; transition: opacity .2s, border-color .2s;
}
.primary-nav__link:hover { color: var(--c-white); opacity: 1; }
.primary-nav__item.is-current > .primary-nav__link { opacity: 1; font-weight: 700; border-bottom-color: var(--c-green); }
.primary-nav__item.is-open > .primary-nav__link { opacity: 1; font-weight: 700; }
.primary-nav__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; padding: 0; margin-left: 2px; border: 0; background: none; cursor: pointer; color: var(--c-white);
	border-radius: 6px;
}
.primary-nav__toggle .cts-icon { transition: transform .3s; }
.primary-nav__toggle[aria-expanded="true"] .cts-icon { transform: rotate(180deg); }
.primary-nav__cta { color: var(--c-white); }
.primary-nav__cta.is-current { color: var(--c-ink); }

/* Mega menu */
.mega-menu {
	position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 4px);
	width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto;
	padding: 36px 36px 26px; border-radius: var(--radius-l);
	background: var(--c-white); color: var(--c-ink);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
	display: flex; flex-direction: column; gap: 24px; overflow: hidden;
	z-index: 60; cursor: default;
}
.mega-menu:not([hidden]) { animation: cts-rise .5s var(--ease) both; }
.mega-menu__line { position: absolute; left: 0; top: 0; width: 100%; height: 8px; }
.mega-menu__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mega-menu__col { display: flex; flex-direction: column; gap: 12px; }
.mega-menu__label { color: var(--c-muted); }
.mega-menu__cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 16px 16px 16px 24px; border-radius: 20px; background: var(--c-green-25);
	font-size: 14px; line-height: 1.5;
}
.mega-menu__cta-text { display: flex; flex-direction: column; }
.mega-menu__cta-text span { color: var(--c-text-2); }
.mega-menu__cta .btn { --btn-h: 50px; }

.mm-card {
	display: flex; align-items: center; gap: 14px; padding: 12px 14px;
	border-radius: 18px; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink);
}
.mm-card:hover { color: var(--c-ink); }
.mm-card__badge {
	width: var(--b-size, 44px); height: var(--b-size, 44px); flex-shrink: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--b-bg); color: var(--b-fg);
}
.mm-card__sigla { font-family: var(--f-display); font-weight: 800; font-size: 13px; }
.mm-card__text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.mm-card__title { font-family: var(--f-display); font-weight: 800; font-size: 15px; line-height: 1.3; }
.mm-card__desc { font-size: 13px; line-height: 1.4; color: var(--c-muted); }
.mm-card__arrow { color: var(--c-green); font-size: 18px; font-weight: 700; }
.mm-card--featured {
	position: relative; overflow: hidden; flex-direction: column; align-items: stretch; gap: 12px;
	padding: 20px; border: 0; border-radius: 20px; background: var(--c-yellow);
}
.mm-card--featured::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--c-yellow-2); }
.mm-card--featured > * { position: relative; z-index: 1; }
.mm-card--featured .mm-card__title { font-size: 17px; }
.mm-card--featured .mm-card__desc { color: var(--c-ink); font-size: 13px; line-height: 1.45; }
.mm-card__top { display: flex; align-items: center; justify-content: space-between; }
.mm-card__chip {
	height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px;
	background: var(--c-white); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--c-navy-2);
}
.mm-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 58px; }
.mm-pill {
	height: 30px; padding: 0 12px; display: inline-flex; align-items: center;
	border-radius: 999px; border: 1.5px solid var(--pill); font-size: 12px; font-weight: 700; color: var(--c-ink);
	transition: background-color .25s;
}
.mm-pill:hover { background: var(--pill); color: var(--c-ink); }

/* Pulsante hamburger */
.nav-toggle {
	display: none; width: 48px; height: 48px; padding: 0; border: 2px solid var(--c-green); border-radius: 50%;
	background: transparent; color: var(--c-white); cursor: pointer; align-items: center; justify-content: center;
	position: relative; z-index: 2;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile */
.mobile-nav {
	position: fixed; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain;
	background: var(--c-ink); color: var(--c-white);
	padding: calc(var(--header-h) + 12px) var(--gutter) 40px;
}
.mobile-nav:not([hidden]) { animation: cts-mobile-in .35s var(--ease) both; }
@keyframes cts-mobile-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mobile-nav__inner { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 32px; }
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__item { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mobile-nav__row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__link { display: block; padding: 16px 0; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.01em; color: var(--c-white); }
.mobile-nav__item.is-current > .mobile-nav__link, .mobile-nav__item.is-current > .mobile-nav__row .mobile-nav__link { color: var(--c-green); }
.mobile-nav__toggle { width: 48px; height: 48px; border: 0; background: none; color: var(--c-white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav__toggle .cts-icon { transition: transform .3s; }
.mobile-nav__toggle[aria-expanded="true"] .cts-icon { transform: rotate(180deg); }
.mobile-nav__sub { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 20px; }
.mobile-nav__label { color: rgba(255, 255, 255, .6); margin-top: 10px; }
.mobile-nav__card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--c-ink-3); color: var(--c-white); }
.mobile-nav__card:hover { color: var(--c-white); background: #3a3b40; }
.mobile-nav__card strong { display: block; font-family: var(--f-display); font-size: 15px; }
.mobile-nav__card small { display: block; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.mobile-nav__footer { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mobile-nav__contact { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .85); font-size: 15px; }
body.nav-open { overflow: hidden; }

@media (max-width: 1180px) {
	.primary-nav, .primary-nav__list { gap: 24px; }
}
@media (max-width: 1099px) {
	:root { --header-h: 80px; }
	.primary-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.site-header__logo { width: 124px; }
	.site-header.is-fixed { --header-h: 68px; }
	.site-header.is-fixed .site-header__logo { width: 110px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
	position: relative;
	background: var(--c-ink); color: rgba(255, 255, 255, .78);
	padding: clamp(56px, 6.25vw, 90px) 0 clamp(40px, 5vw, 72px);
	font-size: 13px; line-height: 1.8;
}
.site-footer a { color: inherit; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a:hover { color: var(--c-white); }
.site-footer__consent { padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: inherit; cursor: pointer; }
.site-footer__consent:hover { color: var(--c-white); }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.site-footer__brand { display: block; width: min(820px, 66%); }
.site-footer__logo { width: 100%; height: auto; }
.site-footer__social { display: flex; flex-direction: column; font-size: 15px; }
.site-footer__social a { color: var(--c-white); }
.site-footer__social a:hover { color: var(--c-green); }
.site-footer .container { position: relative; }
.site-footer__rule { width: 100%; height: 20px; margin-top: clamp(32px, 3.33vw, 48px); }
.site-footer__rule-dot { position: absolute; right: 4px; width: 16px; height: 16px; margin-top: -18px; border-radius: 50%; background: var(--c-green); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(32px, 3.33vw, 48px); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(32px, 3.33vw, 48px); }
.site-footer__certs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.site-footer__certs .eyebrow { color: rgba(255, 255, 255, .78); font-weight: 400; letter-spacing: .14em; }
.site-footer__certs ul { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer__certs li > * {
	height: 44px; padding: 0 16px; display: inline-flex; align-items: center;
	border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; color: var(--c-white);
}
.site-footer__certs img { max-height: 30px; width: auto; }
.site-footer__partner {
	height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 10px;
	background: var(--c-yellow); color: var(--c-navy-2) !important; font-family: var(--f-display); font-weight: 800; font-size: 14px;
}
.site-footer__partner:hover { background: var(--c-white); }
@media (max-width: 899px) {
	.site-footer__top { flex-direction: column; align-items: flex-start; }
	.site-footer__brand { width: min(520px, 100%); }
	.site-footer__social { flex-direction: row; gap: 20px; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 20px; }
}

/* Lista articoli (index.php) */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.post-card { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-white); }
.post-card a { display: flex; flex-direction: column; gap: 10px; padding: 28px; height: 100%; color: var(--c-ink); }
.post-card__title { font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1.25; }
.post-card__excerpt { color: var(--c-text-2); font-size: 15px; }
.post-card__more { margin-top: auto; font-weight: 700; color: var(--c-green-dark); }
