/*
Theme Name: CGCS
Theme URI: https://github.com/PauSeguesVitutia/CGCS-web
Author: Colla Gegantera del Carnaval de Solsona
Author URI: https://github.com/PauSeguesVitutia/CGCS-web
Description: Tema oficial personalitzat per a la Colla Gegantera del Carnaval de Solsona (CGCS). Tema de blocs (FSE).
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cgcs
Tags: full-site-editing, block-patterns, custom-colors, custom-menu, custom-logo, one-column
*/

/*
 * Full d'estils del tema CGCS. Es carrega sempre (versionat per data de modificació).
 * Els estils dels shortcodes i components dinàmics són al final del fitxer.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

html, body {
	overflow-x: clip;
	max-width: 100%;
}

/*
 * Interior Page Content & Editorial Typography
 */
.wp-block-post-content:not(.cgcs-page-content) {
	line-height: 1.8;
	font-size: 1.08rem;
	color: #2d3142;
}

.wp-block-post-content:not(.cgcs-page-content) p {
	margin-bottom: 1.6rem;
}

.wp-block-post-content:not(.cgcs-page-content) h2 {
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
	letter-spacing: -0.5px;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.wp-block-post-content:not(.cgcs-page-content) h3 {
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	font-weight: 700;
	color: var(--wp--preset--color--contrast, #0a0e30);
	margin-top: 2rem;
	margin-bottom: 0.8rem;
}

.wp-block-post-content:not(.cgcs-page-content) a:not(.wp-element-button) {
	color: var(--wp--preset--color--accent-1, #f62c35);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.wp-block-post-content:not(.cgcs-page-content) a:not(.wp-element-button):hover {
	color: #c71f27;
}

.wp-block-post-content:not(.cgcs-page-content) blockquote {
	border-left: 4px solid var(--wp--preset--color--accent-1, #f62c35);
	padding: 1rem 1.5rem;
	background-color: var(--wp--preset--color--accent-5, #f4f5f8);
	border-radius: 0 12px 12px 0;
	margin: 2rem 0;
	font-style: italic;
	color: #3f4254;
}

.wp-block-post-content:not(.cgcs-page-content) ul,
.wp-block-post-content:not(.cgcs-page-content) ol {
	padding-left: 1.5rem;
	margin-bottom: 1.6rem;
}

.wp-block-post-content:not(.cgcs-page-content) li {
	margin-bottom: 0.5rem;
}

.wp-block-post-content:not(.cgcs-page-content) img {
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(10, 14, 48, 0.08);
}

/*
 * ===================================================
 * Root Layout & Zero-Gap Section Stacking
 * Elimina separadors i franges fosques entre seccions
 * ===================================================
 */
body,
.wp-site-blocks {
	background-color: #070b1e !important;
}

:where(.wp-site-blocks > *:not(.entry-content)),
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > main,
.wp-site-blocks > footer.wp-block-template-part,
main.wp-block-group,
main#main-content {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	gap: 0 !important;
}

/* Elimina el blockGap per defecte de Gutenberg entre seccions principals */
:root :where(.is-layout-flow) > main > *,
:root :where(.is-layout-flow) > .alignfull,
main > *,
main > .alignfull,
main > .wp-block-group,
.wp-site-blocks > main > *,
.cgcs-hero-section,
.cgcs-welcome-section,
.cgcs-gegants-section,
.cgcs-video-section,
.cgcs-inner-banner,
.cgcs-inner-content-wrapper,
.cgcs-inner-cta {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/*
 * Electric Dark Blue Gradient for Hero (Nordkat Aesthetic)
 */
.cgcs-hero-section {
	background: radial-gradient(ellipse 100% 70% at 50% -15%, #183584 0%, #0c163f 50%, #070b1e 100%) !important;
	position: relative;
	padding-top: clamp(7.5rem, 11vw, 9.8rem) !important;
}

/*
 * ===================================================
 * Modern Floating Pill Glassmorphic Header (Floating Island)
 * ===================================================
 */
.cgcs-site-header {
	position: fixed !important;
	top: 1.25rem;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
	width: min(calc(100% - 3rem), 1320px);
	z-index: 99999;
	background: rgba(7, 11, 30, 0.82) !important;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9999px;
	box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.14);
	padding: 0.55rem 1.4rem !important;
	transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, top 0.3s ease;
}

/* WordPress Admin Bar adjustment */
body.admin-bar .cgcs-site-header {
	top: calc(32px + 1.25rem) !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .cgcs-site-header {
		top: calc(46px + 0.85rem) !important;
	}
}

@media (max-width: 600px) {
	.cgcs-site-header {
		top: 0.75rem;
		width: calc(100% - 1.25rem);
		padding: 0.45rem 0.85rem !important;
		border-radius: 9999px;
	}
}

.cgcs-header-inner {
	max-width: 1360px;
	margin: 0 auto;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
}

/* Brand */
.cgcs-header-brand {
	display: flex;
	align-items: center;
	justify-self: start;
	flex-shrink: 0;
}

.cgcs-header-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none !important;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.cgcs-header-logo-link:hover {
	opacity: 0.95;
	transform: scale(1.02);
}

.cgcs-logo-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	flex-shrink: 0;
}

.cgcs-header-logo-img {
	height: 44px;
	width: auto;
	max-height: 44px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.cgcs-brand-name {
	font-size: 1.15rem;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.4px;
}

/* Center Floating Pill Navigation */
.cgcs-header-nav-container {
	display: flex;
	justify-content: center;
	align-items: center;
	justify-self: center;
	width: 100%;
}

.cgcs-nav-pill {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9999px;
	padding: 0.35rem 0.65rem;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.25);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
}

.cgcs-nav-pill:hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.09);
}

.cgcs-nav-pill .wp-block-navigation {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cgcs-nav-pill ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.25rem !important;
}

.cgcs-nav-pill li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.cgcs-nav-pill a {
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 0.92rem !important;
	font-weight: 500 !important;
	padding: 0.45rem 1.15rem !important;
	border-radius: 9999px;
	transition: all 0.2s ease;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}

.cgcs-nav-pill a:hover {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

.cgcs-nav-pill a.is-active,
.cgcs-nav-pill .current-menu-item > a,
.cgcs-nav-pill a[aria-current="page"],
.cgcs-nav-pill li.current-menu-item > a {
	color: #ffffff !important;
	background: #f62c35 !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 14px rgba(246, 44, 53, 0.45) !important;
}

.cgcs-nav-pill a.is-active:hover,
.cgcs-nav-pill .current-menu-item > a:hover,
.cgcs-nav-pill a[aria-current="page"]:hover,
.cgcs-nav-pill li.current-menu-item > a:hover {
	background: #d41f28 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 18px rgba(246, 44, 53, 0.55) !important;
}

.cgcs-nav-pill .wp-block-navigation__responsive-container-open {
	color: #ffffff !important;
}

.cgcs-nav-pill .wp-block-navigation__responsive-container-open svg {
	fill: #ffffff !important;
}

/* Right Actions */
.cgcs-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	justify-self: end;
	gap: 0.75rem;
	flex-shrink: 0;
}

.cgcs-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9999px;
	padding: 0.35rem 0.45rem 0.35rem 1.15rem;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	backdrop-filter: blur(10px);
}

.cgcs-action-btn:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-1px);
}

.cgcs-action-btn.is-active,
.cgcs-action-btn[aria-current="page"] {
	background: #f62c35 !important;
	border-color: #f62c35 !important;
	box-shadow: 0 4px 16px rgba(246, 44, 53, 0.4) !important;
	font-weight: 700 !important;
}

.cgcs-action-btn.is-active .cgcs-action-btn-icon {
	background: rgba(255, 255, 255, 0.25) !important;
}

.cgcs-action-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	transition: all 0.25s ease;
}

