/* ==========================================================================
   CB Viladecans — estilos base del tema
   ========================================================================== */

/* Tipografia manuscrita dels titulars (Mistral). Si el dispositiu no la té instal·lada
   (mòbils, Mac...), es carrega una font web semblant allotjada al tema. */
@font-face {
	font-family: 'Mistral';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local('Mistral'), local('Mistral Regular'), url('fonts/kaushan-script-latin.woff2') format('woff2');
}

:root {
	--cbv-dark: #182d30;
	--cbv-dark-2: #10201f;
	--cbv-green: #0a8650;
	--cbv-green-light: #1fae6d;
	--cbv-text: #222222;
	--cbv-text-light: #ffffff;
	--cbv-muted: #b7c2c1;
	--cbv-header-height: 76px;
	--cbv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

a[href^="mailto:"] {
	color: var(--cbv-green);
	font-weight: 700;
}

body {
	font-family: var(--cbv-font);
	color: var(--cbv-text);
	margin: 0;
	padding-top: var(--cbv-header-height);
}

/* Plantilla "canvas" de Elementor (portada /app): sin cabecera fija, sin hueco superior. */
body.elementor-template-canvas {
	padding-top: 0;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	display: block;
}

/* ---------- Header ---------- */

.cbv-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: var(--cbv-dark);
	height: var(--cbv-header-height);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.cbv-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	gap: 24px;
}

.cbv-header__logo img {
	height: 52px;
	width: auto;
}

.cbv-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.cbv-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.cbv-menu > li {
	position: relative;
}

.cbv-menu > li > a,
.cbv-menu > li > a:visited {
	display: block;
	padding: 12px 16px;
	color: var(--cbv-text-light);
	font-size: 15px;
	font-weight: 500;
	border-radius: 6px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cbv-menu > li > a:hover,
.cbv-menu > li.current-menu-item > a {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--cbv-green-light);
}

.cbv-menu ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--cbv-dark);
	border-radius: 8px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.15s ease;
}

.cbv-menu > li:hover > ul,
.cbv-menu > li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.cbv-menu ul li a {
	display: block;
	padding: 10px 12px;
	color: var(--cbv-muted);
	font-size: 14px;
	border-radius: 6px;
}

.cbv-menu ul li a:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--cbv-text-light);
}

.cbv-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.cbv-header__cart {
	position: relative;
	color: var(--cbv-text-light);
	display: flex;
}

.cbv-header__cart-count {
	position: absolute;
	top: -6px;
	right: -10px;
	background: var(--cbv-green);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 3px 5px;
	border-radius: 999px;
	min-width: 16px;
	text-align: center;
}

.cbv-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.cbv-header__toggle span {
	display: block;
	height: 2px;
	background: var(--cbv-text-light);
	border-radius: 2px;
}

/* ---------- Home: seccions "targeta" ---------- */

.cbv-card-section {
	background: #f2f5f4;
	border: 1.5px solid #d7ddd9;
	border-radius: 18px;
	box-shadow: 0 6px 22px rgba(16, 32, 31, 0.06);
	max-width: 1232px;
	margin: 18px auto !important;
}

.cbv-card-section--bottom {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: 0;
	margin-bottom: 0 !important;
	box-shadow: none;
}

/* Filas de las páginas resumen (Club, Esdeveniments): mismo separador que el borde de la tarjeta. */
.cbv-card-section.cbv-card-row {
	border-top: 1.5px solid #d7ddd9;
}

.cbv-card-section .elementor-column {
	padding-left: 14px;
	padding-right: 14px;
}

.cbv-info-card > .elementor-widget-wrap {
	background: #f2f5f4;
	border: 1.5px solid #d7ddd9;
	border-radius: 18px;
	box-shadow: 0 6px 22px rgba(16, 32, 31, 0.06);
	padding: 32px 24px !important;
	margin: 0 12px;
}

@media (max-width: 767px) {
	.cbv-info-card > .elementor-widget-wrap {
		margin: 0 0 20px;
	}
}

.cbv-card-section--top {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-top: 0;
	margin-top: 0 !important;
}

/* ---------- Home ---------- */

.cbv-hero-buttons .elementor-widget-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.cbv-hero-buttons .elementor-widget-button {
	width: auto;
	margin: 0 !important;
}

.cbv-hero-social-col {
	position: absolute;
	right: 32px;
	bottom: 28px;
	z-index: 5;
	width: auto !important;
	animation: cbv-slide-in-right 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes cbv-slide-in-right {
	from {
		transform: translateX(120px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.cbv-hero-social-col .elementor-social-icon {
	width: 46px;
	height: 46px;
	border: 2px solid #c7cdcb;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.cbv-hero-social-col .elementor-social-icon:hover {
	transform: scale(1.15);
	border-color: #ffffff;
}

.cbv-hero-social-col .elementor-social-icon-instagram {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.cbv-hero-social-col .elementor-social-icon-whatsapp {
	background-color: #25d366;
}

.cbv-hero-social-col .elementor-social-icon-facebook {
	background-color: #1877f2;
}

.cbv-hero-social-col .elementor-social-icon-phone {
	background-color: #0a8650;
}

@media (max-width: 900px) {
	.cbv-hero-social-col {
		position: static;
		margin-top: 16px;
	}
}

.cbv-ig-feed {
	background: #fafbfa;
	padding: 20px 0 24px;
}

.cbv-ig-feed__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 24px 16px;
	max-width: 1280px;
	margin: 0 auto;
}

.cbv-ig-feed__icon {
	font-size: 26px;
}

.cbv-ig-feed__head strong {
	color: var(--cbv-dark);
	font-size: 15px;
}

.cbv-ig-feed__head span {
	color: #6b7876;
	font-size: 13px;
}

.cbv-ig-feed__scroll {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0 24px 8px;
	-webkit-overflow-scrolling: touch;
}

.cbv-ig-feed__scroll::-webkit-scrollbar {
	height: 8px;
}

.cbv-ig-feed__scroll::-webkit-scrollbar-thumb {
	background: #d7ddd9;
	border-radius: 8px;
}

.cbv-ig-item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 220px;
	height: 220px;
	border-radius: 10px;
	overflow: hidden;
	display: block;
}

.cbv-ig-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.cbv-ig-item:hover img {
	transform: scale(1.05);
}

/* Smash Balloon Instagram feed - force horizontal scroll instead of the default grid */
#sb_instagram #sbi_images {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 5px;
	gap: 5px !important;
}

#sb_instagram #sbi_images .sbi_item {
	flex: 0 0 110px !important;
	width: 110px !important;
	scroll-snap-align: start;
}

#sb_instagram #sbi_images::-webkit-scrollbar {
	height: 6px;
}

