/* Self-hosted Titillium Web (Google Fonts, latin subset covers Italian). */
@font-face {
	font-family: "Titillium Web";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/titillium-web-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Titillium Web";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/titillium-web-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Titillium Web";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/titillium-web-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--cm-green: #39ff14;
	--cm-blue: #a2d9ff;
	--cm-purple: #d5b4ff;
	--cm-yellow: #eaff57;
	--cm-teal: #01baa7;
	--cm-violet: #9747ff;
	--cm-lime: #e6ff64;
	--cm-gray: #f5f5f5;
	--cm-gray-text: #b1b1b1;
	--cm-gray-bg: #ededed;
	--cm-black: #000000;
	--cm-white: #ffffff;
	--cm-border: #000000;
	--cm-radius-card: 20px;
	--cm-shadow-card: 0 4px 6.3px rgba(0, 0, 0, 0.25);
	--cm-shadow-header: 0 4px 2px rgba(0, 0, 0, 0.15);
	--cm-font: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--cm-font);
	color: var(--cm-black);
	background: var(--cm-white);
	line-height: 1.5;
}

/* Elementor widgets follow the theme font (Titillium Web) instead of the
   kit default Roboto. */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li,
.elementor-widget-button .elementor-button {
	font-family: var(--cm-font);
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	background: var(--cm-white);
	z-index: 100;
	box-shadow: var(--cm-shadow-header);
}

/* Keep the sticky header below the WP admin bar when logged in. */
body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* On small screens the admin bar is position:absolute and scrolls away:
   once it is off-screen the sticky header must drop its offset, or an
   empty gap is left above it (same for the mobile menu overlay). */
body.admin-bar.cm-adminbar-hidden .site-header,
body.admin-bar.cm-adminbar-hidden .menu-overlay {
	top: 0;
}

.header-bar--minimal {
	border-bottom: 1px solid var(--cm-border);
	padding: 14px 0;
}

.header-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Below the 1400px design width the header container would sit flush
   with the viewport edge: add gutters. */
@media (max-width: 1399px) {
	.site-header .container {
		padding-left: 24px;
		padding-right: 24px;
	}
}

.header-bar--expanded {
	display: none;
	border-bottom: 1px solid var(--cm-border);
}

.header-bar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-mark {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--cm-black);
}

.header-mark__img {
	display: block;
	height: 37px;
	width: auto;
}

.menu-toggle {
	background: none;
	border: none;
	padding: 0;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	color: var(--cm-black);
	letter-spacing: 0.5px;
}

.menu-toggle__label--close {
	display: none;
}

.site-header.menu-open .menu-toggle__label--open {
	display: none;
}

.site-header.menu-open .menu-toggle__label--close {
	display: inline;
}

.lang-switcher {
	font-size: 12px;
	letter-spacing: 0.5px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lang-active {
	text-decoration: underline;
	font-weight: 700;
}

.lang-sep {
	margin: 0 6px;
	color: var(--cm-black);
}

.lang-link {
	color: var(--cm-black);
	text-decoration: none;
	font-weight: 400;
}

.lang-link:hover {
	text-decoration: underline;
}

.lang-link--disabled {
	color: var(--cm-gray-text);
	text-decoration: none;
	cursor: not-allowed;
}

.lang-link--disabled:hover {
	text-decoration: none;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-logo__image,
.custom-logo-link .custom-logo {
	width: auto;
	height: 60px;
	display: block;
}

.site-logo--default,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: var(--cm-black);
	padding: 1em 0;
}

.site-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.site-logo__mark svg {
	width: 64px;
	height: 64px;
}

.site-logo__text {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.05;
	font-weight: 700;
}

.site-logo__line--top {
	font-size: 16px;
	letter-spacing: 0.2px;
}

.site-logo__line--bottom {
	font-size: 22px;
	letter-spacing: 0.2px;
}

.site-logo__text--default {
	line-height: 1.1;
}

.site-logo__text--default .site-logo__line--1 {
	font-size: 22px;
}

.site-logo__text--default .site-logo__line--2 {
	font-size: 22px;
}

.site-logo__text--default .site-logo__line--3 {
	font-size: 22px;
}

.site-logo--compact {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--cm-black);
	padding: 0;
}

.site-logo--compact .site-logo__mark svg {
	width: 38px;
	height: 38px;
}

.site-logo__custom-wrap {
	display: inline-flex;
	align-items: center;
}