.cgcs-action-btn:hover .cgcs-action-btn-icon {
	transform: translateX(2px);
	background: var(--wp--preset--color--accent-1, #f62c35);
}

/* Mobile Responsiveness */
@media (max-width: 990px) {
	.cgcs-header-inner {
		gap: 0.75rem;
	}
	.cgcs-brand-sub {
		display: none;
	}
	.cgcs-nav-pill {
		padding: 0.25rem 0.45rem;
	}
	.cgcs-nav-pill a {
		padding: 0.35rem 0.75rem !important;
		font-size: 0.85rem !important;
	}
}

@media (max-width: 782px) {
	.cgcs-action-btn span:first-child {
		display: none;
	}
	.cgcs-action-btn {
		padding: 0.35rem;
	}
}

@media (max-width: 600px) {
	.cgcs-header-inner {
		gap: 0.5rem;
	}
	.cgcs-header-logo-link {
		gap: 0.45rem;
	}
	.cgcs-brand-name {
		font-size: 0.95rem;
	}
	.cgcs-header-logo-img {
		height: 34px;
		max-height: 34px;
	}
	.cgcs-header-actions {
		gap: 0.4rem;
	}
	.cgcs-action-btn span:first-child {
		display: none;
	}
	.cgcs-action-btn {
		padding: 0.3rem;
	}
}

/*
 * ===================================================
 * Interior Pages Custom Styling (Pàgines Interiors)
 * ===================================================
 */

/* Hero / Header Banner for Interior Pages */
.cgcs-inner-banner {
	background: radial-gradient(ellipse 110% 85% at 50% -20%, #173280 0%, #0d1741 55%, #070b1e 100%) !important;
	position: relative;
	padding-top: clamp(7.5rem, 11vw, 9.8rem) !important;
	padding-bottom: clamp(3.5rem, 5.5vw, 5rem) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
}

.cgcs-inner-banner .alignwide {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 1.25rem !important;
	text-align: center !important;
	max-width: 900px !important;
	margin: 0 auto !important;
}

.cgcs-inner-banner::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: min(100%, 1200px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(246, 44, 53, 0.6), rgba(255, 255, 255, 0.2), transparent);
	pointer-events: none;
}

/* Interior Content Wrapper */
.cgcs-inner-content-wrapper {
	background-color: var(--wp--preset--color--base, #ffffff);
	position: relative;
	box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
	min-height: 50vh;
	transition: background-color 0.3s ease, color 0.3s ease;
}

/* Adaptació automàtica quan el fons és fosc (Contrast / Fosc) */
.cgcs-inner-content-wrapper.has-contrast-background-color,
.cgcs-inner-content-wrapper[style*="#070b1e"],
.cgcs-inner-content-wrapper[style*="#0a0e30"] {
	color: #e2e4ed !important;
}

.cgcs-inner-content-wrapper.has-contrast-background-color h2,
.cgcs-inner-content-wrapper.has-contrast-background-color h3,
.cgcs-inner-content-wrapper[style*="#070b1e"] h2,
.cgcs-inner-content-wrapper[style*="#070b1e"] h3,
.cgcs-inner-content-wrapper[style*="#0a0e30"] h2,
.cgcs-inner-content-wrapper[style*="#0a0e30"] h3 {
	color: #ffffff !important;
}

.cgcs-inner-content-wrapper.has-contrast-background-color .cgcs-character-card,
.cgcs-inner-content-wrapper[style*="#070b1e"] .cgcs-character-card,
.cgcs-inner-content-wrapper[style*="#0a0e30"] .cgcs-character-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cgcs-inner-content-wrapper.has-contrast-background-color .cgcs-character-card:hover,
.cgcs-inner-content-wrapper[style*="#070b1e"] .cgcs-character-card:hover,
.cgcs-inner-content-wrapper[style*="#0a0e30"] .cgcs-character-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(246, 44, 53, 0.4);
	transform: translateY(-4px);
}

.cgcs-inner-content-wrapper.has-contrast-background-color .cgcs-character-card h3,
.cgcs-inner-content-wrapper[style*="#070b1e"] .cgcs-character-card h3,
.cgcs-inner-content-wrapper[style*="#0a0e30"] .cgcs-character-card h3 {
	color: #ffffff !important;
}

.cgcs-inner-content-wrapper.has-contrast-background-color .cgcs-character-card p,
.cgcs-inner-content-wrapper[style*="#070b1e"] .cgcs-character-card p,
.cgcs-inner-content-wrapper[style*="#0a0e30"] .cgcs-character-card p {
	color: rgba(255, 255, 255, 0.72) !important;
}

.cgcs-inner-content-wrapper.has-contrast-background-color .cgcs-highlight-box,
.cgcs-inner-content-wrapper[style*="#070b1e"] .cgcs-highlight-box,
.cgcs-inner-content-wrapper[style*="#0a0e30"] .cgcs-highlight-box {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
	border-left: 4px solid var(--wp--preset--color--accent-1, #f62c35);
	color: #ffffff;
}

.cgcs-inner-content-wrapper.has-contrast-background-color .cgcs-highlight-box h3,
.cgcs-inner-content-wrapper[style*="#070b1e"] .cgcs-highlight-box h3,
.cgcs-inner-content-wrapper[style*="#0a0e30"] .cgcs-highlight-box h3 {
	color: #ffffff !important;
}

.cgcs-inner-content-wrapper.has-contrast-background-color .cgcs-highlight-box p,
.cgcs-inner-content-wrapper[style*="#070b1e"] .cgcs-highlight-box p,
.cgcs-inner-content-wrapper[style*="#0a0e30"] .cgcs-highlight-box p {
	color: rgba(255, 255, 255, 0.8) !important;
}

.cgcs-inner-content-wrapper .wp-block-post-content:not(.cgcs-page-content) {
	max-width: 840px;
	margin: 0 auto;
	font-size: 1.12rem;
	line-height: 1.85;
	color: #272a38;
}

.cgcs-inner-content-wrapper .wp-block-post-content:not(.cgcs-page-content) > p:first-of-type {
	font-size: 1.25rem;
	line-height: 1.75;
	color: #121528;
	font-weight: 400;
}

/* Interior Editorial Elements */
.cgcs-inner-content-wrapper h2 {
	font-size: clamp(1.75rem, 3vw, 2.3rem);
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
	letter-spacing: -0.6px;
	margin-top: 3rem;
	margin-bottom: 1.2rem;
	position: relative;
}

.cgcs-inner-content-wrapper h3 {
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 700;
	color: var(--wp--preset--color--contrast, #0a0e30);
	margin-top: 2.2rem;
	margin-bottom: 0.9rem;
}

/* Highlight / Callout Card */
.cgcs-highlight-box {
	background: #f8f9fc;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-left: 4px solid var(--wp--preset--color--accent-1, #f62c35);
	border-radius: 0 16px 16px 0;
	padding: 1.75rem 2rem;
	margin: 2.5rem 0;
}

/* Character / Feature Cards Grid (Files de 4 a escriptori) */
.cgcs-card-grid,
.cgcs-card-grid--4 {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.5rem !important;
	margin: 2rem 0 3.5rem 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

@media (max-width: 1120px) {
	.cgcs-card-grid,
	.cgcs-card-grid--4 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 1.5rem !important;
	}
}

@media (max-width: 600px) {
	.cgcs-card-grid,
	.cgcs-card-grid--4 {
		grid-template-columns: 1fr !important;
		gap: 1.4rem !important;
	}
}

/* Interior CTA Section */
.cgcs-inner-cta {
	background: radial-gradient(circle at 50% 50%, #0e1c48 0%, #070b1e 100%) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #ffffff !important;
	padding: 4rem var(--wp--preset--spacing--40, 2rem) !important;
}

.cgcs-inner-cta h3 {
	color: #ffffff !important;
	font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
	font-weight: 800 !important;
	margin: 0 0 0.5rem 0 !important;
}

.cgcs-inner-cta p {
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: 1.05rem !important;
	margin: 0 !important;
}

/* ==========================================================================
   Home Page: Modern Elevated Light Theme, Card Shadows & Video
   ========================================================================== */

/* Welcome Section */
.cgcs-welcome-section {
	background-color: #ffffff !important;
	position: relative;
}

.cgcs-welcome-card {
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.cgcs-welcome-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 30px 65px -12px rgba(10, 14, 48, 0.18) !important;
	border-color: rgba(246, 44, 53, 0.25) !important;
}

/* Gegants Section */
.cgcs-gegants-section {
	background-color: #f8f9fc !important;
	position: relative;
}


.cgcs-character-card {
	background: linear-gradient(180deg, #0e153b 0%, #06091d 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 22px !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	position: relative !important;
	overflow: hidden !important;
	height: 480px !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	color: #ffffff !important;
	cursor: pointer !important;
	box-shadow: 0 10px 30px -8px rgba(10, 14, 48, 0.25), 0 2px 6px rgba(10, 14, 48, 0.08) !important;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
}

.cgcs-character-card:hover {
	transform: translateY(-8px) !important;
	border-color: rgba(246, 44, 53, 0.55) !important;
	box-shadow: 0 24px 50px -10px rgba(10, 14, 48, 0.45), 0 0 28px rgba(246, 44, 53, 0.25) !important;
}

/* Spotlight de fons per donar relleu escènic a la figura */
.cgcs-card-spotlight {
	position: absolute !important;
	top: -20px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	width: 250px !important;
	height: 300px !important;
	background: radial-gradient(circle at 50% 35%, rgba(246, 44, 53, 0.28) 0%, rgba(35, 55, 130, 0.38) 48%, transparent 75%) !important;
	filter: blur(28px) !important;
	pointer-events: none !important;
	z-index: 1 !important;
	transition: transform 0.4s ease, opacity 0.4s ease !important;
}

.cgcs-character-card:hover .cgcs-card-spotlight {
	transform: translateX(-50%) scale(1.15) !important;
	opacity: 1 !important;
}

/* Contenidor de la figura com a protagonista visual */
.cgcs-card-figure-wrapper {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	display: flex !important;
	align-items: flex-end !important;
	justify-content: center !important;
	padding: 1.5rem 1rem 4.5rem 1rem !important;
	z-index: 2 !important;
	pointer-events: none !important;
	overflow: hidden !important;
}

/* Imatge de la figura retallada amb ombra realista */
.cgcs-card-figure-wrapper img,
.cgcs-card-figure-img {
	width: auto !important;
	max-width: 90% !important;
	height: 100% !important;
	max-height: 390px !important;
	object-fit: contain !important;
	object-position: center bottom !important;
	filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.6)) !important;
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
	display: block !important;
}

.cgcs-character-card:hover .cgcs-card-figure-wrapper img,
.cgcs-character-card:hover .cgcs-card-figure-img {
	transform: translateY(-8px) scale(1.05) !important;
	filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.8)) !important;
}

/* Degradat suau a la base per a la lectura del nom a sota de tot */
.cgcs-card-gradient-overlay {
	position: absolute !important;
	inset: 0 !important;
	z-index: 3 !important;
	pointer-events: none !important;
	background: linear-gradient(180deg, rgba(6, 9, 29, 0) 0%, rgba(6, 9, 29, 0) 52%, rgba(6, 9, 29, 0.65) 72%, rgba(6, 9, 29, 0.95) 88%, #06091d 100%) !important;
}

/* Contingut: nom del gegant a sota de tot */
.cgcs-card-content {
	position: relative !important;
	z-index: 4 !important;
	margin-top: auto !important;
	padding: 1.4rem 1.3rem !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Títol del gegant amb fletxa d'enllaç suau */
.cgcs-card-title {
	font-size: 1.32rem !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	margin: 0 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.3px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 0.5rem !important;
	width: 100% !important;
	transition: color 0.25s ease !important;
}

.cgcs-card-arrow {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: var(--wp--preset--color--accent-1, #f62c35) !important;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease !important;
	flex-shrink: 0 !important;
}

.cgcs-character-card:hover .cgcs-card-arrow {
	transform: translateX(6px) !important;
	color: #ff505b !important;
}



/* Video Section */
.cgcs-video-section {
	background-color: #ffffff !important;
	position: relative;
	overflow: hidden;
}

.cgcs-video-player-frame {
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cgcs-video-player-frame:hover {
	transform: translateY(-4px);
	border-color: rgba(246, 44, 53, 0.3) !important;
	box-shadow: 0 30px 80px -15px rgba(10, 14, 48, 0.28) !important;
}

/* ==========================================================================
   Pàgina de Contacte (.cgcs-contact-*)
   ========================================================================== */
.cgcs-contact-wrapper {
	max-width: 1040px;
	margin: 0 auto;
}

/* Intro / Lead */
.cgcs-contact-intro-box {
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-radius: 20px;
	padding: 2rem 2.5rem;
	margin-bottom: 2.5rem;
	box-shadow: 0 4px 20px rgba(10, 14, 48, 0.03);
	position: relative;
	overflow: hidden;
}

.cgcs-contact-intro-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background: #f62c35;
	border-radius: 4px 0 0 4px;
}

.cgcs-contact-intro-lead {
	font-size: 1.15rem;
	line-height: 1.7;
	color: #0a0e30;
	margin: 0;
	font-weight: 500;
}

.cgcs-contact-intro-lead strong {
	color: #0a0e30;
	font-weight: 700;
}

/* Contact Cards Grid */
.cgcs-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.6rem;
	margin-bottom: 3rem;
}

@media (max-width: 960px) {
	.cgcs-contact-grid {
		grid-template-columns: 1fr;
	}
}

/* Individual Contact Card */
.cgcs-contact-card {
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-radius: 20px;
	padding: 2rem 1.8rem;
	box-shadow: 0 8px 24px rgba(10, 14, 48, 0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
	position: relative;
}

.cgcs-contact-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 36px rgba(10, 14, 48, 0.09);
	border-color: rgba(246, 44, 53, 0.25);
}

/* Top Icon & Micro-badge */
.cgcs-contact-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.4rem;
}

.cgcs-contact-icon-bubble {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cgcs-contact-icon-bubble.is-location {
	background: rgba(246, 44, 53, 0.08);
	color: #f62c35;
}

.cgcs-contact-icon-bubble.is-email {
	background: rgba(10, 14, 48, 0.06);
	color: #0a0e30;
}

.cgcs-contact-icon-bubble.is-instagram {
	background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(253, 29, 29, 0.08));
	color: #e1306c;
}

.cgcs-contact-badge {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #f62c35;
	background: rgba(246, 44, 53, 0.08);
	padding: 0.3rem 0.65rem;
	border-radius: 9999px;
}

/* Card Body */
.cgcs-contact-card-body {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.cgcs-contact-card h3 {
	font-size: 1.32rem;
	font-weight: 800;
	color: #0a0e30;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.3px;
}

.cgcs-contact-card-value {
	margin: 0 0 0.75rem 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #272a38;
}

.cgcs-contact-email-link {
	display: inline-block;
	font-size: 0.92rem;
	font-weight: 700;
	color: #f62c35;
	text-decoration: none;
	word-break: break-all;
	overflow-wrap: anywhere;
	line-height: 1.45;
	transition: color 0.2s ease;
}

.cgcs-contact-email-link:hover {
	color: #d41f28;
	text-decoration: underline;
}

.cgcs-contact-instagram-link {
	display: inline-block;
	font-size: 0.94rem;
	font-weight: 700;
	color: #0a0e30;
	text-decoration: none;
	word-break: break-all;
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

.cgcs-contact-instagram-link:hover {
	color: #e1306c;
	text-decoration: underline;
}

.cgcs-contact-card-hint {
	font-size: 0.86rem;
	line-height: 1.5;
	color: #636670;
	margin: 0 0 1.4rem 0;
}

/* Card Action Button */
.cgcs-contact-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.25s ease;
	margin-top: auto;
	box-sizing: border-box;
}

.cgcs-contact-card-btn.is-primary {
	background: #f62c35;
	color: #ffffff !important;
	border: 1px solid #f62c35;
	box-shadow: 0 4px 14px rgba(246, 44, 53, 0.25);
}

.cgcs-contact-card-btn.is-primary:hover {
	background: #d41f28;
	border-color: #d41f28;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(246, 44, 53, 0.35);
}

.cgcs-contact-card-btn.is-secondary {
	background: #f4f5f8;
	color: #0a0e30 !important;
	border: 1px solid rgba(10, 14, 48, 0.08);
}

.cgcs-contact-card-btn.is-secondary:hover {
	background: #e8eaf0;
	transform: translateY(-2px);
	color: #0a0e30 !important;
}

.cgcs-contact-card-btn.is-instagram {
	background: linear-gradient(135deg, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
	color: #ffffff !important;
	border: none;
	box-shadow: 0 4px 14px rgba(214, 36, 159, 0.25);
}

.cgcs-contact-card-btn.is-instagram:hover {
	opacity: 0.95;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(214, 36, 159, 0.35);
}

/* Contact Form Container */
.cgcs-contact-form-container {
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.09);
	border-radius: 24px;
	padding: 3rem;
	box-shadow: 0 10px 40px rgba(10, 14, 48, 0.05);
	margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
	.cgcs-contact-form-container {
		padding: 1.8rem 1.4rem;
	}
}

.cgcs-contact-form-header {
	margin-bottom: 2rem;
	border-bottom: 1px solid rgba(10, 14, 48, 0.08);
	padding-bottom: 1.4rem;
}

.cgcs-contact-form-header h2 {
	font-size: 1.9rem;
	font-weight: 800;
	color: #0a0e30;
	margin: 0.3rem 0 0.5rem 0;
	letter-spacing: -0.5px;
}

.cgcs-contact-form-header p {
	margin: 0;
	font-size: 0.98rem;
	color: #636670;
}

/* Form inputs & interactive styles */
.cgcs-form-group {
	margin-bottom: 1.3rem;
}

.cgcs-form-label {
	display: block;
	font-size: 0.92rem;
	font-weight: 700;
	color: #0a0e30;
	margin-bottom: 0.45rem;
}

.cgcs-form-label .req {
	color: #f62c35;
	margin-left: 2px;
}

.cgcs-form-control {
	width: 100%;
	padding: 0.85rem 1.1rem;
	border-radius: 12px;
	border: 1px solid rgba(10, 14, 48, 0.15);
	font-size: 0.98rem;
	background: #fbfcfe;
	color: #0a0e30;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.cgcs-form-control:focus {
	outline: none;
	border-color: #f62c35;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(246, 44, 53, 0.12);
}

.cgcs-form-control::placeholder {
	color: #9aa0a6;
}

.cgcs-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
}

@media (max-width: 650px) {
	.cgcs-form-grid-2 {
		grid-template-columns: 1fr;
	}
}

.cgcs-form-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #636670;
	cursor: pointer;
}

.cgcs-form-checkbox-label input {
	margin-top: 0.2rem;
	accent-color: #f62c35;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.cgcs-form-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	background: #f62c35;
	color: #ffffff;
	border: none;
	border-radius: 9999px;
	padding: 0.95rem 2.4rem;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(246, 44, 53, 0.28);
	transition: all 0.25s ease;
}

.cgcs-form-submit-btn:hover {
	background: #d41f28;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(246, 44, 53, 0.4);
}

/* Soci Callout / Separate Page Banner */
.cgcs-soci-banner {
	background: radial-gradient(circle at 10% 20%, #101c44 0%, #070b1e 100%);
	border-radius: 20px;
	padding: 2.2rem 2.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 36px rgba(10, 14, 48, 0.12);
}

@media (max-width: 800px) {
	.cgcs-soci-banner {
		flex-direction: column;
		align-items: flex-start;
		padding: 2rem 1.8rem;
	}
}

.cgcs-soci-banner-content h3 {
	font-size: 1.4rem;
	font-weight: 800;
	margin: 0 0 0.5rem 0;
	color: #ffffff;
}

.cgcs-soci-banner-content p {
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

.cgcs-soci-banner-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 9999px;
	padding: 0.85rem 1.8rem;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	backdrop-filter: blur(8px);
	transition: all 0.25s ease;
}

.cgcs-soci-banner-btn:hover {
	background: #f62c35;
	border-color: #f62c35;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(246, 44, 53, 0.35);
}

.cgcs-soci-banner-btn.is-primary {
	background: #f62c35;
	border-color: #f62c35;
	box-shadow: 0 4px 16px rgba(246, 44, 53, 0.35);
}

.cgcs-soci-banner-btn.is-primary:hover {
	background: #d41f28;
	border-color: #d41f28;
	box-shadow: 0 6px 22px rgba(246, 44, 53, 0.45);
}

/* ==========================================================================
   Trobades i Sortides: Desplegables per Any
   ========================================================================== */
.cgcs-trobades-container {
	margin-top: 1.5rem;
}

.cgcs-trobades-actions-bar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 0.85rem;
}

.cgcs-trobades-toggle-all-btn {
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.12);
	color: #4b4f60;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 1rem;
	border-radius: 9999px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(10, 14, 48, 0.03);
}