#sb_instagram #sbi_images::-webkit-scrollbar-thumb {
	background: #d7ddd9;
	border-radius: 8px;
}

#sb_instagram #sbi_load {
	display: none;
}

/* Shrink the whole feed block (header + photos) to about half size */
#sb_instagram.sbi {
	max-width: 640px;
	margin: 0 auto;
}

#sb_instagram .sb_instagram_header {
	padding: 6px 0 !important;
}

#sb_instagram .sbi_header_img,
#sb_instagram .sbi_header_img img {
	width: 40px !important;
	height: 40px !important;
}

#sb_instagram .sbi_header_link {
	font-size: 12px !important;
	gap: 6px;
}

#sb_instagram .sbi_bio {
	font-size: 11px !important;
}

@media (max-width: 600px) {
	.cbv-ig-item {
		width: 150px;
		height: 150px;
	}
}

.cbv-fcbq-col h3 {
	color: var(--cbv-dark);
	margin-bottom: 16px;
}

.cbv-fcbq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid #b9d9c7;
	border-radius: 8px;
	overflow: hidden;
}

/* Cada partit: franja alterna en dos verds clars i una ratlla que el separa del següent */
.cbv-fcbq-row {
	background: #eef8f1;
	border-bottom: 1px solid #b9d9c7;
	padding: 12px 16px;
}

.cbv-fcbq-row:nth-child(even) {
	background: #dcefe3;
}

.cbv-fcbq-row:last-child {
	border-bottom: 0;
}

.cbv-fcbq-teams {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cbv-dark);
}

.cbv-fcbq-teams--stack {
	justify-content: flex-start;
	font-weight: 500;
	color: #333;
}

.cbv-fcbq-teams--stack .cbv-fcbq-vs {
	color: #8a9694;
	font-weight: 400;
	margin: 0 4px;
}

.cbv-fcbq-scores {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 20px;
	color: var(--cbv-green);
	margin-top: 4px;
}

.cbv-fcbq-date {
	font-size: 13px;
	font-weight: 700;
	color: var(--cbv-green);
	margin-bottom: 4px;
}

.cbv-fcbq-comp {
	font-size: 12px;
	color: #55625f;
	margin-top: 4px;
}

.cbv-fcbq-empty {
	color: #8a9694;
	font-size: 14px;
}

.cbv-event-card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	padding-bottom: 24px !important;
	margin: 0 12px;
}

.cbv-event-card img {
	border-radius: 0;
}

@media (max-width: 767px) {
	.cbv-event-card {
		margin: 0 0 20px;
	}
}

/* ---------- Footer: patrocinadors i app ---------- */

.cbv-footer__sponsors {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 40px;
}

.cbv-footer__sponsors-label {
	display: block;
	color: var(--cbv-text-light);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.cbv-footer__sponsors-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.cbv-footer__sponsor-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	background: #fff;
	border-radius: 6px;
	padding: 6px 14px;
}

.cbv-footer__sponsor-logo img {
	height: 100%;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.cbv-footer__app img {
	height: 72px;
	width: auto;
	border-radius: 6px;
}

/* ---------- Footer ---------- */

.cbv-footer {
	background: var(--cbv-dark-2);
	color: var(--cbv-muted);
	margin-top: 64px;
}

.cbv-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 32px;
}

.cbv-footer__logo {
	height: 56px;
	width: auto;
}

.cbv-footer h3 {
	color: var(--cbv-text-light);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 12px;
}

.cbv-footer p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.6;
}

.cbv-footer a:hover {
	color: var(--cbv-green-light);
}

.cbv-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cbv-footer-menu li {
	margin-bottom: 8px;
	font-size: 14px;
}

.cbv-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
	padding: 20px 24px;
	font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.cbv-header__toggle {
		display: flex;
	}

	.cbv-header__nav {
		position: fixed;
		top: var(--cbv-header-height);
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--cbv-dark);
		flex-direction: column;
		justify-content: flex-start;
		padding: 16px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.2s ease;
	}

	.cbv-header__nav.is-open {
		transform: translateX(0);
	}

	.cbv-menu {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.cbv-menu ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: rgba(255, 255, 255, 0.04);
		display: none;
	}

	.cbv-menu > li.is-open > ul {
		display: block;
	}
}

/* ---------- Pàgines de contingut simples (plantilles PHP planes, sense Elementor) ---------- */

.cbv-page-hero {
	background: var(--cbv-dark);
	padding: 56px 24px;
	text-align: center;
}

.cbv-page-hero__inner {
	max-width: 900px;
	margin: 0 auto;
}

.cbv-page-hero h1 {
	color: #ffffff;
	font-size: 40px;
	font-weight: 800;
	margin: 0 0 8px;
}

.cbv-page-hero__tagline {
	color: #e7f5ee;
	font-size: 20px;
	font-style: italic;
	margin: 0;
}

/* ---------- Notícies ---------- */

.cbv-news-grid {
	padding: 40px 24px;
}

/* Llista de notícies sense fotografia: data a l'esquerra, text a la dreta. */
.cbv-news-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 920px;
	margin: 0 auto;
}

.cbv-news-item {
	display: flex;
	align-items: center;
	gap: 20px;
	color: inherit;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #e2e7e5;
	border-radius: 12px;
	padding: 18px 22px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cbv-news-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(16, 32, 31, 0.1);
}

.cbv-news-item__date {
	flex: 0 0 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 0;
	border-radius: 10px;
	background: var(--cbv-green);
	color: #ffffff;
	line-height: 1.1;
	text-transform: uppercase;
}

.cbv-news-item__day {
	font-size: 26px;
	font-weight: 800;
}

.cbv-news-item__month {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.cbv-news-item__year {
	font-size: 11px;
	opacity: 0.85;
}

.cbv-news-item__body {
	min-width: 0;
}

.cbv-news-item__title {
	color: var(--cbv-dark);
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.3;
}

.cbv-news-item__excerpt {
	color: #5b6664;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 8px;
}

.cbv-news-item__more {
	color: var(--cbv-green);
	font-size: 13px;
	font-weight: 700;
}

.cbv-news-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 32px;
}

.cbv-news-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid #e2e7e5;
	color: var(--cbv-dark);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.cbv-news-pagination .page-numbers.current {
	background: var(--cbv-green);
	border-color: var(--cbv-green);
	color: #ffffff;
}

