/* ==========================================================================
   AICAST – Chi siamo, Sedi territoriali, ricerca e mappa
   Vale sia sul sito (.aicast-blocks) sia nell'editor a blocchi
   (.editor-styles-wrapper), così in WordPress si modifica "vedendo" la pagina.
   Motivo grafico: le barre inclinate blu/rosse del marchio AICAST.
   ========================================================================== */

:root {
	--aicast-navy: #063d72;
	--aicast-navy-2: #0b4f8c;
	--aicast-deep: #042a50;
	--aicast-blue: #0a78c7;
	--aicast-cyan: #19a9db;
	--aicast-red: #e61e3a;
	--aicast-red-dark: #c4142f;
	--aicast-ink: #133b61;
	--aicast-text: #2a4660;
	--aicast-muted: #4f677c;
	--aicast-line: #dbe6ef;
	--aicast-sky: #f1f7fb;
	--aicast-radius: 16px;
	--aicast-shadow: 0 1px 2px rgba(6, 61, 114, .06), 0 12px 32px rgba(6, 61, 114, .08);
	--aicast-shadow-lg: 0 2px 4px rgba(6, 61, 114, .06), 0 24px 56px rgba(6, 61, 114, .16);
	--aicast-font: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--aicast-skew: -18deg;
}

/* ---------- Ambito comune: sito ed editor ---------- */
:is(.aicast-blocks, .editor-styles-wrapper) {
	--wp--style--global--content-size: 1240px;
	--wp--style--global--wide-size: 1240px;
	font-family: var(--aicast-font);
	color: var(--aicast-text);
	font-size: 16.5px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}
.aicast-blocks { background: #fff; overflow-x: clip; }
.aicast-blocks [id] { scroll-margin-top: 24px; }

/* Larghezze sul sito */
.aicast-blocks > *:not(.alignfull) {
	max-width: 1296px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 28px;
	padding-right: 28px;
	box-sizing: border-box;
}
.aicast-blocks > .alignfull,
.aicast-blocks .wp-block-group.alignfull {
	width: 100%;
	max-width: none;
	padding-left: 28px;
	padding-right: 28px;
	box-sizing: border-box;
}

/* Gruppi "vincolati": il tema classico non genera queste regole, le definiamo qui */
.aicast-blocks .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.editor-styles-wrapper .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--content-size, 1240px);
	margin-left: auto !important;
	margin-right: auto !important;
}
.aicast-blocks .is-layout-constrained > .alignfull { max-width: none; }

/* ---------- Tipografia ---------- */
:is(.aicast-blocks, .editor-styles-wrapper) :is(h1, h2, h3, h4) {
	font-family: var(--aicast-font);
	color: var(--aicast-navy);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.12;
	margin: 0 0 .55em;
}
:is(.aicast-blocks, .editor-styles-wrapper) h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: -.04em; line-height: 1.02; }
:is(.aicast-blocks, .editor-styles-wrapper) h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
:is(.aicast-blocks, .editor-styles-wrapper) h3 { font-size: 1.22rem; letter-spacing: -.015em; }
:is(.aicast-blocks, .editor-styles-wrapper) p { margin: 0 0 1em; }
:is(.aicast-blocks, .editor-styles-wrapper) a { color: var(--aicast-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:is(.aicast-blocks, .editor-styles-wrapper) a:hover { color: var(--aicast-navy); }
:is(.aicast-blocks, .editor-styles-wrapper) :is(h1, h2, h3) a { color: inherit; text-decoration: none; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.wp-block-list { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.wp-block-list li { margin: .3em 0; }
:is(.aicast-blocks, .editor-styles-wrapper) strong { color: var(--aicast-ink); font-weight: 750; }

.aicast-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: .76rem !important;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--aicast-blue);
	margin-bottom: 1.1em !important;
}
.aicast-eyebrow::before {
	content: "";
	flex: none;
	width: 34px;
	height: 12px;
	background:
		linear-gradient(var(--aicast-red), var(--aicast-red)) 0 0 / 9px 100% no-repeat,
		linear-gradient(var(--aicast-blue), var(--aicast-blue)) 13px 0 / 9px 100% no-repeat,
		linear-gradient(var(--aicast-navy), var(--aicast-navy)) 26px 0 / 8px 100% no-repeat;
	transform: skewX(var(--aicast-skew));
}
.aicast-eyebrow a { color: inherit !important; text-decoration: none !important; }
.aicast-eyebrow a:hover { text-decoration: underline !important; }

.aicast-lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--aicast-ink); font-weight: 500; max-width: 620px; }
.aicast-lead-sm { font-size: 1.2rem; line-height: 1.6; color: var(--aicast-navy); font-weight: 650; }
.aicast-section-intro { color: var(--aicast-muted); font-size: 1.08rem; max-width: 720px; margin-bottom: 2.2em !important; }
.aicast-label {
	font-size: .72rem !important;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--aicast-muted);
	margin-bottom: .4em !important;
}
.aicast-note { margin-top: 2em; padding: 18px 22px; border-radius: 12px; background: var(--aicast-sky); color: var(--aicast-ink); font-weight: 600; }
.aicast-empty { color: var(--aicast-muted); font-style: italic; }