.cgcs-trobades-toggle-all-btn:hover {
	color: #f62c35;
	border-color: rgba(246, 44, 53, 0.35);
	background: #fff8f8;
	transform: translateY(-1px);
}

.cgcs-trobades-accordion-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cgcs-trobada-year-accordion {
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.09);
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(10, 14, 48, 0.03);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
}

.cgcs-trobada-year-accordion:hover {
	border-color: rgba(246, 44, 53, 0.3);
	box-shadow: 0 8px 24px rgba(10, 14, 48, 0.06);
}

.cgcs-trobada-year-accordion[open] {
	border-color: rgba(246, 44, 53, 0.35);
	box-shadow: 0 10px 30px rgba(10, 14, 48, 0.07);
}

.cgcs-trobada-year-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.6rem;
	cursor: pointer;
	user-select: none;
	list-style: none;
	background: #ffffff;
	transition: background-color 0.2s ease;
	gap: 1rem;
}

.cgcs-trobada-year-summary::-webkit-details-marker,
.cgcs-trobada-year-summary::marker {
	display: none;
	content: "";
}

.cgcs-trobada-year-accordion[open] .cgcs-trobada-year-summary {
	background: #fbfcfe;
	border-bottom: 1px solid rgba(10, 14, 48, 0.06);
}

.cgcs-trobada-year-header-left {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
}

.cgcs-trobada-year-number {
	font-size: 1.4rem;
	font-weight: 800;
	color: #0a0e30;
	letter-spacing: -0.5px;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.cgcs-trobada-count-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: #f0f2f7;
	color: #4b4f60;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	letter-spacing: 0.2px;
}

.cgcs-trobada-poblacions-preview {
	font-size: 0.88rem;
	color: var(--cgcs-muted, #5f6374);
	font-weight: 500;
}

.cgcs-trobada-year-header-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.cgcs-trobada-toggle-text {
	font-size: 0.88rem;
	font-weight: 700;
	color: #636670;
	transition: color 0.2s ease;
}

.cgcs-trobada-year-accordion[open] .cgcs-trobada-toggle-text {
	color: #f62c35;
}

.cgcs-trobada-chevron {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f4f5f8;
	color: #0a0e30;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, color 0.25s ease;
	flex-shrink: 0;
}

.cgcs-trobada-year-summary:hover .cgcs-trobada-chevron {
	background: #e8ebf2;
}

.cgcs-trobada-year-accordion[open] .cgcs-trobada-chevron {
	transform: rotate(180deg);
	background: #f62c35;
	color: #ffffff;
}

.cgcs-trobada-year-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	background: #fbfcfe;
}