@media (max-width: 600px) {
	.cbv-page-hero h1 {
		font-size: 30px;
	}

	.cbv-news-item {
		gap: 14px;
		padding: 14px;
	}

	.cbv-news-item__date {
		flex-basis: 58px;
	}

	.cbv-news-item__day {
		font-size: 22px;
	}

	.cbv-news-item__title {
		font-size: 17px;
	}
}

/* ---------- Patrocinadors ---------- */

.cbv-sponsor-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbv-sponsor-logo img {
	max-width: 220px;
	max-height: 260px;
	width: auto;
	height: auto;
}

/* Logo ample (imatge sencera, p. ex. targeta amb fons de color) */
.cbv-sponsor-logo--wide img {
	max-width: 340px;
	max-height: none;
	border-radius: 10px;
}

/* Subapartats de la pàgina (Patrocinadors / Col·laboradors) */
.cbv-sponsor-group {
	max-width: 1232px;
	margin: 0 auto !important;
	scroll-margin-top: 90px;
}

.cbv-sponsor-group .elementor-heading-title {
	margin: 0;
	font-size: 30px;
}

.cbv-sponsor-group .elementor-heading-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: 10px auto 0;
	border-radius: 2px;
	background: #0a8650;
}

/* ---------- Imatges històriques ---------- */

.cbv-gallery-back {
	display: inline-block;
	margin-top: 16px;
	color: #e7f5ee;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.cbv-gallery-back:hover {
	text-decoration: underline;
}

.cbv-decades-grid {
	padding: 40px 24px;
}

.cbv-decades-grid__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.cbv-decade-card {
	display: block;
	color: inherit;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #e2e7e5;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cbv-decade-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(16, 32, 31, 0.1);
}

.cbv-decade-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e2e7e5;
}

.cbv-decade-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cbv-decade-card__body {
	padding: 14px 16px;
	text-align: center;
}

.cbv-decade-card__body h3 {
	color: var(--cbv-dark);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
}

.cbv-decade-card__body span {
	color: var(--cbv-green);
	font-size: 13px;
	font-weight: 600;
}

.cbv-gallery-grid {
	padding: 40px 24px;
}

.cbv-gallery-grid__list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}

.cbv-gallery-grid__item {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	background: #e2e7e5;
	cursor: zoom-in;
}

.cbv-gallery-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.cbv-gallery-grid__item:hover img {
	transform: scale(1.06);
}

.cbv-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(10, 16, 15, 0.92);
	align-items: center;
	justify-content: center;
}

.cbv-lightbox:not([hidden]) {
	display: flex;
}

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

.cbv-lightbox__img {
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 4px;
}

.cbv-lightbox__close,
.cbv-lightbox__nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #ffffff;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbv-lightbox__close:hover,
.cbv-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.24);
}

.cbv-lightbox__close {
	top: 20px;
	right: 20px;
}