.site-logo__custom {
	max-height: 48px;
	width: auto;
	display: block;
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.footer-logo__img {
	max-height: 80px;
	width: auto;
	display: block;
}

.site-logo__text--compact {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.05;
	font-weight: 700;
}

.site-logo__text--compact .site-logo__line--1 {
	font-size: 16px;
	letter-spacing: 0.2px;
}

.site-logo__text--compact .site-logo__line--2 {
	font-size: 16px;
	letter-spacing: 0.2px;
}

/* Desktop dropdown: overlays the compact header (top: 0) instead of
   stacking below it, so only one header is visible when open. */
.header-bar--compact-expanded {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 95;
	display: block;
	background: var(--cm-white);
	border-bottom: 1px solid var(--cm-border);
	box-shadow: var(--cm-shadow-header);
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transition: max-height 0.28s ease, opacity 0.2s ease;
}

.site-header.menu-open .header-bar--compact-expanded {
	max-height: 320px;
	opacity: 1;
	pointer-events: auto;
}

.site-header.menu-open .menu-toggle[aria-controls] {
	font-weight: 700;
}

.header-bar__inner--compact {
	min-height: 64px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.main-navigation--compact {
	/* border-top: 1px solid var(--cm-border); */
}

.nav-tabs--compact {
	padding: 12px 0 16px;
}

.nav-tabs--compact a {
	padding: 0 14px;
	height: 32px;
}

.nav-tabs--compact a:hover {
	background: var(--cm-black);
	color: var(--cm-white);
}

.main-navigation {
	/* border-top: 1px solid var(--cm-border); */
}

.nav-tabs {
	list-style: none;
	padding: 16px 0;
	margin: 0;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.nav-tabs li {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.nav-tabs a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
	height: 32px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--cm-black);
	letter-spacing: 0.8px;
	white-space: nowrap;
	border: 1px solid var(--cm-border);
	background: var(--cm-white);
	transition: background 0.15s ease, color 0.15s ease;
}

.nav-tabs a:hover {
	background: var(--cm-black);
	color: var(--cm-white);
}

.nav-tabs a::after {
	content: "\2192";
	margin-left: 12px;
	font-size: 13px;
}

.menu-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--cm-white);
	z-index: 200;
	flex-direction: column;
}

.menu-overlay.active {
	display: flex;
}

/* Admin bar (logged-in users) has a higher z-index and would cover the
   overlay header: push the overlay below it so the close button stays
   visible and clickable. */
body.admin-bar .menu-overlay {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .menu-overlay {
		top: 46px;
	}
}

.menu-overlay__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 10px 24px;
	border-bottom: 1px solid var(--cm-border);
}

.menu-overlay__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-right: -10px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--cm-black);
}

.menu-overlay__close svg {
	display: block;
	width: 22px;
	height: 22px;
}

.menu-overlay__content {
	flex: 1;
	padding: 48px 24px;
	overflow-y: auto;
}

.menu-overlay__content .site-logo {
	margin-bottom: 48px;
}

.overlay-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}

.overlay-nav li {
	border-bottom: 1px solid var(--cm-border);
}

.overlay-nav a {
	display: block;
	padding: 20px 0;
	font-size: 28px;
	font-weight: 700;
	text-decoration: none;
	color: var(--cm-black);
	transition: opacity 0.15s ease;
}

.overlay-nav a:hover {
	opacity: 0.6;
}

@media (min-width: 1024px) {
	/* Pages with the expanded header (front page, or every page when the
	   Customizer option is on): the expanded header collapses while the
	   compact one grows, so the swap is a smooth slide with no layout
	   jump (no flicker). Padding and border live out of the max-height
	   clip only on the child.
	   Scroll anchoring is disabled because it would compensate the header
	   height change by moving scrollY, re-triggering the condense logic. */
	body.cm-header-expanded {
		overflow-anchor: none;
	}

	body.cm-header-expanded .header-bar--minimal {
		max-height: 0;
		padding: 0;
		opacity: 0;
		overflow: hidden;
		pointer-events: none;
		border-bottom-color: transparent;
		transition: max-height 0.3s ease, opacity 0.22s ease, border-bottom-color 0.3s ease;
	}

	body.cm-header-expanded .header-bar--minimal > .container {
		padding-top: 14px;
		padding-bottom: 14px;
	}

	body.cm-header-expanded .header-bar--expanded {
		display: block;
		max-height: 320px;
		overflow: hidden;
		opacity: 1;
		transition: max-height 0.3s ease, opacity 0.22s ease, border-bottom-color 0.3s ease;
	}

	body.cm-header-expanded .site-header--condensed .header-bar--minimal {
		max-height: 96px;
		opacity: 1;
		pointer-events: auto;
		border-bottom-color: var(--cm-border);
	}

	body.cm-header-expanded .site-header--condensed .header-bar--expanded {
		max-height: 0;
		opacity: 0;
		pointer-events: none;
		border-bottom-color: transparent;
	}

	#menu-overlay {
		display: none !important;
	}
}

@media (max-width: 1023px) {
	.header-bar--compact-expanded {
		display: none !important;
	}
}

.site-content {
	min-height: 60vh;
}