.cgcs-trobada-card-item {
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-left: 5px solid #f62c35;
	border-radius: 12px;
	padding: 1.4rem 1.6rem;
	box-shadow: 0 4px 14px rgba(10, 14, 48, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cgcs-trobada-card-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(10, 14, 48, 0.07);
}

@media (max-width: 600px) {
	.cgcs-trobada-year-summary {
		padding: 1rem 1.2rem;
	}
	.cgcs-trobada-year-body {
		padding: 1rem;
	}
	.cgcs-trobada-toggle-text,
	.cgcs-trobada-poblacions-preview {
		display: none;
	}
}

/* ==========================================================================
   Peu de Pàgina Modern CGCS (.cgcs-site-footer-wrapper)
   ========================================================================== */
.cgcs-site-footer-wrapper {
	background: linear-gradient(180deg, #090e30 0%, #05071a 100%) !important;
	color: #ffffff !important;
	position: relative !important;
	overflow: hidden !important;
	margin-top: 0 !important;
}

.cgcs-footer-top-glow {
	height: 3px;
	width: 100%;
	background: linear-gradient(90deg, transparent 0%, rgba(246, 44, 53, 0.85) 25%, rgba(254, 203, 0, 0.9) 50%, rgba(246, 44, 53, 0.85) 75%, transparent 100%);
	box-shadow: 0 0 16px rgba(246, 44, 53, 0.45);
}

.cgcs-footer-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 4.5rem 2rem 2.5rem;
	position: relative;
	z-index: 2;
}

.cgcs-footer-grid {
	display: grid;
	grid-template-columns: 1.8fr 1fr 1fr;
	gap: 4.5rem;
}

/* Columna 1: Brand & Social */
.cgcs-footer-brand-header {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
	margin-bottom: 1rem;
	transition: opacity 0.2s ease;
}

.cgcs-footer-brand-header:hover {
	opacity: 0.9;
}

.cgcs-footer-logo-img {
	height: 52px;
	width: auto;
	display: block;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.cgcs-footer-brand-info {
	display: flex;
	flex-direction: column;
}

.cgcs-footer-brand-title {
	font-size: 1.55rem;
	font-weight: 900;
	letter-spacing: -0.5px;
	color: #ffffff;
	line-height: 1.1;
}

.cgcs-footer-brand-tag {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #f62c35;
	margin-top: 0.25rem;
}

.cgcs-footer-org-name {
	font-size: 1.12rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 0.8rem 0;
	line-height: 1.35;
	letter-spacing: -0.3px;
}

.cgcs-footer-desc {
	font-size: 0.92rem;
	line-height: 1.65;
	color: #abacb1;
	margin: 0 0 1.8rem 0;
	max-width: 380px;
}

/* Xarxes Socials */
.cgcs-footer-social-block {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.cgcs-footer-social-title {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #7d8194;
}

.cgcs-footer-social-icons {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.cgcs-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cgcs-social-btn:hover {
	background: #f62c35;
	border-color: #f62c35;
	color: #ffffff;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(246, 44, 53, 0.35);
}

/* Capçalera de Columnes */
.cgcs-footer-col-title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #ffffff;
	margin: 0 0 1.5rem 0;
}

.cgcs-col-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 9999px;
	background: #f62c35;
	box-shadow: 0 0 8px rgba(246, 44, 53, 0.8);
}

/* Menús de Navegació (Sense punts de llista) */
.cgcs-footer-nav-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.cgcs-footer-nav-list li {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.cgcs-footer-nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #abacb1;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
	padding: 0.35rem 0;
	transition: all 0.2s ease;
}

.cgcs-footer-nav-link:hover {
	color: #ffffff;
	transform: translateX(4px);
}

.cgcs-link-arrow {
	font-size: 0.85rem;
	opacity: 0;
	transform: translateX(-4px);
	transition: all 0.2s ease;
	color: #f62c35;
}

.cgcs-footer-nav-link:hover .cgcs-link-arrow {
	opacity: 1;
	transform: translateX(0);
}

/* Píndola d'Any de la Figura */
.cgcs-year-badge {
	font-size: 0.72rem;
	font-weight: 700;
	color: #f62c35;
	background: rgba(246, 44, 53, 0.12);
	border: 1px solid rgba(246, 44, 53, 0.28);
	padding: 0.15rem 0.55rem;
	border-radius: 9999px;
	letter-spacing: 0.3px;
	transition: all 0.2s ease;
}

.cgcs-footer-nav-link:hover .cgcs-year-badge {
	background: #f62c35;
	color: #ffffff;
}

/* Barra Inferior del Footer */
.cgcs-footer-bottom-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 4rem;
	padding-top: 1.8rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.2rem;
}

.cgcs-footer-copyright p {
	margin: 0;
	font-size: 0.82rem;
	color: #7d8194;
}

.cgcs-footer-sublinks {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.82rem;
	color: #7d8194;
	flex-wrap: wrap;
}

.cgcs-footer-tagline {
	color: #abacb1;
	font-weight: 600;
}

.cgcs-footer-sep {
	color: rgba(255, 255, 255, 0.2);
}

.cgcs-footer-legal-link {
	color: #7d8194;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cgcs-footer-legal-link:hover {
	color: #ffffff;
}

/* Botó Torna a Dalt */
.cgcs-back-to-top-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
	padding: 0.42rem 0.95rem;
	border-radius: 9999px;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cgcs-back-to-top-btn:hover {
	background: #f62c35;
	border-color: #f62c35;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(246, 44, 53, 0.35);
}

/* Responsive Footer */
@media (max-width: 900px) {
	.cgcs-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
	.cgcs-footer-col--brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.cgcs-footer-container {
		padding: 3.5rem 1.4rem 2rem;
	}
	.cgcs-footer-grid {
		grid-template-columns: 1fr;
		gap: 2.2rem;
	}
	.cgcs-footer-bottom-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	.cgcs-back-to-top-btn {
		align-self: flex-start;
	}
}

/* ==========================================================================
   Lo Cal Boig (Pàgina de la Seu i Local dels Gegants)
   ========================================================================== */
.cgcs-calboig-history-card {
	background: linear-gradient(135deg, rgba(10, 14, 48, 0.04) 0%, rgba(246, 44, 53, 0.04) 100%), #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.1);
	border-left: 5px solid var(--wp--preset--color--accent-1, #f62c35);
	border-radius: 0 18px 18px 0;
	padding: 2.2rem 2.4rem;
	margin: 2rem 0;
	box-shadow: 0 8px 24px rgba(10, 14, 48, 0.04);
}

.cgcs-calboig-history-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.cgcs-calboig-badge {
	display: inline-flex;
	align-items: center;
	background: rgba(246, 44, 53, 0.1);
	color: var(--wp--preset--color--accent-1, #f62c35);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 0.35rem 0.85rem;
	border-radius: 9999px;
}

.cgcs-calboig-year {
	font-size: 0.85rem;
	font-weight: 700;
	color: #636670;
	background: #f0f2f8;
	padding: 0.3rem 0.8rem;
	border-radius: 9999px;
}

.cgcs-calboig-history-title {
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
	margin: 0 0 1rem 0;
	line-height: 1.3;
}

.cgcs-calboig-history-text {
	font-size: 1.08rem;
	line-height: 1.8;
	color: #2e3345;
	margin: 0 0 0.85rem 0;
}

.cgcs-calboig-history-subtext {
	font-size: 0.98rem;
	line-height: 1.7;
	color: #636670;
	margin: 0;
}

/* Espais Grid */
.cgcs-calboig-spaces-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.6rem;
	margin-top: 2rem;
	margin-bottom: 2.5rem;
}

@media (max-width: 720px) {
	.cgcs-calboig-spaces-grid {
		grid-template-columns: 1fr;
		gap: 1.3rem;
	}
}

.cgcs-calboig-space-card {
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-radius: 16px;
	padding: 2rem;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 16px rgba(10, 14, 48, 0.03);
	display: flex;
	flex-direction: column;
}

.cgcs-calboig-space-card:hover {
	transform: translateY(-4px);
	border-color: rgba(246, 44, 53, 0.3);
	box-shadow: 0 12px 30px rgba(10, 14, 48, 0.08);
}

.cgcs-calboig-space-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(10, 14, 48, 0.05);
	color: var(--wp--preset--color--contrast, #0a0e30);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	transition: all 0.25s ease;
}

.cgcs-calboig-space-card:hover .cgcs-calboig-space-icon {
	background: var(--wp--preset--color--accent-1, #f62c35);
	color: #ffffff;
	transform: scale(1.05);
}

.cgcs-calboig-space-card h3 {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
	margin: 0 0 0.6rem 0;
	line-height: 1.35;
}

.cgcs-calboig-space-card p {
	font-size: 0.98rem;
	line-height: 1.65;
	color: #55596b;
	margin: 0;
}

/* Secció de Visites & Contrast Quarto dels Gegants */
.cgcs-calboig-visit-section {
	background: radial-gradient(circle at 50% 10%, #111a42 0%, #080d24 100%);
	border-radius: 20px;
	padding: 3.2rem 2.8rem;
	color: #ffffff;
	margin: 3.5rem 0;
	box-shadow: 0 16px 40px rgba(10, 14, 48, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
	.cgcs-calboig-visit-section {
		padding: 2.2rem 1.6rem;
	}
}

.cgcs-calboig-visit-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.12);
	color: #abacb1;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 0.35rem 0.9rem;
	border-radius: 9999px;
	margin-bottom: 1rem;
}

.cgcs-calboig-visit-section h2 {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 1rem 0;
	letter-spacing: -0.5px;
}

.cgcs-calboig-visit-intro {
	font-size: 1.1rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.85);
	max-width: 820px;
	margin: 0 0 2.4rem 0;
}

.cgcs-calboig-dual-route {
	display: flex;
	align-items: stretch;
	gap: 1.5rem;
	margin: 2rem 0;
}

@media (max-width: 820px) {
	.cgcs-calboig-dual-route {
		flex-direction: column;
		align-items: center;
	}
}

.cgcs-calboig-dual-card {
	flex: 1;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 1.8rem;
	backdrop-filter: blur(8px);
	display: flex;
	flex-direction: column;
}

.cgcs-calboig-dual-tag {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	display: inline-block;
	padding: 0.25rem 0.65rem;
	border-radius: 6px;
	width: fit-content;
	margin-bottom: 0.8rem;
}

.cgcs-calboig-dual-tag.is-carnaval {
	background: #f62c35;
	color: #ffffff;
}

.cgcs-calboig-dual-tag.is-festamajor {
	background: #febd17;
	color: #0a0e30;
}

.cgcs-calboig-dual-card h3 {
	font-size: 1.35rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 0.6rem 0;
}

.cgcs-calboig-dual-card p {
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 1rem 0;
	flex: 1;
}

.cgcs-calboig-dual-loc {
	font-size: 0.85rem;
	font-weight: 700;
	color: #abacb1;
}

.cgcs-calboig-dual-vs {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
}

.cgcs-calboig-dual-vs span {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 800;
	color: #ffffff;
}

.cgcs-calboig-visit-cta {
	margin-top: 2rem;
	padding-top: 1.8rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cgcs-calboig-visit-cta p {
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 1.25rem 0;
}

.cgcs-calboig-btn-group {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	align-items: center;
}

/* ==========================================================================
   CGCS Modal Propi (Substitució d'avisos natius com "Open Mail?")
   ========================================================================== */
body.cgcs-modal-locked {
	overflow: hidden !important;
}

.cgcs-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.cgcs-modal.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.cgcs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 48, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
}

.cgcs-modal-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 2.5rem);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 25px 60px -15px rgba(10, 14, 48, 0.35), 0 0 0 1px rgba(10, 14, 48, 0.08);
	transform: translateY(20px) scale(0.96);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cgcs-modal.is-active .cgcs-modal-dialog {
	transform: translateY(0) scale(1);
}

/* Capçalera */
.cgcs-modal-header {
	background: radial-gradient(circle at 10% 20%, #18275f 0%, #0a0e30 100%);
	padding: 2rem 2rem 1.8rem 2rem;
	color: #ffffff;
	position: relative;
}

.cgcs-modal-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(246, 44, 53, 0.2);
	border: 1px solid rgba(246, 44, 53, 0.45);
	color: #ff9196;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.3rem 0.75rem;
	border-radius: 9999px;
	margin-bottom: 0.8rem;
}

.cgcs-modal-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f62c35;
	box-shadow: 0 0 8px #f62c35;
}

.cgcs-modal-title {
	font-family: 'Platypi', serif, system-ui;
	font-size: 1.5rem;
	font-weight: 800;
	color: #ffffff !important;
	margin: 0 0 0.4rem 0 !important;
	line-height: 1.25;
}

.cgcs-modal-subtitle {
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.8) !important;
	margin: 0 !important;
	line-height: 1.5;
}

.cgcs-modal-close-btn {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.cgcs-modal-close-btn:hover {
	background: #f62c35;
	border-color: #f62c35;
	transform: rotate(90deg);
}

/* Cos */
.cgcs-modal-body {
	padding: 1.8rem 2rem 2rem 2rem;
}

.cgcs-modal-subject-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f4f5f8;
	border: 1px solid rgba(10, 14, 48, 0.08);
	padding: 0.4rem 0.85rem;
	border-radius: 8px;
	font-size: 0.85rem;
	margin-bottom: 1.2rem;
	width: 100%;
	box-sizing: border-box;
}

.cgcs-modal-subject-label {
	font-weight: 700;
	color: #0a0e30;
	font-size: 0.8rem;
}

.cgcs-modal-subject-text {
	color: #636670;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Card d'adreça de correu amb botó de copiar */
.cgcs-modal-card-email {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: #fcfdff;
	border: 1.5px solid rgba(10, 14, 48, 0.12);
	border-radius: 14px;
	padding: 0.9rem 1.1rem;
	margin-bottom: 1.6rem;
	transition: border-color 0.2s ease;
}

.cgcs-modal-card-email:hover {
	border-color: #0a0e30;
}

.cgcs-modal-card-email-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cgcs-modal-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #636670;
	margin-bottom: 2px;
}

.cgcs-modal-email-text {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0a0e30;
	word-break: break-all;
	user-select: all;
}

.cgcs-modal-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #0a0e30;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 0.6rem 0.95rem;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.cgcs-modal-copy-btn:hover {
	background: #18275f;
	transform: translateY(-1px);
}

.cgcs-modal-copy-btn.is-copied {
	background: #16a34a !important;
	color: #ffffff !important;
}

/* Llista d'opcions d'obertura */
.cgcs-modal-options-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: #0a0e30;
	margin-bottom: 0.85rem;
}