.cbv-lightbox__nav--prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.cbv-lightbox__nav--next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 900px) {
	.cbv-decades-grid__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.cbv-gallery-grid__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.cbv-decades-grid__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.cbv-gallery-grid__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.cbv-lightbox__nav {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
}

/* Resultats i pròxims partits (dades de la Federació): llista amb scroll */
.cbv-fcbq-scroll {
	max-height: 380px;
	overflow-y: auto;
	padding-right: 4px;
	margin-bottom: 8px;
}

.cbv-fcbq-scores .is-win {
	color: var(--cbv-green);
}

.cbv-fcbq-scores strong:not(.is-win) {
	color: #5b6664;
}

.cbv-fcbq-comp a {
	color: var(--cbv-green);
	text-decoration: none;
}

.cbv-fcbq-comp a:hover {
	text-decoration: underline;
}

.cbv-fcbq-updated {
	font-size: 12px;
	color: #8a9694;
	margin: 0 0 12px;
}

/* Banda verda de tancament de les plantilles PHP (notícies, galeries) */
.cbv-cloenda {
	background: #0a8650;
	padding: 40px 24px;
	text-align: center;
}

.cbv-cloenda__title {
	margin: 0;
	color: #ffffff;
	font-family: "Mistral", cursive;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.2;
}

/* Escut de l'equip al davant del nom (resultats i pròxims partits) */
.cbv-fcbq-team {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.cbv-fcbq-logo {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	object-fit: contain;
}

.cbv-fcbq-teams--stack {
	flex-wrap: wrap;
	align-items: center;
}

/* Resultats: cada equip ocupa la seva meitat; el del visitant porta l'escut a la dreta, a l'altura de la seva puntuació */
.cbv-fcbq-teams:not(.cbv-fcbq-teams--stack) .cbv-fcbq-team {
	flex: 1 1 0;
}

.cbv-fcbq-teams:not(.cbv-fcbq-teams--stack) .cbv-fcbq-team:last-child {
	flex-direction: row-reverse;
	text-align: right;
}

/* Pròxims partits: un equip a cada línia, amb "vs" discret entre tots dos */
.cbv-fcbq-teams--stack {
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: 2px;
}

.cbv-fcbq-teams--stack .cbv-fcbq-vs {
	margin: 0 0 0 28px;
	font-size: 12px;
}

/* Escut amb "multiply": el blanc de la imatge pren el color de la franja verda */
.cbv-fcbq-logo {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	mix-blend-mode: multiply;
	object-fit: contain;
}

/* Resultat des del punt de vista del club: franja de color a l'esquerra i etiqueta Victòria / Derrota / Empat */
.cbv-fcbq-date {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cbv-fcbq-row--win {
	box-shadow: inset 4px 0 0 #0a8650;
}

.cbv-fcbq-row--loss {
	box-shadow: inset 4px 0 0 #c0392b;
}

.cbv-fcbq-row--draw {
	box-shadow: inset 4px 0 0 #8a9694;
}

.cbv-fcbq-badge {
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #ffffff;
}

.cbv-fcbq-badge--win {
	background: #0a8650;
}

.cbv-fcbq-badge--loss {
	background: #c0392b;
}

.cbv-fcbq-badge--draw {
	background: #8a9694;
}

/* Logo "Viladecans 2030" del peu de pàgina (enllaça a la pàgina de les Missions) */
.cbv-footer__mission a {
	display: block;
	line-height: 0;
}

.cbv-footer__mission img {
	height: 72px;
	background: #ffffff;
	padding: 5px 9px;
	box-sizing: content-box;
	width: auto;
	border-radius: 6px;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.cbv-footer__mission a:hover img {
	transform: scale(1.04);
	opacity: 0.92;
}

/* Peu: "Compromesos amb" i l'app, agrupats a la dreta */
.cbv-footer__right {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 28px;
}

/* Logos dels patrocinadors del peu: enllaç al seu rectangle de la pàgina Patrocinadors */
a.cbv-footer__sponsor-logo {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.cbv-footer__sponsor-logo:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Les ancores (#matachana...) no queden amagades sota el capçal fix */
.cbv-card-section[id] {
	scroll-margin-top: 100px;
}

/* Peu d'escriptori: els logos de patrocinadors i col·laboradors ocupen una fila pròpia (n'hi ha 6 o més);
   a sota, "Compromesos amb" i l'app, alineats a la dreta */
@media (min-width: 1280px) {
	.cbv-footer__sponsors {
		gap: 24px;
		align-items: center;
	}

	.cbv-footer__sponsors-logos {
		flex: 1 1 100%;
		flex-wrap: wrap;
		gap: 14px;
	}

	.cbv-footer__sponsors-logos .cbv-footer__sponsors-label {
		flex: 0 0 100%;
		margin-bottom: -2px;
		white-space: nowrap;
	}

	.cbv-footer__right {
		flex-wrap: nowrap;
		gap: 20px;
		margin-left: auto;
	}

	.cbv-footer__sponsors-label {
		white-space: nowrap;
	}
}

/* ---------- Calendari global del club ---------- */
.cbv-cal,
.cbv-ent {
	--cal-green: #0a8650;
	--cal-dark: #182d30;
	--cal-line: #b9d9c7;
	--cal-soft: #eef8f1;
	max-width: 980px;
	margin: 0 auto;
}

.cbv-cal-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-bottom: 20px;
}

.cbv-cal-pick {
	position: relative;
}

.cbv-cal-pick__btn {
	background: var(--cal-green);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 40px 10px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	position: relative;
}

.cbv-cal-pick__btn::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 7px;
	height: 7px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translateY(-70%) rotate(45deg);
}

.cbv-cal-pick__panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 8px);
	left: 0;
	width: min(420px, 88vw);
	max-height: 60vh;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--cal-line);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.cbv-cal-pick__panel[hidden] {
	display: none;
}

.cbv-cal-pick__actions {
	position: sticky;
	top: 0;
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	background: #fff;
	border-bottom: 1px solid var(--cal-line);
}

.cbv-cal-pick__actions button {
	border: 1px solid var(--cal-green);
	background: #fff;
	color: var(--cal-green);
	border-radius: 999px;
	padding: 5px 16px;
	font-weight: 700;
	cursor: pointer;
}

.cbv-cal-pick__actions button:hover {
	background: var(--cal-green);
	color: #fff;
}

.cbv-cal-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	cursor: pointer;
}

.cbv-cal-opt:hover {
	background: var(--cal-soft);
}

.cbv-cal-opt input {
	width: 18px;
	height: 18px;
	accent-color: var(--cal-green);
	flex: none;
}

.cbv-cal-opt strong {
	display: block;
	color: var(--cal-dark);
	font-size: 15px;
}

.cbv-cal-opt small {
	display: block;
	color: #5d6f72;
	font-size: 12px;
}

.cbv-cal-past {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #3d4f52;
}

.cbv-cal-month {
	margin: 28px 0 8px;
	color: var(--cal-dark);
	font-size: 24px;
	border-bottom: 2px solid var(--cal-green);
	padding-bottom: 4px;
}

.cbv-cal-day {
	margin: 14px 0 22px;
}

.cbv-cal-day h4 {
	margin: 0 0 8px;
	font-size: 16px;
	color: var(--cal-green);
}

.cbv-cal-day.is-today h4 {
	color: #c0392b;
}

.cbv-cal-match {
	display: flex;
	gap: 14px;
	align-items: stretch;
	background: var(--cal-soft);
	border: 1px solid var(--cal-line);
	border-left: 5px solid var(--cal-green);
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 8px;
}

.cbv-cal-match.is-away {
	background: #f4f6f6;
	border-color: #d3dada;
	border-left-color: var(--cal-dark);
}

.cbv-cal-match.is-next {
	box-shadow: 0 0 0 2px var(--cal-green), 0 6px 16px rgba(10, 134, 80, 0.2);
}

.cbv-cal-time {
	flex: none;
	width: 70px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
}

.cbv-cal-time span {
	font-size: 20px;
	font-weight: 800;
	color: var(--cal-dark);
}

.cbv-cal-tag {
	font-style: normal;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 1px 8px;
	border-radius: 999px;
	color: #fff;
	background: var(--cal-green);
}

.cbv-cal-match.is-away .cbv-cal-tag {
	background: var(--cal-dark);
}

.cbv-cal-body {
	min-width: 0;
	flex: 1;
}

.cbv-cal-team {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cal-green);
}

.cbv-cal-vs {
	font-size: 15px;
	color: var(--cal-dark);
	overflow-wrap: anywhere;
}

.cbv-cal-vs i {
	font-style: normal;
	color: #8a9694;
	margin: 0 4px;
}

.cbv-cal-meta {
	margin-top: 2px;
	font-size: 13px;
	color: #5d6f72;
}

.cbv-cal-meta a {
	color: #5d6f72;
	text-decoration: underline;
}

.cbv-cal-empty,
.cbv-cal-hint {
	text-align: center;
	color: #5d6f72;
	padding: 28px 0;
}

/* Vista mensual */
.cbv-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.cbv-cal-nav h3 {
	margin: 0;
	color: var(--cal-dark);
}

.cbv-cal-nav button {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--cal-green);
	background: #fff;
	color: var(--cal-green);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.cbv-cal-nav button:disabled {
	opacity: 0.3;
	cursor: default;
}

.cbv-cal-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
	gap: 6px;
}

.cbv-cal-dow {
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	color: var(--cal-green);
	padding: 4px 0;
}

.cbv-cal-cell {
	position: relative;
	min-height: 84px;
	border: 1px solid #e1e8e5;
	border-radius: 6px;
	padding: 4px;
	background: #fff;
}

.cbv-cal-cell.is-blank {
	background: transparent;
	border-color: transparent;
}

.cbv-cal-cell.has-matches {
	background: var(--cal-soft);
	border-color: var(--cal-line);
	cursor: pointer;
}

.cbv-cal-cell.is-today .cbv-cal-num {
	background: #c0392b;
	color: #fff;
	border-radius: 999px;
	padding: 0 6px;
}