.site-footer {
	border-top: 1px solid var(--cm-border);
	padding: 40px 0 56px;
	margin-top: 64px;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 2fr 2fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 900px) {
	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.footer-inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		gap: 28px;
	}

	.footer-social {
		align-items: center;
	}

	.footer-brand .custom-logo-link,
	.footer-brand .footer-logo {
		display: inline-block;
	}
}

.footer-inner a {
	color: var(--cm-black);
}

.footer-brand .site-logo__image,
.footer-brand .custom-logo-link .custom-logo {
	height: 56px;
}

.footer-brand .site-logo--default .site-logo__mark svg {
	width: 48px;
	height: 48px;
}

.footer-brand .site-logo--default .site-logo__line--top {
	font-size: 15px;
}

.footer-brand .site-logo--default .site-logo__line--bottom {
	font-size: 19px;
}

.footer-brand .site-logo--default .site-logo__text--default .site-logo__line--1 {
	font-size: 17px;
}

.footer-brand .site-logo--default .site-logo__text--default .site-logo__line--2 {
	font-size: 17px;
}

.footer-brand .site-logo--default .site-logo__text--default .site-logo__line--3 {
	font-size: 17px;
}

.footer-social {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
}

.footer-address p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.footer-contacts p {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
}

.footer-contacts a {
	text-decoration: underline;
}

.cm-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	padding: 80px 0;
	border-bottom: 1px solid var(--cm-border);
}

.cm-hero--image-only {
	display: block;
	padding: 0;
	border-bottom: none;
}

.cm-hero--image-only .cm-hero__image {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.cm-hero__text h1 {
	font-size: 32px;
	line-height: 1.1;
	margin: 0;
	font-weight: 600;
}

.cm-hero__arrow {
	margin-top: 32px;
	font-size: 24px;
}

.cm-hero__image {
	position: relative;
	background: var(--cm-green);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.cm-hero__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 138px;
	height: 138px;
}

.cm-hero__slider,
.cm-hero__slider img,
.elementor img.cm-hero__slider {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cm-hero-slider__link {
	display: block;
	width: 100%;
	height: 100%;
}

/* Hero slider */
.cm-hero-slider {
	display: block;
}

.cm-hero-slider__track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.5s ease;
}

.cm-hero-slider__slide {
	flex: 0 0 100%;
	height: 100%;
	position: relative;
}

.cm-hero-slider__slide img {
	display: block;
}

.cm-hero-slider__slide a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Fade transition: slides stacked, opacity crossfade */
.cm-hero-slider[data-transition="fade"] .cm-hero-slider__track {
	position: relative;
	height: 100%;
}

.cm-hero-slider[data-transition="fade"] .cm-hero-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.cm-hero-slider[data-transition="fade"] .cm-hero-slider__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* None transition: instant switch */
.cm-hero-slider[data-transition="none"] .cm-hero-slider__track {
	transition: none;
}

/* Slide caption overlay (image-only layout with titles) */
.cm-hero-slider__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 24px 20px;
	color: var(--cm-white);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.cm-hero-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 1px solid var(--cm-black);
	background: var(--cm-white);
	color: var(--cm-black);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
	opacity: 0;
	pointer-events: none;
}

.cm-hero-slider:hover .cm-hero-slider__nav {
	opacity: 1;
	pointer-events: auto;
}

.cm-hero-slider__nav:hover {
	background: var(--cm-black);
	color: var(--cm-white);
}

.cm-hero-slider__nav--prev {
	left: 12px;
}

.cm-hero-slider__nav--next {
	right: 12px;
}