.cgcs-modal-actions-list {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin-bottom: 1.5rem;
}

.cgcs-modal-action-btn {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	border-radius: 14px;
	background: #f8f9fc;
	border: 1px solid rgba(10, 14, 48, 0.08);
	text-decoration: none !important;
	color: inherit;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cgcs-modal-action-btn:hover {
	background: #ffffff;
	border-color: #f62c35;
	box-shadow: 0 6px 18px rgba(10, 14, 48, 0.08);
	transform: translateY(-2px);
}

.cgcs-modal-action-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cgcs-modal-action-icon.is-gmail {
	background: #ea4335;
	color: #ffffff;
}

.cgcs-modal-action-icon.is-outlook {
	background: #0078d4;
	color: #ffffff;
}

.cgcs-modal-action-icon.is-system {
	background: #0a0e30;
	color: #ffffff;
}

.cgcs-modal-action-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-width: 0;
}

.cgcs-modal-action-content strong {
	font-size: 0.96rem;
	font-weight: 700;
	color: #0a0e30;
	line-height: 1.3;
}

.cgcs-modal-action-content span {
	font-size: 0.8rem;
	color: #636670;
	line-height: 1.35;
	margin-top: 2px;
}

.cgcs-modal-chevron {
	color: #abacb1;
	flex-shrink: 0;
	transition: transform 0.2s ease, color 0.2s ease;
}

.cgcs-modal-action-btn:hover .cgcs-modal-chevron {
	color: #f62c35;
	transform: translateX(3px);
}

.cgcs-modal-footer-hint {
	font-size: 0.85rem;
	color: #636670;
	text-align: center;
	padding-top: 1rem;
	border-top: 1px solid rgba(10, 14, 48, 0.08);
}

.cgcs-modal-footer-hint a {
	color: #f62c35;
	font-weight: 700;
	text-decoration: underline;
}

.cgcs-modal-footer-hint a:hover {
	color: #0a0e30;
}

@media (max-width: 600px) {
	.cgcs-modal {
		padding: 0.75rem;
		align-items: flex-end;
	}
	.cgcs-modal-dialog {
		max-height: 90vh;
		border-radius: 20px 20px 12px 12px;
	}
	.cgcs-modal-header {
		padding: 1.5rem 1.25rem 1.25rem 1.25rem;
	}
	.cgcs-modal-body {
		padding: 1.25rem;
	}
	.cgcs-modal-card-email {
		flex-direction: column;
		align-items: stretch;
	}
	.cgcs-modal-copy-btn {
		justify-content: center;
	}
}





/* ==========================================================================
   Curiositats de la Colla (pàgina La Colla · shortcode [cgcs_curiositats])
   ========================================================================== */

.cgcs-curiositats-section {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	scroll-margin-top: 110px;
}

.cgcs-section-eyebrow {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1, #f62c35);
}

.cgcs-curiositats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.cgcs-curiositat-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-top: 4px solid var(--wp--preset--color--accent-1, #f62c35);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(10, 14, 48, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cgcs-curiositat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(10, 14, 48, 0.08);
}

.cgcs-curiositat-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0d1741;
}

.cgcs-curiositat-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cgcs-curiositat-body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.3rem 1.4rem 1.5rem;
	flex: 1;
}

.cgcs-curiositat-meta {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.cgcs-curiositat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	background: rgba(246, 44, 53, 0.08);
	font-size: 1.05rem;
	line-height: 1;
}

.cgcs-curiositat-tag {
	padding: 0.2rem 0.7rem;
	border-radius: 9999px;
	background: #f0f2f7;
	color: #4b4f60;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.cgcs-curiositat-num {
	margin-left: auto;
	font-size: 0.85rem;
	font-weight: 800;
	color: rgba(10, 14, 48, 0.25);
	font-variant-numeric: tabular-nums;
}