.cbv-cal-cell.is-open {
	outline: 2px solid var(--cal-green);
}

.cbv-cal-num {
	font-size: 12px;
	font-weight: 700;
	color: var(--cal-dark);
}

.cbv-cal-count {
	display: none;
}

.cbv-cal-chips {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 3px;
}

.cbv-cal-chip {
	display: block;
	font-size: 10.5px;
	line-height: 1.25;
	padding: 1px 4px;
	border-radius: 4px;
	color: #fff;
	background: var(--cal-green);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cbv-cal-chip.is-away {
	background: var(--cal-dark);
}

.cbv-cal-more {
	font-size: 10.5px;
	color: #5d6f72;
}

.cbv-cal-detail {
	margin-top: 22px;
}

/* Vista per equip */
.cbv-cal-teamblock {
	margin-bottom: 34px;
}

.cbv-cal-teamblock header {
	border-bottom: 2px solid var(--cal-green);
	margin-bottom: 12px;
	padding-bottom: 4px;
}

.cbv-cal-teamblock h3 {
	margin: 0;
	color: var(--cal-dark);
}

.cbv-cal-teamblock small {
	color: #5d6f72;
}

@media (max-width: 640px) {
	.cbv-cal-time {
		width: 58px;
	}

	.cbv-cal-cell {
		min-height: 52px;
	}

	.cbv-cal-chips {
		display: none;
	}

	.cbv-cal-count {
		display: block;
		position: absolute;
		right: 4px;
		bottom: 4px;
		min-width: 20px;
		height: 20px;
		border-radius: 999px;
		background: var(--cal-green);
		color: #fff;
		font-size: 11px;
		font-weight: 800;
		text-align: center;
		line-height: 20px;
	}
}

/* Calendari: subtítol de camp dins de cada dia i etiqueta [M]/[F] del selector */
.cbv-cal-court {
	margin: 12px 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5d6f72;
}

.cbv-cal-court::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	background: var(--cal-green);
}

.cbv-cal-court--away::before {
	background: var(--cal-dark);
}

.cbv-cal-court--other::before {
	background: #8a9694;
}

.cbv-cal-g {
	font-weight: 800;
	color: var(--cal-green);
}

.cbv-cal-g--f {
	color: #c2185b;
}

/* Calendari mensual: dissabte | diumenge | entre setmana (dilluns a divendres) */
.cbv-cal-cell.is-midweek.has-matches {
	background: #f4f6f6;
	border-color: #d3dada;
}

.cbv-cal-chip {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 640px) {
	.cbv-cal-grid {
		gap: 4px;
	}

	.cbv-cal-dow {
		font-size: 11px;
	}

	.cbv-cal-cell {
		min-height: 70px;
		padding: 3px;
	}

	.cbv-cal-chips {
		display: flex;
	}

	.cbv-cal-chip {
		font-size: 9.5px;
		line-height: 1.2;
		padding: 1px 3px;
	}

	.cbv-cal-count {
		display: none;
	}
}

/* Calendari: pestanyes de vista (Calendari / Equips / Propers partits) */
.cbv-cal-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
	padding: 4px;
	background: #e1efe6;
	border-radius: 999px;
	width: fit-content;
	max-width: 100%;
}

.cbv-cal-tabs button {
	border: 0;
	background: transparent;
	color: var(--cal-dark);
	font-size: 15px;
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 999px;
	cursor: pointer;
}

.cbv-cal-tabs button.is-on {
	background: var(--cal-green);
	color: #fff;
}

.cbv-cal-past[hidden] {
	display: none;
}

@media (max-width: 640px) {
	.cbv-cal-tabs {
		width: 100%;
		flex-wrap: nowrap;
		gap: 2px;
	}

	.cbv-cal-tabs button {
		flex: 1 1 0;
		padding: 8px 6px;
		font-size: 13px;
	}
}