.cm-hero-slider__dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.cm-hero-slider__dots button {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid var(--cm-black);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.cm-hero-slider__dots button.is-active {
	background: var(--cm-black);
}

.cm-news-events-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* NewsEventsGridWidget: single continuous grid - cards from the initial
   render and from AJAX "Load more" batches all flow into the same grid
   (same approach as the archive continuous scroll), so rows always hold
   3 cards (medium), 4 cards (small) or 2 cards (grid-2x2) regardless of
   which batch the card belongs to. */
.cm-events-grid-widget__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.cm-events-grid-widget--grid-2x2 .cm-events-grid-widget__grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.cm-events-grid-widget--small-4 .cm-events-grid-widget__grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.cm-events-grid-widget--medium-3 .cm-events-grid-widget__grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* featured: 4-col base, the first 2 cards span 2 cols each (the "featured"
   row). Subsequent batches fill the grid with regular 4-col flow. */
.cm-events-grid-widget--featured-2-plus-small .cm-events-grid-widget__grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.cm-events-grid-widget--featured-2-plus-small .cm-events-grid-widget__grid > .cm-card--large {
	grid-column: span 2;
}

@media (max-width: 900px) {
	.cm-events-grid-widget__grid,
	.cm-events-grid-widget--grid-2x2 .cm-events-grid-widget__grid,
	.cm-events-grid-widget--small-4 .cm-events-grid-widget__grid,
	.cm-events-grid-widget--medium-3 .cm-events-grid-widget__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cm-events-grid-widget--featured-2-plus-small .cm-events-grid-widget__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cm-events-grid-widget--featured-2-plus-small .cm-events-grid-widget__grid > .cm-card--large {
		grid-column: span 1;
	}
}

.cm-events-grid-widget__loadmore {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.cm-loadmore-btn {
	background: var(--cm-black);
	color: var(--cm-white);
	border: 0;
	border-radius: 999px;
	padding: 14px 36px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.cm-loadmore-btn:hover,
.cm-loadmore-btn:focus {
	background: #222;
	outline: none;
}

.cm-loadmore-btn:disabled {
	background: var(--cm-gray-text);
	cursor: wait;
}

.cm-loadmore-spinner {
	display: none;
	width: 18px;
	height: 18px;
	margin-left: 12px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-top-color: var(--cm-black);
	border-radius: 50%;
	animation: cm-spin 0.8s linear infinite;
}

.cm-events-grid-widget__loadmore.is-loading .cm-loadmore-spinner {
	display: inline-block;
}

@keyframes cm-spin {
	to { transform: rotate(360deg); }
}

.cm-events-grid--featured {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cm-events-grid--featured .cm-card--large {
	width: 100%;
}

.cm-events-grid--featured .cm-card--large .cm-card__image img {
	aspect-ratio: 3 / 2;
}

/* Archive: single continuous grid - rows are transparent (display: contents)
   so cards from page 1 and infinite-scroll batches flow into the same grid,
   filling the current row instead of starting a new block. */
.cm-events-grid__wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.cm-events-grid__wrapper .cm-events-grid__row,
.cm-events-grid__wrapper .cm-events-grid__featured-row {
	display: contents;
}

.cm-events-grid__wrapper .cm-events-grid__featured-cell {
	grid-column: span 2;
}

@media (max-width: 900px) {
	.cm-events-grid__wrapper {
		grid-template-columns: repeat(2, 1fr);
	}

	.cm-events-grid__wrapper .cm-events-grid__featured-cell {
		grid-column: span 1;
	}
}

.cm-events-grid__featured-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.cm-events-grid__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 900px) {
	.cm-events-grid__row,
	.cm-events-grid__featured-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

.cm-card__title--large {
	font-size: 24px;
	line-height: 1.2;
}

.cm-card {
	border: none;
	background: transparent;
	overflow: hidden;
}

.cm-card__image {
	overflow: hidden;
}

.cm-card__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

.cm-card--large .cm-card__image,
.cm-card--small .cm-card__image {
	aspect-ratio: auto;
}

.cm-card__body {
	padding: 12px 0 0;
}

.cm-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.cm-card__date {
	font-size: 10px;
	font-weight: 500;
	color: var(--cm-gray-text);
	text-decoration: underline;
	margin-bottom: 0;
}

.cm-card__label {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid currentColor;
	border-radius: var(--cm-radius-card);
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	margin-bottom: 0;
	color: var(--cm-teal);
	background: transparent;
}

.cm-card__label.cm-card__label--eventi {
	color: var(--cm-violet);
}

.cm-card__title {
	font-size: 20px;
	margin: 0;
	line-height: 1.2;
	min-height: calc(1.2em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

.cm-card__title a {
	color: var(--cm-black);
	text-decoration: none;
}

.cm-documents-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cm-document-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
}

.cm-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid var(--cm-black);
	background: var(--cm-black);
	color: var(--cm-white);
	text-decoration: none;
	font-weight: 600;
}

.cm-button--download::after {
	content: "\2192";
}

.cm-members-map {
	width: 100%;
	background: var(--cm-gray-bg);
}

.cm-members-map__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 18px;
	font-weight: 700;
}

.cm-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	border-top: 1px solid var(--cm-border);
	border-bottom: 1px solid var(--cm-border);
	padding: 20px 0 28px;
}

.cm-step {
	padding: 0;
}

.cm-step__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.cm-step__number {
	font-size: 16px;
	font-weight: 700;
}

.cm-step__arrow {
	color: var(--cm-gray-text);
	font-size: 16px;
}

.cm-step__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
}

.cm-step__title a {
	color: inherit;
}

.cm-step__description {
	margin: 8px 0 0;
	font-size: 14px;
}

@media (max-width: 900px) {
	.cm-steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 20px;
	}
}

@media (max-width: 520px) {
	.cm-steps {
		grid-template-columns: 1fr;
	}
}

.cm-newsletter {
	background: var(--cm-lime);
	padding: 48px;
	border-radius: var(--cm-radius-card);
}

.cm-newsletter__logo {
	display: block;
	width: 58px;
	height: auto;
	margin-bottom: 32px;
}

.cm-newsletter__title {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cm-black);
}

.cm-newsletter__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px 48px;
}