.cgcs-curiositat-title {
	margin: 0.2rem 0 0;
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-curiositat-text {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #474b59;
}

.cgcs-curiositat-text p {
	margin: 0 0 0.6rem;
}

.cgcs-curiositat-text p:last-child {
	margin-bottom: 0;
}

.cgcs-empty-notice {
	background: #f8f9fc;
	border: 1.5px dashed rgba(10, 14, 48, 0.15);
	border-radius: 14px;
	padding: 1.8rem 1.5rem;
	text-align: center;
	color: #636670;
}

.cgcs-empty-notice p {
	margin: 0 0 0.35rem;
}

@media (max-width: 600px) {
	.cgcs-curiositats-grid {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   Components de contingut (classes usades pels patrons editables i shortcodes)
   ========================================================================== */

/* Ritme vertical de les pàgines interiors */
.cgcs-page-stack {
	margin-top: 1rem;
	margin-bottom: 3rem;
}

.cgcs-page-stack > * + * {
	margin-block-start: 3.5rem;
}

.cgcs-text-stack > * + * {
	margin-block-start: 1.5rem;
}

.cgcs-text-stack > .cgcs-section-eyebrow + .cgcs-section-title {
	margin-block-start: 0;
}

.cgcs-lead {
	font-size: 1.28rem;
	line-height: 1.7;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-text-muted {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--wp--preset--color--accent-4, #636670);
}

.cgcs-section-title {
	margin: 0;
	font-size: 2rem;
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-section-title.is-large {
	font-size: clamp(2rem, 3.5vw, 2.7rem);
	letter-spacing: -0.6px;
}

.cgcs-section-intro {
	margin: 0;
	font-size: 1.05rem;
	color: var(--wp--preset--color--accent-4, #636670);
}

.cgcs-section-eyebrow.has-text-align-center {
	margin-bottom: 0.4rem;
}

.cgcs-fites-list {
	font-size: 1.05rem;
	line-height: 2;
}

/* Caixa destacada amb blocs dins */
.cgcs-highlight-box > h3 {
	margin: 0 0 0.8rem;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-highlight-box > p {
	margin: 0 0 0.8rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: #272a38;
}

.cgcs-highlight-box > p:last-child {
	margin-bottom: 0;
}

.cgcs-highlight-box > .cgcs-highlight-accent {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1, #f62c35);
}

.cgcs-frase-destacada .cgcs-frase-text {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-frase-destacada .cgcs-frase-autor {
	margin: 0;
	font-size: 0.92rem;
	color: var(--wp--preset--color--accent-4, #636670);
}

/* Banner de socis (CTA fosc) */
.cgcs-soci-banner {
	margin: 1rem 0;
}

.cgcs-soci-banner-btn.is-ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
}

/* Subtítol dels banners interiors */
.cgcs-banner-subtitol {
	max-width: 680px;
	margin: 0.5rem auto 0;
	font-size: 1.15rem;
	line-height: 1.6;
	text-align: center;
	color: var(--wp--preset--color--accent-3, #d2d3d9);
}

/* Estadístiques de la Colla */
.cgcs-colla-stats-strip {
	margin: 2.5rem 0;
	padding: 2rem 1.5rem;
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(10, 14, 48, 0.04);
}

.cgcs-colla-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
	text-align: center;
}

.cgcs-colla-stat-value {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -1px;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-colla-stat-value.is-accent {
	color: var(--wp--preset--color--accent-1, #f62c35);
}

.cgcs-colla-stat-label {
	margin-top: 0.4rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

/* Fitxa tècnica del gegant */
.cgcs-fitxa-tecnica-card {
	margin: 2.5rem 0;
	padding: 2rem;
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-left: 5px solid var(--wp--preset--color--accent-1, #f62c35);
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(10, 14, 48, 0.05);
}

.cgcs-fitxa-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(10, 14, 48, 0.07);
}

.cgcs-fitxa-eyebrow {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1, #f62c35);
}

.cgcs-fitxa-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-fitxa-year {
	padding: 0.35rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1, #f62c35);
	background: rgba(246, 44, 53, 0.1);
	border-radius: 9999px;
}

.cgcs-fitxa-subtitle {
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-fitxa-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.2rem;
}

.cgcs-fitxa-item {
	padding: 0.9rem 1.1rem;
	background: #f8f9fc;
	border: 1px solid rgba(10, 14, 48, 0.04);
	border-radius: 10px;
}

.cgcs-fitxa-item-label {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #717585;
}

.cgcs-fitxa-item-value {
	font-size: 0.98rem;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-fitxa-curiositat {
	margin-top: 1.5rem;
	padding: 1.2rem 1.4rem;
	background: #f8f9fc;
	border-left: 4px solid var(--wp--preset--color--accent-1, #f62c35);
	border-radius: 10px;
}

.cgcs-fitxa-curiositat .cgcs-fitxa-item-label {
	margin-bottom: 0.35rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.cgcs-fitxa-curiositat p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

/* Contingut estructurat de la fitxa del gegant (Història, Ball, Rodolí) */
.cgcs-gegant-structured-content {
	margin-top: 2.5rem;
}

.cgcs-gegant-section {
	margin-bottom: 2.8rem;
}

.cgcs-gegant-section-title {
	margin-bottom: 1.2rem;
	font-size: clamp(1.6rem, 2.8vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-gegant-structured-content .cgcs-prose-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #2d3142;
}

/* Targetes de trobades */
.cgcs-trobada-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.cgcs-trobada-card-place {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1, #f62c35);
}

.cgcs-trobada-card-date {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--cgcs-muted, #5f6374);
}

.cgcs-trobada-card-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-trobada-card-figures {
	margin: 0 0 0.65rem;
	font-size: 0.92rem;
	color: #636670;
}

.cgcs-trobada-card-figures strong {
	color: var(--wp--preset--color--contrast, #0a0e30);
}

.cgcs-trobada-card-notes {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #474b59;
}

/* Cròniques (feed del blog) */
.cgcs-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.cgcs-blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(10, 14, 48, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cgcs-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(10, 14, 48, 0.09);
}

.cgcs-blog-card-media {
	display: block;
	height: 210px;
	overflow: hidden;
	background: #0d1741;
}

.cgcs-blog-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.cgcs-blog-card:hover .cgcs-blog-card-media img {
	transform: scale(1.03);
}

.cgcs-blog-card-media.is-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 140px;
	padding: 1rem;
	background: linear-gradient(135deg, #070b1e 0%, #173280 100%);
}

.cgcs-blog-card-media.is-placeholder img {
	width: auto;
	height: 48px;
	opacity: 0.85;
}

.cgcs-blog-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.6rem;
}

.cgcs-blog-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--cgcs-muted, #5f6374);
}

.cgcs-blog-card-cat {
	padding: 0.25rem 0.75rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1, #f62c35);
	background: rgba(246, 44, 53, 0.1);
	border-radius: 9999px;
}

.cgcs-blog-card-title {
	margin: 0 0 0.75rem;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.35;
}

.cgcs-blog-card-title a {
	color: var(--wp--preset--color--contrast, #0a0e30);
	text-decoration: none;
}

.cgcs-blog-card-excerpt {
	flex: 1;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #575a68;
}

.cgcs-blog-card-footer {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid rgba(10, 14, 48, 0.06);
}

.cgcs-blog-card-footer a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1, #f62c35);
	text-decoration: none;
}

.cgcs-blog-intro {
	max-width: 820px;
}

/* Pàgina Els Gegants */
.cgcs-gegants-cataleg-section {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.cgcs-gegants-intro {
	max-width: 820px;
	margin: 0 auto 3.5rem;
	font-size: 1.22rem;
	line-height: 1.8;
	text-align: center;
	color: #434758;
}

.cgcs-gegants-grid-wrapper {
	width: 100%;
	margin-bottom: 4.5rem;
}

.cgcs-gegants-grid-wrapper > .cgcs-section-title {
	margin-bottom: 2.2rem;
}

.cgcs-gegants-musica {
	max-width: 860px;
	margin: 0 auto;
}

/* Pàgina Actes */
.cgcs-actes-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.8rem;
}

.cgcs-acte-card {
	padding: 1.6rem 1.8rem;
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-left: 5px solid var(--wp--preset--color--accent-1, #f62c35);
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(10, 14, 48, 0.05);
}

.cgcs-acte-card > p {
	margin: 0;
	line-height: 1.7;
	color: #474b59;
}

.cgcs-acte-meta {
	gap: 0.5rem;
	margin-bottom: 0.6rem;
}

.cgcs-acte-meta p {
	margin: 0;
}

.cgcs-acte-dia {
	padding: 0.3rem 0.8rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1, #f62c35);
	background: rgba(246, 44, 53, 0.1);
	border-radius: 9999px;
}

.cgcs-acte-hora {
	padding: 0.25rem 0.75rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-4, #636670);
	background: #f0f2f8;
	border-radius: 9999px;
}

.cgcs-acte-title {
	margin: 0.2rem 0 0.5rem;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--wp--preset--color--contrast, #0a0e30);
}

/* Contacte i socis */
p.cgcs-contact-badge {
	display: inline-block;
	margin: 0;
}

.cgcs-contact-wrapper > * + * {
	margin-block-start: 2.5rem;
}

.cgcs-contact-card-body > h3 {
	margin-top: 0;
}

.cgcs-contact-form-container > .cgcs-form-submit-btn {
	text-decoration: none;
}

.cgcs-contact-socials {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.cgcs-form-notice {
	margin-bottom: 1.5rem;
	padding: 1.2rem 1.6rem;
	font-size: 1.02rem;
	font-weight: 600;
	border-radius: 12px;
}

.cgcs-form-notice.is-success {
	color: #1b5e20;
	background: #e8f5e9;
	border: 1px solid #81c784;
}

.cgcs-form-notice.is-error {
	color: #8a1c1c;
	background: #fdecea;
	border: 1px solid #f5a3a3;
}

.cgcs-form-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cgcs-form-label .opt {
	font-weight: 400;
	color: var(--cgcs-muted, #5f6374);
}

.cgcs-form-actions {
	margin-top: 1rem;
}

.cgcs-form-checkbox-label a {
	color: var(--wp--preset--color--accent-1, #f62c35);
}

.cgcs-contact-form-anchor {
	scroll-margin-top: 110px;
}

/* Lo Cal Boig */
.cgcs-calboig-location .cgcs-contact-card {
	grid-column: 1 / -1;
	max-width: 100%;
}

.cgcs-calboig-location h3 {
	font-size: 1.45rem;
}

.cgcs-calboig-location .cgcs-contact-card-value {
	margin-bottom: 0.75rem;
	font-size: 1.15rem;
}

.cgcs-calboig-location .cgcs-contact-card-hint {
	max-width: 720px;
	line-height: 1.7;
}

.cgcs-calboig-location-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

.cgcs-calboig-btn-group .cgcs-action-btn {
	display: inline-flex;
}

/* Textos legals (Avís Legal i Privadesa) */
.cgcs-legal-wrapper {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #3f4254;
}

.cgcs-legal-idcard {
	margin-bottom: 3rem;
	padding: 2rem 2.2rem;
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-radius: 18px;
	box-shadow: 0 10px 30px -5px rgba(10, 14, 48, 0.06);
}

.cgcs-legal-idcard > h2 {
	margin: 0 0 1rem;
	font-size: 1.45rem;
	font-weight: 800;
	color: #0a0e30;
}

.cgcs-legal-idcard > p:not(.cgcs-legal-badge) {
	margin: 0 0 1.4rem;
	font-size: 1rem;
	line-height: 1.7;
	color: #525866;
}

.cgcs-legal-badge {
	display: inline-block;
	margin: 0 0 1.2rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #f62c35;
	background: rgba(246, 44, 53, 0.1);
	border-radius: 9999px;
}

.cgcs-legal-idgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	padding: 1.4rem;
	background: #f8f9fc;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.cgcs-legal-idgrid strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.82rem;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--cgcs-muted, #5f6374);
}

.cgcs-legal-idgrid span,
.cgcs-legal-idgrid a {
	font-weight: 600;
	color: #0a0e30;
}

.cgcs-legal-idgrid a,
.cgcs-legal-section a {
	color: #f62c35;
	text-decoration: none;
}

.cgcs-legal-section {
	margin-bottom: 2.8rem;
}

.cgcs-legal-section > h3 {
	margin: 0 0 0.85rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: #0a0e30;
}

.cgcs-legal-num {
	color: #f62c35;
}

.cgcs-legal-section > p {
	margin: 0 0 1rem;
}

.cgcs-legal-section ul {
	margin: 0 0 1rem;
	padding-left: 1.4rem;
}

.cgcs-legal-note {
	padding: 1.2rem 1.4rem;
	background: #f8f9fc;
	border-left: 4px solid #f62c35;
	border-radius: 0 12px 12px 0;
}

/* Peu de pàgina */
.cgcs-footer-nav-link.is-highlight {
	margin-top: 0.4rem;
	font-weight: 700;
	color: #f62c35;
}

.cgcs-footer-nav-link.is-highlight .cgcs-link-arrow {
	opacity: 1;
	transform: none;
}

@media (max-width: 600px) {
	.cgcs-acte-card,
	.cgcs-legal-idcard {
		padding: 1.4rem;
	}
	.cgcs-page-stack > * + * {
		margin-block-start: 2.5rem;
	}
}

/* El contingut de pàgina ja és dins d'un contenidor amb padding: evitem el doble padding global. */
.cgcs-inner-content-wrapper > .wp-block-post-content.has-global-padding {
	padding-right: 0;
	padding-left: 0;
}

/* Les 4 xifres de la Colla sempre en una fila a escriptori */
@media (min-width: 700px) {
	.cgcs-colla-stats-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ==========================================================================
   Agenda d'actes [cgcs_agenda]
   ========================================================================== */

.cgcs-agenda {
	display: grid;
	gap: 1.5rem;
}

.cgcs-agenda-item {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 1.5rem;
	align-items: start;
}

.cgcs-agenda-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 0.4rem;
	color: #ffffff;
	text-align: center;
	background: linear-gradient(160deg, #16255c 0%, #0a0e30 100%);
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(10, 14, 48, 0.18);
}

.cgcs-agenda-day {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}

.cgcs-agenda-month {
	margin-top: 0.3rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: #f62c35;
}

.cgcs-agenda-body .cgcs-acte-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.cgcs-agenda-lloc {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.6rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-4, #636670);
}

.cgcs-agenda-lloc svg {
	flex-shrink: 0;
	color: #f62c35;
}

.cgcs-agenda-text {
	line-height: 1.7;
	color: #474b59;
}

.cgcs-agenda-text p {
	margin: 0 0 0.6rem;
}

.cgcs-agenda-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(10, 14, 48, 0.06);
}

.cgcs-agenda-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.95rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #0a0e30;
	text-decoration: none;
	background: #f4f5f8;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-radius: 9999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cgcs-agenda-btn:hover,
.cgcs-agenda-btn:focus-visible {
	color: #ffffff;
	background: #f62c35;
	border-color: #f62c35;
}

@media (max-width: 600px) {
	.cgcs-agenda-item {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.cgcs-agenda-date {
		flex-direction: row;
		gap: 0.5rem;
		justify-self: start;
		padding: 0.5rem 0.9rem;
	}
	.cgcs-agenda-day {
		font-size: 1.3rem;
	}
	.cgcs-agenda-month {
		margin-top: 0;
	}
}

/* ==========================================================================
   Formulari d'alta de socis [cgcs_formulari_soci]
   ========================================================================== */

.cgcs-form-fieldset {
	margin: 0 0 1.8rem;
	padding: 0;
	border: 0;
}

.cgcs-form-fieldset[hidden] {
	display: none;
}

.cgcs-form-fieldset legend {
	width: 100%;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #f62c35;
	border-bottom: 1px solid rgba(10, 14, 48, 0.08);
}

.cgcs-soci-tutor {
	padding: 1.2rem 1.4rem;
	background: #fff8f0;
	border: 1px solid #f6d7b0;
	border-radius: 12px;
}

.cgcs-soci-tutor legend {
	float: left;
	color: #9a5a00;
	border-bottom-color: #f6d7b0;
}

.cgcs-soci-tutor legend + * {
	clear: both;
}

.cgcs-form-checks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0.6rem;
	margin-bottom: 1.2rem;
}

.cgcs-form-check {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #272a38;
	cursor: pointer;
	background: #f8f9fc;
	border: 1px solid rgba(10, 14, 48, 0.08);
	border-radius: 10px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cgcs-form-check:has(input:checked) {
	background: rgba(246, 44, 53, 0.06);
	border-color: rgba(246, 44, 53, 0.45);
}

.cgcs-form-check input {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	accent-color: #f62c35;
}

/* ==========================================================================
   Galeria de fotos [cgcs_galeria] i visor
   ========================================================================== */

.cgcs-galeria-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.cgcs-galeria-filtre {
	padding: 0.5rem 1.1rem;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	color: #0a0e30;
	cursor: pointer;
	background: #ffffff;
	border: 1px solid rgba(10, 14, 48, 0.12);
	border-radius: 9999px;
}

.cgcs-galeria-filtre span {
	margin-left: 0.25rem;
	font-weight: 600;
	opacity: 0.55;
}

.cgcs-galeria-filtre.is-active {
	color: #ffffff;
	background: #0a0e30;
	border-color: #0a0e30;
}

.cgcs-galeria-any + .cgcs-galeria-any {
	margin-top: 2.5rem;
}

.cgcs-galeria-any[hidden] {
	display: none;
}

.cgcs-galeria-any-title {
	margin: 0 0 1rem;
	font-size: 1.6rem;
	font-weight: 800;
	color: #0a0e30;
}

.cgcs-galeria-any-title span {
	margin-left: 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--cgcs-muted, #5f6374);
}

.cgcs-galeria-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.75rem;
}

.cgcs-galeria-item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8ebf2;
	border-radius: 12px;
}

.cgcs-galeria-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.cgcs-galeria-item:hover img,
.cgcs-galeria-item:focus-visible img {
	transform: scale(1.05);
}

.cgcs-trobada-fotos {
	margin-top: 0.5rem;
}

.cgcs-trobada-fotos-title {
	margin: 0 0 0.8rem;
	font-size: 1rem;
	font-weight: 800;
	color: #0a0e30;
}

.cgcs-trobada-fotos .cgcs-galeria-grid {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.cgcs-trobada-count-pill.is-fotos {
	background: rgba(246, 44, 53, 0.08);
	color: #c71f27;
}

.cgcs-galeria-link {
	margin-top: 1rem;
	font-size: 1rem;
	text-align: right;
	font-weight: 700;
}

.cgcs-galeria-link a {
	color: #f62c35;
	text-decoration: none;
}

html.cgcs-lb-open {
	overflow: hidden;
}

.cgcs-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 4.5rem;
	background: rgba(5, 7, 24, 0.94);
}

.cgcs-lightbox-overlay[hidden] {
	display: none;
}

.cgcs-lb-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.cgcs-lb-figure img {
	max-width: 100%;
	max-height: calc(100vh - 9rem);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cgcs-lb-figure figcaption {
	margin-top: 0.9rem;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
}

.cgcs-lb-close,
.cgcs-lb-prev,
.cgcs-lb-next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 1.6rem;
	line-height: 1;
	color: #ffffff;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
}

.cgcs-lb-close:hover,
.cgcs-lb-prev:hover,
.cgcs-lb-next:hover {
	background: #f62c35;
}

.cgcs-lb-close { top: 1rem; right: 1rem; font-size: 1.1rem; }
.cgcs-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.cgcs-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.cgcs-lb-prev[hidden], .cgcs-lb-next[hidden] { display: none; }

.cgcs-lb-count {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
	transform: translateX(-50%);
}

@media (max-width: 600px) {
	.cgcs-lightbox-overlay {
		padding: 4rem 0.5rem;
	}
	.cgcs-lb-prev,
	.cgcs-lb-next {
		top: auto;
		bottom: 1rem;
		transform: none;
	}
}

/* ==========================================================================
   Tokens de disseny (colors i formes comunes de la CGCS)
   ========================================================================== */

:root {
	--cgcs-navy: #0a0e30;
	--cgcs-navy-2: #16255c;
	--cgcs-red: #f62c35;
	--cgcs-red-dark: #c71f27;
	--cgcs-ink: #272a38;
	--cgcs-muted: #5f6374;
	--cgcs-line: rgba(10, 14, 48, 0.08);
	--cgcs-soft: #f6f7fb;
	--cgcs-radius: 16px;
	--cgcs-radius-lg: 24px;
	--cgcs-shadow: 0 10px 30px rgba(10, 14, 48, 0.06);
}

/* Xarxa de seguretat: cap element pot provocar desplaçament horitzontal */
.wp-site-blocks {
	overflow-x: clip;
}

/* Botons d'acció coherents */
.cgcs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.7rem 1.4rem;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
	text-decoration: none;
	background: var(--cgcs-red);
	border: 2px solid var(--cgcs-red);
	border-radius: 9999px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cgcs-btn:hover {
	background: var(--cgcs-red-dark);
	border-color: var(--cgcs-red-dark);
	transform: translateY(-1px);
}

.cgcs-btn--ghost {
	color: var(--cgcs-navy);
	background: transparent;
	border-color: rgba(10, 14, 48, 0.18);
}

.cgcs-btn--ghost:hover {
	color: #ffffff;
	background: var(--cgcs-navy);
	border-color: var(--cgcs-navy);
}

/* Focus visible per a navegació amb teclat */
.cgcs-btn:focus-visible,
.cgcs-character-card:focus-visible,
.cgcs-galeria-item:focus-visible,
.cgcs-galeria-filtre:focus-visible,
.cgcs-agenda-btn:focus-visible,
.cgcs-contact-card-btn:focus-visible,
.cgcs-soci-banner-btn:focus-visible,
.cgcs-form-submit-btn:focus-visible,
.cgcs-gegant-hero-back:focus-visible {
	outline: 2px solid var(--cgcs-red);
	outline-offset: 3px;
}

/* ==========================================================================
   Fitxa del gegant: escenari fosc
   ========================================================================== */

.cgcs-gegant-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(7rem, 10vw, 8.5rem) max(1.25rem, 5vw) clamp(3rem, 6vw, 5rem);
	color: #ffffff;
	background:
		radial-gradient(ellipse 70% 60% at 28% 55%, rgba(35, 55, 130, 0.55) 0%, transparent 70%),
		radial-gradient(ellipse 100% 80% at 50% -10%, #183584 0%, #0c163f 50%, #070b1e 100%);
}

.cgcs-gegant-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	max-width: 1160px;
	margin: 0 auto;
}

.cgcs-gegant-hero-stage {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 460px;
}

.cgcs-gegant-hero-spotlight {
	position: absolute;
	top: 4%;
	left: 50%;
	width: min(420px, 90%);
	height: 80%;
	background: radial-gradient(circle at 50% 35%, rgba(246, 44, 53, 0.35) 0%, rgba(35, 55, 130, 0.45) 45%, transparent 72%);
	filter: blur(30px);
	transform: translateX(-50%);
	pointer-events: none;
}

.cgcs-gegant-hero-img {
	position: relative;
	z-index: 2;
	display: block;
	width: auto;
	max-width: 100%;
	height: min(560px, 62vh);
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
}

.cgcs-gegant-hero-floor {
	position: absolute;
	bottom: -6px;
	left: 50%;
	z-index: 1;
	width: 60%;
	height: 34px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
	transform: translateX(-50%);
}

.cgcs-gegant-hero-back {
	display: inline-block;
	margin-bottom: 1.4rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.cgcs-gegant-hero-back:hover {
	color: #ffffff;
}

.cgcs-gegant-hero-eyebrow {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--cgcs-red);
}

.cgcs-gegant-hero-title {
	margin: 0;
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -1.5px;
	color: #ffffff;
}

.cgcs-gegant-hero-subtitle {
	max-width: 520px;
	margin: 1rem 0 0;
	font-size: 1.2rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}

.cgcs-gegant-hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	max-width: 520px;
	margin: 2rem 0 0;
}

.cgcs-gegant-hero-stats div {
	padding: 1rem 1.1rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	backdrop-filter: blur(6px);
}

.cgcs-gegant-hero-stats dt {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

.cgcs-gegant-hero-stats dd {
	margin: 0.25rem 0 0;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.1;
	color: #ffffff;
}

.cgcs-gegant-hero-details {
	display: grid;
	gap: 0.6rem;
	max-width: 520px;
	margin: 1.4rem 0 0;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cgcs-gegant-hero-details div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.8rem;
	align-items: baseline;
}

.cgcs-gegant-hero-details dt {
	min-width: 130px;
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
}

.cgcs-gegant-hero-details dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
}

@media (max-width: 860px) {
	.cgcs-gegant-hero-inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.cgcs-gegant-hero-stage {
		min-height: 0;
	}
	.cgcs-gegant-hero-img {
		height: min(420px, 52vh);
	}
	.cgcs-gegant-hero-info {
		text-align: center;
	}
	.cgcs-gegant-hero-subtitle,
	.cgcs-gegant-hero-stats,
	.cgcs-gegant-hero-details {
		margin-left: auto;
		margin-right: auto;
	}
	.cgcs-gegant-hero-details div {
		justify-content: center;
	}
	.cgcs-gegant-hero-details dt {
		min-width: 0;
	}
}

@media (max-width: 420px) {
	.cgcs-gegant-hero-stats dd {
		font-size: 1.25rem;
	}
	.cgcs-gegant-hero-stats div {
		padding: 0.8rem 0.6rem;
	}
}

/* Cos de la fitxa */
.cgcs-gegant-body {
	padding-top: clamp(3rem, 6vw, 4.5rem) !important;
	padding-bottom: clamp(3rem, 6vw, 4.5rem) !important;
}

.cgcs-gegant-structured-content {
	margin-top: 0;
}

.cgcs-gegant-curiositat {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	margin: 0 0 2.8rem;
	padding: 1.5rem 1.7rem;
	background: linear-gradient(135deg, #fff5f5 0%, #f6f7fb 100%);
	border: 1px solid rgba(246, 44, 53, 0.18);
	border-radius: var(--cgcs-radius);
}

.cgcs-gegant-curiositat-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	font-size: 1.3rem;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(246, 44, 53, 0.15);
}

.cgcs-gegant-curiositat-label {
	margin: 0 0 0.3rem !important;
	font-size: 0.78rem !important;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--cgcs-red);
}

.cgcs-gegant-curiositat-text {
	margin: 0 !important;
	font-size: 1.02rem !important;
	line-height: 1.65 !important;
	color: var(--cgcs-ink);
}

.cgcs-gegant-rodoli {
	position: relative;
	margin: 0 0 2.8rem;
	padding: 3.6rem 2.2rem 1.8rem;
	color: #ffffff;
	background: radial-gradient(circle at 10% 20%, var(--cgcs-navy-2) 0%, #070b1e 100%);
	border-radius: var(--cgcs-radius-lg);
	box-shadow: 0 14px 40px rgba(10, 14, 48, 0.18);
}

.cgcs-gegant-rodoli::before {
	content: "«";
	position: absolute;
	top: 0.6rem;
	left: 1.9rem;
	font-size: 3.6rem;
	font-weight: 800;
	line-height: 1;
	color: var(--cgcs-red);
}

.cgcs-gegant-rodoli blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.cgcs-gegant-rodoli blockquote p {
	margin: 0 !important;
	font-size: clamp(1.15rem, 2.2vw, 1.4rem) !important;
	font-style: italic;
	font-weight: 500;
	line-height: 1.6 !important;
	color: #ffffff !important;
}

.cgcs-gegant-rodoli figcaption {
	margin-top: 1rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

/* Altres figures */
.cgcs-altres-gegants {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--cgcs-line);
}

.cgcs-altres-gegants-head {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 1.8rem;
}

.cgcs-altres-gegants-head .cgcs-section-eyebrow {
	margin: 0 0 0.3rem;
}

.cgcs-altres-gegants .cgcs-card-grid--4 {
	margin-bottom: 0 !important;
}

/* ==========================================================================
   Contrast: grisos de text petit amb ràtio AA (≥ 4,5:1 sobre blanc)
   ========================================================================== */

.cgcs-trobada-card-date,
.cgcs-trobada-poblacions-preview,
.cgcs-blog-card-meta,
.cgcs-legal-idgrid strong,
.cgcs-fitxa-item-label,
.cgcs-galeria-any-title span,
.cgcs-form-label .opt,
.cgcs-contact-card-hint {
	color: var(--cgcs-muted);
}

/* ==========================================================================
   Lo Cal Boig
   ========================================================================== */

/* D'un cop d'ull */
.cgcs-calboig-glance {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--cgcs-line);
	border-radius: var(--cgcs-radius);
	box-shadow: var(--cgcs-shadow);
}

.cgcs-calboig-glance-item {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding: 1.3rem 1.4rem;
}

.cgcs-calboig-glance-item + .cgcs-calboig-glance-item {
	border-left: 1px solid var(--cgcs-line);
}

.cgcs-calboig-glance-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--cgcs-red);
	background: rgba(246, 44, 53, 0.08);
	border-radius: 12px;
}

.cgcs-calboig-glance-item strong {
	display: block;
	margin-bottom: 0.15rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--cgcs-muted);
}

.cgcs-calboig-glance-item span {
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--cgcs-navy);
}

.cgcs-calboig-glance-item a {
	color: var(--cgcs-red);
	text-decoration: none;
}

/* Què s'amaga: graella ampla */
.cgcs-calboig-spaces > .cgcs-section-title {
	margin-bottom: 0.5rem;
}

.cgcs-calboig .cgcs-calboig-spaces-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 2rem 0 0;
}

.cgcs-calboig .cgcs-calboig-space-card {
	margin: 0;
	padding: 1.6rem 1.4rem;
	border-top: 4px solid var(--cgcs-red);
}

.cgcs-calboig .cgcs-calboig-space-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(10, 14, 48, 0.09);
}

.cgcs-calboig .cgcs-calboig-space-card h3 {
	margin: 1rem 0 0.5rem;
	font-size: 1.1rem;
	line-height: 1.3;
}

.cgcs-calboig .cgcs-calboig-space-card p {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.6;
	color: #474b59;
}

/* Galeria d'una pàgina */
.cgcs-galeria-pagina-head {
	margin-bottom: 1.4rem;
}

.cgcs-galeria-pagina-head .cgcs-section-intro {
	margin-top: 0.4rem;
}

/* Ubicació: botons compactes en línia */
.cgcs-calboig-location .cgcs-contact-card-btn {
	width: auto;
	padding: 0.75rem 1.4rem;
	border-radius: 9999px;
}

@media (max-width: 1000px) {
	.cgcs-calboig .cgcs-calboig-spaces-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.cgcs-calboig-glance {
		grid-template-columns: 1fr;
	}
	.cgcs-calboig-glance-item + .cgcs-calboig-glance-item {
		border-top: 1px solid var(--cgcs-line);
		border-left: 0;
	}
}

@media (max-width: 560px) {
	.cgcs-calboig .cgcs-calboig-spaces-grid {
		grid-template-columns: 1fr;
	}
	.cgcs-calboig-location .cgcs-contact-card-btn {
		width: 100%;
	}
}

.cgcs-altres-gegants-head .cgcs-section-title {
	margin: 0;
}

@media (max-width: 600px) {
	.cgcs-altres-gegants .cgcs-card-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.75rem !important;
		margin-top: 0 !important;
	}
	.cgcs-altres-gegants .cgcs-character-card {
		height: 270px !important;
	}
	.cgcs-altres-gegants .cgcs-card-title {
		font-size: 1rem !important;
	}
	.cgcs-altres-gegants .cgcs-card-spotlight {
		width: 160px !important;
		height: 200px !important;
	}
}

@media (max-width: 600px) {
	.cgcs-galeria-grid,
	.cgcs-trobada-fotos .cgcs-galeria-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
	}
}

/* ==========================================================================
   Pastilla d'etiqueta (eyebrow) reutilitzable
   ========================================================================== */

.cgcs-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	width: auto;
	margin: 0;
	padding: 0.45rem 1rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 9999px;
	backdrop-filter: blur(6px);
}

.cgcs-pill-dot {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	background: var(--cgcs-red);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(246, 44, 53, 0.22);
}

/* ==========================================================================
   Hero de la portada
   ========================================================================== */

.cgcs-home-hero {
	overflow: hidden;
	padding: clamp(7.5rem, 10vw, 9rem) max(1.25rem, 5vw) 0 !important;
	color: #ffffff;
	background:
		radial-gradient(ellipse 60% 70% at 78% 60%, rgba(35, 55, 130, 0.6) 0%, transparent 70%),
		radial-gradient(ellipse 100% 70% at 50% -15%, #183584 0%, #0c163f 50%, #070b1e 100%) !important;
}

.cgcs-home-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, var(--cgcs-red) 30%, #f5b700 50%, var(--cgcs-red) 70%, transparent 100%);
	opacity: 0.85;
}

/* Confeti de Carnaval, molt subtil */
.cgcs-home-hero-decor,
.cgcs-inner-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 8% 22%, rgba(246, 44, 53, 0.55) 0 3px, transparent 4px),
		radial-gradient(circle at 18% 78%, rgba(245, 183, 0, 0.45) 0 2px, transparent 3px),
		radial-gradient(circle at 34% 12%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px),
		radial-gradient(circle at 46% 88%, rgba(246, 44, 53, 0.4) 0 2px, transparent 3px),
		radial-gradient(circle at 63% 18%, rgba(245, 183, 0, 0.4) 0 3px, transparent 4px),
		radial-gradient(circle at 74% 70%, rgba(255, 255, 255, 0.3) 0 2px, transparent 3px),
		radial-gradient(circle at 88% 30%, rgba(246, 44, 53, 0.5) 0 2px, transparent 3px),
		radial-gradient(circle at 94% 82%, rgba(245, 183, 0, 0.35) 0 3px, transparent 4px);
	opacity: 0.8;
}

.cgcs-home-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: end;
	max-width: 1240px;
	margin: 0 auto;
}

.cgcs-home-hero-text {
	align-self: center;
	padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.cgcs-home-hero-title {
	margin: 1.4rem 0 0;
	font-size: clamp(2.6rem, 5.2vw, 4.6rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -1.8px;
	color: #ffffff;
}

.cgcs-home-hero-title span {
	color: var(--cgcs-red);
}

.cgcs-home-hero-lead {
	max-width: 560px;
	margin: 1.4rem 0 0;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.78);
}

.cgcs-home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 2.2rem;
}

.cgcs-btn--lg {
	padding: 0.95rem 1.9rem;
	font-size: 1.02rem;
}

.cgcs-btn--light {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.35);
}