/* Calendari: escuts davant dels noms (el nostre i el del rival) */
.cbv-cal-vs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.cbv-cal-side {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cbv-cal-logo {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Rival sense escut a la Federació: cercle blanc de la mateixa mida que els escuts */
.cbv-cal-logo--blank {
	display: inline-block;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(24, 45, 48, 0.18);
	mix-blend-mode: normal;
}

@media (max-width: 640px) {
	.cbv-cal-logo {
		width: 26px;
		height: 26px;
		flex-basis: 26px;
	}
}

/* Calendari: resultat dels partits jugats (Victòria / Derrota) */

.cbv-cal-mk {
	display: inline-block;
	min-width: 13px;
	margin-right: 3px;
	padding: 0 2px;
	border-radius: 3px;
	font-style: normal;
	font-weight: 800;
	font-size: 9.5px;
	line-height: 1.3;
	text-align: center;
	color: #fff;
	background: #0a8650;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.cbv-cal-mk--l {
	background: #c0392b;
}

.cbv-cal-mk--d {
	background: #8a9694;
}

@media (max-width: 640px) {
		.cbv-cal-badge {
		font-size: 10px;
		padding: 1px 7px;
	}
}

/* Calendari: partit jugat (etiqueta Victòria/Derrota sota l'hora; equips en línies amb els punts a la dreta) */
.cbv-cal-badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	background: #8a9694;
}

.cbv-cal-badge--w {
	background: #0a8650;
}

.cbv-cal-badge--l {
	background: #c0392b;
}

.cbv-cal-match.res-w {
	border-left-color: #0a8650;
}

.cbv-cal-match.res-l {
	border-left-color: #c0392b;
	background: #fbf1ef;
	border-color: #ecd0cb;
	border-left-color: #c0392b;
}

.cbv-cal-vs--res {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.cbv-cal-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.cbv-cal-line .cbv-cal-side {
	flex: 1 1 auto;
	min-width: 0;
}

.cbv-cal-pts {
	flex: none;
	min-width: 34px;
	text-align: right;
	font-size: 22px;
	font-weight: 800;
	color: #8a9694;
}

.cbv-cal-line.is-top .cbv-cal-pts {
	color: var(--cal-dark);
}

@media (max-width: 640px) {
	.cbv-cal-time {
		width: 74px;
	}

	.cbv-cal-vs:not(.cbv-cal-vs--res) {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.cbv-cal-vs:not(.cbv-cal-vs--res) > i {
		display: none;
	}

	.cbv-cal-pts {
		font-size: 20px;
		min-width: 30px;
	}

	.cbv-cal-badge {
		font-size: 9.5px;
		padding: 1px 6px;
	}
}

/* Calendari, mòbil: capçalera de la targeta en una fila (hora · local/visitant · victòria/derrota) i els equips a tota l'amplada */
.cbv-cal-time .cbv-cal-badge {
	font-size: 10px;
	line-height: 1.5;
	font-weight: 800;
	color: #fff;
}

@media (max-width: 640px) {
	.cbv-cal-match {
		flex-direction: column;
		gap: 6px;
		padding: 10px 12px;
	}

	.cbv-cal-time {
		width: auto;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 8px;
	}

	.cbv-cal-time > span:first-child {
		font-size: 19px;
		margin-right: 2px;
	}

	.cbv-cal-line .cbv-cal-us,
	.cbv-cal-line .cbv-cal-them {
		overflow-wrap: anywhere;
		line-height: 1.25;
	}
}

/* Calendari, mòbil: el nom de l'equip i la categoria van a dalt de tot de la targeta */
@media (max-width: 640px) {
	.cbv-cal-body {
		display: contents;
	}

	.cbv-cal-team {
		order: -1;
	}

	.cbv-cal-time {
		order: 0;
	}

	.cbv-cal-vs {
		order: 1;
	}

	.cbv-cal-meta {
		order: 2;
	}
}

/* Calendari: ara el selector d'equips va abans de les pestanyes */
.cbv-cal-bar {
	margin-bottom: 14px;
}

.cbv-cal-past {
	margin: 0 0 18px;
}

/* Botó deshabilitat (p. ex. inscripció d'un esdeveniment ja finalitzat) */
.cbv-btn-disabled .elementor-button{background:#d9dedc !important;color:#fff !important;cursor:not-allowed;pointer-events:none;opacity:.85}

/* Classificació dins la fitxa d'equip del calendari */
.cbv-cal-stand{margin:0 0 14px;background:#fff;border:1px solid #dfe9e4;border-radius:12px;overflow:hidden}
.cbv-cal-stand summary{cursor:pointer;padding:12px 16px;font-size:15px;color:#182d30;list-style:none}
.cbv-cal-stand summary::-webkit-details-marker{display:none}
.cbv-cal-stand summary::after{content:"▾";float:right;color:#0a8650}
.cbv-cal-stand[open] summary::after{content:"▴"}
.cbv-cal-stand-wrap{overflow-x:auto}
.cbv-cal-stand table{width:100%;border-collapse:collapse;font-size:14px}
.cbv-cal-stand th,.cbv-cal-stand td{padding:6px 8px;text-align:center;border:0;border-top:1px solid #edf3f0;white-space:nowrap}
.cbv-cal-stand th[scope=row],.cbv-cal-stand thead th:nth-child(2){text-align:left;white-space:normal;font-weight:500}
.cbv-cal-stand thead th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#5d716e;background:#f4f9f6;border-top:0}
.cbv-cal-stand tr.is-us{background:#e7f5ee}
.cbv-cal-stand tr.is-us th,.cbv-cal-stand tr.is-us td{font-weight:700;color:#0a6b40}
.cbv-cal-stand small{display:block;padding:8px 16px 12px;color:#6a7d7a;font-size:12px}
.cbv-cal-streak{white-space:nowrap}
.cbv-cal-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 1px;background:#c9d2cf}
.cbv-cal-dot--w{background:#1fae6d}
.cbv-cal-dot--l{background:#e0405a}
@media (max-width:560px){.cbv-cal-hide-s{display:none}.cbv-cal-stand th,.cbv-cal-stand td{padding:6px 5px}}

/* Portada: "Els meus equips" (només si hi ha equips triats a la cookie del calendari) */
.cbv-meus-sec{display:none}
.cbv-meus-sec.is-on{display:block}
.cbv-cal--meus .cbv-cal-bar,.cbv-cal--meus .cbv-cal-tabs,.cbv-cal--meus .cbv-cal-past,.cbv-cal--meus .cbv-fcbq-updated{display:none}
.cbv-meus-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;margin-top:8px}
.cbv-meus-team{background:#f4f9f6;border:1px solid #dfe9e4;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:6px;min-width:0}
.cbv-meus-team header h4{margin:0;font-size:19px;color:#182d30}
.cbv-meus-team header small{color:#5d716e;font-size:13px}
.cbv-meus-lbl{margin:8px 0 2px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#0a8650;font-weight:700}
.cbv-meus-more{margin-top:auto;padding-top:10px;color:#0a8650;font-weight:600;text-decoration:none;font-size:14px}
.cbv-meus-more:hover{text-decoration:underline}

/* Subscripció al calendari del mòbil (.ics) */
.cbv-cal-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
.cbv-cal-ics{position:relative}
.cbv-cal-ics__btn{background:#fff;border:1px solid #0a8650;color:#0a8650;border-radius:999px;padding:9px 16px;font-weight:600;font-size:14px;cursor:pointer}
.cbv-cal-ics__btn:hover{background:#e7f5ee}
.cbv-cal-ics__panel{position:absolute;z-index:30;top:calc(100% + 8px);left:0;width:min(340px,calc(100vw - 48px));background:#fff;border:1px solid #dfe9e4;border-radius:14px;box-shadow:0 12px 32px rgba(10,40,30,.18);padding:14px;display:flex;flex-direction:column;gap:8px}
.cbv-cal-ics__panel[hidden]{display:none}
.cbv-cal-ics__panel p{margin:0 0 4px;font-size:14px;color:#33474a}
.cbv-cal-ics__a{display:block;padding:10px 12px;border-radius:10px;background:#f4f9f6;color:#0a6b40;font-weight:600;font-size:14px;text-decoration:none}
.cbv-cal-ics__a:hover{background:#e7f5ee}
@media (max-width:560px){.cbv-cal-ics__panel{left:auto;right:0}}

/* Partit que ha canviat de dia, hora o camp */
.cbv-cal-changed{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:999px;background:#fff0c2;color:#7a5200;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.cbv-cal-was{color:#7a5200;font-weight:600;font-size:13px}
.cbv-cal-time .cbv-cal-changed{display:block;text-align:center;font-size:10px;line-height:1.2;padding:2px 6px;margin:4px 0 0;white-space:nowrap;letter-spacing:.02em}

/* Horaris d'entrenament (/entrenaments/) */
.cbv-ent-tools{margin:0 0 18px}
.cbv-ent-sel{display:inline-flex;align-items:center;gap:10px;font-weight:600;color:#182d30}
.cbv-ent-sel select{font:inherit;padding:9px 14px;border:1px solid #bcd3c9;border-radius:10px;background:#fff;color:#182d30;min-width:240px;max-width:100%}
.cbv-ent-pills{display:flex;flex-wrap:wrap;gap:8px}
.cbv-ent-pills button{border:1px solid #bcd3c9;background:#fff;color:#182d30;border-radius:999px;padding:8px 16px;font-weight:600;cursor:pointer;font-size:14px}
.cbv-ent-pills button.is-on{background:#0a8650;border-color:#0a8650;color:#fff}
.cbv-ent-cards,.cbv-ent-dia{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:18px;align-items:start}
.cbv-ent-card{background:#fff;border:1px solid #dfe9e4;border-radius:14px;overflow:hidden;min-width:0}
.cbv-ent-card header{background:#182d30;padding:12px 16px}
.cbv-ent-card header h3{margin:0;font-size:18px;color:#fff}
.cbv-ent-week,.cbv-ent-list{list-style:none;margin:0;padding:0}
.cbv-ent-week li{display:flex;gap:12px;padding:10px 16px;border-top:1px solid #edf3f0;align-items:flex-start}
.cbv-ent-week li:first-child{border-top:0}
.cbv-ent-week li.none{opacity:.55}
.cbv-ent-day{flex:0 0 56px;display:flex;flex-direction:column;line-height:1.2}
.cbv-ent-day b{font-size:15px;color:#0a8650}
.cbv-ent-day small{font-size:11px;color:#6a7d7a}
.cbv-ent-slots{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
.cbv-ent-slot{display:flex;flex-direction:column;line-height:1.3}
.cbv-ent-slot strong{font-size:15px;color:#182d30}
.cbv-ent-slot em{font-style:normal;color:#4a5f5c;font-size:14px}
.cbv-ent-none{color:#8a9a97}
.cbv-ent-list li{display:grid;grid-template-columns:104px 1fr;gap:2px 10px;padding:10px 16px;border-top:1px solid #edf3f0}
.cbv-ent-list li:first-child{border-top:0}
.cbv-ent-time{color:#0a6b40;font-size:15px}
.cbv-ent-who{font-weight:600;color:#182d30}
.cbv-ent-list em{grid-column:2;font-style:normal;color:#5d716e;font-size:13px}
@media (max-width:560px){.cbv-ent-cards,.cbv-ent-dia{grid-template-columns:1fr}.cbv-ent-sel{flex-direction:column;align-items:flex-start;width:100%}.cbv-ent-sel select{width:100%}}

/* Calendari: filtres de lloc/dia, icona .ics a la dreta, llegenda i data d'actualització */
.cbv-cal-bar{align-items:center}
.cbv-cal-pick__actions{flex-wrap:wrap}
.cbv-cal-pick__actions button{padding:5px 14px}
.cbv-cal-pick--f .cbv-cal-pick__btn{background:#fff;color:#0a8650;border:1px solid #0a8650;padding:9px 34px 9px 16px;font-size:14px;font-weight:600}
.cbv-cal-pick--f .cbv-cal-pick__btn::after{border-color:#0a8650;right:15px}
.cbv-cal-pick--f .cbv-cal-pick__btn.is-active{background:#e7f5ee;font-weight:700}
.cbv-cal-pick--f .cbv-cal-pick__panel{width:min(260px,88vw)}
.cbv-cal-ics{margin-left:auto}
.cbv-cal-ics__btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border-radius:50%}
.cbv-cal-ics__btn svg{display:block}
.cbv-cal-ics__panel{left:auto;right:0}
.cbv-cal-checks{display:flex;flex-wrap:wrap;gap:6px 22px}
.cbv-cal-onlych{display:flex;align-items:center;gap:8px;font-size:14px;color:#3d4f52;margin:0 0 18px}
.cbv-cal-onlych[hidden]{display:none}
@media (max-width:640px){
	.cbv-cal-bar{position:relative}
	.cbv-cal-pick{position:static}
	.cbv-cal-pick__panel,.cbv-cal-pick--f .cbv-cal-pick__panel{left:0;right:0;width:auto}
}

.cbv-cal-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:32px 0 0;padding-top:14px;border-top:1px solid #e1e8e5;font-size:12px;line-height:1.3;color:#6a7d7a}
.cbv-cal-legend strong{color:#4d605d;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.cbv-cal-legend span{display:inline-flex;align-items:center;gap:6px}
.cbv-lg{display:inline-block;flex:none;box-sizing:border-box;width:18px;height:14px;border-radius:3px;font-style:normal;font-size:9px;font-weight:800;line-height:14px;text-align:center;color:#fff}
.cbv-lg--home{background:#eef8f1;border:1px solid #b9d9c7;border-left:4px solid #0a8650}
.cbv-lg--away{background:#f4f6f6;border:1px solid #d3dada;border-left:4px solid #182d30}
.cbv-lg--next{background:#fff;box-shadow:0 0 0 2px #0a8650}
.cbv-lg--w{background:#0a8650}
.cbv-lg--l{background:#c0392b}
.cbv-lg--chg{width:auto;height:auto;padding:1px 7px;border-radius:999px;background:#fff0c2;color:#7a5200;font-size:9px;line-height:1.4;text-transform:uppercase;letter-spacing:.03em}
.cbv-cal-upd{margin:10px 0 0;font-size:12px;color:#8a9694}
.cbv-cal--meus .cbv-cal-checks,.cbv-cal--meus .cbv-cal-legend,.cbv-cal--meus .cbv-cal-upd{display:none}

/* Calendari: resum per al WhatsApp */
.cbv-cal-wa{position:relative;margin-left:auto}
.cbv-cal-wa + .cbv-cal-ics{margin-left:0}
.cbv-cal-wa__panel{width:min(380px,calc(100vw - 48px))}
.cbv-cal-wa__week{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cbv-cal-wa__week strong{font-size:14px;color:#182d30;text-align:center}
.cbv-cal-wa__week button{border:1px solid #0a8650;background:#fff;color:#0a8650;border-radius:999px;width:32px;height:32px;font-size:18px;line-height:1;cursor:pointer}
.cbv-cal-wa__week button:hover{background:#e7f5ee}
.cbv-cal-wa__panel textarea{width:100%;box-sizing:border-box;font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;padding:10px;border:1px solid #dfe9e4;border-radius:10px;background:#f9fbfa;color:#182d30;resize:vertical}
.cbv-cal-wa__acts{display:flex;gap:8px;flex-wrap:wrap}
.cbv-cal-wa__acts button,.cbv-cal-wa__acts a{flex:1 1 auto;text-align:center;padding:10px 12px;border-radius:10px;border:0;background:#0a8650;color:#fff;font-weight:600;font-size:14px;text-decoration:none;cursor:pointer}
.cbv-cal-wa__acts a{background:#f4f9f6;color:#0a6b40}

/* Fitxa d'equip (/equips/) */
.cbv-cal--fitxa .cbv-cal-bar,.cbv-cal--fitxa .cbv-cal-tabs,.cbv-cal--fitxa .cbv-cal-checks,.cbv-cal--fitxa .cbv-cal-legend{display:none}
.cbv-fx-intro{margin:0 0 18px;color:#3d4f52}
.cbv-fx-group h3{margin:24px 0 10px;font-size:18px;color:#182d30;border-bottom:2px solid #0a8650;padding-bottom:4px}
.cbv-fx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.cbv-fx-card{display:flex;flex-direction:column;gap:2px;padding:12px 14px;background:#eef8f1;border:1px solid #b9d9c7;border-left:5px solid #0a8650;border-radius:10px;text-decoration:none;color:#182d30}
.cbv-fx-card:hover{background:#e0f2e7}
.cbv-fx-card strong{font-size:15px}
.cbv-fx-card small{color:#5d6f72;font-size:12px}
.cbv-fx-card span{margin-top:4px;color:#0a6b40;font-size:12px;font-weight:600}
.cbv-fx-back{display:inline-block;margin:0 0 12px;color:#0a8650;font-weight:600;text-decoration:none}
.cbv-fx-head{border-bottom:2px solid #0a8650;margin-bottom:14px;padding-bottom:6px}
.cbv-fx-head h2{margin:0;color:#182d30;font-size:26px}
.cbv-fx-head small{color:#5d6f72}
.cbv-fx-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.cbv-fx-box{background:#f4f9f6;border:1px solid #dfe9e4;border-radius:12px;padding:14px 16px}
.cbv-fx-box h3,.cbv-fx-h{margin:0 0 8px;font-size:16px;color:#0a8650;text-transform:uppercase;letter-spacing:.05em}
.cbv-fx-h{margin:24px 0 10px}
.cbv-fx-train,.cbv-fx-staff{list-style:none;margin:0;padding:0}
.cbv-fx-train li,.cbv-fx-staff li{padding:5px 0;border-top:1px solid #e1ece6;font-size:15px}
.cbv-fx-train li:first-child,.cbv-fx-staff li:first-child{border-top:0}
.cbv-fx-more{display:inline-block;margin-top:8px;color:#0a8650;font-weight:600;text-decoration:none;font-size:14px}
.cbv-fx-empty{color:#5d6f72;font-size:14px;margin:4px 0}
.cbv-fx-all{margin:14px 0}
.cbv-fx-all summary{cursor:pointer;font-weight:700;color:#182d30;padding:8px 0}
.cbv-fx-ics{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-top:26px;padding-top:14px;border-top:1px solid #e1e8e5;font-size:14px;color:#3d4f52}
.cbv-fx-ics a{padding:6px 12px;border-radius:999px;background:#f4f9f6;color:#0a6b40;font-weight:600;text-decoration:none}
.cbv-fx-link{margin-left:8px;font-size:13px;font-weight:600;color:#0a8650;text-decoration:none;white-space:nowrap}

/* Calculadora de categoria (/categoria/) */
.cbv-cat{max-width:760px;margin:0 auto}
.cbv-cat-form{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:flex-end;margin-bottom:20px}
.cbv-cat-form label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#182d30}
.cbv-cat-form select{font:inherit;padding:10px 14px;border:1px solid #bcd3c9;border-radius:10px;background:#fff;min-width:200px}
.cbv-cat-form fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}
.cbv-cat-form legend{font-weight:600;color:#182d30;padding:0;margin-bottom:6px}
.cbv-cat-form fieldset label{flex-direction:row;align-items:center;gap:6px;font-weight:500}
.cbv-cat-card{background:#eef8f1;border:1px solid #b9d9c7;border-left:5px solid #0a8650;border-radius:12px;padding:18px 20px}
.cbv-cat-card h3{margin:0 0 6px;color:#182d30}
.cbv-cat-card h4{margin:16px 0 8px;font-size:15px;color:#0a8650;text-transform:uppercase;letter-spacing:.05em}
.cbv-cat-teams{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.cbv-cat-teams a{display:flex;flex-direction:column;padding:10px 12px;background:#fff;border:1px solid #dfe9e4;border-radius:10px;text-decoration:none;color:#182d30}
.cbv-cat-teams a:hover{background:#f4f9f6}
.cbv-cat-teams small{color:#5d6f72;font-size:12px}
.cbv-cat-btn{display:inline-block;margin:6px 8px 0 0;padding:10px 16px;border-radius:999px;background:#0a8650;color:#fff;font-weight:600;text-decoration:none}
.cbv-cat-btn--alt{background:#fff;color:#0a8650;border:1px solid #0a8650}
.cbv-cat-note{margin-top:14px;font-size:12px;color:#8a9694}

/* Preguntes freqüents (pregunta / resposta desplegable) */
.cbv-faq{max-width:820px;margin:0 auto 40px}
.cbv-faq__group{margin:30px 0 10px;font-size:18px;color:#0a8650;text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid #0a8650;padding-bottom:4px}
.cbv-faq__item{background:#fff;border:1px solid #dfe9e4;border-radius:12px;margin:8px 0;overflow:hidden}
.cbv-faq__item summary{cursor:pointer;list-style:none;padding:14px 44px 14px 16px;font-weight:700;color:#182d30;position:relative}
.cbv-faq__item summary::-webkit-details-marker{display:none}
.cbv-faq__item summary::after{content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:22px;font-weight:400;color:#0a8650}
.cbv-faq__item[open] summary{background:#f4f9f6}
.cbv-faq__item[open] summary::after{content:"−"}
.cbv-faq__a{padding:6px 16px 14px;color:#33474a;line-height:1.55}
.cbv-faq__a p{margin:8px 0}
.cbv-faq__a a{color:#0a6b40;font-weight:600}
.cbv-cal-wa[hidden]{display:none}

/* Calendari mensual: capçaleres de columna (DL-DV / DS / DG) més grans */
.cbv-cal-dow{font-size:17px;letter-spacing:.06em;padding:6px 0}

/* Partit aplaçat / suspès / pendent del Comité */
.cbv-cal-changed--bad{background:#fbe0dc;color:#8a1f10}