.cm-newsletter__field {
	display: flex;
	flex-direction: column;
}

.cm-newsletter__label {
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--cm-black);
}

.cm-newsletter input {
	border: none;
	border-bottom: 1px solid var(--cm-black);
	background: transparent;
	padding: 8px 0;
	font-size: 16px;
	color: var(--cm-black);
	width: 100%;
}

.cm-newsletter__submit-wrap {
	grid-column: 1 / 2;
	display: flex;
	justify-content: flex-start;
}

.cm-newsletter__submit {
	background: var(--cm-white);
	color: var(--cm-black);
	border: 1px solid var(--cm-black);
	padding: 12px 16px;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
}

.cm-newsletter__submit::after {
	content: "\2192";
	font-size: 14px;
}

.cm-working-groups {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cm-working-group {
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	background: var(--cm-white);
	border-bottom: 1px solid var(--cm-border);
}

/* CPT Accordion widget */
/* No padding on the main container - sections span edge-to-edge. */
.cm-cpt-accordion {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 0;
}

/* Editor: Elementor marks a widget as "empty" when its content height is
   0 (see github.com/pojome/elementor/issues/4023). This min-height keeps
   the widget visible in the editor preview even while it is being edited
   (e.g. right after changing a setting, before the server re-render). */
.elementor-widget-clusterminit_cpt_accordion .elementor-widget-container {
	min-height: 1px;
}

/* Editor-only placeholder shown inside the Elementor canvas when the
   user edits the widget. The real markup is produced server-side and
   replaces the placeholder after "Apply". */
.cm-cpt-accordion-preview-placeholder {
	padding: 24px;
	border: 2px dashed rgba(0, 0, 0, 0.25);
	background: #fafafa;
	font-family: inherit;
	color: #333;
}

.cm-cpt-accordion-preview-placeholder strong {
	font-size: 18px;
	display: block;
	margin-bottom: 12px;
}

.cm-cpt-accordion-preview-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 12px;
	color: #666;
}

.cm-cpt-accordion-preview-meta em {
	font-style: normal;
	background: #eee;
	padding: 2px 8px;
	border-radius: 4px;
	color: #000;
}

.cm-cpt-accordion-preview-hint {
	margin: 0;
	font-size: 12px;
	color: #999;
	font-style: italic;
}

.cm-cpt-section {
	display: flex;
	flex-direction: column;
	/* Background applies to the WHOLE section (header + items) so
	   coloured blocks stay consistent with the mockup. */
	background: var(--cm-cpt-bg, #01baa7);
	color: var(--cm-black);
}

.cm-cpt-section__header {
	padding: 48px 0px;
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 48px;
	align-items: start;
}

.cm-cpt-section__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.cm-cpt-section__desc {
	font-size: 15px;
	line-height: 1.5;
}

.cm-cpt-section__desc p {
	margin: 0 0 12px;
}

/* Accordion layout: each item is a row with title left, action right. */
.cm-cpt-section__items--accordion {
	display: flex;
	flex-direction: column;
}

.cm-cpt-item--accordion {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0px;
	/* Optional row background (e.g. white rows on a coloured section,
	   as in the Attivita mockup). */
	background: var(--cm-cpt-row-bg, transparent);
	/* Subtle separator that works on light AND coloured backgrounds. */
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	gap: 24px;
}

.cm-cpt-item--accordion:last-child {
	border-bottom: 0;
}

.cm-cpt-item__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	/* Allow the title to shrink and wrap instead of squeezing the
	   action button when the text is very long. */
	min-width: 0;
	overflow-wrap: anywhere;
}

.cm-cpt-item__title a {
	color: inherit;
	text-decoration: none;
}