.cgcs-btn--light:hover {
	color: var(--cgcs-navy);
	background: #ffffff;
	border-color: #ffffff;
}

.cgcs-home-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 2.6rem 0 0;
}

.cgcs-home-hero-stats div {
	padding: 0 1.8rem;
	border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.cgcs-home-hero-stats div:first-child {
	padding-left: 0;
	border-left: 0;
}

.cgcs-home-hero-stats dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.cgcs-home-hero-stats dd {
	margin: 0.2rem 0 0;
	font-size: clamp(1.7rem, 2.6vw, 2.2rem);
	font-weight: 800;
	line-height: 1.1;
	color: #ffffff;
}

.cgcs-home-hero-stats div:first-child dd {
	color: var(--cgcs-red);
}

/* Desfilada de gegants */
.cgcs-home-hero-parade {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-top: 2rem;
}

.cgcs-home-hero-spotlight {
	position: absolute;
	top: 6%;
	left: 50%;
	width: 85%;
	height: 85%;
	background: radial-gradient(circle at 50% 40%, rgba(246, 44, 53, 0.32) 0%, rgba(35, 55, 130, 0.45) 45%, transparent 72%);
	filter: blur(36px);
	transform: translateX(-50%);
	pointer-events: none;
}

.cgcs-home-hero-figure {
	position: relative;
	z-index: 2;
	display: block;
	flex: 0 0 auto;
	width: 27%;
	margin: 0 -3.5%;
	text-decoration: none;
	transform-origin: bottom center;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
	animation: cgcs-ballada 6s ease-in-out infinite;
	animation-delay: calc(var(--cgcs-i) * -1.4s);
}

.cgcs-home-hero-figure.is-lead {
	z-index: 3;
	width: 36%;
}

.cgcs-home-hero-figure img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.5));
}

