/* =========================================================================
   Case Romane del Celio – stili del tema
   Mobile first. Fasce: 320–767 (base), 768–1023 (tablet), da 1024 (desktop).
   Colori e font arrivano da theme.json (variabili --wp--preset--*).
   ========================================================================= */

/* ---------- Token ---------- */
:root {
	--crc-bg: var(--wp--preset--color--bianco, #fff);
	--crc-surface: var(--wp--preset--color--superficie, #eef2f1);
	--crc-ink: var(--wp--preset--color--inchiostro, #08262c);
	--crc-accent: var(--wp--preset--color--rosso, #b33424);
	--crc-accent-hover: #952819;
	--crc-muted: #4a5e62;
	--crc-line: #d2dbda;
	--crc-gold: #b9975b;      /* solo filetti e dettagli: non per il testo su chiaro */
	--crc-tk: #8a5a1c;        /* oro scuro, leggibile su chiaro */
	--crc-gold-light: #e4c68e;/* oro chiaro, leggibile su scuro */
	--crc-focus: #8a5a1c;
	--crc-input-line: #748789;
	--crc-serif: var(--wp--preset--font-family--serif, "EB Garamond", Garamond, serif);
	--crc-sans: var(--wp--preset--font-family--sans, "Instrument Sans", Helvetica, sans-serif);
	--crc-r: 3px;
	--crc-pad: clamp(20px, 4vw, 48px);
	--crc-max: 1240px;
	--crc-sec: clamp(56px, 39.3px + 5.22vw, 104px);
	--crc-gap: clamp(24px, 4vw, 72px);
	--crc-head-h: 65px;
	--crc-h1: var(--wp--preset--font-size--titolo-1, 40px);
	--crc-h2: var(--wp--preset--font-size--titolo-2, 31px);
	--crc-h3: var(--wp--preset--font-size--titolo-3, 23px);
	--crc-lead: var(--wp--preset--font-size--introduzione, 19px);
	--crc-prose: var(--wp--preset--font-size--racconto, 18px);
	--crc-v: clamp(21px, 19.6px + 0.43vw, 25px);
}

@media (min-width: 1024px) {
	:root { --crc-head-h: 97px; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; }
p { margin: 0; }

[hidden] { display: none !important; }

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

.crc-skip {
	position: absolute; left: 12px; top: -100px; z-index: 100;
	padding: 12px 18px; background: var(--crc-ink); color: #fff;
	font-weight: 600; text-decoration: none;
}
.crc-skip:focus { top: 12px; outline-color: var(--crc-gold-light); }

.crc-wrap {
	width: 100%;
	max-width: var(--crc-max);
	margin: 0 auto;
	padding: 0 var(--crc-pad);
}

/* ---------- Tipografia di supporto ---------- */
.crc-lead { font-family: var(--crc-serif); font-size: var(--crc-lead); line-height: 1.5; max-width: 34em; }
.crc-prose, .crc-prose p { font-family: var(--crc-serif); font-size: var(--crc-prose); line-height: 1.68; }
.crc-prose { max-width: 35em; }
.crc-muted, .crc-muted p { color: var(--crc-muted); }
.crc-small, .crc-small p { font-size: 14px; line-height: 1.5; }
.crc-status { font-size: 14px; font-weight: 600; color: var(--crc-accent); }
.crc-kind { font-size: 13px; font-weight: 600; color: var(--crc-muted); text-transform: none; }
.crc-price { font: 500 23px/1.2 var(--crc-serif); }
.crc-big { font: 500 var(--crc-v)/1.2 var(--crc-serif); }

.crc-lnk a, a.crc-lnk {
	font-weight: 600;
	color: var(--crc-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}
.crc-lnk a:hover, a.crc-lnk:hover { text-decoration-thickness: 2px; }

/* ---------- Pulsanti ---------- */
.crc-btn,
.wp-block-button__link,
.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--crc-r);
	font: 600 15px/1.1 var(--crc-sans);
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	text-align: center;
}
.crc-btn--pri,
.wp-block-button__link,
.wpcf7-submit { background: var(--crc-accent); color: #fff; }
.crc-btn--pri:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover { background: var(--crc-accent-hover); color: #fff; }

.crc-btn--ghost,
.is-style-fantasma .wp-block-button__link {
	background: transparent;
	color: var(--crc-ink);
	border-color: currentColor;
}
.crc-btn--ghost:hover,
.is-style-fantasma .wp-block-button__link:hover { background: var(--crc-ink); color: var(--crc-bg); }

.crc-btn--light,
.is-style-chiaro .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: #fff;
}
.crc-btn--light:hover,
.is-style-chiaro .wp-block-button__link:hover { background: #fff; color: var(--crc-ink); }

.wp-block-buttons, .crc-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wp-block-buttons > .wp-block-button { margin: 0; }

@media (max-width: 767px) {
	.crc-btn, .wp-block-button__link { white-space: normal; }
}

/* ---------- Avviso e barra superiore ---------- */
.crc-alert { background: var(--crc-accent); color: #fff; font-size: 15px; }
.crc-alert .crc-wrap {
	display: flex; flex-wrap: wrap; gap: 6px 16px;
	align-items: center; justify-content: center;
	min-height: 44px; padding-top: 8px; padding-bottom: 8px; text-align: center;
}
.crc-alert a { color: #fff; font-weight: 600; }
.crc-alert :focus-visible { outline-color: #fff; }

.crc-topbar { background: var(--crc-ink); color: #e9eeee; font-size: 14px; }
.crc-topbar .crc-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.crc-topbar :focus-visible, .crc-footer :focus-visible { outline-color: var(--crc-gold-light); }
.crc-today { display: inline-flex; align-items: center; gap: 9px; }
.crc-today .crc-tk { color: var(--crc-gold-light); font-feature-settings: "tnum"; }
.crc-dot { width: 8px; height: 8px; border-radius: 50%; background: #4cb37a; display: inline-block; flex: none; }
.crc-dot.is-off, .is-closed .crc-dot { background: #f07462; }

.crc-util { display: none; gap: 22px; align-items: center; }
.crc-util ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.crc-util a { text-decoration: none; display: inline-flex; align-items: center; min-height: 38px; }
.crc-util a:hover { text-decoration: underline; }
.crc-lang { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.crc-lang a { padding: 0 6px; min-width: 32px; justify-content: center; }
.crc-lang [aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) {
	.crc-topbar .crc-wrap { min-height: 40px; }
	.crc-util { display: flex; }
}

/* ---------- Testata ---------- */
.crc-header {
	position: sticky; top: 0; z-index: 30;
	background: var(--crc-bg);
	border-bottom: 1px solid var(--crc-line);
}
.admin-bar .crc-header { top: 0; }
@media (min-width: 783px) { .admin-bar .crc-header { top: 32px; } }

.crc-header__inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.crc-brand { display: block; flex: none; text-decoration: none; }
.crc-brand img, .crc-brand svg { width: auto; }
.crc-brand .crc-logo-full { display: none; height: 62px; }
.crc-brand .crc-logo-sym { display: block; height: 40px; }
.crc-brand .custom-logo { max-height: 62px; }

.crc-logo-sym-path, .crc-lg-sym { fill: var(--crc-accent); }
.crc-lg-txt { fill: #222; font-family: var(--crc-serif); font-weight: 500; }
.crc-neg .crc-lg-sym, .crc-neg .crc-lg-txt { fill: #fff; }

.crc-nav { display: none; margin-left: auto; }
.crc-nav ul { list-style: none; margin: 0; padding: 0; }
.crc-nav > ul { display: flex; gap: 2px; }
.crc-nav > ul > li { position: relative; }
.crc-nav > ul > li > a {
	display: flex; align-items: center; gap: 6px;
	min-height: 48px; padding: 0 10px;
	text-decoration: none; font-weight: 500; font-size: 15px;
}
.crc-nav > ul > li > a:hover { color: var(--crc-accent); }
.crc-nav > ul > li > a[aria-current="page"],
.crc-nav > ul > li.current-menu-ancestor > a {
	text-decoration: underline; text-underline-offset: 9px;
	text-decoration-thickness: 2px; text-decoration-color: var(--crc-accent);
}
.crc-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin: -4px 2px 0 2px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
}
.crc-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 250px;
	background: var(--crc-bg); border: 1px solid var(--crc-line);
	padding: 8px 0; display: none;
	box-shadow: 0 14px 30px rgba(8, 38, 44, .14);
}
.crc-nav li:hover > .sub-menu,
.crc-nav li:focus-within > .sub-menu { display: block; }
.crc-nav .sub-menu a { display: block; padding: 11px 20px; text-decoration: none; font-size: 15px; }
.crc-nav .sub-menu a:hover { background: var(--crc-surface); }

.crc-header__cta { display: none; margin-left: 10px; }

.crc-menu-toggle {
	display: none; margin-left: auto;
	align-items: center; gap: 8px;
	min-height: 44px; min-width: 44px; padding: 0 6px;
	background: none; border: 0; color: inherit;
	font: 600 15px/1 var(--crc-sans); cursor: pointer;
}
.js .crc-menu-toggle { display: inline-flex; }
.crc-menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.crc-menu-toggle .crc-ico-close { display: none; }
.crc-menu-toggle[aria-expanded="true"] .crc-ico-open { display: none; }
.crc-menu-toggle[aria-expanded="true"] .crc-ico-close { display: block; }

.crc-drawer {
	background: var(--crc-bg);
	border-top: 1px solid var(--crc-line);
	padding: 8px var(--crc-pad) 24px;
}
.js .crc-drawer {
	position: absolute; left: 0; right: 0; top: 100%;
	max-height: calc(100vh - var(--crc-head-h) - 40px); overflow-y: auto;
	box-shadow: 0 18px 30px rgba(8, 38, 44, .18);
	display: none;
}
.js .crc-drawer.is-open { display: block; }
.crc-drawer ul { list-style: none; margin: 0; padding: 0; }
.crc-drawer .crc-drawer__menu > li > a {
	display: block; padding: 14px 0;
	border-bottom: 1px solid var(--crc-line);
	font: 500 22px/1.2 var(--crc-serif); text-decoration: none;
}
.crc-drawer .sub-menu a {
	display: block; padding: 12px 0 12px 16px; font-size: 16px;
	text-decoration: none; border-bottom: 1px solid var(--crc-line);
}
.crc-drawer__util { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 18px; font-size: 15px; }
.crc-drawer__util ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.crc-drawer__util a { display: inline-flex; align-items: center; min-height: 44px; }
.crc-drawer .crc-btn { width: 100%; margin-top: 18px; }

@media (min-width: 768px) {
	.crc-brand .crc-logo-full { display: block; height: 52px; }
	.crc-brand .crc-logo-sym { display: none; }
}
@media (min-width: 1024px) {
	.crc-header__inner { min-height: 96px; gap: 20px; }
	.crc-brand .crc-logo-full { height: 62px; }
	.crc-nav { display: flex; align-items: center; }
	.crc-header__cta { display: inline-flex; }
	.js .crc-menu-toggle, .crc-drawer, .js .crc-drawer.is-open { display: none; }
}
@media (min-width: 1200px) {
	.crc-header__inner { gap: 32px; }
	.crc-nav > ul > li > a { padding: 0 14px; font-size: 16px; }
}

/* ---------- Contenuto: struttura di base ---------- */
.crc-main { display: block; }
.crc-main:focus { outline: none; }

.crc-content > .alignfull { margin-block: 0; }
body .crc-content > * + .alignfull,
body .crc-content > .alignfull + * { margin-block-start: 0; }
.crc-content > :last-child:not(.alignfull) { margin-bottom: var(--crc-sec); }
.crc-content > :first-child:not(.alignfull) { margin-top: var(--crc-sec); }

/* Sezione standard */
.crc-sec { padding-block: var(--crc-sec); }
.crc-sec--flush-top { padding-top: 0; }
.crc-sec.has-superficie-background-color + .crc-sec.has-superficie-background-color { padding-top: 0; }

/* Griglie: annullano il margine "flow" dei blocchi figli */
body .crc-grid > *, body .crc-split > *, body .crc-two > *, body .crc-story > *,
body .crc-hero__grid > *, body .crc-info__grid > *, body .crc-mapb > *, body .crc-band > *,
body .crc-timeline > *, body .crc-mosaic > *, body .crc-facts > *, body .crc-credits > *,
body .crc-nl > * { margin-block: 0; }

.crc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.crc-split, .crc-two, .crc-story, .crc-mapb, .crc-nl {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px;
}
.crc-two, .crc-mapb, .crc-nl { gap: 28px; }

@media (min-width: 768px) {
	.crc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.crc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
	.crc-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
	.crc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
	.crc-two--top { align-items: start; }
	.crc-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
	.crc-mapb { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
	.crc-nl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: end; }
}
@media (min-width: 1024px) {
	.crc-grid--3 { gap: 40px; }
	.crc-split, .crc-two, .crc-story { gap: 72px; }
	.crc-mapb, .crc-nl { gap: 64px; }
}

/* Scorrimento orizzontale su mobile (ambienti, card) */
@media (max-width: 767px) {
	.crc-scroll-m {
		display: flex; gap: 16px;
		overflow-x: auto; scroll-snap-type: x mandatory;
		margin-inline: calc(var(--crc-pad) * -1);
		padding: 0 var(--crc-pad) 10px;
		scroll-padding-inline: var(--crc-pad);
		scrollbar-width: thin;
	}
	.crc-scroll-m > * { flex: 0 0 76%; scroll-snap-align: start; }
}

/* Intestazione di sezione: titolo a sinistra, link a destra */
.crc-shead { margin-bottom: 32px; gap: 16px 32px; }
.crc-shead p:not(.crc-lnk) { max-width: 38em; color: var(--crc-muted); }
.crc-shead .crc-shead__txt > * + * { margin-top: 14px; }
@media (min-width: 768px) { .crc-shead { margin-bottom: 52px; } }

/* ---------- Immagini ---------- */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; width: 100%; height: auto; }
.wp-block-image figcaption,
.crc-figure figcaption {
	margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--crc-muted);
}

/* Sagoma del simbolo (arco con gradini) */
.is-style-arco img,
.crc-arco img,
img.crc-arco {
	aspect-ratio: 240 / 340;
	object-fit: cover;
	-webkit-mask: url("../images/sagoma-arco.svg") center / 100% 100% no-repeat;
	mask: url("../images/sagoma-arco.svg") center / 100% 100% no-repeat;
}

/* ---------- Hero home ---------- */
.crc-hero { padding-top: 28px; }
.crc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.crc-hero__media { order: -1; max-width: 210px; }
.crc-hero__txt { padding-bottom: 48px; }
.crc-hero__txt > * + * { margin-top: 20px; }
.crc-hero__txt .wp-block-buttons { margin-top: 26px; }
@media (min-width: 768px) {
	.crc-hero { padding-top: 56px; }
	.crc-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: end; }
	.crc-hero__media { order: 0; max-width: 470px; justify-self: end; width: 100%; }
	.crc-hero__txt { padding-bottom: 80px; }
	.crc-hero__txt > * + * { margin-top: 28px; }
	.crc-hero__txt .wp-block-buttons { margin-top: 36px; }
}
@media (min-width: 1024px) { .crc-hero__grid { gap: 72px; } }

/* Riquadro mostra in evidenza */
.crc-feat {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	margin-top: 44px; padding: 20px 24px; max-width: 520px;
	border: 1px solid var(--crc-line); border-top: 3px solid var(--crc-gold);
}
.crc-feat__t { font: 500 23px/1.2 var(--crc-serif); margin-top: 2px; }
.crc-feat__t a { text-decoration: none; }
@media (min-width: 768px) {
	.crc-feat { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}

/* ---------- Fascia informazioni rapide ---------- */
.crc-info { border-top: 1px solid var(--crc-line); border-bottom: 1px solid var(--crc-line); }
.crc-info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crc-info__c { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px 22px 0; }
.crc-info__c:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--crc-line); }
.crc-info__c:nth-child(n+3) { border-top: 1px solid var(--crc-line); }
.crc-info--5 .crc-info__c:last-child:nth-child(odd) { grid-column: 1 / -1; }
.crc-info__k { font-size: 14px; color: var(--crc-muted); }
.crc-info__v { font: 500 var(--crc-v)/1.2 var(--crc-serif); }
.crc-info__c .crc-lnk { font-size: 15px; margin-top: 8px; }
.crc-info__c > * { margin: 0 !important; }
.crc-info__c > .crc-lnk { margin-top: 8px !important; }
@media (min-width: 768px) {
	.crc-info__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.crc-info--5 .crc-info__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.crc-info__c, .crc-info__c:nth-child(even) { padding: 30px 20px 30px 0; border-top: 0; border-left: 0; }
	.crc-info__c + .crc-info__c { border-left: 1px solid var(--crc-line); padding-left: 20px; }
	.crc-info__c:nth-child(n+3) { border-top: 0; }
	.crc-info--5 .crc-info__c:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1024px) {
	.crc-info__c, .crc-info__c:nth-child(even) { padding-right: 28px; }
	.crc-info__c + .crc-info__c { padding-left: 28px; }
}

/* ---------- Modi di visitare ---------- */
.crc-ways { gap: 0; }
.crc-way { display: flex; flex-direction: column; gap: 14px; padding: 28px 0; border-top: 1px solid var(--crc-line); }
.crc-way > * { margin: 0 !important; }
.crc-way .wp-block-buttons, .crc-way .crc-lnk { margin-top: auto !important; padding-top: 6px; }
.crc-meta, .crc-meta p { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--crc-muted); }
@media (min-width: 768px) {
	.crc-ways { gap: 0; }
	.crc-way { padding: 4px 24px 4px 0; border-top: 0; }
	.crc-way + .crc-way { padding-left: 24px; border-left: 1px solid var(--crc-line); }
}
@media (min-width: 1024px) {
	.crc-way { padding-right: 40px; }
	.crc-way + .crc-way { padding-left: 40px; }
}

/* ---------- Ambienti ---------- */
.crc-room > * { margin: 0 !important; }
.crc-room h3 { margin-top: 16px !important; }
.crc-room p { margin-top: 8px !important; color: var(--crc-muted); }
@media (min-width: 768px) {
	.crc-rooms { row-gap: 44px; }
	.crc-room h3 { margin-top: 22px !important; }
}

/* ---------- Linea del tempo ---------- */
.crc-timeline {
	display: grid; grid-template-columns: minmax(0, 1fr);
	margin-top: 44px; padding-left: 24px; border-left: 2px solid var(--crc-ink);
}
.crc-timeline > .wp-block-group { position: relative; padding: 0 0 26px; }
.crc-timeline > .wp-block-group::before {
	content: ""; position: absolute; left: -32px; top: 6px;
	width: 14px; height: 14px; background: var(--crc-accent);
}
.crc-timeline > .wp-block-group:last-child::before { background: var(--crc-gold); }
.crc-timeline > .wp-block-group > * { margin: 0 !important; }
.crc-timeline .crc-yr { font: 500 21px/1.2 var(--crc-serif); }
.crc-timeline h3, .crc-timeline h4 { margin-top: 4px !important; font: 600 17px/1.35 var(--crc-sans); }
.crc-timeline p:not(.crc-yr) { font-size: 15px; color: var(--crc-muted); margin-top: 6px !important; }
@media (min-width: 768px) {
	.crc-timeline {
		grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px;
		margin-top: 72px; padding-left: 0; border-left: 0; border-top: 2px solid var(--crc-ink);
	}
	.crc-timeline > .wp-block-group { padding: 26px 22px 0 0; }
	.crc-timeline > .wp-block-group::before { left: 0; top: -8px; }
}
@media (min-width: 1024px) {
	.crc-timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.crc-timeline--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.crc-timeline .crc-yr + p { margin-top: 6px !important; }
@media (min-width: 768px) {
	.crc-timeline--4 { border-top: 0; }
	.crc-timeline--4 > .wp-block-group { border-top: 2px solid var(--crc-ink); }
}

/* ---------- Card (mostre, eventi, esperienze) ---------- */
.crc-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.crc-card > * { margin: 0 !important; }
.crc-card .wp-block-image, .crc-card__img { margin-bottom: 8px !important; }
.crc-card .wp-block-image img, .crc-card__img img { aspect-ratio: 4 / 3; object-fit: cover; }
.crc-card h3 a, .crc-card__link { text-decoration: none; color: inherit; }
.crc-card h3 a::after, .crc-card__link::after { content: ""; position: absolute; inset: 0; }
.crc-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.crc-card:focus-within { outline: 3px solid var(--crc-focus); outline-offset: 6px; }
.crc-card :focus-visible { outline: none; }
.crc-when { font-size: 15px; color: var(--crc-muted); }

/* ---------- Banda (gruppi e scuole) ---------- */
.crc-band {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center;
	padding: 32px 24px; background: var(--crc-surface);
}
.crc-band p { margin-top: 14px; color: var(--crc-muted); }
@media (min-width: 768px) {
	.crc-band { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding: 48px; }
	.crc-band .wp-block-buttons { justify-content: flex-end; }
}
@media (min-width: 1024px) { .crc-band { gap: 56px; padding: 60px; } }

/* ---------- Mappa e indicazioni ---------- */
.crc-map { width: 100%; height: auto; background: var(--crc-surface); }
.crc-map text { font-family: var(--crc-sans); font-size: 12px; fill: var(--crc-muted); }
.crc-map .road { stroke: #fff; fill: none; stroke-linecap: round; }
.crc-map .park { fill: #d6e2d4; }
.crc-map .mon { fill: none; stroke: var(--crc-muted); stroke-width: 1.4; opacity: .75; }
.crc-map .lbl { fill: var(--crc-ink); }
.crc-addr { font: 500 26px/1.25 var(--crc-serif); margin-top: 16px; }

.crc-dirs { list-style: none; padding: 0; margin: 28px 0; }
.crc-dirs li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-top: 1px solid var(--crc-line); font-size: 16px; }
.crc-dirs li:last-child { border-bottom: 1px solid var(--crc-line); }
.crc-dirs strong { font-weight: 600; }
@media (min-width: 768px) {
	.crc-dirs li { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
}
.crc-lnks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.crc-mapb .crc-addr { margin-top: 16px; }
.crc-mapb h3 { margin-top: 44px; }
.crc-mapb .crc-muted { margin-top: 14px; }
.crc-mapb .crc-lnks { margin-top: 22px; }

/* ---------- Newsletter e moduli ---------- */
.crc-nl p { color: var(--crc-muted); }
.crc-nl h2 + p { margin-top: 14px; }

.crc-field, .wpcf7-form p { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.crc-field label, .wpcf7-form label { font-size: 14px; font-weight: 600; }
.wpcf7-form label { display: flex; flex-direction: column; gap: 8px; }
.crc-input,
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"], .wpcf7-form input[type="date"], .wpcf7-form input[type="url"],
.wpcf7-form select, .wpcf7-form textarea,
.search-form input[type="search"] {
	width: 100%; min-height: 50px; padding: 0 16px;
	border: 1px solid var(--crc-input-line); border-radius: var(--crc-r);
	background: #fff; color: var(--crc-ink);
	font: 400 17px/1.4 var(--crc-sans);
}
.wpcf7-form textarea { min-height: 140px; padding: 14px 16px; resize: vertical; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form .wpcf7-acceptance label,
.wpcf7-form .wpcf7-checkbox label,
.crc-check {
	display: flex; flex-direction: row; gap: 10px; align-items: flex-start;
	font-size: 14px; font-weight: 400;
}
.wpcf7-acceptance .wpcf7-list-item, .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.wpcf7-form input[type="checkbox"] {
	width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--crc-accent);
}
.wpcf7-not-valid-tip { color: var(--crc-accent); font-size: 14px; font-weight: 600; margin-top: 6px; display: block; }
.wpcf7-form .wpcf7-not-valid { border-color: var(--crc-accent); border-width: 2px; }
.wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0; padding: 14px 16px; border: 2px solid var(--crc-ink); border-radius: var(--crc-r);
	font-size: 15px;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #2f7d52; background: #eef7f1; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--crc-accent); background: #fbefed; }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7-spinner {
	visibility: hidden; display: inline-block; width: 24px; height: 24px; margin: 0 12px; vertical-align: middle;
	border: 3px solid var(--crc-line); border-top-color: var(--crc-accent); border-radius: 50%;
}
.wpcf7 form.submitting .wpcf7-spinner { visibility: visible; animation: crc-spin 1s linear infinite; }
@keyframes crc-spin { to { transform: rotate(360deg); } }
.crc-form-nl .crc-nl-row .wpcf7-spinner { display: none; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Layout moduli: .crc-form-grid (richieste) e .crc-form-nl (newsletter) da usare nel modulo CF7 */
.crc-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 24px; }
.crc-form-grid .crc-full { grid-column: 1 / -1; }
.crc-form-grid .wpcf7-submit { justify-self: start; }
@media (min-width: 768px) { .crc-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.crc-form-nl .crc-nl-row { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.crc-form-nl .crc-nl-row > :first-child { flex: 1; }
.crc-form-nl .crc-check, .crc-form-nl .wpcf7-acceptance { margin-top: 14px; display: block; }
@media (min-width: 768px) {
	.crc-form-nl .crc-nl-row { flex-direction: row; align-items: flex-end; }
}

.crc-form-missing {
	padding: 16px 18px; border: 1px dashed var(--crc-input-line); font-size: 14px; color: var(--crc-muted);
}

/* ---------- Intestazione pagine interne ---------- */
.crc-phead { padding: 36px 0 40px; border-bottom: 1px solid var(--crc-line); }
.crc-phead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.crc-phead__media { order: -1; max-width: 200px; }
.crc-phead .crc-lead { margin-top: 22px; }
.crc-phead .crc-ctas { margin-top: 32px; }
.crc-crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0 0 26px; padding: 0; font-size: 14px; color: var(--crc-muted); }
.crc-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.crc-crumbs a { text-decoration: none; }
.crc-crumbs a:hover { text-decoration: underline; }
@media (min-width: 768px) {
	.crc-phead { padding: 64px 0 60px; }
	.crc-phead__grid.has-media { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; }
	.crc-phead__media { order: 0; max-width: 380px; width: 100%; justify-self: end; }
}
@media (min-width: 1024px) { .crc-phead__grid.has-media { gap: 72px; } }

/* ---------- Navigazione interna (ancore) ---------- */
.crc-anav {
	position: sticky; top: var(--crc-head-h); z-index: 20;
	background: var(--crc-bg); border-bottom: 1px solid var(--crc-line);
}
.admin-bar .crc-anav { top: calc(var(--crc-head-h) + 46px); }
@media (min-width: 783px) { .admin-bar .crc-anav { top: calc(var(--crc-head-h) + 32px); } }
.crc-anav ul {
	display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0;
	overflow-x: auto; scrollbar-width: none;
}
.crc-anav ul::-webkit-scrollbar { display: none; }
.crc-anav li { margin: 0; }
.crc-anav a {
	display: block; padding: 15px 14px; white-space: nowrap; text-decoration: none;
	font-size: 15px; font-weight: 500; color: var(--crc-ink); border-bottom: 2px solid transparent;
}
.crc-anav li:first-child a { padding-left: 0; }
.crc-anav a:hover, .crc-anav a[aria-current="true"] { border-bottom-color: var(--crc-accent); }

.crc-vsec {
	padding-block: 52px; border-bottom: 1px solid var(--crc-line);
	scroll-margin-top: calc(var(--crc-head-h) + 60px);
}
.crc-vsec:last-child, .crc-vsec--last { border-bottom: 0; }
.crc-split > :first-child > p, .crc-split > :first-child > .wp-block-paragraph { margin-top: 14px; color: var(--crc-muted); }
@media (min-width: 768px) { .crc-vsec { padding-block: 80px; } }

/* ---------- Tabelle ---------- */
.crc-tbl, .wp-block-table.crc-tbl { margin: 0; overflow-x: auto; }
.crc-tbl table { width: 100%; border-collapse: collapse; font-size: 16px; table-layout: auto; }
.crc-tbl th, .crc-tbl td {
	text-align: left; padding: 15px 18px 15px 0;
	border: 0; border-bottom: 1px solid var(--crc-line); vertical-align: top;
}
.crc-tbl thead { border: 0; }
.crc-tbl thead th { font-size: 14px; color: var(--crc-muted); font-weight: 600; }
.crc-tbl tbody td:first-child, .crc-tbl tbody th { font-weight: 600; }
.crc-tbl .has-text-align-right, .crc-tbl td:last-child.crc-num { text-align: right; padding-right: 0; }
.crc-tbl--prezzi td:last-child, .crc-tbl--prezzi th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.crc-tbl--prezzi tbody td:last-child { font: 500 18px/1.2 var(--crc-serif); }
.crc-tbl--prezzi tbody td:nth-child(2) { color: var(--crc-muted); font-weight: 400; }
.crc-tbl .is-today th, .crc-tbl .is-today td { background: var(--crc-surface); }
.crc-tbl .is-today th { padding-left: 12px; }
.crc-tbl figcaption { margin-top: 12px; font-size: 14px; color: var(--crc-muted); }
@media (min-width: 768px) { .crc-tbl--prezzi tbody td:last-child { font-size: 21px; } }

/* Tabella contatti: su mobile diventa elenco */
@media (max-width: 767px) {
	.crc-ctbl thead { display: none; }
	.crc-ctbl tr { display: grid; padding: 16px 0; border-bottom: 1px solid var(--crc-line); }
	.crc-ctbl th, .crc-ctbl td { border: 0; padding: 2px 0; }
}

/* ---------- Riquadri, elenchi, servizi ---------- */
.crc-box { padding: 24px 26px; border: 1px solid var(--crc-line); margin-top: 28px !important; }
.crc-box > * + * { margin-top: 6px; }
.crc-note { margin-top: 20px; font-size: 15px; color: var(--crc-muted); }

ul.is-style-quadratini { list-style: none; margin: 0; padding: 0; }
ul.is-style-quadratini > li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--crc-line); }
ul.is-style-quadratini > li::before {
	content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 8px; background: var(--crc-accent);
}

ol.is-style-passi {
	counter-reset: crc-s; list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
}
ol.is-style-passi > li { color: var(--crc-muted); }
ol.is-style-passi > li strong { display: block; color: var(--crc-ink); font-weight: 600; margin-bottom: 8px; }
ol.is-style-passi > li::before {
	counter-increment: crc-s; content: counter(crc-s); display: block;
	font: 500 50px/1 var(--crc-serif); color: var(--crc-accent); margin-bottom: 14px;
}
@media (min-width: 768px) { ol.is-style-passi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

ol.is-style-percorso { list-style: none; margin: 0; padding: 0; counter-reset: crc-p; }
ol.is-style-percorso > li {
	position: relative; padding: 28px 0 28px 52px;
	border-top: 1px solid var(--crc-line); color: var(--crc-muted);
}
ol.is-style-percorso > li::before {
	counter-increment: crc-p; content: counter(crc-p, upper-roman);
	position: absolute; left: 0; top: 30px;
	font: 500 30px/1 var(--crc-serif); color: var(--crc-accent);
}
ol.is-style-percorso > li strong {
	display: block; color: var(--crc-ink); font: 500 var(--crc-h3)/1.18 var(--crc-serif); margin-bottom: 8px;
}
@media (min-width: 768px) { ol.is-style-percorso > li { padding-left: 118px; } }

.crc-svcs h3, .crc-svcs h4 { margin-bottom: 8px; }
.crc-svcs p { color: var(--crc-muted); }

.crc-offer { padding-top: 22px; border-top: 2px solid var(--crc-ink); }
.crc-offer > * { margin: 0 !important; }
.crc-offer p { margin-top: 10px !important; color: var(--crc-muted); }
.crc-offer .crc-meta { margin-top: 14px !important; }

.crc-download a {
	display: flex; align-items: center; gap: 20px; padding: 22px 26px;
	border: 1px solid var(--crc-line); text-decoration: none; max-width: 560px; font-weight: 600;
}
.crc-download a::before {
	content: ""; flex: none; width: 34px; height: 34px;
	background: var(--crc-accent);
	-webkit-mask: url("../images/icona-documento.svg") center / contain no-repeat;
	mask: url("../images/icona-documento.svg") center / contain no-repeat;
}
.crc-download a:hover { border-color: var(--crc-ink); }

.crc-contact-l { display: grid; gap: 4px; font-size: 18px; }

/* ---------- FAQ ---------- */
.crc-faq > * { margin: 0 !important; }
.crc-faq .wp-block-details { border-bottom: 1px solid var(--crc-line); }
.crc-faq .wp-block-details:first-child { border-top: 1px solid var(--crc-line); }
.crc-faq summary {
	cursor: pointer; list-style: none; padding: 22px 0;
	font: 500 22px/1.3 var(--crc-serif);
	display: flex; justify-content: space-between; gap: 20px; min-height: 44px;
}
.crc-faq summary::-webkit-details-marker { display: none; }
.crc-faq summary::after { content: "+"; font: 300 28px/1 var(--crc-sans); color: var(--crc-accent); }
.crc-faq details[open] summary::after { content: "\2013"; }
.crc-faq details > :not(summary) { padding: 0 0 24px; margin: 0; max-width: 40em; color: var(--crc-muted); }

/* ---------- Esperienze ---------- */
.crc-exp { padding-block: 56px; border-bottom: 1px solid var(--crc-line); scroll-margin-top: calc(var(--crc-head-h) + 20px); }
.crc-exp .wp-block-image img { aspect-ratio: 5 / 4; object-fit: cover; }
.crc-exp .crc-prose { margin-top: 18px; font-size: 18px; }
.crc-exp .crc-two { gap: 26px; }
@media (min-width: 768px) {
	.crc-exp { padding-block: 88px; }
	.crc-exp .crc-two { gap: 48px; }
	.crc-exp--rev .crc-two > :first-child { order: 2; }
}
@media (min-width: 1024px) { .crc-exp .crc-two { gap: 72px; } }

.crc-facts {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 30px 0 !important; border-top: 1px solid var(--crc-line);
}
.crc-facts > .wp-block-group { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--crc-line); }
.crc-facts > .wp-block-group > * { margin: 0 !important; }
.crc-facts .crc-k, .crc-credits .crc-k { font-size: 13px; color: var(--crc-muted); }
.crc-facts .crc-v { font: 500 20px/1.25 var(--crc-serif); margin-top: 4px !important; }
@media (min-width: 768px) { .crc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.crc-two .wp-block-image img { aspect-ratio: 5 / 4; object-fit: cover; }
.crc-exp--last { border-bottom: 0; }
.crc-narrow { max-width: 720px; }
.crc-narrow > * + * { margin-top: 18px; }
.crc-narrow .wp-block-buttons { margin-top: 24px; }
.crc-exp h2 + .crc-prose { margin-top: 18px; }
.crc-two .crc-prose > * + *, .crc-split .crc-prose > * + * { margin-top: 1em; }

/* Galleria a mosaico */
.crc-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.crc-mosaic .wp-block-image { height: 100%; position: relative; overflow: hidden; }
.crc-mosaic .wp-block-image img { height: 100%; object-fit: cover; }
.crc-mosaic .wp-block-image figcaption {
	position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); margin: 0;
	padding: 4px 9px; background: rgba(8, 38, 44, .78); color: #fff; font-size: 12px;
}
.crc-mosaic .is-wide { grid-column: span 2; }
.crc-mosaic .is-tall { grid-row: span 2; }
@media (min-width: 768px) {
	.crc-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; }
}

/* Chiusura con invito */
.crc-closing { text-align: center; padding-block: clamp(72px, 60px + 4vw, 110px); }
.crc-closing h2 { max-width: 16em; margin-inline: auto; }
.crc-closing p { margin: 16px auto 0; color: var(--crc-muted); max-width: 34em; }
.crc-closing .wp-block-buttons, .crc-closing .crc-ctas { justify-content: center; margin-top: 32px; }

/* Loghi istituzionali */
.crc-logos { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.crc-logos img { max-height: 64px; width: auto; }

/* Crediti */
.crc-credits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; font-size: 15px; }
.crc-credits > .wp-block-group > * { margin: 0 !important; }
.crc-credits .crc-v { margin-top: 4px !important; }
@media (min-width: 768px) { .crc-credits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* Testo semplice (privacy, note legali) */
.crc-page-simple .crc-prose h2 { font: 500 30px/1.2 var(--crc-serif); margin: 48px 0 14px; }
.crc-content .crc-prose > * + * { margin-top: 1em; }
.crc-toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }

/* Contenuto testuale libero (paragrafi aggiunti dal redattore) */
.crc-content > p, .crc-content > ul, .crc-content > ol { font-size: 18px; }

/* ---------- Mostre ed eventi: elenco ---------- */
.crc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 44px; }
.crc-chip {
	min-height: 44px; padding: 0 20px; border: 1px solid var(--crc-input-line);
	background: transparent; color: var(--crc-ink); border-radius: 999px;
	font: 500 15px var(--crc-sans); cursor: pointer;
}
.crc-chip[aria-pressed="true"] { background: var(--crc-ink); color: #fff; border-color: var(--crc-ink); }
.crc-mgroup + .crc-mgroup { margin-top: 72px; }
.crc-mgroup > h2 { font-size: var(--crc-h3); padding-bottom: 18px; border-bottom: 1px solid var(--crc-line); }

.crc-mrow {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
	align-items: center; padding: 28px 0; border-bottom: 1px solid var(--crc-line);
}
.crc-mrow__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.crc-mrow h3 { margin: 6px 0 8px; }
.crc-mrow h3 a { text-decoration: none; }
.crc-mrow h3 a::after { content: ""; position: absolute; inset: 0; }
.crc-mrow:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.crc-mrow:focus-within { outline: 3px solid var(--crc-focus); outline-offset: 4px; }
.crc-mrow :focus-visible { outline: none; }
.crc-mrow .crc-btn { justify-self: start; pointer-events: none; }
@media (min-width: 768px) {
	.crc-mrow { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
	.crc-mrow .crc-btn { grid-column: 2; }
}
@media (min-width: 1024px) {
	.crc-mrow { grid-template-columns: 300px minmax(0, 1fr) auto; gap: 40px; }
	.crc-mrow .crc-btn { grid-column: auto; }
}

.crc-empty { padding: 32px 20px; border: 1px dashed var(--crc-input-line); text-align: center; }
.crc-empty p { margin: 12px auto 0; max-width: 30em; color: var(--crc-muted); }
.crc-empty .crc-ctas { justify-content: center; margin-top: 24px; }
@media (min-width: 768px) { .crc-empty { padding: 56px; } }

.crc-archive-link { margin-top: 56px; }
.crc-pagination { margin-top: 48px; }
.crc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.crc-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--crc-line); text-decoration: none;
}
.crc-pagination .current { background: var(--crc-ink); color: #fff; border-color: var(--crc-ink); }

/* ---------- Scheda mostra ---------- */
.crc-shero { padding-top: 28px; }
.crc-shero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.crc-shero__media { order: -1; max-width: 240px; }
.crc-shero__txt { padding-bottom: 44px; }
.crc-shero h1 { margin-top: 14px; }
.crc-shero .crc-lead { margin: 22px 0 32px; }
@media (min-width: 768px) {
	.crc-shero { padding-top: 56px; }
	.crc-shero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; }
	.crc-shero__media { order: 0; max-width: 440px; width: 100%; justify-self: end; }
	.crc-shero__txt { padding-bottom: 72px; }
}
@media (min-width: 1024px) { .crc-shero__grid { gap: 72px; } }

/* ---------- Scheda evento ---------- */
.crc-evhead h1 { margin-top: 8px; }
.crc-ev-date { font: 500 24px/1.2 var(--crc-serif); color: var(--crc-accent); margin-top: 16px; }
.crc-seats {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
	padding: 0 16px; border: 1px solid var(--crc-line); font-weight: 600; font-size: 15px;
}
.crc-seats--ultimi .crc-dot { background: #e0a134; }
.crc-seats--esaurito .crc-dot { background: #f07462; }

.crc-linked {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
	align-items: center; padding: 16px; border: 1px solid var(--crc-line); max-width: 760px;
}
.crc-linked img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.crc-linked a { text-decoration: none; }
.crc-linked a::after { content: ""; position: absolute; inset: 0; }
.crc-linked:focus-within { outline: 3px solid var(--crc-focus); outline-offset: 4px; }
.crc-linked :focus-visible { outline: none; }
@media (min-width: 768px) { .crc-linked { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 24px; } }

/* ---------- 404 e ricerca ---------- */
.crc-p404 { padding: 64px 0 80px; }
.crc-big404 { font: 500 110px/.9 var(--crc-serif); color: var(--crc-accent); margin-bottom: 24px; }
.crc-p404 .crc-lead { margin-top: 20px; }
.crc-p404 .crc-ctas { margin-top: 28px; }
.search-form { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; max-width: 560px; }
.search-form label { display: flex; flex-direction: column; gap: 8px; flex: 1; font-size: 14px; font-weight: 600; }
@media (min-width: 768px) {
	.crc-p404 { padding: 120px 0 130px; }
	.crc-big404 { font-size: 160px; }
	.search-form { flex-direction: row; align-items: flex-end; }
}

.crc-list-results { list-style: none; margin: 0; padding: 0; }
.crc-entry { padding: 28px 0; border-bottom: 1px solid var(--crc-line); }
.crc-entry h2 { font-size: var(--crc-h3); }
.crc-entry h2 a { text-decoration: none; }
.crc-entry h2 a:hover { text-decoration: underline; }
.crc-entry p { margin-top: 8px; color: var(--crc-muted); }

/* Articoli singoli (eventuali notizie) */
.crc-single .crc-content { padding-bottom: var(--crc-sec); }
.crc-content .wp-block-quote { border-left: 3px solid var(--crc-gold); margin-inline: 0; padding-left: 24px; font-family: var(--crc-serif); font-size: 22px; }

/* ---------- Piè di pagina ---------- */
.crc-footer { background: var(--crc-ink); color: #e3eaea; padding: 56px 0 0; font-size: 15px; }
.crc-footer a { color: inherit; text-decoration: none; }
.crc-footer a:hover { text-decoration: underline; }
.crc-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.crc-footer__grid > .crc-footer__brand, .crc-footer__grid > .crc-footer__nl, .crc-footer__grid > .crc-footer__extra { grid-column: 1 / -1; }
.crc-footer h2 { font: 600 15px/1.3 var(--crc-sans); margin: 0 0 18px; color: var(--crc-gold); }
.crc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.crc-footer ul a { display: inline-block; padding: 2px 0; }
.crc-footer .crc-logo-full, .crc-footer .custom-logo-neg { height: 56px; width: auto; margin-bottom: 24px; }
.crc-footer address { font-style: normal; line-height: 1.7; }
.crc-footer__maps { margin-top: 12px; }
.crc-footer__nl p { margin-bottom: 14px; }
.crc-footer .wpcf7-form input[type="email"] { background: transparent; color: #fff; border-color: #8a9ea1; }
.crc-footer .wpcf7-form label { color: #e3eaea; }
.crc-footer .wpcf7-submit { background: transparent; border-color: #fff; color: #fff; min-height: 50px; }
.crc-footer .wpcf7-submit:hover { background: #fff; color: var(--crc-ink); }
.crc-footer .wpcf7-not-valid-tip { color: #ffb4a8; }
.crc-footer .wpcf7 form .wpcf7-response-output { border-color: #fff; background: transparent; }
.crc-footer .wpcf7 a { text-decoration: underline; }

.crc-footer__inst {
	display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center;
	margin-top: 44px; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .18);
}
.crc-inst { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.crc-inst img { max-height: 56px; width: auto; }
.crc-footer .crc-social { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.crc-social a { display: inline-flex; align-items: center; min-height: 44px; }

.crc-footer__legal {
	display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center;
	padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px;
}
.crc-footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.crc-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.crc-copy { width: 100%; opacity: .8; }

@media (min-width: 768px) {
	.crc-footer { padding-top: 84px; }
	.crc-footer__inst { margin-top: 72px; }
	.crc-social { margin-left: auto; }
	.crc-copy { width: auto; margin-left: auto; }
}
@media (min-width: 1024px) {
	.crc-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 48px; }
	.crc-footer__grid > .crc-footer__brand, .crc-footer__grid > .crc-footer__nl { grid-column: auto; }
	.crc-footer__grid.no-nl { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .8fr); }
}

/* Barra biglietti mobile */
.crc-mbar {
	display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 40;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--crc-bg); border-top: 1px solid var(--crc-line);
}
.crc-mbar .crc-btn { flex: 1; min-height: 50px; font-size: 16px; }
@media (min-width: 1024px) { .crc-mbar { display: none; } }

/* ---------- Stati dinamici ---------- */
.crc-no-mostre .crc-if-mostre { display: none !important; }

/* ---------- Editor: piccoli aggiustamenti ---------- */
.editor-styles-wrapper .crc-card h3 a::after,
.editor-styles-wrapper .crc-mrow h3 a::after { display: none; }
.editor-styles-wrapper .crc-anav { position: static; }
.editor-styles-wrapper .crc-scroll-m { overflow: visible; }

/* ---------- Movimento ridotto e stampa ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.crc-topbar, .crc-header, .crc-anav, .crc-mbar, .crc-footer__nl, .crc-alert { display: none !important; }
	body { font-size: 12pt; }
}

/* ---------- Classi standard di WordPress ---------- */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--crc-muted); margin-top: 8px; }
.sticky, .bypostauthor { position: relative; }
