/*
 * ALI Blocks — shared component CSS (base.css)
 *
 * Extracted from themes/ali/assets/css/ali-base.css:
 *   - .ali-label          (~lines 213–234)
 *   - .cs-label           (~lines 236–245)
 *   - .ali-heading        (~lines 343–354)
 *   - .ali-btn (all variants used by the 5 blocks) (~lines 356–461)
 *   - .cs-image-text (full block) (~lines 1220–1364)
 *
 * All --ali-* variables and bare brand color literals are replaced with
 * the --block-* token convention defined in tokens.css.
 * Reveal rules (.reveal / .cs-reveal / .sc-reveal) ARE included but gated
 * on the .ali-reveal-ready root class that base.js adds before observing,
 * so elements stay fully visible when JS is disabled or missing.
 */

/* ── Section label ───────────────────────────────── */
.ali-label {
	font-family: var(--block-font-body, 'Karla', sans-serif);
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .15em;
	color: var(--block-accent-text, var(--block-accent, #3DAABD));
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ali-label::before {
	content: '';
	width: 24px;
	height: 2px;
	background: var(--block-accent, #3DAABD);
	border-radius: 1px;
}
.ali-label--no-line::before { display: none; }

/* ── cs-label (block variant) ───────────────────── */
.cs-label {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .8rem; font-weight: 600; letter-spacing: .15em;
	text-transform: uppercase; color: var(--block-accent-text, var(--block-accent, #3DAABD));
}
.cs-label::before {
	content: ''; width: 28px; height: 2px;
	background: var(--block-accent, #3DAABD); border-radius: 2px;
}

/* ── Section heading ─────────────────────────────── */
.ali-heading {
	font-family: var(--block-font-heading, 'DM Serif Display', Georgia, serif);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: var(--block-heading-weight, 400);
	color: var(--block-heading-color, var(--block-dark, #1a2332));
	margin: 0 0 28px;
	line-height: 1.15;
}
/* Optional case/tracking for every block heading. No default on purpose: unset,
   the declarations are invalid at computed-value time and the properties fall
   back to inheritance — i.e. nothing changes for a theme that never sets them.
   :where() keeps this at element specificity so any block's own rule wins. */
:where([class*="wp-block-ali-"]) :where(h1, h2, h3) {
	text-transform: var(--block-heading-transform);
	letter-spacing: var(--block-heading-tracking);
}
h3.ali-heading {
	font-size: clamp(1.3rem, 2vw, 1.6rem);
}

/* ── Pill button ─────────────────────────────────── */
.ali-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--block-accent, #3DAABD);
	color: var(--block-accent-ink, #fff);
	font-family: var(--block-font-body, 'Karla', sans-serif);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
	padding: 12px 28px;
	border: none;
	border-radius: var(--block-btn-radius, 50px);
	cursor: pointer;
	transition: all .3s cubic-bezier(.22, 1, .36, 1);
	text-decoration: none;
}

.ali-btn::after {
	content: '\2192';
	transition: transform .3s ease;
}

.ali-btn:hover {
	background: var(--block-btn-hover-bg, var(--block-accent-deep, #2B8A9A));
	color: var(--block-btn-hover-ink, var(--block-accent-ink, #fff));
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 24px color-mix(in srgb, var(--block-accent, #3DAABD) 30%, transparent);
}

.ali-btn:hover::after {
	transform: translateX(3px);
}

.ali-btn--outline {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, .25);
	color: #fff;
}

.ali-btn--outline:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}

.ali-btn--white {
	background: #fff;
	color: var(--block-dark, #1a2332);
}

.ali-btn--white:hover {
	background: #fff;
	color: var(--block-btn-hover-bg, var(--block-accent-deep, #2B8A9A));
	box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}

.ali-btn--outline-teal {
	background: transparent;
	border: 1.5px solid var(--block-accent-text, var(--block-accent, #3DAABD));
	color: var(--block-accent-text, var(--block-accent, #3DAABD)) !important;
}
.ali-btn--outline-teal:hover {
	background: var(--block-accent, #3DAABD);
	color: var(--block-accent-ink, #fff) !important;
	box-shadow: 0 6px 24px color-mix(in srgb, var(--block-accent, #3DAABD) 30%, transparent);
}

.ali-btn--outline-secondary {
	background: transparent;
	border: 1.5px solid var(--block-accent-text, var(--block-accent, #3DAABD));
	color: var(--block-accent-text, var(--block-accent, #3DAABD)) !important;
}
.ali-btn--outline-secondary:hover {
	background: var(--block-accent, #3DAABD);
	color: var(--block-accent-ink, #fff) !important;
	/* Parity with --outline-teal:hover, which the two variants otherwise match
	   declaration for declaration; the missing shadow here was an oversight. */
	box-shadow: 0 6px 24px color-mix(in srgb, var(--block-accent, #3DAABD) 30%, transparent);
}

.ali-btn--ghost {
	background: none;
	border: none;
	color: var(--block-accent-text, var(--block-accent, #3DAABD)) !important;
	font-weight: 600;
	padding: 10px 8px;
	text-decoration: none !important;
}
.ali-btn--ghost:hover {
	text-decoration: underline !important;
}

/* Amber is a fixed literal, not the site accent, so it carries its own ink —
   and it is light: white on #E8A817 is 2.03:1. The near-black matches what
   ali_block_accent_contract() derives for a light accent. */
.ali-btn--amber {
	background: #E8A817;
	color: #141414 !important;
}
.ali-btn--amber:hover {
	background: #C48E0E;
	color: #141414 !important;
	box-shadow: 0 6px 24px rgba(232, 168, 23, .3);
}

.ali-btn--sm {
	padding: 10px 22px;
	font-size: .78rem;
}

/* ── CTA button icon (ali_block_button_icon) ──────
   .ali-btn ships a "→" ::after glyph. An explicit icon choice in the editor
   adds .ali-btn--icon, which drops that glyph so the chosen SVG (or nothing,
   for "Nessuna icona") is the only mark on the button. Blocks that render
   their CTA outside .ali-btn get the flex/gap from .ali-has-icon. ── */
.ali-btn--icon::after {
	content: none;
}

.ali-has-icon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ali-btn-icon {
	flex-shrink: 0;
	transition: transform .3s ease;
}

/* Arrows nudge on hover, matching .ali-btn:hover::after; pictograms sit still. */
a:hover > .ali-btn-icon--arrow,
button:hover > .ali-btn-icon--arrow {
	transform: translateX(3px);
}

/* No vertical nudge on a down arrow. Every button that carries one also lifts
   translateY(-2px) on hover, so a +3px icon meant 5px of relative motion and the
   arrow visibly detached from its label. Horizontal nudges (above) do not fight
   the lift, so those stay. */
a:hover > .ali-btn-icon--down,
button:hover > .ali-btn-icon--down {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ali-btn-icon {
		transition: none;
	}
}

/* ── Image + Text block (ali/image-text) ─────────── */
.cs-image-text {
	padding: 80px 40px;
	background: #fff;
	position: relative;
	overflow: hidden;
}
.cs-image-text--bg-cream { background: var(--block-bg, #faf9f7); }
.cs-image-text--bg-sky   { background: var(--block-bg-sky, #E8F4F6); }
.cs-image-text--bg-warm  { background: var(--block-bg-warm, #F5F2ED); }
.cs-image-text--bg-accent-light  { background: color-mix(in srgb, var(--block-accent) 8%, #fff); }
.cs-image-text--bg-accent-medium { background: color-mix(in srgb, var(--block-accent) 15%, #fff); }
.cs-image-text--bg-navy  { background: var(--block-dark, #1a2332); color: var(--block-dark-ink,#fff); }
/* `.cs-image-text__text h2` further down pins the heading to --block-dark at the
   same specificity (0,1,1) and wins on source order, so on the dark variant the
   heading was painted in the very colour the band is filled with — invisible on
   a default site, and red-on-red on a campaign that maps --block-dark to its
   accent. One step heavier, same fix as the paragraph rules below. */
.cs-image-text--bg-navy h2,
.cs-image-text--bg-navy h3,
.cs-image-text--bg-navy .cs-image-text__text h2,
.cs-image-text--bg-navy .cs-image-text__text h3 { color: var(--block-dark-ink,#fff); }
.cs-image-text--bg-navy .cs-image-text__body,
.cs-image-text--bg-navy .cs-image-text__highlight { color: var(--block-dark-ink-soft, color-mix(in srgb,var(--block-dark-ink,#fff) 85%,transparent)); }
/* The wrapper rule above only sets an inherited colour, and `.cs-image-text__body p`
   (0,1,1) colours the paragraphs directly — so on the dark variant the copy stayed
   --block-text-secondary and measured 2.4:1. These target the same elements one
   step heavier. `strong` needs its own: it is pinned to --block-text. */
.cs-image-text--bg-navy .cs-image-text__body p { color: var(--block-dark-ink-soft, color-mix(in srgb,var(--block-dark-ink,#fff) 85%,transparent)); }
.cs-image-text--bg-navy .cs-image-text__body p strong { color: var(--block-dark-ink, var(--block-dark-ink,#fff)); }

.cs-image-text__circle {
	position: absolute;
	top: -100px; right: -100px;
	width: 350px; height: 350px;
	border-radius: 50%;
	/* Derived from --block-accent, not --block-accent-glow: the glow token is a
	   site-level value a theme may set to an opaque near-white, which reads as
	   grey instead of as a tint of the accent. See the sibling circles below. */
	background: color-mix(in srgb, var(--block-accent, #3DAABD) 10%, transparent);
	pointer-events: none;
	z-index: 0;
}

.cs-image-text__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	/* Keeps the content above the decorative circle, which is absolutely
	   positioned and would otherwise paint over these static siblings. */
	position: relative;
	z-index: 1;
}
.cs-image-text--split-33-67 .cs-image-text__inner { grid-template-columns: 1fr 2fr; }
.cs-image-text--split-40-60 .cs-image-text__inner { grid-template-columns: 2fr 3fr; }
.cs-image-text--split-60-40 .cs-image-text__inner { grid-template-columns: 3fr 2fr; }
.cs-image-text--split-67-33 .cs-image-text__inner { grid-template-columns: 2fr 1fr; }
.cs-image-text__inner--reverse .cs-image-text__img  { order: 2; }
.cs-image-text__inner--reverse .cs-image-text__text { order: 1; }

.cs-image-text__img {
	border-radius: var(--block-radius, 16px);
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.cs-image-text__img img,
.cs-image-text__img video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 16/10;
	transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.cs-image-text__img:hover img,
.cs-image-text__img:hover video { transform: scale(1.03); }
/* Tilt variant overrides the default scale hover */
.cs-image-text__img--tilt:hover img { transform: rotate(-1.5deg) scale(1.04); }
/* …and the no-motion variant drops the hover transform altogether. */
.cs-image-text__img--no-motion:hover img,
.cs-image-text__img--no-motion:hover video { transform: none; }

.cs-image-text__video-wrap { position: relative; }
.cs-image-text__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1;
}
.cs-image-text__play::before {
	content: "";
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(0,0,0,.55);
	position: absolute;
	transition: background .2s;
}
.cs-image-text__play:hover::before { background: rgba(0,0,0,.7); }
.cs-image-text__play svg { position: relative; margin-left: 3px; }
.cs-image-text__play.is-playing { display: none; }

.cs-image-text__text h2 {
	font-size: clamp(2rem, 3.5vw, 2.8rem);
	color: var(--block-dark, #1a2332);
	margin: 16px 0 24px;
}
.cs-image-text__text h3 {
	font-family: var(--block-font-heading, 'DM Serif Display', Georgia, serif);
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	color: var(--block-dark, #1a2332);
	margin: 16px 0 24px;
	line-height: 1.25;
}
.cs-image-text__body p {
	font-size: 1.02rem;
	color: var(--block-text-secondary, #5a5a5a);
	margin: 0 0 16px;
	line-height: 1.8;
}
.cs-image-text__body p strong { color: var(--block-text, #2c2c2c); font-weight: 600; }
.cs-image-text__body p:last-child { margin-bottom: 0; }
.cs-image-text__body p a { text-decoration: underline; text-underline-offset: 2px; }

.cs-image-text__highlight {
	font-family: var(--block-font-heading, 'DM Serif Display', Georgia, serif);
	font-size: 1.35rem;
	color: var(--block-dark, #1a2332);
	line-height: 1.45;
	margin: 0 0 16px;
	font-weight: 400;
}

.cs-image-text__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--block-accent, #3DAABD);
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 12px 28px;
	border-radius: var(--block-radius-sm, 10px);
	margin-top: 20px;
	transition: all .3s cubic-bezier(.22,1,.36,1);
	text-decoration: none;
}
.cs-image-text__cta:hover {
	background: var(--block-accent-deep, #2B8A9A);
	transform: translateY(-1px);
	box-shadow: 0 6px 24px color-mix(in srgb, var(--block-accent, #3DAABD) 25%, transparent);
	color: #fff;
}

@media (max-width: 900px) {
	.cs-image-text { padding: 60px 24px; }
	.cs-image-text .cs-image-text__inner { grid-template-columns: 1fr; gap: 32px; }
	.cs-image-text__inner--reverse .cs-image-text__img  { order: 0; }
	.cs-image-text__inner--reverse .cs-image-text__text { order: 0; }
}

/* ── cs-intro (intro-text block) ────────────────── */
.cs-intro {
	padding: 100px 40px;
	background: var(--block-bg, #faf9f7);
	position: relative;
	overflow: hidden;
}
.cs-intro-inner {
	max-width: 800px; margin: 0 auto;
	text-align: center;
	position: relative; z-index: 1;
}
.cs-intro p {
	font-size: 1.1rem;
	color: var(--block-text-secondary, #5a5a5a);
	margin: 0 0 20px;
	line-height: 1.85;
}
.cs-intro p strong { color: var(--block-text, #2c2c2c); font-weight: 600; }

/* Background variants */
.cs-intro--bg-white  { background: #fff; }
.cs-intro--bg-cream  { background: var(--block-bg, #faf9f7); }
.cs-intro--bg-sky    { background: var(--block-bg-sky, #E8F4F6); }
.cs-intro--bg-warm   { background: var(--block-bg-warm, #F5F2ED); }
.cs-intro--bg-accent-light  { background: color-mix(in srgb, var(--block-accent) 8%, #fff); }
.cs-intro--bg-accent-medium { background: color-mix(in srgb, var(--block-accent) 15%, #fff); }
.cs-intro--bg-navy   { background: var(--block-dark, #1a2332); }

/* Dark background text inversion */
.cs-intro--bg-navy p                  { color: color-mix(in srgb,var(--block-dark-ink,#fff) 85%,transparent); }
.cs-intro--bg-navy p strong           { color: var(--block-dark-ink,#fff); }
.cs-intro--bg-navy .ali-heading       { color: var(--block-dark-ink,#fff); }
/* Wins over the .cs-intro .ali-label rule further down, which is the same
   specificity but later in the file: on a dark section the accent's text step is
   a darker colour and would sink into the background. */
.cs-intro.cs-intro--bg-navy .ali-label { color: var(--block-accent, #3DAABD); }

/* Font size variants */
.cs-intro--size-small p  { font-size: 0.95rem; }
.cs-intro--size-large p  { font-size: 1.25rem; line-height: 1.9; }

/* Max width variants */
.cs-intro--width-narrow .cs-intro-inner { max-width: 640px; }
.cs-intro--width-wide .cs-intro-inner   { max-width: 960px; }

/* Decorative circle */
.cs-intro__circle {
	position: absolute;
	top: -80px; right: -80px;
	width: 320px; height: 320px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--block-accent, #3DAABD) 10%, transparent);
	pointer-events: none;
	z-index: 0;
}

/* Label + heading spacing */
.cs-intro .ali-label   { margin-bottom: 12px; justify-content: center; font-size: .7rem; color: var(--block-accent-text, var(--block-accent, #3DAABD)); }
.cs-intro .ali-heading { margin-bottom: 24px; }

/* Inline buttons */
.cs-intro__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 28px; }
.cs-intro__buttons .ali-btn--outline-teal { border-width: 1.5px; }
.cs-intro__buttons .ali-btn--filled { background: var(--block-accent, #3DAABD); color: var(--block-accent-ink, #fff) !important; }
.cs-intro__buttons .ali-btn--filled:hover { background: var(--block-accent-deep, #2B8A9A); color: var(--block-btn-hover-ink, var(--block-accent-ink, #fff)) !important; box-shadow: 0 6px 24px color-mix(in srgb, var(--block-accent) 30%, transparent); }
.cs-intro--bg-navy .cs-intro__buttons .ali-btn--outline-secondary { border-color: color-mix(in srgb,var(--block-dark-ink,#fff) 40%,transparent); color: var(--block-dark-ink,#fff); }
.cs-intro--bg-navy .cs-intro__buttons .ali-btn--outline-secondary:hover { background: color-mix(in srgb,var(--block-dark-ink,#fff) 12%,transparent); border-color: color-mix(in srgb,var(--block-dark-ink,#fff) 60%,transparent); }
/* The PRIMARY outline button had no dark-variant rule, only the secondary one:
   on the dark surface it kept drawing itself in --block-accent, which is a
   mid-tone on most palettes and near-invisible on a dark band (2:1 on ali.ong's
   crostacei brown). White outline, same treatment the secondary already got. */
/* !important matches .ali-btn--outline-teal's own colour declaration, which
   carries one and would otherwise win despite the lower specificity. */
.cs-intro--bg-navy .cs-intro__buttons .ali-btn--outline-teal { border-color: color-mix(in srgb,var(--block-dark-ink,#fff) 55%,transparent); color: var(--block-dark-ink,#fff) !important; }
.cs-intro--bg-navy .cs-intro__buttons .ali-btn--outline-teal:hover { background: var(--block-dark-ink,#fff); border-color: var(--block-dark-ink,#fff); color: var(--block-dark, #1a2332) !important; }
.cs-intro--bg-navy .cs-intro__buttons .ali-btn--ghost { color: var(--block-dark-ink,#fff); }
.cs-intro--cols-2 .cs-intro__body { column-count: 2; column-gap: 40px; text-align: left; }
.cs-intro--cols-3 .cs-intro__body { column-count: 3; column-gap: 40px; text-align: left; }
@media (max-width: 768px) {
	.cs-intro--cols-2 .cs-intro__body,
	.cs-intro--cols-3 .cs-intro__body { column-count: 1; text-align: center; }
}

@media (max-width: 768px) {
	.cs-intro { padding: 60px 24px; }
	.cs-intro p { font-size: 1rem; }
	.cs-intro--size-large p { font-size: 1.1rem; }
}

/* ── Scroll reveal (shared utility) ────────────────
   Gated on .ali-reveal-ready, which base.js adds to <html> just before it
   starts observing — so the animation is self-contained on any consuming
   site, content stays visible with JS disabled, and nothing hides under
   prefers-reduced-motion (base.js skips the class in that branch).
   Values match the ALI theme's ali-base.css so both rule sets agree when
   the theme also ships them. Blocks that opt out print a later
   `.<block> .reveal{opacity:1;transform:none}` override, which still wins. */
.ali-reveal-ready .reveal,
.ali-reveal-ready .sc-reveal,
.ali-reveal-ready .cs-reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.ali-reveal-ready .reveal.visible,
.ali-reveal-ready .sc-reveal.visible,
.ali-reveal-ready .cs-reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Reveal stagger delays (shared utility) ───────── */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ── Partner logos (partner-logos block) ─────────── */
.cs-partner {
	padding: 70px 40px 80px;
	background: var(--block-bg, #faf9f7);
}
.cs-partner-inner { max-width: 1140px; margin: 0 auto; }
.cs-partner-header {
	text-align: center;
	margin-bottom: 48px;
}
.cs-partner-header .cs-label { justify-content: center; }
.cs-partner-header .cs-label::before { display: none; }
.cs-partner-header h2 {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: var(--block-dark, #1a2332);
	margin: 16px 0 0;
}
.cs-partner-header p {
	font-size: .88rem;
	color: var(--block-text-secondary, #5a5a5a);
	max-width: 700px;
	margin: 16px auto 0;
	line-height: 1.7;
}
.cs-partner-grid {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 32px 56px;
}
/* The box is wider than it is tall and the fit is `contain`, so the height is
   what square logos are capped by while wide ones are capped by the width. At
   56px tall a square mark rendered 56×56 next to a wordmark filling 140px and
   read as half the size. Raising the height only frees the square ones: a
   300×67 wordmark still solves to 140×31 either way. */
.cs-partner-logo {
	display: block;
	height: 72px;
	object-fit: contain;
	transition: all .3s ease;
}
/* Exact-count variant. The default row above is a wrap flex of fixed-width
   logos: it can only break where it runs out of room, so "all nine on one row"
   was impossible — nine 140px boxes plus their gaps are wider than the content
   area. Equal grid tracks let the logos scale down to whatever the count
   requires, and max-width stops a small count from blowing them up. */
.cs-partner-grid--cols {
	display: grid;
	grid-template-columns: repeat(var(--cs-partner-cols, 4), minmax(0, 1fr));
	gap: 32px 24px;
	align-items: center;
	justify-items: center;
	width: 100%;
}
.cs-partner-grid--cols .cs-partner-logo {
	width: 100%;
	max-width: 140px;
}
@media (max-width: 900px) {
	.cs-partner-grid--cols {
		grid-template-columns: repeat(var(--cs-partner-cols-m, 3), minmax(0, 1fr));
		gap: 28px 16px;
	}
}
.cs-partner--bg-cream { background: var(--wp--preset--color--cream, var(--block-bg, #faf9f7)); }
.cs-partner--bg-sky   { background: var(--block-bg-sky, #E8F4F6); }
.cs-partner--bg-warm  { background: var(--block-bg-warm, #F5F2ED); }
.cs-partner--bg-accent-light  { background: color-mix(in srgb, var(--block-accent) 8%, #fff); }
.cs-partner--bg-accent-medium { background: color-mix(in srgb, var(--block-accent) 15%, #fff); }
.cs-partner--bg-navy  { background: var(--block-dark, #1a2332); }
.cs-partner--bg-navy .cs-partner-header h2,
.cs-partner--bg-navy .cs-label { color: var(--block-dark-ink,#fff); }
.cs-partner--bg-navy .cs-partner-header p { color: var(--block-dark-ink-soft, color-mix(in srgb,var(--block-dark-ink,#fff) 85%,transparent)); }
.cs-partner-cta { text-align: center; margin-top: 40px; }
.cs-partner--grayscale .cs-partner-logo { filter: grayscale(100%) opacity(.5); transition: filter .3s ease; }
.cs-partner--grayscale .cs-partner-logo:hover { filter: grayscale(0%) opacity(1); }
@media (max-width: 768px) {
	.cs-partner { padding: 50px 24px 60px; }
	.cs-partner-grid { gap: 32px; }
}

/* ── Card section (card-section block) ───────────── */
.ali-card-section {
	padding: 100px 24px;
	position: relative;
	overflow: hidden;
}
.ali-card-section--bg-cream { background: var(--block-bg, #faf9f7); }
.ali-card-section--bg-sky { background: var(--block-bg-sky, #E8F4F6); }
.ali-card-section--bg-warm { background: var(--block-bg-warm, #F5F2ED); }
.ali-card-section--bg-accent-light { background: color-mix(in srgb, var(--block-accent) 8%, #fff); }
.ali-card-section--bg-accent-medium { background: color-mix(in srgb, var(--block-accent) 15%, #fff); }
.ali-card-section--bg-navy { background: var(--block-dark, #1a2332); color: var(--block-dark-ink,#fff); }
.ali-card-section__header {
	text-align: center;
	max-width: 740px;
	margin: 0 auto 48px;
	/* Above the decorative circle — see .cs-image-text__inner. */
	position: relative;
	z-index: 1;
}
.ali-card-section__header .ali-label { justify-content: center; }
.ali-card-section__header .ali-label::before { display: none; }
.ali-card-section__desc {
	color: var(--block-text-secondary, #5a5a5a);
	margin-top: 16px;
	font-size: 1.02rem;
	line-height: 1.7;
}
.ali-card-section--bg-navy .ali-card-section__desc { color: color-mix(in srgb,var(--block-dark-ink,#fff) 65%,transparent); }
.ali-card-section__circle {
	position: absolute;
	top: -80px;
	right: -80px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--block-accent, #3DAABD) 10%, transparent);
	pointer-events: none;
	z-index: 0;
}
.ali-card-section__card {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	/* Above the decorative circle — see .cs-image-text__inner. */
	position: relative;
	z-index: 1;
}
.ali-card-section__card--elevated { box-shadow: 0 8px 40px rgba(0,0,0,.06); }
.ali-card-section__card--flat { border: 1px solid rgba(0,0,0,.08); }
.ali-card-section__card--outlined { border-top: 4px solid var(--block-accent, #3DAABD); }
.ali-card-section__card--text-only { grid-template-columns: 1fr; }
.ali-card-section__card--reverse .ali-card-section__text { order: 2; }
.ali-card-section__card--reverse .ali-card-section__media { order: 1; }
.ali-card-section__card--split-33-67 { grid-template-columns: 1fr 2fr; }
.ali-card-section__card--split-40-60 { grid-template-columns: 2fr 3fr; }
.ali-card-section__card--split-60-40 { grid-template-columns: 3fr 2fr; }
.ali-card-section__card--split-67-33 { grid-template-columns: 2fr 1fr; }
.ali-card-section__text {
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ali-card-section__body h3 {
	font-family: var(--block-font-heading);
	font-weight: 400;
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	color: var(--block-accent-text, var(--block-accent, #3DAABD));
	margin: 0 0 16px;
	line-height: 1.3;
}
.ali-card-section__body h4 {
	font-family: var(--block-font-heading);
	font-weight: 400;
	font-size: clamp(1.1rem, 1.5vw, 1.25rem);
	color: var(--block-dark, #1a2332);
	margin: 32px 0 12px;
	line-height: 1.3;
}
.ali-card-section__body p {
	color: var(--block-text-secondary, #5a5a5a);
	line-height: 1.8;
	margin: 0 0 16px;
}
.ali-card-section__body p:last-child { margin-bottom: 0; }
.ali-card-section__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--block-accent, #3DAABD);
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 12px 28px;
	border-radius: var(--block-radius-sm, 10px);
	margin-top: 24px;
	text-decoration: none;
	transition: opacity .25s ease, transform .25s ease;
}
.ali-card-section__cta:hover {
	opacity: .9;
	transform: translateY(-2px);
	color: #fff;
}
.ali-card-section__media img,
.ali-card-section__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 900px) {
	.ali-card-section { padding: 64px 20px; }
	.ali-card-section__header { margin-bottom: 32px; }
	.ali-card-section__card { grid-template-columns: 1fr; }
	.ali-card-section__card--reverse .ali-card-section__media { order: -1; }
	.ali-card-section__text { padding: 32px 24px; }
}
@media (max-width: 520px) {
	.ali-card-section { padding: 48px 16px; }
	.ali-card-section__text { padding: 28px 20px; }
}

/* ─────────────────────────────────────────────────────────────
   Floating animation — used by floating-image & form-embed side image
   ───────────────────────────────────────────────────────────── */
@keyframes aliFloat {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-10px) rotate(2deg); }
}
/* Same drift, no tilt — for images (book covers, screenshots) whose straight
   edges make the 2deg rotation read as a rendering fault. */
@keyframes aliFloatFlat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
/* Breathing scale — the pulse counterpart to the float loops. Two amplitudes:
   the plain one for images, a far smaller one for a form embed, where a scaled
   input is a blurred input and a moving click target. */
@keyframes aliPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}
@keyframes aliPulseSoft {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.015); }
}
/* Glow pulses draw no transform at all, so they never make their element the
   containing block for a position:fixed descendant (see the form-embed motion
   note further down — that trap is why a glow is the safer pulse over a form).
   The image variant keeps the base drop-shadow and layers an accent halo on it. */
@keyframes aliPulseGlow {
	0%, 100% { filter: drop-shadow(0 16px 40px rgba(0,0,0,.12)) drop-shadow(0 0 0 transparent); }
	50% { filter: drop-shadow(0 16px 40px rgba(0,0,0,.12)) drop-shadow(0 0 16px color-mix(in srgb, var(--block-accent) 55%, transparent)); }
}
@keyframes aliPulseGlowBox {
	0%, 100% { box-shadow: 0 0 0 0 transparent; }
	50% { box-shadow: 0 0 28px 4px color-mix(in srgb, var(--block-accent) 28%, transparent); }
}

/* ── Glass card (donation-section) ── */
.ali-glass {
	background: rgba(255, 255, 255, .06);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 12px;
}

/* ── Reveal stagger utilities (donation-section uses reveal-delay-1..4) ── */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Floating image block ── */
.ali-floating-image {
	padding: 60px 24px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.ali-floating-image--bg-cream { background: var(--block-bg, #faf9f7); }
.ali-floating-image--bg-sky { background: var(--block-bg-sky, #E8F4F6); }
.ali-floating-image--bg-warm { background: var(--block-bg-warm, #F5F2ED); }
.ali-floating-image--bg-accent-light { background: color-mix(in srgb, var(--block-accent) 8%, #fff); }
.ali-floating-image--bg-accent-medium { background: color-mix(in srgb, var(--block-accent) 15%, #fff); }
.ali-floating-image img {
	width: 100%;
	height: auto;
	animation: aliFloat 5s ease-in-out infinite;
	filter: drop-shadow(0 16px 40px rgba(0,0,0,.12));
	transition: transform .4s ease;
}
/* Parity with the form-embed side image: the loop freezes under the cursor.
   The scale below only lands on the variants that leave transform free —
   'none', and 'pulse-glow', which animates filter. While a transform-based
   loop runs, even paused, its keyframe value outranks this rule. */
.ali-floating-image img:hover { transform: scale(1.03); animation-play-state: paused; }
/* Motion variants — no modifier class = float + tilt (the original render).
   The pulses run faster than the 5s drift; a slow scale reads as a glitch. */
.ali-floating-image--motion-float img { animation-name: aliFloatFlat; }
.ali-floating-image--motion-pulse img { animation-name: aliPulse; animation-duration: 3.2s; }
.ali-floating-image--motion-pulse-glow img { animation-name: aliPulseGlow; animation-duration: 3.2s; }
.ali-floating-image--motion-none img { animation: none; }

/* ── Form embed block ── */
.cs-form-embed:not(.alignwide):not(.alignfull) {
	max-width: var(--wp--style--global--content-size, 780px);
	margin-left: auto;
	margin-right: auto;
}
.cs-form-embed { padding: 90px 40px; }
.cs-form-embed-inner { max-width: 1140px; margin: 0 auto; }
.cs-form-embed-header {
	margin-bottom: 24px;
}
.cs-form-embed-header h2 {
	font-family: var(--block-font-heading);
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	font-weight: 400;
	color: var(--block-dark, #1a2332);
	margin: 0 0 12px;
}
.cs-form-embed-header p {
	font-size: .92rem;
	color: var(--block-text-secondary, #5a5a5a);
	margin: 0;
	line-height: 1.7;
}

/* ── Form embed: centered header ── */
.cs-form-embed-header--center { text-align: center; }
.cs-form-embed-header--center .cs-label { justify-content: center; }
.cs-form-embed-header--center .cs-label::before { display: none; }

/* ── Form embed: background variants ── */
.cs-form-embed--bg-cream { background: var(--block-bg, #FDFCF9); }
.cs-form-embed--bg-sky { background: var(--block-bg-sky, #E8F4F6); }
.cs-form-embed--bg-warm { background: var(--block-bg-warm, #F5F2ED); }
.cs-form-embed--bg-accent-light { background: color-mix(in srgb, var(--block-accent) 8%, #fff); }
.cs-form-embed--bg-accent-medium { background: color-mix(in srgb, var(--block-accent) 15%, #fff); }
.cs-form-embed--bg-navy { background: var(--block-dark, #1a2332); }
.cs-form-embed--bg-navy .cs-form-embed-header h2 { color: var(--block-dark-ink,#fff); }
.cs-form-embed--bg-navy .cs-form-embed-header p { color: color-mix(in srgb,var(--block-dark-ink,#fff) 80%,transparent); }
.cs-form-embed--bg-navy .cs-label { color: color-mix(in srgb,var(--block-dark-ink,#fff) 70%,transparent); }

/* ── Form embed: side image layout ── */
.cs-form-embed--has-side-image .cs-form-embed-content {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 48px;
	align-items: start;
}
.cs-form-embed-side-image {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 20px;
}
.cs-form-embed-side-image img {
	width: 100%;
	height: auto;
	animation: aliFloat 5s ease-in-out infinite;
	filter: drop-shadow(0 16px 40px rgba(0,0,0,.12));
	transition: transform .4s ease;
}
.cs-form-embed-side-image img:hover { transform: scale(1.03); animation-play-state: paused; }
/* Motion variants — no modifier class = float + tilt (the original render).
   The pulses run faster than the 5s drift; a slow scale reads as a glitch. */
.cs-form-embed-side-image--motion-float img { animation-name: aliFloatFlat; }
.cs-form-embed-side-image--motion-pulse img { animation-name: aliPulse; animation-duration: 3.2s; }
.cs-form-embed-side-image--motion-pulse-glow img { animation-name: aliPulseGlow; animation-duration: 3.2s; }
.cs-form-embed-side-image--motion-none img { animation: none; }

/* ── Form embed: optional motion on the embed itself ──
   Opt-in only; no modifier class leaves the form still, which is what every
   existing block renders. A transform makes this wrapper the containing block
   for any position:fixed descendant, so a form widget's date picker or modal
   will anchor here rather than to the viewport — and a form that drifts under
   the cursor is hard to fill in. Both are why the animation pauses the moment
   the pointer or the keyboard reaches the form. ── */
.cs-form-embed-form--motion-float { animation: aliFloatFlat 5s ease-in-out infinite; }
.cs-form-embed-form--motion-float-tilt { animation: aliFloat 5s ease-in-out infinite; }
.cs-form-embed-form--motion-pulse { animation: aliPulseSoft 3.2s ease-in-out infinite; }
/* The only variant with no transform, so it is the one that leaves a form
   widget's fixed-position date picker or modal anchored to the viewport. The
   radius shapes the halo only — the wrapper paints no background and does not
   clip, so an embed with its own corners is unaffected. */
.cs-form-embed-form--motion-pulse-glow { animation: aliPulseGlowBox 3.2s ease-in-out infinite; border-radius: 12px; }
.cs-form-embed-form--motion-float:hover,
.cs-form-embed-form--motion-float:focus-within,
.cs-form-embed-form--motion-float-tilt:hover,
.cs-form-embed-form--motion-float-tilt:focus-within,
.cs-form-embed-form--motion-pulse:hover,
.cs-form-embed-form--motion-pulse:focus-within,
.cs-form-embed-form--motion-pulse-glow:hover,
.cs-form-embed-form--motion-pulse-glow:focus-within { animation-play-state: paused; }

@media (max-width: 900px) {
	.cs-form-embed { padding: 60px 20px; }
	.cs-form-embed--has-side-image .cs-form-embed-content {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.cs-form-embed-side-image { justify-content: center; }
	.cs-form-embed-side-image img { max-width: 260px !important; }
}

/* ── Text and sidebar block ── */
.cs-text-sidebar {
	background: #fff;
	padding: 72px 24px 80px;
}
.cs-text-sidebar--cream { background: var(--block-bg, #FDFCFA); }
.cs-text-sidebar--sky   { background: var(--block-bg-sky,#E8F4F6); }
.cs-text-sidebar--warm  { background: var(--block-bg-warm,#F5F2ED); }
.cs-text-sidebar--accent-light  { background: color-mix(in srgb, var(--block-accent) 8%, #fff); }
.cs-text-sidebar--accent-medium { background: color-mix(in srgb, var(--block-accent) 15%, #fff); }
.cs-text-sidebar--navy  { background: var(--block-dark, #1a2332); color: var(--block-dark-ink,#fff); }
.cs-text-sidebar--navy h2,
.cs-text-sidebar--navy h3 { color: var(--block-dark-ink,#fff); }
.cs-text-sidebar--navy .cs-text-sidebar-body,
.cs-text-sidebar--navy .cs-text-sidebar-step p { color: color-mix(in srgb,var(--block-dark-ink,#fff) 85%,transparent); }
.cs-text-sidebar--navy .cs-text-sidebar-box { background: color-mix(in srgb,var(--block-dark-ink,#fff) 8%,transparent); border-left-color: color-mix(in srgb,var(--block-dark-ink,#fff) 20%,transparent); }
.cs-text-sidebar--navy .cs-text-sidebar-body a,
.cs-text-sidebar--navy .cs-text-sidebar-step a { color: var(--block-accent-pale, #8cd5e5); }
/* Mobile-first: one column. The column ratios live in the min-width query below,
   so a narrow viewport never has to out-specify the layout modifiers. */
.cs-text-sidebar-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	align-items: start;
}
.cs-text-sidebar-body p {
	margin: 0 0 16px;
	font-size: .95rem;
	line-height: 1.8;
	color: var(--block-text-secondary, #5a5a5a);
}
.cs-text-sidebar-body strong {
	color: var(--block-text, #2c2c2c);
}
.cs-text-sidebar-body a,
.cs-text-sidebar-step a {
	color: var(--block-accent-text, var(--block-accent, #3DAABD));
	text-decoration: underline;
	text-underline-offset: 2px;
}
.cs-text-sidebar h2 {
	font-family: var(--block-font-heading);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: var(--block-heading-weight, 400);
	color: var(--block-heading-color, var(--block-dark, #1a2332));
	margin: 0 0 24px;
	line-height: 1.12;
}
.cs-text-sidebar-box {
	background: var(--block-accent-pale, #8cd5e5);
	border-radius: var(--block-radius, 16px);
	padding: 28px 28px 24px;
	border-left: 3px solid var(--block-accent, #3DAABD);
}
.cs-text-sidebar-box h3 {
	font-family: var(--block-font-heading);
	font-size: 1.15rem;
	font-weight: var(--block-heading-weight, 400);
	color: var(--block-heading-color, var(--block-dark, #1a2332));
	margin: 0 0 14px;
}
/* Sidebar box styles — chained so they outrank the --navy background rule
   above regardless of source order within this file. */
.cs-text-sidebar-box.cs-text-sidebar-box--outline {
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--block-accent) 30%, transparent);
	border-left: 3px solid var(--block-accent, #3DAABD);
}
.cs-text-sidebar-box.cs-text-sidebar-box--card {
	background: #fff;
	border-left: none;
	box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.cs-text-sidebar-box.cs-text-sidebar-box--plain {
	background: transparent;
	border-left: none;
	border-radius: 0;
	padding: 0;
}
/* Dark panel — the readable way to make the sidebar pop. An accent *fill* under
   a paragraph is not: white on rete's cyan or agav's ocra measures ~2:1. */
.cs-text-sidebar-box.cs-text-sidebar-box--dark {
	background: var(--block-dark, #1a2332);
	border-left: none;
}
.cs-text-sidebar-box--dark h3,
.cs-text-sidebar-box--dark .cs-text-sidebar-step strong { color: #fff; }
.cs-text-sidebar-box--dark .cs-text-sidebar-step p { color: rgba(255,255,255,.85); }
.cs-text-sidebar-box--dark .cs-text-sidebar-step a { color: var(--block-accent-pale, #8cd5e5); }
/* On a dark section the hairline needs light, not a 30% accent nobody can see. */
.cs-text-sidebar--navy .cs-text-sidebar-box--outline {
	border-color: color-mix(in srgb,var(--block-dark-ink,#fff) 25%,transparent);
	border-left-color: var(--block-accent, #3DAABD);
}
.cs-text-sidebar-steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cs-text-sidebar-cta { margin-top: 26px; }
.cs-text-sidebar-cta--box { margin-top: 20px; }
/* The sidebar CTA has to clear its own panel on every sidebarStyle, including
   the dark one, where the accent fill is the only variant that keeps contrast. */
.cs-text-sidebar-box--dark .cs-text-sidebar-cta--box .ali-btn {
	background: var(--block-accent, #3DAABD);
	color: var(--block-accent-ink, #fff);
}
/* Stacked: the text column is the full 1140px, so cap the measure — otherwise
   a paragraph runs ~120 characters per line. */
.cs-text-sidebar--stacked .cs-text-sidebar-body { max-width: 760px; }
/* The sidebar spans the full width, so its steps sit side by side. */
.cs-text-sidebar--stacked .cs-text-sidebar-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 22px 28px;
}
.cs-text-sidebar--stacked.cs-text-sidebar--sidebar-left .cs-text-sidebar-main { order: 2; }
.cs-text-sidebar--stacked.cs-text-sidebar--sidebar-left .cs-text-sidebar-box { order: 1; }
.cs-text-sidebar-step {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.cs-text-sidebar-steps--bullet .cs-text-sidebar-step,
.cs-text-sidebar-steps--check .cs-text-sidebar-step { gap: 12px; }
.cs-text-sidebar-steps--plain .cs-text-sidebar-step { gap: 0; }
.cs-text-sidebar-num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--block-accent, #3DAABD);
	color: var(--block-accent-ink, #fff);
	font-size: .78rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cs-text-sidebar-num--bullet {
	width: 9px;
	height: 9px;
	margin-top: 7px;
}
.cs-text-sidebar-num--check svg {
	width: 15px;
	height: 15px;
}
.cs-text-sidebar-step p {
	margin: 0;
	font-size: .88rem;
	color: var(--block-text-secondary, #5a5a5a);
	line-height: 1.6;
}
.cs-text-sidebar-step strong {
	color: var(--block-text, #2c2c2c);
}

@media (min-width: 901px) {
	.cs-text-sidebar-inner {
		grid-template-columns: 1.1fr .9fr;
		gap: 56px;
	}
	/* Column ratios — text share first, sidebar share second. */
	.cs-text-sidebar--split-50-50 .cs-text-sidebar-inner { grid-template-columns: 1fr 1fr; }
	.cs-text-sidebar--split-60-40 .cs-text-sidebar-inner { grid-template-columns: 3fr 2fr; }
	.cs-text-sidebar--split-40-60 .cs-text-sidebar-inner { grid-template-columns: 2fr 3fr; }
	.cs-text-sidebar--split-67-33 .cs-text-sidebar-inner { grid-template-columns: 2fr 1fr; }
	.cs-text-sidebar--split-33-67 .cs-text-sidebar-inner { grid-template-columns: 1fr 2fr; }
	/* Sidebar first: swap the visual order and mirror the ratio. */
	.cs-text-sidebar--sidebar-left .cs-text-sidebar-inner { grid-template-columns: .9fr 1.1fr; }
	.cs-text-sidebar--sidebar-left.cs-text-sidebar--split-50-50 .cs-text-sidebar-inner { grid-template-columns: 1fr 1fr; }
	.cs-text-sidebar--sidebar-left.cs-text-sidebar--split-60-40 .cs-text-sidebar-inner { grid-template-columns: 2fr 3fr; }
	.cs-text-sidebar--sidebar-left.cs-text-sidebar--split-40-60 .cs-text-sidebar-inner { grid-template-columns: 3fr 2fr; }
	.cs-text-sidebar--sidebar-left.cs-text-sidebar--split-67-33 .cs-text-sidebar-inner { grid-template-columns: 1fr 2fr; }
	.cs-text-sidebar--sidebar-left.cs-text-sidebar--split-33-67 .cs-text-sidebar-inner { grid-template-columns: 2fr 1fr; }
	.cs-text-sidebar--sidebar-left .cs-text-sidebar-main { order: 2; }
	.cs-text-sidebar--sidebar-left .cs-text-sidebar-box { order: 1; }
	/* Stacked wins over any ratio it was combined with. */
	.cs-text-sidebar--stacked .cs-text-sidebar-inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.cs-text-sidebar-box--sticky {
		position: sticky;
		top: 40px;
	}
}

/* ── Share buttons block ── */
.cs-share {
	background: #fff;
	padding: 56px 24px;
	text-align: center;
}
.cs-share-inner {
	max-width: 600px;
	margin: 0 auto;
}
.cs-share h2 {
	font-family: var(--block-font-heading);
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	font-weight: 400;
	color: var(--block-dark, #1a2332);
	margin: 0 0 12px;
}
.cs-share p {
	font-size: .92rem;
	color: var(--block-text-secondary, #5a5a5a);
	margin: 0 0 24px;
	line-height: 1.7;
}
.cs-share-links {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}
.cs-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: var(--block-btn-radius, 50px);
	font-family: var(--block-font-body);
	font-size: .82rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: all .3s cubic-bezier(.22,1,.36,1);
	border: none;
	cursor: pointer;
}
.cs-share-btn svg { flex-shrink: 0; }
.cs-share-btn--whatsapp { background: #0E7A6D; color: #fff !important; }
.cs-share-btn--whatsapp:hover { background: #0A5F55; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.25); color: #fff !important; }
.cs-share-btn--facebook { background: #0C63D4; color: #fff !important; }
.cs-share-btn--facebook:hover { background: #0A55B8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(24,119,242,.25); color: #fff !important; }
.cs-share-btn--linkedin { background: #0A66C2; color: #fff !important; }
.cs-share-btn--linkedin:hover { background: #004182; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,102,194,.25); color: #fff !important; }
.cs-share-btn--x { background: var(--block-dark, #1a2332); color: #fff !important; }
.cs-share-btn--x:hover { background: #000; transform: translateY(-1px); color: #fff !important; }
.cs-share-btn--telegram { background: #0077B3; color: #fff !important; }
.cs-share-btn--telegram:hover { background: #00618F; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(38,165,228,.25); color: #fff !important; }
.cs-share-btn--email { background: #6B7280; color: #fff !important; }
.cs-share-btn--email:hover { background: #4B5563; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(107,114,128,.25); color: #fff !important; }
.cs-share-btn--link { background: #fff; color: var(--block-text, #2c2c2c) !important; border: 1px solid rgba(0,0,0,.1); }
.cs-share-btn--link:hover { border-color: var(--block-accent-text, var(--block-accent, #3DAABD)); color: var(--block-accent-text, var(--block-accent, #3DAABD)) !important; transform: translateY(-1px); }

/* ── Share: background variants ── */
.cs-share--bg-cream { background: var(--block-bg, #FDFCF9); }
.cs-share--bg-sky   { background: var(--block-bg-sky, #E8F4F6); }
.cs-share--bg-warm  { background: var(--block-bg-warm, #F5F2ED); }
.cs-share--bg-accent-light  { background: color-mix(in srgb, var(--block-accent) 8%, #fff); }
.cs-share--bg-accent-medium { background: color-mix(in srgb, var(--block-accent) 15%, #fff); }
.cs-share--bg-navy  { background: var(--block-dark, #1a2332); }
.cs-share--bg-navy h2 { color: var(--block-dark-ink,#fff); }
.cs-share--bg-navy p  { color: color-mix(in srgb,var(--block-dark-ink,#fff) 80%,transparent); }

/* ── Share: display mode ──
   The label element is emitted whenever either breakpoint wants it, so the
   desktop mode has to hide it rather than rely on it being absent. */
.cs-share--icon-only .cs-share-btn { padding: 10px 14px; gap: 0; }
.cs-share--icon-only .cs-share-btn__label { display: none; }
.cs-share--label-only .cs-share-btn svg { display: none; }

/* ── Share: accent / custom color mode ── */
.cs-share--accent .cs-share-btn,
.cs-share--custom .cs-share-btn {
	background: var(--share-btn-bg, var(--block-accent,#3DAABD)) !important;
	color: #fff !important;
	border-color: transparent !important;
}
.cs-share--accent .cs-share-btn:hover,
.cs-share--custom .cs-share-btn:hover {
	filter: brightness(.88);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* ── Share: copy feedback ── */
.cs-share-btn--link.is-copied {
	background: #22c55e !important;
	color: #fff !important;
	border-color: transparent !important;
}
.cs-share-btn--link.is-copied svg { display: none; }
.cs-share-btn--link.is-copied::before {
	content: "";
	display: inline-block;
	width: 16px; height: 16px;
	background: #fff;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	mask-size: contain;
	flex-shrink: 0;
}

/* ── Share: navy bg + official buttons ── */
.cs-share--bg-navy .cs-share-btn--link {
	background: color-mix(in srgb,var(--block-dark-ink,#fff) 10%,transparent);
	color: var(--block-dark-ink,#fff) !important;
	border-color: color-mix(in srgb,var(--block-dark-ink,#fff) 20%,transparent);
}
.cs-share--bg-navy .cs-share-btn--link:hover {
	background: color-mix(in srgb,var(--block-dark-ink,#fff) 20%,transparent);
	color: var(--block-dark-ink,#fff) !important;
	border-color: color-mix(in srgb,var(--block-dark-ink,#fff) 40%,transparent);
}

/* ── Share: per-channel breakpoint visibility ──
   Only exceptions carry a class; a channel with neither shows at both sizes. */
@media (min-width: 521px) {
	.cs-share .cs-share-btn--mobile-only { display: none; }
}
@media (max-width: 520px) {
	.cs-share .cs-share-btn--desktop-only { display: none; }
}

/* ── Share: mobile appearance ──
   The section class is doubled up so these outrank the desktop display-mode
   rules above regardless of source order, and also outrank the pre-plugin copy
   of this component that an older consuming theme may still enqueue after us. */
@media (max-width: 520px) {
	.cs-share.cs-share--m-icon .cs-share-btn__label { display: none; }
	.cs-share.cs-share--m-icon .cs-share-btn { padding: 10px 14px; gap: 0; }

	.cs-share.cs-share--m-label .cs-share-btn svg { display: none; }

	.cs-share.cs-share--m-label .cs-share-btn__label,
	.cs-share.cs-share--m-both .cs-share-btn__label { display: inline; }
	.cs-share.cs-share--m-label .cs-share-btn,
	.cs-share.cs-share--m-both .cs-share-btn { padding: 10px 20px; gap: 8px; }

	/* Only needed when the desktop mode is the one hiding the icon. :not()
	   keeps the copy button's "copied" checkmark swap intact. Without the
	   --m-icon half, a label-only block rendered empty buttons on mobile under
	   the default mobileDisplayMode. */
	.cs-share.cs-share--label-only.cs-share--m-both .cs-share-btn:not(.is-copied) svg,
	.cs-share.cs-share--label-only.cs-share--m-icon .cs-share-btn:not(.is-copied) svg { display: inline; }
}

/* ── Reduced motion: stop the infinite float loops. Scroll-reveal needs no
      gate here — the .reveal hiding rules above only apply under the
      .ali-reveal-ready root class, which base.js never adds when
      prefers-reduced-motion is set. ── */
@media (prefers-reduced-motion: reduce) {
	.ali-floating-image img,
	.cs-form-embed-side-image img,
	.cs-form-embed-form--motion-float,
	.cs-form-embed-form--motion-float-tilt,
	.cs-form-embed-form--motion-pulse,
	.cs-form-embed-form--motion-pulse-glow {
		animation: none;
	}

	/* Hover zoom/tilt on image-text: a transform, not an animation, so it needs
	   its own reset rather than `animation: none`. */
	.cs-image-text__img:hover img,
	.cs-image-text__img:hover video,
	.cs-image-text__img--tilt:hover img {
		transform: none;
	}
}

/* ═════════════════════════════════════════════════════════════
   OPTIONAL ANIMATIONS — shared contract
   PHP mirror: includes/animation.php · editor mirror: src/blocks/_shared/animations.js
   Keep the key tables in all three in step.

   Three independent axes, each opt-in per block, each with a `none` opt-out:
     .reveal--<style>   entrance, layered on the existing .reveal machinery
     .ali-motion--<key> ambient loop, reusing the keyframes defined above
     .ali-hover--<key>  pointer motion

   This section is deliberately LAST in base.css: the entrance variants tie on
   specificity with the .ali-reveal-ready base rules, so source order is what
   makes them win, and the reduced-motion block at the bottom has to outrank
   every utility it disables.
   ═════════════════════════════════════════════════════════════ */

/* ── Entrance direction variants ──
   Resting transform only, each doubled to (0,3,0).
   Source order is NOT enough here. Every per-block stylesheet declares
   `ali-blocks-base` as a dependency (includes/assets.php), so it always prints
   AFTER this file and wins any tie — and timeline.css:98-99 sets its own
   resting transform at (0,2,0) on `.ali-timeline__event--left.cs-reveal`.
   A single-class variant tied that and lost, leaving the entrance control
   inert on exactly the block with the most elaborate reveal. */
.ali-reveal-ready .reveal--fade.reveal--fade   { transform: none; }
.ali-reveal-ready .reveal--up.reveal--up       { transform: translateY(30px); }
.ali-reveal-ready .reveal--down.reveal--down   { transform: translateY(-30px); }
.ali-reveal-ready .reveal--left.reveal--left   { transform: translateX(-40px); }
.ali-reveal-ready .reveal--right.reveal--right { transform: translateX(40px); }
.ali-reveal-ready .reveal--zoom.reveal--zoom   { transform: scale(.94); }

/* Settled state for a chosen variant, at (0,4,0) so it outranks both the
   resting rules above and any per-block settled transform
   (timeline.css:100 `.ali-timeline__event.cs-reveal.visible` is (0,3,0)).
   Scoped to elements that actually carry a `reveal--*` class, so a block
   left on the default keeps whatever settled rule it had before.
   `none`, not `translateY(0)`: an identity transform still makes the element
   a containing block and a stacking context for position:fixed descendants,
   which is precisely how an entrance on ali/modal collapsed its full-screen
   overlay onto the trigger button. */
.ali-reveal-ready [class*="reveal--"][class*="reveal--"].visible { transform: none; }

/* A horizontal entrance on a full-bleed element widens the document while it
   is off-screen, so the two X-axis variants clip once at the top rather than
   at each call site. `clip`, not `hidden`: hidden turns body into a scroll
   container and would strand every position:sticky descendant — including
   text-and-sidebar's sticky sidebar. */
body:has(.reveal--left),
body:has(.reveal--right) { overflow-x: clip; }

/* Stagger steps. d1-d3 already existed further up; d4-d6 extend the same
   ramp for the longer repeaters (icon-cards allows four, post-grid more). */
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }
.reveal-d6 { transition-delay: .6s; }

/* ── Ambient loop motion ──
   Element-agnostic wrappers around the keyframes defined earlier in this file.
   `--none` is doubled to (0,2,0) so it also cancels a loop a block set in its
   own stylesheet. */
.ali-motion--float      { animation: aliFloatFlat 5s ease-in-out infinite; }
.ali-motion--float-tilt { animation: aliFloat 5s ease-in-out infinite; }
.ali-motion--pulse      { animation: aliPulse 3.2s ease-in-out infinite; }
.ali-motion--pulse-soft { animation: aliPulseSoft 3.2s ease-in-out infinite; }
.ali-motion--glow       { animation: aliPulseGlowBox 3.2s ease-in-out infinite; }
.ali-motion--sway       { animation: aliSway 6s ease-in-out infinite; }
.ali-motion--none.ali-motion--none { animation: none; }

/* The one keyframe set this contract adds: a rotation with no vertical drift,
   for badges and icons where a float would break the baseline they sit on. */
@keyframes aliSway {
	0%, 100% { transform: rotate(-2deg); }
	50% { transform: rotate(2deg); }
}

/* A loop that owns `transform` makes its element the containing block for any
   position:fixed descendant. The glow variant animates box-shadow instead and
   is the safe choice over anything that can host a modal or a sticky child. */

/* ── Hover motion ──
   Tripled class = (0,4,0) on the :hover rules, tripled = (0,3,0) on the
   transition group. Every per-block stylesheet loads after this file, so the
   utilities must be strictly heavier than what they override, never equal:
     .ali-cu-card:hover                                    (0,2,0)  corsi-universitari.css:32
     .ali-timeline__card:hover                             (0,2,0)  timeline.css:60
     .ali-cta-semplice-partner-card:hover                  (0,2,0)  cta-semplice.css:69
     .ali-don-section .ali-don-section__impact-card:hover  (0,3,0)  sostienici.css:627  <-- the tie
     .cs-partner--grayscale .cs-partner-logo               (0,2,0)  base.css:526 (transition)
   The sostienici rule tied the old doubled utilities and won on load order, so
   donation-section's whole hoverMotion axis — including the `none` opt-out —
   did nothing. The grayscale rule narrows `transition-property` to `filter`,
   which is why the transition group needs the bump too or partner logos snap. */
.ali-hover--lift.ali-hover--lift.ali-hover--lift,
.ali-hover--lift-lg.ali-hover--lift-lg.ali-hover--lift-lg,
.ali-hover--zoom.ali-hover--zoom.ali-hover--zoom,
.ali-hover--tilt.ali-hover--tilt.ali-hover--tilt,
.ali-hover--glow.ali-hover--glow.ali-hover--glow {
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1);
}
.ali-hover--lift.ali-hover--lift.ali-hover--lift:hover          { transform: translateY(-2px); }
.ali-hover--lift-lg.ali-hover--lift-lg.ali-hover--lift-lg:hover { transform: translateY(-4px); }
.ali-hover--zoom.ali-hover--zoom.ali-hover--zoom:hover          { transform: scale(1.03); }
.ali-hover--tilt.ali-hover--tilt.ali-hover--tilt:hover          { transform: rotate(-1.5deg) scale(1.04); }
.ali-hover--glow.ali-hover--glow.ali-hover--glow:hover          { box-shadow: 0 12px 40px color-mix(in srgb, var(--block-accent) 22%, transparent); }
/* Transform only — a card with a resting shadow keeps it, the way image-text's
   older --no-motion variant behaves. */
.ali-hover--none.ali-hover--none.ali-hover--none:hover          { transform: none; }

/* Wrapper for an entrance that must not land on the element itself. ali/modal
   uses it: the block wrapper is the parent of a position:fixed overlay, so a
   transform there would resolve the overlay's inset against the wrapper
   instead of the viewport. Emitted only when an entrance is actually chosen. */
.ali-anim-wrap { display: inline-block; }

/* ── Reduced motion for the shared contract ──
   [class*=…] weighs the same as one class, so these have to be repeated until
   they outrank BOTH the utilities above and the per-block rules those override
   — the hover gate needs (0,5,0) to clear the tripled (0,4,0) utilities and
   sostienici's (0,3,0) card hover, which the old doubled version lost to, so
   reduced-motion users still got the impact-card lift. Entrance needs no gate:
   base.js withholds .ali-reveal-ready entirely under reduced motion. ── */
@media (prefers-reduced-motion: reduce) {
	[class*="ali-motion--"][class*="ali-motion--"][class*="ali-motion--"] { animation: none; }
	[class*="ali-hover--"][class*="ali-hover--"][class*="ali-hover--"][class*="ali-hover--"]:hover { transform: none; }
}

/* ── Prose links ─────────────────────────────────
   Consuming themes ship a global `a { color: <site accent> }`, which then shows
   the SITE accent inside a section carrying a different --block-accent — a
   campaign page rendered its links in the main brand colour. Blocks own the
   colour of links in their own prose containers; keep this last in the file so
   it beats the theme by load order as well as specificity. */
.cs-image-text__body a,
.ali-faq-content a,
.ali-content-block-body a,
.cs-intro__text a,
.ali-notice-box a {
	color: var(--block-accent-text, var(--block-accent, #3DAABD));
}
/* On a dark surface the accent is usually too dark to read; ink instead. */
.cs-image-text--bg-navy .cs-image-text__body a,
.ali-faq-section--bg-navy .ali-faq-content a,
.ali-faq-section--bg-accent-gradient .ali-faq-content a,
.ali-content-block--bg-navy .ali-content-block-body a,
.cs-intro--bg-navy .cs-intro__text a {
	color: var(--block-dark-ink, var(--block-dark-ink,#fff));
}