.cm-cpt-item__action {
	display: inline-flex;
	align-items: center;
	gap: 32px;
	background: var(--cm-black);
	color: var(--cm-white);
	padding: 12px 24px;
	/* Square buttons (no pill rounding). */
	border-radius: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	min-width: 140px;
	justify-content: space-between;
	/* Never shrink below the content: long titles must wrap instead. */
	flex-shrink: 0;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.cm-cpt-item__action:hover,
.cm-cpt-item__action:focus {
	background: #222;
}

.cm-cpt-section__loadmore {
	display: flex;
	justify-content: center;
	padding: 24px 32px 32px;
}

.cm-cpt-section__loadmore .cm-loadmore-btn {
	background: var(--cm-black);
	color: var(--cm-white);
	border: 0;
	border-radius: 0;
	padding: 14px 36px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.cm-cpt-section__loadmore .cm-loadmore-btn:hover,
.cm-cpt-section__loadmore .cm-loadmore-btn:focus {
	background: #222;
}

.cm-cpt-section__loadmore .cm-loadmore-btn:disabled {
	background: var(--cm-gray-text);
	cursor: wait;
}

.cm-cpt-section__loadmore .cm-loadmore-spinner {
	display: none;
	width: 16px;
	height: 16px;
	margin-left: 12px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-top-color: var(--cm-white);
	border-radius: 50%;
	animation: cm-spin 0.8s linear infinite;
}

.cm-cpt-section__loadmore.is-loading .cm-loadmore-spinner {
	display: inline-block;
}

/* Table layout: each item is a grid row with N columns based on
   --cm-cpt-cols. Items flow into a single multi-row grid so they fill
   the row evenly. */
.cm-cpt-section__items--table {
	display: grid;
	grid-template-columns: repeat(var(--cm-cpt-cols, 2), 1fr);
	gap: 16px;
}

.cm-cpt-item--table {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 16px 24px;
	padding: 20px 32px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	align-items: center;
}

/* Four-column variant (title / date / description / action), used by
   documenti. Flexible columns shrink first; the action column keeps its
   intrinsic width so the button is never clipped. */
.cm-cpt-item--table.cm-cpt-item--table-desc {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 2fr) auto;
}

.cm-cpt-item--table .cm-cpt-item__title {
	font-size: 16px;
}

.cm-cpt-item--table .cm-cpt-item__col--date {
	color: var(--cm-black);
	font-size: 14px;
	white-space: nowrap;
}

.cm-cpt-item--table .cm-cpt-item__col--desc {
	font-size: 14px;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.75);
	min-width: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 900px) {
	.cm-cpt-section__header {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 32px 20px;
	}

	.cm-cpt-item--accordion,
	.cm-cpt-item--table {
		padding: 16px 20px;
		flex-wrap: wrap;
	}

	/* Stack table cells on small screens so the action button keeps its
	   full size instead of being squeezed next to the text. */
	.cm-cpt-item--table,
	.cm-cpt-item--table.cm-cpt-item--table-desc {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.cm-cpt-section__items--table {
		grid-template-columns: 1fr;
	}

	.cm-cpt-item--table .cm-cpt-item__col--action {
		margin-top: 8px;
	}
}

.cm-members-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px 24px;
}

.cm-member {
	padding: 0;
}

.cm-member__logo {
	margin-bottom: 8px;
}

.cm-member__logo img {
	display: block;
	max-width: 90px;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.cm-member__name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
}

.cm-member__address {
	margin: 0;
	font-size: 13px;
}

@media (max-width: 900px) {
	.cm-members-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

.clusterminit-meta-box label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.clusterminit-meta-box input,
.clusterminit-meta-box select {
	width: 100%;
}

.clusterminit-meta-box .cm-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.clusterminit-meta-box .description {
	color: #666;
	font-size: 12px;
}

/* Quaderni */
.cm-quaderni-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.cm-quaderni-card {
	display: block;
	text-decoration: none;
	color: var(--cm-black);
	background: var(--cm-gray-bg);
	border: none;
	border-radius: var(--cm-radius-card);
	box-shadow: var(--cm-shadow-card);
	overflow: hidden;
}

/* Netflix-style cover: the artwork fills the background, blurred, while the
   sharp cover sits on top (contain) — replaces the old flat colour fill. */
.cm-quaderni-card__image {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
}

.cm-quaderni-card__image::before {
	content: "";
	position: absolute;
	inset: -28px;
	background-image: var(--cm-q-img);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: blur(26px) saturate(1.15);
}

.cm-quaderni-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--cm-q-img);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.cm-quaderni-card__body {
	padding: 16px;
}