.cgcs-home-hero-figure:hover,
.cgcs-home-hero-figure:focus-visible {
	z-index: 4;
	transform: translateY(-8px) scale(1.03);
	animation-play-state: paused;
}

.cgcs-home-hero-figure:focus-visible {
	outline: 2px solid var(--cgcs-red);
	outline-offset: 4px;
	border-radius: 12px;
}

.cgcs-home-hero-figure-name {
	position: absolute;
	bottom: 12%;
	left: 50%;
	padding: 0.35rem 0.8rem;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
	color: #ffffff;
	background: rgba(7, 11, 30, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9999px;
	opacity: 0;
	transform: translate(-50%, 6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.cgcs-home-hero-figure:hover .cgcs-home-hero-figure-name,
.cgcs-home-hero-figure:focus-visible .cgcs-home-hero-figure-name {
	opacity: 1;
	transform: translate(-50%, 0);
}

.cgcs-home-hero-floor {
	position: absolute;
	bottom: -10px;
	left: 50%;
	z-index: 1;
	width: 90%;
	height: 50px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
	transform: translateX(-50%);
}

@keyframes cgcs-ballada {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-1.2deg); }
	75% { transform: rotate(1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
	.cgcs-home-hero-figure {
		animation: none;
	}
}

@media (max-width: 900px) {
	.cgcs-home-hero-inner {
		grid-template-columns: 1fr;
		gap: 0;
		text-align: center;
	}
	.cgcs-home-hero-text {
		padding-bottom: 1.5rem;
	}
	.cgcs-home-hero-lead {
		margin-left: auto;
		margin-right: auto;
	}
	.cgcs-home-hero-actions,
	.cgcs-home-hero-stats {
		justify-content: center;
	}
	.cgcs-home-hero-parade {
		max-width: 560px;
		margin: 0 auto;
		padding-top: 0.5rem;
	}
}

@media (max-width: 520px) {
	.cgcs-home-hero-actions .cgcs-btn {
		flex: 1 1 100%;
	}
	.cgcs-home-hero-stats {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 2rem;
	}
	.cgcs-home-hero-stats div,
	.cgcs-home-hero-stats div:first-child {
		padding: 0 0.4rem;
	}
	.cgcs-home-hero-stats dd {
		font-size: 1.5rem;
	}
	.cgcs-home-hero-stats dt {
		font-size: 0.68rem;
	}
	.cgcs-home-hero-figure {
		margin: 0 -4.5%;
	}
}

/* ==========================================================================
   Capçaleres de les pàgines interiors
   ========================================================================== */

.cgcs-inner-banner {
	overflow: hidden;
	background:
		radial-gradient(ellipse 55% 90% at 100% 100%, rgba(246, 44, 53, 0.14) 0%, transparent 60%),
		radial-gradient(ellipse 110% 85% at 50% -20%, #173280 0%, #0d1741 55%, #070b1e 100%) !important;
	padding-top: clamp(7.5rem, 10vw, 9.5rem) !important;
	padding-bottom: clamp(3.2rem, 5vw, 4.6rem) !important;
}

/* Logo de la Colla com a marca d'aigua */
.cgcs-inner-banner .alignwide::after {
	content: "";
	position: absolute;
	top: 50%;
	right: max(-60px, calc((100vw - 1240px) / 2 - 60px));
	z-index: 0;
	width: clamp(220px, 26vw, 360px);
	aspect-ratio: 1;
	background: url("assets/images/cgcs-white.webp") center / contain no-repeat;
	opacity: 0.05;
	transform: translateY(-38%) rotate(-8deg);
	pointer-events: none;
}

.cgcs-inner-banner .alignwide {
	position: static !important;
}

.cgcs-inner-banner .alignwide > * {
	position: relative;
	z-index: 1;
}

/* Línia de Carnaval al peu del banner */
.cgcs-inner-banner::after {
	bottom: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, var(--cgcs-red) 30%, #f5b700 50%, var(--cgcs-red) 70%, transparent 100%);
	opacity: 0.85;
}

.cgcs-inner-banner h1 {
	font-size: clamp(2.5rem, 5.4vw, 4.2rem) !important;
	line-height: 1.04 !important;
	letter-spacing: -1.6px !important;
	text-wrap: balance;
}

.cgcs-inner-banner .cgcs-banner-subtitol {
	max-width: 620px;
	font-size: clamp(1.02rem, 1.4vw, 1.18rem);
	color: rgba(255, 255, 255, 0.74);
	text-wrap: balance;
}

/* Pastilla del banner: mateix estil que la de la portada */
.cgcs-inner-banner .alignwide > .wp-block-group:first-child {
	gap: 0.55rem !important;
	padding: 0.45rem 1rem !important;
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: rgba(255, 255, 255, 0.14) !important;
	backdrop-filter: blur(6px);
}

.cgcs-inner-banner .alignwide > .wp-block-group:first-child p {
	font-size: 0.76rem !important;
	letter-spacing: 1.1px !important;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85) !important;
}

.cgcs-inner-banner .alignwide > .wp-block-group:first-child p:first-child {
	font-size: 0 !important;
	width: 7px;
	height: 7px;
	background: var(--cgcs-red);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(246, 44, 53, 0.22);
}

@media (max-width: 600px) {
	.cgcs-inner-banner {
		padding-top: 6.8rem !important;
		padding-bottom: 2.8rem !important;
	}
	.cgcs-inner-banner .alignwide::after {
		display: none;
	}
}