/* ---------- Sezioni e fasce ---------- */
.aicast-section { padding-top: 96px; padding-bottom: 96px; }
.aicast-section-tight { padding-top: 56px; }
.aicast-band { padding-top: 96px; padding-bottom: 96px; position: relative; }
.aicast-band-sky { background: var(--aicast-sky); }
.aicast-band-sky::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0 calc(100% - 220px), rgba(10, 120, 199, .06) calc(100% - 220px) calc(100% - 140px), transparent 0);
	transform: skewX(var(--aicast-skew));
	pointer-events: none;
}
.aicast-band-navy {
	color: #d6e4f1;
	background:
		radial-gradient(1200px 500px at 90% -20%, rgba(25, 169, 219, .28), transparent 60%),
		linear-gradient(135deg, var(--aicast-deep) 0%, var(--aicast-navy) 55%, #0a4f8f 100%);
	overflow: hidden;
}
.aicast-band-navy::before,
.aicast-band-navy::after {
	content: "";
	position: absolute;
	top: -10%;
	bottom: -10%;
	transform: skewX(var(--aicast-skew));
	pointer-events: none;
}
.aicast-band-navy::before { right: 9%; width: 120px; background: linear-gradient(180deg, rgba(10, 120, 199, .35), rgba(10, 120, 199, .05)); }
.aicast-band-navy::after { right: calc(9% + 150px); width: 22px; background: linear-gradient(180deg, rgba(230, 30, 58, .85), rgba(230, 30, 58, .15)); }
.aicast-band-navy > * { position: relative; z-index: 1; }
.aicast-band-navy :is(h1, h2, h3, strong) { color: #fff; }
.aicast-band-navy .aicast-eyebrow { color: #8fd0f5; }
.aicast-band-navy a:not(.wp-block-button__link) { color: #fff; }

/* ---------- Hero ---------- */
.aicast-page-hero {
	position: relative;
	overflow: hidden;
	padding-top: 80px;
	padding-bottom: 104px;
	background:
		radial-gradient(900px 420px at 100% 0%, rgba(25, 169, 219, .16), transparent 60%),
		linear-gradient(180deg, #f5fafd 0%, #fff 78%);
	border-bottom: 1px solid var(--aicast-line);
}
.aicast-page-hero::before {
	content: "";
	position: absolute;
	right: -60px;
	top: -40px;
	bottom: -40px;
	width: 44%;
	background: linear-gradient(180deg, rgba(10, 120, 199, .10), rgba(10, 120, 199, .02));
	transform: skewX(var(--aicast-skew));
	pointer-events: none;
}
.aicast-page-hero > * { position: relative; z-index: 1; }
.aicast-hero-cols { gap: 64px !important; align-items: center !important; }
.aicast-hero-title { margin-bottom: .32em !important; }
.aicast-hero-title::after {
	content: "";
	display: block;
	width: 72px;
	height: 5px;
	margin-top: .32em;
	background: linear-gradient(90deg, var(--aicast-red) 0 40%, transparent 40% 52%, var(--aicast-blue) 52% 100%);
	transform: skewX(var(--aicast-skew));
	border-radius: 1px;
}
.aicast-hero-img { margin: 0; position: relative; }
.aicast-hero-img::before {
	content: "";
	position: absolute;
	left: -22px;
	bottom: -22px;
	width: 46%;
	height: 46%;
	background: var(--aicast-red);
	transform: skewX(var(--aicast-skew));
	border-radius: 6px;
	z-index: 0;
}
.aicast-hero-img::after {
	content: "";
	position: absolute;
	right: -18px;
	top: -18px;
	width: 34%;
	height: 34%;
	background: var(--aicast-blue);
	transform: skewX(var(--aicast-skew));
	border-radius: 6px;
	opacity: .9;
	z-index: 0;
}
.aicast-hero-img img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 22px;
	box-shadow: var(--aicast-shadow-lg);
	display: block;
}
.aicast-territory-head { padding: 0 0 8px; }

@media (prefers-reduced-motion: no-preference) {
	.aicast-blocks .aicast-page-hero .wp-block-column { animation: aicast-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.aicast-blocks .aicast-page-hero .wp-block-column + .wp-block-column { animation-delay: .12s; }
	@keyframes aicast-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- Pulsanti (blocco Pulsanti) ---------- */
:is(.aicast-blocks, .editor-styles-wrapper) .wp-block-buttons { gap: 12px; margin-top: 1.6em; }
:is(.aicast-blocks, .editor-styles-wrapper) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 50px;
	padding: 13px 26px;
	border-radius: 999px;
	background: var(--aicast-navy);
	color: #fff !important;
	border: 2px solid var(--aicast-navy);
	font-family: var(--aicast-font);
	font-weight: 800;
	font-size: .95rem;
	letter-spacing: .005em;
	text-decoration: none !important;
	box-shadow: 0 10px 22px rgba(6, 61, 114, .2);
	transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
:is(.aicast-blocks, .editor-styles-wrapper) .wp-block-button__link::after { content: "→"; font-weight: 700; transition: transform .18s; }
:is(.aicast-blocks, .editor-styles-wrapper) .wp-block-button__link:hover { transform: translateY(-2px); background: var(--aicast-navy-2); box-shadow: 0 14px 28px rgba(6, 61, 114, .28); }
:is(.aicast-blocks, .editor-styles-wrapper) .wp-block-button__link:hover::after { transform: translateX(3px); }
:is(.aicast-blocks, .editor-styles-wrapper) .is-style-outline .wp-block-button__link { background: #fff; color: var(--aicast-navy) !important; border-color: #b9cfe2; box-shadow: none; }
:is(.aicast-blocks, .editor-styles-wrapper) .is-style-outline .wp-block-button__link:hover { border-color: var(--aicast-navy); }
:is(.aicast-blocks, .editor-styles-wrapper) .aicast-btn-red .wp-block-button__link { background: var(--aicast-red); border-color: var(--aicast-red); box-shadow: 0 10px 24px rgba(230, 30, 58, .32); }
:is(.aicast-blocks, .editor-styles-wrapper) .aicast-btn-red .wp-block-button__link:hover { background: var(--aicast-red-dark); border-color: var(--aicast-red-dark); }
:is(.aicast-blocks, .editor-styles-wrapper) .aicast-btn-whatsapp .wp-block-button__link::after { content: none; }
:is(.aicast-blocks, .editor-styles-wrapper) .aicast-btn-whatsapp .wp-block-button__link::before {
	content: "";
	width: 18px;
	height: 18px;
	background: #1fa855;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.3-3.9A8 8 0 1 1 8 19z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.3-3.9A8 8 0 1 1 8 19z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aicast-band-navy .is-style-outline .wp-block-button__link { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .5) !important; }
.aicast-band-navy .is-style-outline .wp-block-button__link:hover { border-color: #fff !important; background: rgba(255, 255, 255, .08) !important; }

/* ---------- Card e griglie ---------- */
.aicast-grid { gap: 24px !important; margin-bottom: 24px !important; }
.aicast-grid:last-child { margin-bottom: 0 !important; }
.aicast-grid > .wp-block-column:empty { visibility: hidden; }
.aicast-card {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--aicast-line);
	border-radius: var(--aicast-radius);
	padding: 30px 28px 26px;
	box-shadow: var(--aicast-shadow);
	overflow: hidden;
	transition: transform .22s, box-shadow .22s, border-color .22s;
}
.aicast-card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--aicast-red) 0 18%, var(--aicast-blue) 18% 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
}
.aicast-card:hover { transform: translateY(-5px); box-shadow: var(--aicast-shadow-lg); border-color: #c5d9ea; }
.aicast-card:hover::before { transform: scaleX(1); }
.aicast-card > :last-child { margin-bottom: 0; }
.aicast-card-flat { background: #fff; }
.aicast-card-flat::before { transform: scaleX(1); }
.aicast-card-flat:hover { transform: none; }
.aicast-card-title { font-size: 1.24rem !important; margin-bottom: .5em !important; }
.aicast-card-text { color: var(--aicast-muted); font-size: .98rem; line-height: 1.62; }
.aicast-card-kicker { display: inline-block; font-size: .7rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--aicast-blue); background: #e7f2fa; padding: 5px 11px; border-radius: 999px; margin-bottom: 1em !important; }
.aicast-card-link { margin: 0 !important; font-weight: 800; }
.aicast-card-link a { text-decoration: none !important; color: var(--aicast-navy) !important; }
.aicast-card-link-card:hover .aicast-card-link a { color: var(--aicast-red) !important; }
.aicast-card-contacts { margin-top: 1.2em; padding-top: 1em; border-top: 1px dashed var(--aicast-line); font-weight: 700; font-size: .95rem; }
.aicast-acronym {
	font-size: 2.6rem !important;
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1;
	color: var(--aicast-navy);
	margin-bottom: .45em !important;
	display: flex;
	align-items: flex-end;
	gap: 12px;
}
.aicast-acronym::after { content: ""; width: 26px; height: 9px; margin-bottom: 7px; background: var(--aicast-red); transform: skewX(var(--aicast-skew)); }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-checklist { list-style: none; padding: 1em 0 0; margin: 1.2em 0 0; border-top: 1px solid var(--aicast-line); columns: 1; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-checklist li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--aicast-ink); break-inside: avoid; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-checklist li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2.5px solid #159b5c; border-bottom: 2.5px solid #159b5c; transform: rotate(-45deg); }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-roles { list-style: none; padding: 0; margin: .4em 0 0; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-roles li { padding: .6em 0; border-bottom: 1px solid var(--aicast-line); font-size: .96rem; line-height: 1.5; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-roles li:last-child { border-bottom: 0; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-roles li strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--aicast-blue); margin-bottom: 2px; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-facts { list-style: none; padding: 0; margin: 0; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-facts li { display: block; padding: .8em 0; border-bottom: 1px solid var(--aicast-line); color: var(--aicast-ink); font-weight: 600; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-facts li strong { display: block; margin-bottom: 2px; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-facts li:last-child { border-bottom: 0; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-facts li strong { font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; color: var(--aicast-muted); }

/* Struttura: passi collegati da una linea */
.aicast-steps { gap: 18px !important; position: relative; }
.aicast-steps::before { content: ""; position: absolute; left: 40px; right: 40px; top: 49px; height: 2px; background: repeating-linear-gradient(90deg, #b9cfe2 0 8px, transparent 8px 14px); }
.aicast-step { padding: 28px 22px 24px; }
.aicast-step-num {
	position: relative;
	z-index: 1;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	font-size: .86rem !important;
	font-weight: 800;
	color: #fff;
	background: var(--aicast-navy);
	border-radius: 12px;
	transform: skewX(-8deg);
	box-shadow: 0 8px 18px rgba(6, 61, 114, .25);
	margin-bottom: 1.1em !important;
}
.aicast-step:nth-child(1) .aicast-step-num { background: var(--aicast-red); }
.aicast-steps > .wp-block-column:first-child .aicast-step-num { background: var(--aicast-red); }
.aicast-step .aicast-card-title { font-size: 1.06rem !important; }

/* Numeri */
.aicast-stats { gap: 28px !important; }
.aicast-stat { padding-left: 24px; position: relative; }
.aicast-stat::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: linear-gradient(180deg, var(--aicast-red), rgba(230, 30, 58, .2)); transform: skewX(var(--aicast-skew)); }
.aicast-stat-num { font-size: clamp(2.8rem, 5vw, 4rem) !important; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.045em; margin-bottom: .22em !important; }
.aicast-stat-label { color: #c9dcee; font-weight: 600; margin: 0 !important; max-width: 220px; line-height: 1.45; }

.aicast-split { gap: 72px !important; }
.aicast-rounded { position: relative; margin: 0; }
.aicast-rounded::before { content: ""; position: absolute; right: -18px; bottom: -18px; width: 40%; height: 40%; background: var(--aicast-blue); transform: skewX(var(--aicast-skew)); border-radius: 6px; z-index: 0; }
.aicast-rounded img { position: relative; z-index: 1; border-radius: 20px; box-shadow: var(--aicast-shadow-lg); width: 100%; height: auto; display: block; }

/* CTA */
.aicast-cta { padding-top: 72px; padding-bottom: 72px; }
.aicast-cta-cols { align-items: center !important; gap: 40px !important; }
.aicast-cta-title { color: #fff !important; margin-bottom: .35em !important; font-size: clamp(1.7rem, 3vw, 2.3rem) !important; }
.aicast-cta-text { color: #c9dcee; margin: 0 !important; font-size: 1.08rem; max-width: 620px; }
:is(.aicast-blocks, .editor-styles-wrapper) .aicast-cta-buttons { justify-content: flex-end; margin-top: 0; }

/* ---------- Scheda sede ---------- */
.aicast-sede-info { padding-top: 0 !important; padding-bottom: 0 !important; }
.aicast-info-grid {
	gap: 0 !important;
	margin-top: -52px !important;
	position: relative;
	z-index: 3;
	background: #fff;
	border: 1px solid var(--aicast-line);
	border-radius: 18px;
	box-shadow: var(--aicast-shadow-lg);
	overflow: hidden;
}
.aicast-info { position: relative; padding: 26px 24px 24px 76px; border-right: 1px solid var(--aicast-line); }
.aicast-info:last-child { border-right: 0; }
.aicast-info p { margin: 0 !important; }
.aicast-info-value { font-weight: 700; color: var(--aicast-ink); overflow-wrap: anywhere; line-height: 1.45; }
.aicast-info-value a { color: var(--aicast-ink); text-decoration: none; }
.aicast-info-value a:hover { color: var(--aicast-blue); text-decoration: underline; }
.aicast-info::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 26px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #fdecef var(--ico) center / 20px no-repeat;
}
.aicast-ico-pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e61e3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.aicast-ico-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e61e3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.aicast-ico-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e61e3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.aicast-ico-clock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e61e3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

.aicast-leaders { gap: 40px !important; }
.aicast-president {
	position: relative;
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
	color: #d6e4f1;
	background:
		radial-gradient(500px 260px at 100% 0%, rgba(25, 169, 219, .35), transparent 60%),
		linear-gradient(150deg, var(--aicast-deep), var(--aicast-navy));
	border-radius: 20px;
	padding: 34px 32px 30px;
	box-shadow: var(--aicast-shadow-lg);
}
.aicast-president::before {
	content: "";
	display: block;
	width: 64px;
	height: 64px;
	margin-bottom: 22px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / 30px no-repeat;
	border: 1px solid rgba(255, 255, 255, .18);
}
.aicast-president::after {
	content: "";
	position: absolute;
	right: 28px;
	top: -20px;
	width: 30px;
	height: 140px;
	background: var(--aicast-red);
	transform: skewX(var(--aicast-skew));
	opacity: .9;
}
.aicast-president .aicast-label { color: #8fd0f5; }
.aicast-president .aicast-person-name { color: #fff !important; font-size: 1.85rem !important; margin-bottom: .4em !important; }
.aicast-president ul.aicast-roles li { border-color: rgba(255, 255, 255, .14); color: #e3edf6; }
.aicast-president ul.aicast-roles li strong { color: #8fd0f5; }
.aicast-small-title { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--aicast-muted) !important; margin-bottom: 1.1em !important; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-namelist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
	counter-reset: aicast-n;
}
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-namelist li {
	counter-increment: aicast-n;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--aicast-line);
	border-radius: 12px;
	font-weight: 700;
	color: var(--aicast-ink);
	line-height: 1.3;
	transition: border-color .18s, box-shadow .18s;
}
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-namelist li:hover { border-color: #b9cfe2; box-shadow: var(--aicast-shadow); }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-namelist li::before {
	content: counter(aicast-n, decimal-leading-zero);
	flex: none;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--aicast-sky);
	color: var(--aicast-blue);
	font-size: .78rem;
	font-weight: 800;
}
.aicast-contact-cols { gap: 48px !important; }

/* News */
.aicast-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.aicast-news-card { background: #fff; border: 1px solid var(--aicast-line); border-radius: var(--aicast-radius); overflow: hidden; box-shadow: var(--aicast-shadow); display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
.aicast-news-card:hover { transform: translateY(-5px); box-shadow: var(--aicast-shadow-lg); }
.aicast-news-img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--aicast-blue), var(--aicast-navy)) center / cover no-repeat; }
.aicast-news-body { padding: 20px 22px 22px; }
.aicast-news-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--aicast-navy); background: #e3eff8; padding: 5px 11px; border-radius: 999px; }
.aicast-news-tag.is-local { color: #fff; background: var(--aicast-red); }
.aicast-news-body h3 { font-size: 1.1rem !important; margin: .8em 0 .45em !important; line-height: 1.32; }
.aicast-news-body h3 a { text-decoration: none; color: var(--aicast-navy); }
.aicast-news-body h3 a:hover { color: var(--aicast-blue); }
.aicast-news-date { margin: 0 !important; color: var(--aicast-muted); font-size: .88rem; }

/* Modulo */
.aicast-form { position: relative; background: #fff; border: 1px solid var(--aicast-line); border-radius: 20px; padding: 32px; box-shadow: var(--aicast-shadow-lg); }
.aicast-form::before { content: ""; position: absolute; left: 32px; top: -1px; width: 80px; height: 4px; background: linear-gradient(90deg, var(--aicast-red) 0 35%, var(--aicast-blue) 35%); border-radius: 0 0 4px 4px; }
.aicast-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.aicast-form-grid p { margin: 0 0 16px; }
.aicast-form-grid .is-wide { grid-column: 1 / -1; }
.aicast-form label { display: block; font-weight: 700; font-size: .88rem; color: var(--aicast-ink); margin-bottom: 7px; }
.aicast-form :is(input[type=text], input[type=email], input[type=tel], select, textarea) {
	width: 100%;
	box-sizing: border-box;
	min-height: 50px;
	padding: 11px 15px;
	border: 1.5px solid #c3d4e3;
	border-radius: 12px;
	font: inherit;
	font-family: var(--aicast-font);
	color: var(--aicast-ink);
	background: #fbfdfe;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.aicast-form textarea { min-height: 128px; resize: vertical; }
.aicast-form :is(input, select, textarea):focus { outline: none; border-color: var(--aicast-blue); background: #fff; box-shadow: 0 0 0 4px rgba(10, 120, 199, .16); }
.aicast-form .aicast-check { display: flex; gap: 12px; align-items: flex-start; }
.aicast-form .aicast-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--aicast-navy); }
.aicast-form .aicast-check label { font-weight: 500; font-size: .88rem; color: var(--aicast-muted); margin: 0; }
.aicast-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.aicast-submit {
	width: 100%;
	min-height: 54px;
	border: 0;
	border-radius: 999px;
	background: var(--aicast-red);
	color: #fff;
	font: inherit;
	font-family: var(--aicast-font);
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(230, 30, 58, .3);
	transition: background .18s, transform .18s;
}
.aicast-submit:hover { background: var(--aicast-red-dark); transform: translateY(-1px); }
.aicast-form-msg { padding: 14px 18px; border-radius: 12px; font-weight: 700; margin-bottom: 20px !important; }
.aicast-form-msg.is-ok { background: #e3f5ec; color: #0f6b41; }
.aicast-form-msg.is-err { background: #fde8eb; color: #a3112a; }

/* Mappa della sede */
.aicast-map-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--aicast-line); box-shadow: var(--aicast-shadow-lg); margin-bottom: 26px; background: #e8f1f7; }
.aicast-map-single { width: 100%; }
:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-map-directions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; font-weight: 800; color: var(--aicast-navy); text-decoration: none; background: #fff; border-top: 1px solid var(--aicast-line); }
.aicast-map-directions svg, .aicast-finder-link svg { transition: transform .18s; }
.aicast-map-directions:hover svg, .aicast-finder-link:hover svg { transform: translateX(3px); }

/* Segnaposto sulla mappa */
.aicast-pin span {
	display: block;
	width: 22px;
	height: 22px;
	margin: 3px auto 0;
	background: var(--aicast-navy);
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 4px 10px rgba(4, 42, 80, .4);
	box-sizing: border-box;
	transition: background .15s;
}
.aicast-pin.is-active span { background: var(--aicast-red); width: 28px; height: 28px; margin-top: 0; }
.leaflet-container { font-family: var(--aicast-font); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--aicast-shadow-lg); }
.leaflet-popup-content { font-size: 14px; line-height: 1.5; margin: 14px 18px; }
.leaflet-popup-content strong { color: var(--aicast-navy); font-size: 15px; }
.leaflet-popup-content a { font-weight: 800; color: var(--aicast-blue); }

/* ---------- Trova la sede ---------- */
.aicast-finder { position: relative; }
.aicast-finder-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.aicast-finder-searchbox {
	flex: 1 1 380px;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 0 22px;
	background: #fff;
	border: 1.5px solid #c3d4e3;
	border-radius: 999px;
	color: var(--aicast-blue);
	box-shadow: var(--aicast-shadow);
	transition: border-color .15s, box-shadow .15s;
}
.aicast-finder-searchbox:focus-within { border-color: var(--aicast-blue); box-shadow: 0 0 0 4px rgba(10, 120, 199, .16), var(--aicast-shadow); }
.aicast-finder-search { flex: 1; min-width: 0; border: 0 !important; outline: none !important; box-shadow: none !important; font: inherit; font-family: var(--aicast-font); font-size: 1.05rem; font-weight: 600; color: var(--aicast-ink); background: transparent !important; padding: 0 !important; min-height: 0 !important; }
.aicast-finder-search::placeholder { color: #7b90a3; font-weight: 500; }
.aicast-finder-geo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 60px;
	padding: 0 26px;
	border-radius: 999px;
	border: 0;
	background: var(--aicast-navy);
	color: #fff;
	font: inherit;
	font-family: var(--aicast-font);
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(6, 61, 114, .22);
	transition: background .18s, transform .18s;
}
.aicast-finder-geo:hover { background: var(--aicast-navy-2); transform: translateY(-1px); }
.aicast-finder-geo[disabled] { opacity: .75; cursor: progress; }
.aicast-finder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.aicast-chip {
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1.5px solid #c9d9e7;
	background: #fff;
	color: var(--aicast-ink);
	font: inherit;
	font-family: var(--aicast-font);
	font-size: .86rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}
.aicast-chip:hover { border-color: var(--aicast-navy); }
.aicast-chip[aria-pressed=true] { background: var(--aicast-navy); border-color: var(--aicast-navy); color: #fff; }
.aicast-finder-count { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--aicast-navy); margin: 0 0 14px !important; }
.aicast-finder-count::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--aicast-red); box-shadow: 0 0 0 4px rgba(230, 30, 58, .15); }
.aicast-finder-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.aicast-finder-list { flex: 1 1 380px; min-width: 0; max-height: 680px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px 8px 8px 2px; scrollbar-width: thin; scrollbar-color: #b9cfe2 transparent; }
.aicast-finder-mapwrap { flex: 999 1 500px; min-width: 0; position: relative; }
.aicast-finder-map { height: 680px; border-radius: 20px; overflow: hidden; border: 1px solid var(--aicast-line); box-shadow: var(--aicast-shadow-lg); background: #e8f1f7; position: sticky; top: 20px; }
.aicast-finder-card { position: relative; background: #fff; border: 1.5px solid var(--aicast-line); border-radius: 16px; padding: 18px 20px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.aicast-finder-card::before { content: ""; position: absolute; left: -1.5px; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--aicast-red); opacity: 0; transition: opacity .18s; }
.aicast-finder-card[hidden] { display: none; }
.aicast-finder-card:hover { border-color: #b9d3e8; box-shadow: var(--aicast-shadow); }
.aicast-finder-card.is-active { border-color: var(--aicast-navy); box-shadow: var(--aicast-shadow-lg); }
.aicast-finder-card.is-active::before { opacity: 1; }
.aicast-finder-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.aicast-finder-card h3 { font-size: 1.07rem !important; margin: 0 !important; line-height: 1.3; }
.aicast-finder-card h3 a { text-decoration: none; color: var(--aicast-navy); }
.aicast-finder-card h3 a:hover { color: var(--aicast-blue); text-decoration: underline; }
.aicast-finder-pin { width: 44px; height: 44px; flex: none; margin: -10px -10px 0 0; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--aicast-red); cursor: pointer; transition: background .15s; }
.aicast-finder-pin:hover { background: #fdecef; }
.aicast-finder-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px !important; font-size: .72rem; font-weight: 800; color: var(--aicast-blue); text-transform: uppercase; letter-spacing: .09em; }
.aicast-finder-dist { color: var(--aicast-red); }
.aicast-finder-addr { margin: 0 0 12px !important; color: var(--aicast-muted); font-size: .95rem; line-height: 1.45; }
.aicast-finder-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 !important; padding-top: 12px; border-top: 1px dashed var(--aicast-line); font-size: .92rem; }
:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-finder-link,
:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-finder-tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; color: var(--aicast-navy); min-height: 32px; }
:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-finder-tel { font-weight: 600; color: var(--aicast-muted); }
.aicast-finder-link svg, .aicast-finder-tel svg { width: 16px; height: 16px; }
.aicast-finder-empty { padding: 20px; border: 1.5px dashed #b8cadb; border-radius: 16px; color: var(--aicast-muted); margin: 0 !important; }

/* ---------- Percorso e barra mobile (scheda sede) ---------- */
.aicast-breadcrumb { background: #fff; border-bottom: 1px solid var(--aicast-line); font-size: .85rem; }
.aicast-breadcrumb-inner { max-width: 1240px; margin: 0 auto; padding: 13px 28px; display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--aicast-muted); font-family: var(--aicast-font); }
.aicast-breadcrumb a { color: var(--aicast-blue); text-decoration: none; font-weight: 700; }
.aicast-breadcrumb a:hover { text-decoration: underline; }
.aicast-breadcrumb [aria-current] { color: var(--aicast-ink); font-weight: 700; }
.aicast-mobile-bar { display: none; }

/* ==========================================================================
   Editor a blocchi: larghezza, fasce a tutta larghezza, anteprime
   ========================================================================== */
.editor-styles-wrapper .is-root-container > .wp-block:not([data-align=full]),
.editor-styles-wrapper .wp-block-post-content > .wp-block:not([data-align=full]) { max-width: 1240px !important; }
.editor-styles-wrapper .is-root-container > .wp-block[data-align=full] { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.editor-styles-wrapper .wp-block-group.alignfull { padding-left: 28px; padding-right: 28px; }
.editor-styles-wrapper .aicast-page-hero .wp-block-column { animation: none !important; }
.editor-styles-wrapper .aicast-map-single,
.editor-styles-wrapper .aicast-finder-map {
	display: grid;
	place-items: center;
	background:
		repeating-linear-gradient(45deg, rgba(10, 120, 199, .06) 0 12px, transparent 12px 24px),
		#eaf3f9;
}
.editor-styles-wrapper .aicast-map-single::after,
.editor-styles-wrapper .aicast-finder-map::after {
	content: "Mappa interattiva – visibile sul sito";
	font-weight: 800;
	color: var(--aicast-navy);
	background: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	box-shadow: var(--aicast-shadow);
}
.editor-styles-wrapper .aicast-finder-list { max-height: 420px; }
.aicast-ssr-preview { pointer-events: none; }
.aicast-editor-placeholder .components-placeholder { min-height: 140px; border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.aicast-info-grid { flex-wrap: wrap !important; }
	.aicast-info-grid > .aicast-info { flex: 1 1 50% !important; border-bottom: 1px solid var(--aicast-line); }
	.aicast-steps { flex-wrap: wrap !important; }
	.aicast-steps::before { display: none; }
	.aicast-steps > .wp-block-column { flex: 1 1 30% !important; }
	.aicast-hero-cols, .aicast-split { gap: 44px !important; }
}
@media (max-width: 781px) {
	.aicast-blocks > *:not(.alignfull), .aicast-blocks > .alignfull, .aicast-blocks .wp-block-group.alignfull { padding-left: 18px; padding-right: 18px; }
	.aicast-section, .aicast-band { padding-top: 60px; padding-bottom: 60px; }
	.aicast-page-hero { padding-top: 40px; padding-bottom: 80px; }
	.aicast-page-hero::before { width: 70%; opacity: .6; }
	.aicast-hero-img::before { left: -10px; bottom: -10px; }
	.aicast-hero-img::after { right: -8px; top: -8px; }
	.aicast-hero-cols, .aicast-split, .aicast-contact-cols, .aicast-leaders { gap: 34px !important; }
	.aicast-info-grid > .aicast-info { flex-basis: 100% !important; border-right: 0; }
	.aicast-info-grid { margin-top: -44px !important; }
	.aicast-grid > .wp-block-column:empty { display: none; }
	.aicast-steps > .wp-block-column { flex-basis: 100% !important; }
	.aicast-band-navy::before { right: -20px; }
	.aicast-band-navy::after { right: 120px; }
	:is(.aicast-blocks, .editor-styles-wrapper) .aicast-cta-buttons { justify-content: flex-start; }
	.aicast-form { padding: 22px; }
	.aicast-form-grid { grid-template-columns: 1fr; }
	.aicast-finder-list { max-height: none; overflow: visible; order: 2; }
	.aicast-finder-mapwrap { order: 1; flex-basis: 100%; }
	.aicast-finder-map { height: 360px; position: relative; top: 0; }
	.aicast-finder-geo { flex: 1 1 100%; justify-content: center; }
	.aicast-breadcrumb-inner { padding: 11px 18px; }
	.aicast-sede { padding-bottom: 80px; }
	.aicast-mobile-bar {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		gap: 8px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		backdrop-filter: blur(8px);
		border-top: 1px solid var(--aicast-line);
		box-shadow: 0 -8px 22px rgba(6, 61, 114, .12);
		font-family: var(--aicast-font);
	}
	.aicast-mobile-bar a { display: grid; place-items: center; min-height: 50px; border-radius: 14px; background: var(--aicast-sky); color: var(--aicast-navy); font-weight: 800; text-decoration: none; }
	.aicast-mobile-bar a.is-primary { background: var(--aicast-red); color: #fff; }
}
/* ==========================================================================
   Documenti e allegati
   ========================================================================== */
.aicast-docs { padding-top: 72px; padding-bottom: 72px; }
.aicast-docs-title { margin-bottom: 1.1em !important; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-docs-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.aicast-doc { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--aicast-line); border-radius: 16px; box-shadow: var(--aicast-shadow); transition: border-color .18s, box-shadow .18s, transform .18s; }
.aicast-doc:hover { border-color: #b9cfe2; box-shadow: var(--aicast-shadow-lg); transform: translateY(-2px); }
.aicast-doc-ico { flex: none; width: 52px; height: 60px; display: grid; place-items: end center; padding-bottom: 9px; box-sizing: border-box; border-radius: 8px 16px 8px 8px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--aicast-navy); position: relative; }
.aicast-doc-ico::before { content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: rgba(255, 255, 255, .35); border-radius: 0 16px 0 6px; }
.aicast-doc-ico.is-pdf { background: #d42a3c; }
.aicast-doc-ico.is-doc { background: #1f5fbf; }
.aicast-doc-ico.is-xls { background: #1b7f4a; }
.aicast-doc-ico.is-ppt { background: #c4561b; }
.aicast-doc-ico.is-img { background: #6a4bb3; }
.aicast-doc-ico.is-zip { background: #5b6b7a; }
.aicast-doc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-doc-name { font-weight: 800; color: var(--aicast-navy); text-decoration: none; line-height: 1.35; overflow-wrap: anywhere; }
:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-doc-name:hover { color: var(--aicast-blue); text-decoration: underline; }
.aicast-doc-desc { color: var(--aicast-muted); font-size: .9rem; line-height: 1.45; }
.aicast-doc-meta { color: var(--aicast-muted); font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-doc-dl { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--aicast-sky); color: var(--aicast-navy); font-weight: 800; font-size: .88rem; text-decoration: none; transition: background .18s, color .18s; }
:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-doc-dl:hover { background: var(--aicast-navy); color: #fff; }
.aicast-docs-editor .components-placeholder { border-radius: 14px; }
.aicast-docs-editor-bar { margin-top: 12px; }

/* ==========================================================================
   Federazioni, categorie, convenzioni
   ========================================================================== */
.aicast-card-meta { font-size: .78rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aicast-blue); margin: .6em 0 1em !important; }
.aicast-card-note { margin-top: 1.1em !important; padding: 12px 14px; border-radius: 12px; background: var(--aicast-sky); color: var(--aicast-ink); font-size: .9rem; font-weight: 600; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-namelist.is-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; margin-bottom: 1em; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-namelist.is-compact li { padding: 9px 12px; font-size: .9rem; font-weight: 650; gap: 10px; background: var(--aicast-sky); border-color: transparent; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-namelist.is-compact li::before { width: 26px; height: 26px; font-size: .7rem; background: #fff; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0 28px; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-roles-grid li:last-child { border-bottom: 1px solid var(--aicast-line); }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-checklist-cols { columns: 3 240px; column-gap: 32px; border-top: 0; padding-top: 0; }
:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-checklist-cols li { margin: 0 0 .7em; break-inside: avoid; }
.aicast-cat .aicast-card-title { font-size: 1.32rem !important; }
.aicast-monogram {
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	margin-bottom: 1.1em !important;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--aicast-navy), var(--aicast-blue));
	color: #fff;
	font-size: 1.05rem !important;
	font-weight: 800;
	letter-spacing: -.02em;
	box-shadow: 0 10px 22px rgba(6, 61, 114, .22);
	position: relative;
	overflow: hidden;
}
.aicast-monogram::after { content: ""; position: absolute; right: 8px; top: -6px; width: 8px; height: 30px; background: var(--aicast-red); transform: skewX(var(--aicast-skew)); }
.aicast-conv-features { align-items: stretch !important; }
.aicast-conv-feature { padding: 34px 30px 30px; }
.aicast-conv-feature .aicast-monogram { width: 66px; height: 66px; font-size: 1.2rem !important; }
.aicast-conv-feature ul.aicast-checklist { border-top: 0; padding-top: 0; }
.aicast-partner { text-align: left; }
.aicast-partner .aicast-card-title { font-size: 1.08rem !important; margin-bottom: .35em !important; }
.aicast-partner .aicast-card-kicker { margin-bottom: .8em !important; }
.aicast-partner .aicast-card-text { font-size: .9rem; }

/* Griglie: su tablet passano a 2 colonne, su smartphone a 1, senza perdere contenuti */
@media (max-width: 1024px) {
	.aicast-grid { flex-wrap: wrap !important; }
	.aicast-grid > .wp-block-column { flex: 1 1 calc(50% - 12px) !important; min-width: 0; }
	.aicast-grid > .wp-block-column:empty { display: none; }
	.aicast-conv-features > .wp-block-column { flex-basis: 100% !important; }
}
@media (max-width: 781px) {
	.aicast-grid > .wp-block-column { flex-basis: 100% !important; }
	.aicast-docs { padding-top: 48px; padding-bottom: 48px; }
	.aicast-doc { flex-wrap: wrap; }
	.aicast-doc-body { flex-basis: calc(100% - 70px); }
	:is(.aicast-blocks, .editor-styles-wrapper) a.aicast-doc-dl { margin-left: 68px; }
	.aicast-card { padding: 24px 20px 20px; }
	.aicast-acronym { font-size: 2.2rem !important; }
	:is(.aicast-blocks, .editor-styles-wrapper) ul.aicast-checklist-cols { columns: 1; }
	.aicast-president { padding: 28px 24px 24px; }
	.aicast-president .aicast-person-name { font-size: 1.55rem !important; }
	:is(.aicast-blocks, .editor-styles-wrapper) .wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
	:is(.aicast-blocks, .editor-styles-wrapper) .wp-block-buttons .wp-block-button__link { width: 100%; justify-content: center; box-sizing: border-box; }
	.aicast-stats { flex-wrap: wrap !important; }
	.aicast-stats > .wp-block-column { flex: 1 1 calc(50% - 14px) !important; }
}

@media (prefers-reduced-motion: reduce) {
	.aicast-blocks *, .aicast-finder * { transition: none !important; animation: none !important; }
}