.cm-quaderni-card__title {
	font-size: 18px;
	margin: 0 0 4px;
	font-weight: 700;
	line-height: 1.2;
	min-height: calc(1.2em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

.cm-quaderni-card__date {
	font-size: 13px;
	color: #666;
}

/* National Clusters */
.cm-national-clusters {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	text-align: center;
}

@media (max-width: 900px) {
	.cm-national-clusters {
		grid-template-columns: repeat(2, 1fr);
	}
}

.cm-national-cluster__logo img {
	max-width: 160px;
	height: auto;
	margin-bottom: 8px;
}

.cm-national-cluster__name {
	font-size: 13px;
	font-weight: 700;
}

/* Transmedia Related */
.cm-transmedia-related__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cm-transmedia-related__item {
	padding: 12px 0;
	border-bottom: 1px solid var(--cm-border);
	display: flex;
	justify-content: space-between;
}

.cm-transmedia-related__type {
	font-size: 12px;
	color: #666;
}

/* Projects List */
.cm-projects-list {
	display: flex;
	flex-direction: column;
}

.cm-projects-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 24px;
	background: var(--cm-white);
	border-bottom: 1px solid var(--cm-border);
}

.cm-projects-list__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	min-height: calc(1.2em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

.cm-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid var(--cm-black);
	background: var(--cm-white);
	color: var(--cm-black);
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.5px;
}

.cm-button:hover {
	background: var(--cm-black);
	color: var(--cm-white);
}

.cm-button--entra,
.cm-button--download {
	background: var(--cm-black);
	color: var(--cm-white);
}

.cm-button--entra:hover,
.cm-button--download:hover {
	background: #333;
}

.cm-button--small {
	background: var(--cm-white);
	color: var(--cm-black);
	border: 1px solid var(--cm-black);
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cm-link-arrow {
	color: var(--cm-gray-text);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-size: 15px;
}

.cm-link-arrow::after {
	content: "\2192";
	font-size: 18px;
}

.cm-link-arrow:hover {
	color: var(--cm-black);
}

/* Box Link */
.cm-box-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px 24px;
	text-decoration: none;
	color: var(--cm-black);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cm-box-link--trasp {
	border: 1px solid var(--cm-border);
}

.cm-box-link--lilla { background: #d5b4ff; }
.cm-box-link--giallo { background: #eaff57; }
.cm-box-link--azzurro { background: #a2d9ff; }
.cm-box-link--grigio { background: #d3d3d3; }

.cm-box-link__arrow {
	margin-left: auto;
}

/* Documents Grouped */
.cm-documents-grouped {
	padding: 24px;
	margin-bottom: 24px;
}

.cm-documents-grouped--lilla { background-color: #d5b4ff; }
.cm-documents-grouped--giallo { background-color: #eaff57; }
.cm-documents-grouped--grigio { background-color: #e0e0e0; }
.cm-documents-grouped--azzurro { background-color: #a2d9ff; }

.cm-documents-grouped__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
}

.cm-documents-grouped__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid rgba(0,0,0,0.2);
}

.cm-documents-grouped__info h4 {
	margin: 0 0 4px;
	font-size: 16px;
}

.cm-documents-grouped__excerpt {
	margin: 4px 0 0;
	font-size: 13px;
}

/* Soci Committee */
.cm-committee {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.cm-committee__role {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
}

.cm-committee__leaders {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.cm-committee__leader {
	flex: 1 1 280px;
}

.cm-committee__leader-body {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.cm-committee__photo img {
	display: block;
	width: 150px;
	height: auto;
}

.cm-committee__leader-info .cm-committee__name {
	font-size: 20px;
	margin: 0 0 4px;
}

.cm-committee__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-committee__row {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	padding: 3px 0;
}

.cm-committee__name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.cm-committee__org {
	margin: 0;
	font-size: 14px;
}

@media (max-width: 600px) {
	.cm-committee__leaders {
		gap: 28px;
	}
}

/* Contact Form */
.cm-contact-form-wrap {
	background: var(--cm-gray-bg);
	padding: 32px;
	border-radius: var(--cm-radius-card);
}

.cm-contact-form__title {
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 700;
}

/* CF7 fields styled as the mockup: small labels, underline inputs and a
   white bordered submit button with the arrow on the right. */
.cm-contact-form .wpcf7-form,
.cm-adhesion-form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.cm-contact-form .cm-cf7-grid,
.cm-adhesion-form .cm-cf7-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 32px;
}

.cm-contact-form .wpcf7-form label,
.cm-adhesion-form .wpcf7-form label {
	display: block;
	font-size: 13px;
	line-height: 1.8;
	color: var(--cm-black);
}

.cm-contact-form .wpcf7-form-control-wrap,
.cm-adhesion-form .wpcf7-form-control-wrap {
	display: block;
}

.cm-contact-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance),
.cm-adhesion-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
	border: none;
	border-bottom: 1px solid var(--cm-black);
	background: transparent;
	width: 100%;
	padding: 6px 0;
	font-size: 15px;
	font-family: inherit;
	color: var(--cm-black);
	border-radius: 0;
	box-shadow: none;
	outline: none;
}

.cm-contact-form .wpcf7-textarea {
	min-height: 200px;
	resize: vertical;
}

.cm-contact-form .wpcf7-submit,
.cm-adhesion-form .wpcf7-submit {
	background: var(--cm-white);
	color: var(--cm-black);
	border: 1px solid var(--cm-black);
	border-radius: 0;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-width: 220px;
}

/* Text-editor links follow the mockup (black, underlined). */
.elementor-widget-text-editor a {
	color: inherit;
}

.cm-contact-form .wpcf7-submit:hover,
.cm-contact-form .wpcf7-submit:focus,
.cm-adhesion-form .wpcf7-submit:hover,
.cm-adhesion-form .wpcf7-submit:focus {
	background: var(--cm-black);
	color: var(--cm-white);
}

.cm-contact-form .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 4px;
}

.cm-contact-form .wpcf7-response-output {
	margin: 0;
	font-size: 13px;
}

@media (max-width: 600px) {
	.cm-contact-form .cm-cf7-grid,
.cm-adhesion-form .cm-cf7-grid {
		grid-template-columns: 1fr;
	}
}

/* Adhesion Form */
.cm-adhesion-form-wrap {
	margin: 24px 0;
}

.cm-adhesion-form__title {
	margin: 0 0 24px;
	font-size: 20px;
	font-weight: 700;
}

.cm-adhesion-cols {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 40px 24px;
	align-items: start;
}

.cm-adhesion-label {
	margin: 0 0 12px;
	font-size: 15px;
}

.cm-adhesion-card + .cm-adhesion-label {
	margin-top: 40px;
}

.cm-adhesion-card {
	background: var(--cm-gray-bg);
	border-radius: var(--cm-radius-card);
	padding: 28px;
}

.cm-adhesion-subtitle {
	margin: 28px 0 0;
	font-size: 14px;
	font-weight: 700;
}

.cm-adhesion-form .wpcf7-textarea {
	min-height: 120px;
	resize: vertical;
}

.cm-adhesion-col .wpcf7-submit {
	margin-top: 32px;
}

@media (max-width: 900px) {
	.cm-adhesion-cols {
		grid-template-columns: 1fr;
	}
}

/* Related Events */
.cm-related-events {
	display: flex;
	flex-direction: column;
}

.cm-related-events__item {
	display: flex;
	flex-direction: column;
	padding: 12px 0;
	border-bottom: 1px solid var(--cm-border);
	text-decoration: none;
	color: var(--cm-black);
}

.cm-related-events__date {
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
	text-decoration: underline;
}

.cm-related-events__title {
	font-size: 14px;
	font-weight: 600;
}

/* Single Event */
.cm-single-event {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap: 32px;
	padding: 32px 0;
}

@media (max-width: 900px) {
	.cm-single-event {
		grid-template-columns: 1fr;
	}
}

.cm-single-event__sidebar-left,
.cm-single-event__sidebar-right {
	font-size: 14px;
}

.cm-single-event__meta {
	margin: 8px 0;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.cm-single-event__sidebar-left .cm-button {
	margin-top: 16px;
}

.cm-single-event__content img {
	max-width: 100%;
	height: auto;
	margin-bottom: 24px;
}

/* Login Template */
.cm-login-wrap {
	max-width: 480px;
	margin: 64px auto;
	padding: 48px;
	background: #a2d9ff;
	border-radius: 16px;
}

.cm-login-wrap form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cm-login-wrap input[type="text"],
.cm-login-wrap input[type="password"] {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--cm-black);
	background: transparent;
	padding: 8px 0;
	font-size: 16px;
}

.cm-login-wrap .cm-login-meta {
	display: flex;
	gap: 24px;
	font-size: 12px;
}

.cm-login-wrap .cm-login-submit {
	background: var(--cm-white);
	color: var(--cm-black);
	border: 1px solid var(--cm-black);
	padding: 10px 20px;
	font-weight: 700;
	cursor: pointer;
	align-self: flex-start;
}

/* Archive */
.cm-archive {
	max-width: 1400px;
	margin: 0 auto;
	padding: 32px 24px 64px;
}

.cm-archive__header {
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--cm-border);
}

.cm-archive__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
}

.cm-archive__description {
	margin-top: 12px;
	font-size: 15px;
	color: #444;
}

.cm-archive-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.cm-archive-filters a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--cm-border);
	background: var(--cm-white);
	color: var(--cm-black);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.5px;
}

.cm-archive-filters a.is-active,
.cm-archive-filters a:hover {
	background: var(--cm-black);
	color: var(--cm-white);
}

.cm-archive .cm-events-grid__cell,
.cm-archive .cm-events-grid__featured-cell {
	display: flex;
}

.cm-archive .cm-events-grid__cell > *,
.cm-archive .cm-events-grid__featured-cell > * {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cm-archive-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.cm-archive-list__item {
	padding: 16px 0;
	border-bottom: 1px solid var(--cm-border);
}

.cm-archive-list__item:first-child {
	padding-top: 0;
}

.cm-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.cm-pagination .page-numbers {
	display: inline-flex;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.cm-pagination .page-numbers li a,
.cm-pagination .page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--cm-border);
	text-decoration: none;
	color: var(--cm-black);
	font-size: 13px;
	font-weight: 700;
}

.cm-pagination .page-numbers li .current {
	background: var(--cm-black);
	color: var(--cm-white);
}

/* Continuous scroll */
.cm-archive-loadmore {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 48px 0 8px;
	color: var(--cm-gray-text);
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.cm-archive-loadmore__spinner {
	width: 22px;
	height: 22px;
	border: 2px solid var(--cm-border);
	border-top-color: transparent;
	border-radius: 50%;
	animation: cm-spin 0.8s linear infinite;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.cm-archive-loadmore.is-loading .cm-archive-loadmore__spinner {
	opacity: 1;
}

@keyframes cm-spin {
	to {
		transform: rotate(360deg);
	}
}
